[03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:03]int [03:37:03]Write to MH i2c: 01 00 00 6A 11 7B [03:37:03]*** FLAG_PRN_KEY set [03:37:03]Write i2c OK [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 6A 11 00 08 00 00 00 FF 0F 98 [03:37:03]state=0 [03:37:03]Key pressed [03:37:03]Feed [03:37:03]Write to MH i2c: D8 00 00 6B 11 53 [03:37:03]Write i2c OK [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: D8 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: D8 01 00 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: D8 01 00 6B 11 00 54 [03:37:03]int [03:37:03]Write to MH i2c: 01 00 00 6C 11 7D [03:37:03]Write i2c OK [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 6C 11 00 48 00 00 00 3C 00 08 [03:37:03]state=2 [03:37:03]Key pressed [03:37:03]int [03:37:03]Write to MH i2c: 01 00 00 6D 11 7E [03:37:03]*** FLAG_PRN_KEY reset [03:37:03]Write i2c OK [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 [03:37:03]MH_I2C_Read... [03:37:03]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 F6 0F 8A [03:37:03]state=2 [03:37:03]Stop feed [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:15]OFD Sender: No OFD packet to send [03:37:20]OFD Sender: No OFD packet to send [03:37:25]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:09]accept exits with 8 [03:39:09]New connection [03:39:09]New thread 3067358564 created [03:39:09] Sock 8.Parse request [03:39:09]Thread 3067501924 joined [03:39:09]Sock 8.Check first char [03:39:09]Waiting for new connection... [03:39:09]Sock 8.First char is OK [03:39:09]request: POST /json_proto HTTP/1.0 [03:39:09]Method: POST [03:39:09]URL: /json_proto [03:39:09]Method is POST - this is cgi request [03:39:09]url: /json_proto [03:39:09]query_string will be loaded in cgi processing [03:39:09]execute_cgi json_proto POST (null) [03:39:09]execute_cgi path=json_proto method=POST [03:39:09]POST find Content-Length [03:39:09]Host: 172.17.46.131:8080 [03:39:09]Content-Length: 677 [03:39:09]Content-Type: application/json [03:39:09] [03:39:09]POST finish read [03:39:09]Found Content-Length = 677 [03:39:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:09]execute_script... [03:39:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:09]POST & json_proto [03:39:09]process_json_proto [03:39:09]json parsed OK: [03:39:09]protocol is kg_v1.0 [03:39:09]action value=close_receipt [03:39:09]process_action close_receipt [03:39:09]cmd_close_receipt [03:39:09]MH_GetDate [03:39:09]Write to MH i2c: F0 00 00 6E 11 6E [03:39:09]Write i2c OK [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: F0 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: F0 09 00 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: F0 09 00 6E 11 00 5F AF B2 67 7E 41 4F 65 11 [03:39:09]GetLastDocTimeStamp 1739761162 [03:39:09]current date 1739763551 [03:39:09]FM_GetShiftState [03:39:09]SAM_PROTO_GetShiftState [03:39:09]wFMCommunicate request_size=4 [03:39:09]MH_SAM_APDU [03:39:09]CAPDU: 80 13 01 00 [03:39:09]Write to MH i2c: E2 08 00 6F 11 80 13 01 00 00 00 00 00 FD [03:39:09]Write i2c OK [03:39:09]MH_I2C_Read... [03:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:09]Read from MH i2c: E2 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: E2 0E 00 [03:39:09]MH_I2C_Read... [03:39:09]Read from MH i2c: E2 0E 00 6F 11 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 21 [03:39:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:39:09]wFMCommunicate OK [03:39:09]SAM_PROTO_GetShiftState done [03:39:09]FM_GetShiftState done [03:39:09]opened in 1739752571 [03:39:09]opened+sec_in_day 1739838971 [03:39:09]quantity*price = 20030 [03:39:09]sum+1 = 20031 [03:39:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 11 17.02.2025 03:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186424 ФПД: 107738290509318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T033911&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186424&fm=107738290509318&tin=02508201610067®Number=0000000000091857&sum=20000 [03:39:10]StoreToDocumentArchive [03:39:10]shift 644 fd 186424 [03:39:10]save to /storage/0644/doc_00186424 [03:39:10]save last doc name /storage/0644/doc_00186424 to /storage/kkm_last_doc_name [03:39:10]save OK [03:39:10]Clear old archive folders... [03:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:39:10]tlvbuf is 01FB6C00 [03:39:10]SAM_PROTO_ClearQueue [03:39:10]wFMCommunicate request_size=4 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 09 00 00 [03:39:10]Write to MH i2c: E2 08 00 7C 11 80 09 00 00 00 00 00 00 FF [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [03:39:10]RAPDU: 90 00 [03:39:10]wFMCommunicate OK [03:39:10]SAM_PROTO_ClearQueue done [03:39:10]KKMCreateOFDPacket [03:39:10]OFDProtocolAddRootSTLVToBuf [03:39:10]FM_MakeSignedData [03:39:10]FM_MakeSignedData [03:39:10]SAM_PROTO_SignData [03:39:10]wFMCommunicate request_size=4 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 0D 01 02 [03:39:10]Write to MH i2c: E2 08 00 7D 11 80 0D 01 02 00 00 00 00 07 [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:10]OFD Sender: No OFD packet to send [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [03:39:10]RAPDU: 90 00 [03:39:10]wFMCommunicate OK [03:39:10]wFMCommunicate request_size=255 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5F AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D8 02 00 35 04 06 00 61 [03:39:10]Write to MH i2c: E2 02 01 7E 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5F AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D8 02 00 35 04 06 00 61 00 00 17 [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:10]Read from MH i2c: E2 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 [03:39:10]MH_I2C_Read... [03:39:10]Read from MH i2c: E2 03 00 7E 11 00 90 00 03 [03:39:10]RAPDU: 90 00 [03:39:10]wFMCommunicate OK [03:39:10]wFMCommunicate request_size=10 [03:39:10]MH_SAM_APDU [03:39:10]CAPDU: 80 0D 02 02 05 FC C6 88 D6 06 [03:39:10]Write to MH i2c: E2 0D 00 7F 11 80 0D 02 02 05 00 FC C6 88 D6 06 00 00 3A [03:39:10]Write i2c OK [03:39:10]MH_I2C_Read... [03:39:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:11]Read from MH i2c: E2 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 03 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [03:39:11]RAPDU: 90 00 [03:39:11]wFMCommunicate OK [03:39:11]wFMCommunicate request_size=4 [03:39:11]MH_SAM_APDU [03:39:11]CAPDU: 80 0D 03 02 [03:39:11]Write to MH i2c: E2 08 00 80 11 80 0D 03 02 00 00 00 00 0C [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:11]Read from MH i2c: E2 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 0B 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 0B 00 80 11 00 FF 1B 9F A6 12 E6 20 58 90 00 DC [03:39:11]RAPDU: FF 1B 9F A6 12 E6 20 58 90 00 [03:39:11]wFMCommunicate OK [03:39:11]SAM_PROTO_SignData done [03:39:11]FM_MakeSignedData done [03:39:11]CreateOFDProtocolMessage [03:39:11]wFMCommunicate request_size=4 [03:39:11]MH_SAM_APDU [03:39:11]CAPDU: 80 11 00 00 [03:39:11]Write to MH i2c: E2 08 00 81 11 80 11 00 00 00 00 00 00 0C [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:11]Read from MH i2c: E2 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 17 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: E2 17 00 81 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5F [03:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:39:11]wFMCommunicate OK [03:39:11]CreateOFDProtocolMessage done [03:39:11]OFDSenderStorePacket 186424 [03:39:11]StoreOFDPacket docnum=186424 [03:39:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C 7D 07 01 90 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5F AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D8 02 00 35 04 06 00 61 FC C6 88 D6 06 FF 1B 9F A6 12 E6 20 58 [03:39:11]CheckFolder [03:39:11]dirname=/storage/ofd_packets [03:39:11]CheckFolder done [03:39:11]ProducePacketName [03:39:11]name=ofd_packets/00186424 [03:39:11]NVStorageSaveData ofd_packets/00186424 [03:39:11]File name is /storage/ofd_packets/00186424 [03:39:11]Write 301 bytes [03:39:11]NVStorageSaveData done [03:39:11]OFDSenderStorePacket done [03:39:11]KKMCreateOFDPacket done [03:39:11]NVStorageSaveData kkm_last_timestamp [03:39:11]File name is /storage/kkm_last_timestamp [03:39:11]Write 4 bytes [03:39:11]NVStorageSaveData done [03:39:11]ExternCall_PrintAddStr [03:39:11]wPrintStart [03:39:11]Write to MH i2c: 01 00 00 82 11 93 [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 07 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 07 00 82 11 00 00 00 00 00 FF 0F A8 [03:39:11]RasterBufferAndPrint [03:39:11]line Счет N : (1)411556 [03:39:11]line ИНН: 02508201610067 [03:39:11]line Контрольно-Кассовый Чек [03:39:11]line ПРОДАЖА [03:39:11]line ТРК (МРК, ГНК) : 32 [03:39:11]line Товар: 2710124130 [03:39:11]line Аи-92-К-2 [03:39:11]line 3.120 * 64.20 [03:39:11]line = 200.30 [03:39:11]line НДС 12% НСП 1% [03:39:11]line > о реализуемом товаре [03:39:11]line ОКРУГЛЕНИЕ: -0.30 [03:39:11]line ИТОГО: 200.00 [03:39:11]line Внесено: 200.00 [03:39:11]line СДАЧА: 0.00 [03:39:11]line НСП 1% : 1.77 [03:39:11]line НДС 12% : 21.27 [03:39:11]line Наличными: 200.00 [03:39:11]line Безнал.: 0.00 [03:39:11]line Место: АЗС № 92 "Партнер Нефть" [03:39:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:39:11]line СНО: Общий режим [03:39:11]line Чек 11 17.02.2025 03:39 [03:39:11]line Смена: 644 ФФД: 1.0 [03:39:11]line ЗНМ: 0300000118 [03:39:11]line РНМ: 0000000000091857 [03:39:11]line Версия ККМ: 001 [03:39:11]line ФМ: 0000000000871826 [03:39:11]line ФД: 186424 [03:39:11]line ФПД: 107738290509318 [03:39:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T033911&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186424&fm=107738290509318&tin=02508201610067®Number=0000000000091857&sum=20000 [03:39:11]OFD Sender: Processing packet 186424 [packets to send 49, broken 48] [03:39:11]ProducePacketName [03:39:11]name=ofd_packets/00186424 [03:39:11]OFD Sender: To server: pG, [03:39:11]CommunicateWithHost lk.salyk.kg:30040 [03:39:11]ConnectInit lk.salyk.kg [03:39:11]written 0, free lines is 4095 [03:39:11]Connected sock=10 [03:39:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C 7D 07 01 90 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 5F AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D8 02 00 35 04 06 00 61 FC C6 88 D6 06 FF 1B 9F A6 12 E6 20 58 [03:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 37 47 00 3A 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D8 02 00 F4 03 04 00 BB 55 B2 67 B6 04 01 00 00 48 87 62 1B 14 E7 16 47 [03:39:11]CommunicateWithHost err = 0 [03:39:11]CheckOFDResponse [03:39:11]1017 (14) - 77093643461234 [03:39:11]1041 (16) - 0000000000871826 [03:39:11]1040 (4) - 186424 [03:39:11]1012 (4) - 16.02.2025 21:16 [03:39:11]1206 (1) - 0 [03:39:11]OFD Sender: Remove packet 186424 [03:39:11]ProducePacketName [03:39:11]name=ofd_packets/00186424 [03:39:11]NVStorageDeleteData [03:39:11]Write to MH i2c: 01 00 00 AD 11 BE [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 07 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 F5 0C C6 [03:39:11]RasterBufferAndPrint [03:39:11]line [03:39:11]line [03:39:11]line [03:39:11]line [03:39:11]line [03:39:11]written 0, free lines is 3323 [03:39:11]MH_Cut [03:39:11]Write to MH i2c: D1 01 00 B4 11 01 97 [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: D1 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: D1 01 00 [03:39:11]MH_I2C_Read... [03:39:11]Read from MH i2c: D1 01 00 B4 11 00 96 [03:39:11]Write to MH i2c: 01 00 00 B5 11 C6 [03:39:11]Write i2c OK [03:39:11]MH_I2C_Read... [03:39:12]OFD Sender: No OFD packet to send [03:39:12]*** Cut start [03:39:12]*** Partial cut [03:39:12]*** CUTSNS_PIN = 1 [03:39:12]*** CUTSNS_PIN = 0 [03:39:13]*** Brake cut motor [03:39:13]Read from MH i2c: 01 [03:39:13]MH_I2C_Read... [03:39:13]*** Stop cut motor [03:39:13]*** Cut end [03:39:13]Read from MH i2c: 01 07 00 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: 01 07 00 B5 11 00 00 00 00 00 FF 0F DB [03:39:13]process_action close_receipt done [03:39:13]requested_data is exist [03:39:13]produce_requested_data [03:39:13]requested_item fm.sn is exist - process it [03:39:13]wFMCommunicate request_size=4 [03:39:13]MH_SAM_APDU [03:39:13]CAPDU: 80 11 00 00 [03:39:13]Write to MH i2c: E2 08 00 B6 11 80 11 00 00 00 00 00 00 41 [03:39:13]Write i2c OK [03:39:13]MH_I2C_Read... [03:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:13]Read from MH i2c: E2 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 17 00 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 17 00 B6 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 94 [03:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:39:13]wFMCommunicate OK [03:39:13]requested_item fd.num is exist - process it [03:39:13]SAM_PROTO_GetFieldsCounters [03:39:13]wFMCommunicate request_size=4 [03:39:13]MH_SAM_APDU [03:39:13]CAPDU: 80 13 00 00 [03:39:13]Write to MH i2c: E2 08 00 B7 11 80 13 00 00 00 00 00 00 44 [03:39:13]Write i2c OK [03:39:13]MH_I2C_Read... [03:39:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:13]Read from MH i2c: E2 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 62 00 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 62 00 B7 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [03:39:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:13]wFMCommunicate OK [03:39:13]SAM_PROTO_GetFieldsCounters done [03:39:13]requested_item shift.num is exist - process it [03:39:13]requested_item shift.opened is exist - process it [03:39:13]req_shift_opened [03:39:13]FM_GetShiftState [03:39:13]SAM_PROTO_GetShiftState [03:39:13]wFMCommunicate request_size=4 [03:39:13]MH_SAM_APDU [03:39:13]CAPDU: 80 13 01 00 [03:39:13]Write to MH i2c: E2 08 00 B8 11 80 13 01 00 00 00 00 00 46 [03:39:13]Write i2c OK [03:39:13]MH_I2C_Read... [03:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:13]Read from MH i2c: E2 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 0E 00 [03:39:13]MH_I2C_Read... [03:39:13]Read from MH i2c: E2 0E 00 B8 11 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6A [03:39:13]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:39:13]wFMCommunicate OK [03:39:13]SAM_PROTO_GetShiftState done [03:39:13]FM_GetShiftState done [03:39:13]req_shift_opened done [03:39:13]requested_item shift.open_date is exist - process it [03:39:13]req_shift_open_date [03:39:13]req_shift_open_date done [03:39:13]produce_requested_data done [03:39:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186424,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [03:39:13]process_action_free close_receipt [03:39:13]json_value_free [03:39:13]json_value_free done [03:39:13]process_json_proto returns [03:39:13]Send response to host [03:39:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186424,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [03:39:13]free response buf [03:39:13]execute_script done [03:39:13]execute_script returns [03:39:13]free content buf [03:39:13]Sock 8.Close socket [03:39:13]Sock 8.Thread stoped [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:40:57]accept exits with 9 [03:40:57]New connection [03:40:57]New thread 3067501924 created [03:40:57]Thread 3067358564 joined [03:40:57]Waiting for new connection... [03:40:57] Sock 9.Parse request [03:40:57]Sock 9.Check first char [03:40:57]Sock 9.First char is OK [03:40:57]request: POST /json_proto HTTP/1.0 [03:40:57]Method: POST [03:40:57]URL: /json_proto [03:40:57]Method is POST - this is cgi request [03:40:57]url: /json_proto [03:40:57]query_string will be loaded in cgi processing [03:40:57]execute_cgi json_proto POST (null) [03:40:57]execute_cgi path=json_proto method=POST [03:40:57]POST find Content-Length [03:40:57]Host: 172.17.46.131:8080 [03:40:57]Content-Length: 803 [03:40:57]Content-Type: application/json [03:40:57] [03:40:57]POST finish read [03:40:57]Found Content-Length = 803 [03:40:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:57]execute_script... [03:40:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:57]POST & json_proto [03:40:57]process_json_proto [03:40:57]json parsed OK: [03:40:57]protocol is kg_v1.0 [03:40:57]action value=close_receipt [03:40:57]process_action close_receipt [03:40:57]cmd_close_receipt [03:40:57]MH_GetDate [03:40:57]Write to MH i2c: F0 00 00 B9 11 B9 [03:40:57]Write i2c OK [03:40:57]MH_I2C_Read... [03:40:57]Read from MH i2c: F0 [03:40:57]MH_I2C_Read... [03:40:57]Read from MH i2c: F0 09 00 [03:40:57]MH_I2C_Read... [03:40:57]Read from MH i2c: F0 09 00 B9 11 00 CC AF B2 67 7E 41 4F 65 C9 [03:40:57]GetLastDocTimeStamp 1739763551 [03:40:57]current date 1739763660 [03:40:57]FM_GetShiftState [03:40:57]SAM_PROTO_GetShiftState [03:40:57]wFMCommunicate request_size=4 [03:40:57]MH_SAM_APDU [03:40:57]CAPDU: 80 13 01 00 [03:40:57]Write to MH i2c: E2 08 00 BA 11 80 13 01 00 00 00 00 00 48 [03:40:57]Write i2c OK [03:40:57]MH_I2C_Read... [03:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:57]Read from MH i2c: E2 [03:40:57]MH_I2C_Read... [03:40:57]Read from MH i2c: E2 0E 00 [03:40:57]MH_I2C_Read... [03:40:57]Read from MH i2c: E2 0E 00 BA 11 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6C [03:40:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:40:57]wFMCommunicate OK [03:40:57]SAM_PROTO_GetShiftState done [03:40:57]FM_GetShiftState done [03:40:57]opened in 1739752571 [03:40:57]opened+sec_in_day 1739838971 [03:40:57]quantity*price = 150035 [03:40:57]sum+1 = 150036 [03:40:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.35 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.35 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 12 17.02.2025 03:41 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186425 ФПД: 269781238836519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186425&fm=269781238836519&tin=02508201610067®Number=0000000000091857&sum=150035 [03:40:58]StoreToDocumentArchive [03:40:58]shift 644 fd 186425 [03:40:58]save to /storage/0644/doc_00186425 [03:40:58]save last doc name /storage/0644/doc_00186425 to /storage/kkm_last_doc_name [03:40:58]save OK [03:40:58]Clear old archive folders... [03:40:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:40:58]tlvbuf is 02002DF0 [03:40:58]SAM_PROTO_ClearQueue [03:40:58]wFMCommunicate request_size=4 [03:40:58]MH_SAM_APDU [03:40:58]CAPDU: 80 09 00 00 [03:40:58]Write to MH i2c: E2 08 00 C7 11 80 09 00 00 00 00 00 00 4A [03:40:58]Write i2c OK [03:40:58]MH_I2C_Read... [03:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:40:58]Read from MH i2c: E2 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 03 00 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [03:40:58]RAPDU: 90 00 [03:40:58]wFMCommunicate OK [03:40:58]SAM_PROTO_ClearQueue done [03:40:58]KKMCreateOFDPacket [03:40:58]OFDProtocolAddRootSTLVToBuf [03:40:58]FM_MakeSignedData [03:40:58]FM_MakeSignedData [03:40:58]SAM_PROTO_SignData [03:40:58]wFMCommunicate request_size=4 [03:40:58]MH_SAM_APDU [03:40:58]CAPDU: 80 0D 01 02 [03:40:58]Write to MH i2c: E2 08 00 C8 11 80 0D 01 02 00 00 00 00 52 [03:40:58]Write i2c OK [03:40:58]MH_I2C_Read... [03:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:40:58]Read from MH i2c: E2 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 03 00 [03:40:58]MH_I2C_Read... [03:40:58]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [03:40:58]RAPDU: 90 00 [03:40:58]wFMCommunicate OK [03:40:58]wFMCommunicate request_size=255 [03:40:58]MH_SAM_APDU [03:40:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 CC AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D8 02 00 35 04 06 00 F5 [03:40:58]Write to MH i2c: E2 02 01 C9 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 CC AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D8 02 00 35 04 06 00 F5 00 00 2B [03:40:58]Write i2c OK [03:40:58]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 C9 11 00 90 00 4E [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]wFMCommunicate request_size=10 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 02 02 05 5D 56 E8 6D 27 [03:40:59]Write to MH i2c: E2 0D 00 CA 11 80 0D 02 02 05 00 5D 56 E8 6D 27 00 00 8E [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [03:40:59]RAPDU: 90 00 [03:40:59]wFMCommunicate OK [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 0D 03 02 [03:40:59]Write to MH i2c: E2 08 00 CB 11 80 0D 03 02 00 00 00 00 57 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0B 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0B 00 CB 11 00 81 A5 D5 F0 D3 91 72 9F 90 00 B8 [03:40:59]RAPDU: 81 A5 D5 F0 D3 91 72 9F 90 00 [03:40:59]wFMCommunicate OK [03:40:59]SAM_PROTO_SignData done [03:40:59]FM_MakeSignedData done [03:40:59]CreateOFDProtocolMessage [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 11 00 00 [03:40:59]Write to MH i2c: E2 08 00 CC 11 80 11 00 00 00 00 00 00 57 [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 17 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 17 00 CC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AA [03:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:40:59]wFMCommunicate OK [03:40:59]CreateOFDProtocolMessage done [03:40:59]OFDSenderStorePacket 186425 [03:40:59]StoreOFDPacket docnum=186425 [03:40:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 00 F2 07 01 AF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 CC AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D8 02 00 35 04 06 00 F5 5D 56 E8 6D 27 81 A5 D5 F0 D3 91 72 9F [03:40:59]CheckFolder [03:40:59]dirname=/storage/ofd_packets [03:40:59]CheckFolder done [03:40:59]ProducePacketName [03:40:59]name=ofd_packets/00186425 [03:40:59]NVStorageSaveData ofd_packets/00186425 [03:40:59]File name is /storage/ofd_packets/00186425 [03:40:59]Write 301 bytes [03:40:59]NVStorageSaveData done [03:40:59]OFDSenderStorePacket done [03:40:59]KKMCreateOFDPacket done [03:40:59]NVStorageSaveData kkm_last_timestamp [03:40:59]File name is /storage/kkm_last_timestamp [03:40:59]Write 4 bytes [03:40:59]NVStorageSaveData done [03:40:59]ExternCall_PrintAddStr [03:40:59]wPrintStart [03:40:59]Write to MH i2c: 01 00 00 CD 11 DE [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 07 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: 01 07 00 CD 11 00 00 00 00 00 FF 0F F3 [03:40:59]RasterBufferAndPrint [03:40:59]line Счет N : (1)411557 [03:40:59]line ИНН: 02508201610067 [03:40:59]line Контрольно-Кассовый Чек [03:40:59]line ПРОДАЖА [03:40:59]line ТРК (МРК, ГНК) : 22 [03:40:59]line Товар: 2710124130 [03:40:59]line Аи-92-К-2 [03:40:59]line 23.370 * 64.20 [03:40:59]line = 1500.35 [03:40:59]line НДС 12% НСП 1% [03:40:59]line > о реализуемом товаре [03:40:59]line ИТОГО: 1500.35 [03:40:59]line НСП 1% : 13.28 [03:40:59]line НДС 12% : 159.33 [03:40:59]line Наличными: 0.00 [03:40:59]line Безнал.: 1500.35 [03:40:59]line Место: АЗС № 92 "Партнер Нефть" [03:40:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:40:59]line СНО: Общий режим [03:40:59]line Чек 12 17.02.2025 03:41 [03:40:59]line Смена: 644 ФФД: 1.0 [03:40:59]line ЗНМ: 0300000118 [03:40:59]line РНМ: 0000000000091857 [03:40:59]line Версия ККМ: 001 [03:40:59]line Платежная система: O! деньги [03:40:59]line ФМ: 0000000000871826 [03:40:59]line ФД: 186425 [03:40:59]line ФПД: 269781238836519 [03:40:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186425&fm=269781238836519&tin=02508201610067®Number=0000000000091857&sum=150035 [03:40:59]written 0, free lines is 4095 [03:40:59]OFD Sender: Processing packet 186425 [packets to send 49, broken 48] [03:40:59]ProducePacketName [03:40:59]name=ofd_packets/00186425 [03:40:59]OFD Sender: To server: pG, [03:40:59]CommunicateWithHost lk.salyk.kg:30040 [03:40:59]ConnectInit lk.salyk.kg [03:40:59]Connected sock=10 [03:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 00 F2 07 01 AF 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 CC AF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D8 02 00 35 04 06 00 F5 5D 56 E8 6D 27 81 A5 D5 F0 D3 91 72 9F [03:41:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E5 ED 47 00 3B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D8 02 00 F4 03 04 00 27 56 B2 67 B6 04 01 00 00 2A 93 1C 87 44 50 2A B0 [03:41:00]CommunicateWithHost err = 0 [03:41:00]CheckOFDResponse [03:41:00]1017 (14) - 77093643461234 [03:41:00]1041 (16) - 0000000000871826 [03:41:00]1040 (4) - 186425 [03:41:00]1012 (4) - 16.02.2025 21:18 [03:41:00]1206 (1) - 0 [03:41:00]OFD Sender: Remove packet 186425 [03:41:00]ProducePacketName [03:41:00]name=ofd_packets/00186425 [03:41:00]NVStorageDeleteData [03:41:00]Write to MH i2c: 01 00 00 F7 11 08 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 07 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: 01 07 00 F7 11 00 00 00 00 00 02 0D 1E [03:41:00]RasterBufferAndPrint [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]line [03:41:00]written 0, free lines is 3336 [03:41:00]MH_Cut [03:41:00]Write to MH i2c: D1 01 00 FE 11 01 E1 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: D1 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: D1 01 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: D1 01 00 FE 11 00 E0 [03:41:00]Write to MH i2c: 01 00 00 FF 11 10 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]OFD Sender: No OFD packet to send [03:41:00]*** Cut start [03:41:00]*** Partial cut [03:41:00]*** CUTSNS_PIN = 1 [03:41:00]*** CUTSNS_PIN = 0 [03:41:01]*** Brake cut motor [03:41:01]Read from MH i2c: 01 [03:41:01]MH_I2C_Read... [03:41:01]*** Stop cut motor [03:41:01]*** Cut end [03:41:01]Read from MH i2c: 01 07 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 07 00 FF 11 00 00 00 00 00 FF 0F 25 [03:41:01]process_action close_receipt done [03:41:01]requested_data is exist [03:41:01]produce_requested_data [03:41:01]requested_item fm.sn is exist - process it [03:41:01]wFMCommunicate request_size=4 [03:41:01]MH_SAM_APDU [03:41:01]CAPDU: 80 11 00 00 [03:41:01]Write to MH i2c: E2 08 00 00 12 80 11 00 00 00 00 00 00 8C [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:01]Read from MH i2c: E2 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 17 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 17 00 00 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [03:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:41:01]wFMCommunicate OK [03:41:01]requested_item fd.num is exist - process it [03:41:01]SAM_PROTO_GetFieldsCounters [03:41:01]wFMCommunicate request_size=4 [03:41:01]MH_SAM_APDU [03:41:01]CAPDU: 80 13 00 00 [03:41:01]Write to MH i2c: E2 08 00 01 12 80 13 00 00 00 00 00 00 8F [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:01]Read from MH i2c: E2 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 62 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 62 00 01 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [03:41:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:41:01]wFMCommunicate OK [03:41:01]SAM_PROTO_GetFieldsCounters done [03:41:01]requested_item shift.num is exist - process it [03:41:01]requested_item shift.opened is exist - process it [03:41:01]req_shift_opened [03:41:01]FM_GetShiftState [03:41:01]SAM_PROTO_GetShiftState [03:41:01]wFMCommunicate request_size=4 [03:41:01]MH_SAM_APDU [03:41:01]CAPDU: 80 13 01 00 [03:41:01]Write to MH i2c: E2 08 00 02 12 80 13 01 00 00 00 00 00 91 [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:01]Read from MH i2c: E2 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 0E 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: E2 0E 00 02 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B5 [03:41:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:41:01]wFMCommunicate OK [03:41:01]SAM_PROTO_GetShiftState done [03:41:01]FM_GetShiftState done [03:41:01]req_shift_opened done [03:41:01]requested_item shift.open_date is exist - process it [03:41:01]req_shift_open_date [03:41:01]req_shift_open_date done [03:41:01]produce_requested_data done [03:41:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186425,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [03:41:01]process_action_free close_receipt [03:41:01]json_value_free [03:41:01]json_value_free done [03:41:01]process_json_proto returns [03:41:01]Send response to host [03:41:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186425,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [03:41:01]free response buf [03:41:01]execute_script done [03:41:01]execute_script returns [03:41:01]free content buf [03:41:01]Sock 9.Close socket [03:41:01]Sock 9.Thread stoped [03:41:05]OFD Sender: No OFD packet to send [03:41:10]OFD Sender: No OFD packet to send [03:41:15]OFD Sender: No OFD packet to send [03:41:20]OFD Sender: No OFD packet to send [03:41:25]OFD Sender: No OFD packet to send [03:41:30]OFD Sender: No OFD packet to send [03:41:35]OFD Sender: No OFD packet to send [03:41:40]OFD Sender: No OFD packet to send [03:41:45]OFD Sender: No OFD packet to send [03:41:50]OFD Sender: No OFD packet to send [03:41:55]OFD Sender: No OFD packet to send [03:42:00]OFD Sender: No OFD packet to send [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43:55]OFD Sender: No OFD packet to send [03:44:00]OFD Sender: No OFD packet to send [03:44:04]accept exits with 8 [03:44:04]New connection [03:44:04]New thread 3067358564 created [03:44:04]Thread 3067501924 joined [03:44:04]Waiting for new connection... [03:44:04] Sock 8.Parse request [03:44:04]Sock 8.Check first char [03:44:04]Sock 8.First char is OK [03:44:04]request: POST /json_proto HTTP/1.0 [03:44:04]Method: POST [03:44:04]URL: /json_proto [03:44:04]Method is POST - this is cgi request [03:44:04]url: /json_proto [03:44:04]query_string will be loaded in cgi processing [03:44:04]execute_cgi json_proto POST (null) [03:44:04]execute_cgi path=json_proto method=POST [03:44:04]POST find Content-Length [03:44:04]Host: 172.17.46.131:8080 [03:44:04]Content-Length: 677 [03:44:04]Content-Type: application/json [03:44:04] [03:44:04]POST finish read [03:44:04]Found Content-Length = 677 [03:44:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.830, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:04]execute_script... [03:44:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.830, "sum" : 310.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 310.00, "total" : 310.00, "payments": [ { "type": 0, "sum" : 310.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:04]POST & json_proto [03:44:04]process_json_proto [03:44:04]json parsed OK: [03:44:04]protocol is kg_v1.0 [03:44:04]action value=close_receipt [03:44:04]process_action close_receipt [03:44:04]cmd_close_receipt [03:44:04]MH_GetDate [03:44:04]Write to MH i2c: F0 00 00 03 12 04 [03:44:04]Write i2c OK [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: F0 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: F0 09 00 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: F0 09 00 03 12 00 86 B0 B2 67 7E 41 4F 65 CF [03:44:04]GetLastDocTimeStamp 1739763660 [03:44:04]current date 1739763846 [03:44:04]FM_GetShiftState [03:44:04]SAM_PROTO_GetShiftState [03:44:04]wFMCommunicate request_size=4 [03:44:04]MH_SAM_APDU [03:44:04]CAPDU: 80 13 01 00 [03:44:04]Write to MH i2c: E2 08 00 04 12 80 13 01 00 00 00 00 00 93 [03:44:04]Write i2c OK [03:44:04]MH_I2C_Read... [03:44:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:04]Read from MH i2c: E2 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 0E 00 [03:44:04]MH_I2C_Read... [03:44:04]Read from MH i2c: E2 0E 00 04 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B7 [03:44:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:44:04]wFMCommunicate OK [03:44:04]SAM_PROTO_GetShiftState done [03:44:04]FM_GetShiftState done [03:44:04]opened in 1739752571 [03:44:04]opened+sec_in_day 1739838971 [03:44:04]quantity*price = 31008 [03:44:04]sum+1 = 31010 [03:44:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.74 НДС 12% : 32.93 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 13 17.02.2025 03:44 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186426 ФПД: 90923155145047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186426&fm=90923155145047&tin=02508201610067®Number=0000000000091857&sum=31000 [03:44:05]StoreToDocumentArchive [03:44:05]shift 644 fd 186426 [03:44:05]save to /storage/0644/doc_00186426 [03:44:05]save last doc name /storage/0644/doc_00186426 to /storage/kkm_last_doc_name [03:44:05]save OK [03:44:05]Clear old archive folders... [03:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:44:05]tlvbuf is 01F9CF40 [03:44:05]SAM_PROTO_ClearQueue [03:44:05]wFMCommunicate request_size=4 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 09 00 00 [03:44:05]Write to MH i2c: E2 08 00 11 12 80 09 00 00 00 00 00 00 95 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [03:44:05]RAPDU: 90 00 [03:44:05]wFMCommunicate OK [03:44:05]SAM_PROTO_ClearQueue done [03:44:05]KKMCreateOFDPacket [03:44:05]OFDProtocolAddRootSTLVToBuf [03:44:05]FM_MakeSignedData [03:44:05]FM_MakeSignedData [03:44:05]SAM_PROTO_SignData [03:44:05]wFMCommunicate request_size=4 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 0D 01 02 [03:44:05]Write to MH i2c: E2 08 00 12 12 80 0D 01 02 00 00 00 00 9D [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:05]OFD Sender: No OFD packet to send [03:44:05]Read from MH i2c: E2 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 [03:44:05]MH_I2C_Read... [03:44:05]Read from MH i2c: E2 03 00 12 12 00 90 00 98 [03:44:05]RAPDU: 90 00 [03:44:05]wFMCommunicate OK [03:44:05]wFMCommunicate request_size=255 [03:44:05]MH_SAM_APDU [03:44:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D8 02 00 35 04 06 00 52 [03:44:05]Write to MH i2c: E2 02 01 13 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D8 02 00 35 04 06 00 52 00 00 C7 [03:44:05]Write i2c OK [03:44:05]MH_I2C_Read... [03:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:06]Read from MH i2c: E2 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 03 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 03 00 13 12 00 90 00 99 [03:44:06]RAPDU: 90 00 [03:44:06]wFMCommunicate OK [03:44:06]wFMCommunicate request_size=10 [03:44:06]MH_SAM_APDU [03:44:06]CAPDU: 80 0D 02 02 05 B1 B2 5D 41 57 [03:44:06]Write to MH i2c: E2 0D 00 14 12 80 0D 02 02 05 00 B1 B2 5D 41 57 00 00 02 [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:06]Read from MH i2c: E2 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 03 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 03 00 14 12 00 90 00 9A [03:44:06]RAPDU: 90 00 [03:44:06]wFMCommunicate OK [03:44:06]wFMCommunicate request_size=4 [03:44:06]MH_SAM_APDU [03:44:06]CAPDU: 80 0D 03 02 [03:44:06]Write to MH i2c: E2 08 00 15 12 80 0D 03 02 00 00 00 00 A2 [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:06]Read from MH i2c: E2 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 0B 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 0B 00 15 12 00 9A 3E 03 07 E4 7D FD B8 90 00 9B [03:44:06]RAPDU: 9A 3E 03 07 E4 7D FD B8 90 00 [03:44:06]wFMCommunicate OK [03:44:06]SAM_PROTO_SignData done [03:44:06]FM_MakeSignedData done [03:44:06]CreateOFDProtocolMessage [03:44:06]wFMCommunicate request_size=4 [03:44:06]MH_SAM_APDU [03:44:06]CAPDU: 80 11 00 00 [03:44:06]Write to MH i2c: E2 08 00 16 12 80 11 00 00 00 00 00 00 A2 [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:06]Read from MH i2c: E2 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 17 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: E2 17 00 16 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [03:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:44:06]wFMCommunicate OK [03:44:06]CreateOFDProtocolMessage done [03:44:06]OFDSenderStorePacket 186426 [03:44:06]StoreOFDPacket docnum=186426 [03:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 AF 07 01 0C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D8 02 00 35 04 06 00 52 B1 B2 5D 41 57 9A 3E 03 07 E4 7D FD B8 [03:44:06]CheckFolder [03:44:06]dirname=/storage/ofd_packets [03:44:06]CheckFolder done [03:44:06]ProducePacketName [03:44:06]name=ofd_packets/00186426 [03:44:06]NVStorageSaveData ofd_packets/00186426 [03:44:06]File name is /storage/ofd_packets/00186426 [03:44:06]Write 301 bytes [03:44:06]NVStorageSaveData done [03:44:06]OFDSenderStorePacket done [03:44:06]KKMCreateOFDPacket done [03:44:06]NVStorageSaveData kkm_last_timestamp [03:44:06]File name is /storage/kkm_last_timestamp [03:44:06]Write 4 bytes [03:44:06]NVStorageSaveData done [03:44:06]ExternCall_PrintAddStr [03:44:06]wPrintStart [03:44:06]Write to MH i2c: 01 00 00 17 12 29 [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 07 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [03:44:06]RasterBufferAndPrint [03:44:06]line Счет N : (1)411558 [03:44:06]line ИНН: 02508201610067 [03:44:06]line Контрольно-Кассовый Чек [03:44:06]line ПРОДАЖА [03:44:06]line ТРК (МРК, ГНК) : 12 [03:44:06]line Товар: 2710124130 [03:44:06]line Аи-92-К-2 [03:44:06]line 4.830 * 64.20 [03:44:06]line = 310.09 [03:44:06]line НДС 12% НСП 1% [03:44:06]line > о реализуемом товаре [03:44:06]line ОКРУГЛЕНИЕ: -0.09 [03:44:06]line ИТОГО: 310.00 [03:44:06]line Внесено: 310.00 [03:44:06]line СДАЧА: 0.00 [03:44:06]line НСП 1% : 2.74 [03:44:06]line НДС 12% : 32.93 [03:44:06]line Наличными: 310.00 [03:44:06]line Безнал.: 0.00 [03:44:06]line Место: АЗС № 92 "Партнер Нефть" [03:44:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:44:06]line СНО: Общий режим [03:44:06]line Чек 13 17.02.2025 03:44 [03:44:06]line Смена: 644 ФФД: 1.0 [03:44:06]line ЗНМ: 0300000118 [03:44:06]line РНМ: 0000000000091857 [03:44:06]line Версия ККМ: 001 [03:44:06]line ФМ: 0000000000871826 [03:44:06]line ФД: 186426 [03:44:06]line ФПД: 90923155145047 [03:44:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034407&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186426&fm=90923155145047&tin=02508201610067®Number=0000000000091857&sum=31000 [03:44:06]OFD Sender: Processing packet 186426 [packets to send 49, broken 48] [03:44:06]ProducePacketName [03:44:06]name=ofd_packets/00186426 [03:44:06]OFD Sender: To server: pG, [03:44:06]CommunicateWithHost lk.salyk.kg:30040 [03:44:06]ConnectInit lk.salyk.kg [03:44:06]written 0, free lines is 4095 [03:44:06]Connected sock=9 [03:44:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B5 AF 07 01 0C 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 21 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 0C 00 00 00 00 07 04 06 00 18 79 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 87 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D8 02 00 35 04 06 00 52 B1 B2 5D 41 57 9A 3E 03 07 E4 7D FD B8 [03:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC 55 47 00 65 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D8 02 00 F4 03 04 00 E2 56 B2 67 B6 04 01 00 00 AD 58 ED 66 FA CF 13 30 [03:44:06]CommunicateWithHost err = 0 [03:44:06]CheckOFDResponse [03:44:06]1017 (14) - 77093643461234 [03:44:06]1041 (16) - 0000000000871826 [03:44:06]1040 (4) - 186426 [03:44:06]1012 (4) - 16.02.2025 21:21 [03:44:06]1206 (1) - 0 [03:44:06]OFD Sender: Remove packet 186426 [03:44:06]ProducePacketName [03:44:06]name=ofd_packets/00186426 [03:44:06]NVStorageDeleteData [03:44:06]Write to MH i2c: 01 00 00 42 12 54 [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 07 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: 01 07 00 42 12 00 00 00 00 00 EE 0C 55 [03:44:06]RasterBufferAndPrint [03:44:06]line [03:44:06]line [03:44:06]line [03:44:06]line [03:44:06]line [03:44:06]written 0, free lines is 3316 [03:44:06]MH_Cut [03:44:06]Write to MH i2c: D1 01 00 49 12 01 2D [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: D1 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: D1 01 00 [03:44:06]MH_I2C_Read... [03:44:06]Read from MH i2c: D1 01 00 49 12 00 2C [03:44:06]Write to MH i2c: 01 00 00 4A 12 5C [03:44:06]Write i2c OK [03:44:06]MH_I2C_Read... [03:44:07]OFD Sender: No OFD packet to send [03:44:07]*** Cut start [03:44:07]*** Partial cut [03:44:07]*** CUTSNS_PIN = 1 [03:44:07]*** CUTSNS_PIN = 0 [03:44:08]*** Brake cut motor [03:44:08]Read from MH i2c: 01 [03:44:08]MH_I2C_Read... [03:44:08]*** Stop cut motor [03:44:08]*** Cut end [03:44:08]Read from MH i2c: 01 07 00 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: 01 07 00 4A 12 00 00 00 00 00 FF 0F 71 [03:44:08]process_action close_receipt done [03:44:08]requested_data is exist [03:44:08]produce_requested_data [03:44:08]requested_item fm.sn is exist - process it [03:44:08]wFMCommunicate request_size=4 [03:44:08]MH_SAM_APDU [03:44:08]CAPDU: 80 11 00 00 [03:44:08]Write to MH i2c: E2 08 00 4B 12 80 11 00 00 00 00 00 00 D7 [03:44:08]Write i2c OK [03:44:08]MH_I2C_Read... [03:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:08]Read from MH i2c: E2 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 17 00 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 17 00 4B 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [03:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:44:08]wFMCommunicate OK [03:44:08]requested_item fd.num is exist - process it [03:44:08]SAM_PROTO_GetFieldsCounters [03:44:08]wFMCommunicate request_size=4 [03:44:08]MH_SAM_APDU [03:44:08]CAPDU: 80 13 00 00 [03:44:08]Write to MH i2c: E2 08 00 4C 12 80 13 00 00 00 00 00 00 DA [03:44:08]Write i2c OK [03:44:08]MH_I2C_Read... [03:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:08]Read from MH i2c: E2 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 62 00 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 62 00 4C 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [03:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:44:08]wFMCommunicate OK [03:44:08]SAM_PROTO_GetFieldsCounters done [03:44:08]requested_item shift.num is exist - process it [03:44:08]requested_item shift.opened is exist - process it [03:44:08]req_shift_opened [03:44:08]FM_GetShiftState [03:44:08]SAM_PROTO_GetShiftState [03:44:08]wFMCommunicate request_size=4 [03:44:08]MH_SAM_APDU [03:44:08]CAPDU: 80 13 01 00 [03:44:08]Write to MH i2c: E2 08 00 4D 12 80 13 01 00 00 00 00 00 DC [03:44:08]Write i2c OK [03:44:08]MH_I2C_Read... [03:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:08]Read from MH i2c: E2 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 0E 00 [03:44:08]MH_I2C_Read... [03:44:08]Read from MH i2c: E2 0E 00 4D 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 00 [03:44:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:44:08]wFMCommunicate OK [03:44:08]SAM_PROTO_GetShiftState done [03:44:08]FM_GetShiftState done [03:44:08]req_shift_opened done [03:44:08]requested_item shift.open_date is exist - process it [03:44:08]req_shift_open_date [03:44:08]req_shift_open_date done [03:44:08]produce_requested_data done [03:44:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186426,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [03:44:08]process_action_free close_receipt [03:44:08]json_value_free [03:44:08]json_value_free done [03:44:08]process_json_proto returns [03:44:08]Send response to host [03:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186426,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [03:44:08]free response buf [03:44:08]execute_script done [03:44:08]execute_script returns [03:44:08]free content buf [03:44:08]Sock 8.Close socket [03:44:08]Sock 8.Thread stoped [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:11]accept exits with 10 [03:45:11]New connection [03:45:11]New thread 3067501924 created [03:45:11]Thread 3067358564 joined [03:45:11]Waiting for new connection... [03:45:11] Sock 10.Parse request [03:45:11]Sock 10.Check first char [03:45:11]Sock 10.First char is OK [03:45:11]request: POST /json_proto HTTP/1.0 [03:45:11]Method: POST [03:45:11]URL: /json_proto [03:45:11]Method is POST - this is cgi request [03:45:11]url: /json_proto [03:45:11]query_string will be loaded in cgi processing [03:45:11]execute_cgi json_proto POST (null) [03:45:11]execute_cgi path=json_proto method=POST [03:45:11]POST find Content-Length [03:45:11]Host: 172.17.46.131:8080 [03:45:11]Content-Length: 803 [03:45:11]Content-Type: application/json [03:45:11] [03:45:11]POST finish read [03:45:11]Found Content-Length = 803 [03:45:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:11]execute_script... [03:45:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:45:11]POST & json_proto [03:45:11]process_json_proto [03:45:11]json parsed OK: [03:45:11]protocol is kg_v1.0 [03:45:11]action value=close_receipt [03:45:11]process_action close_receipt [03:45:11]cmd_close_receipt [03:45:11]MH_GetDate [03:45:11]Write to MH i2c: F0 00 00 4E 12 4F [03:45:11]Write i2c OK [03:45:11]MH_I2C_Read... [03:45:11]Read from MH i2c: F0 [03:45:11]MH_I2C_Read... [03:45:11]Read from MH i2c: F0 09 00 [03:45:11]MH_I2C_Read... [03:45:11]Read from MH i2c: F0 09 00 4E 12 00 C9 B0 B2 67 7E 41 4F 65 5D [03:45:11]GetLastDocTimeStamp 1739763847 [03:45:11]current date 1739763913 [03:45:11]FM_GetShiftState [03:45:11]SAM_PROTO_GetShiftState [03:45:11]wFMCommunicate request_size=4 [03:45:11]MH_SAM_APDU [03:45:11]CAPDU: 80 13 01 00 [03:45:11]Write to MH i2c: E2 08 00 4F 12 80 13 01 00 00 00 00 00 DE [03:45:11]Write i2c OK [03:45:11]MH_I2C_Read... [03:45:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:11]Read from MH i2c: E2 [03:45:11]MH_I2C_Read... [03:45:11]Read from MH i2c: E2 0E 00 [03:45:11]MH_I2C_Read... [03:45:11]Read from MH i2c: E2 0E 00 4F 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 02 [03:45:11]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:45:11]wFMCommunicate OK [03:45:11]SAM_PROTO_GetShiftState done [03:45:11]FM_GetShiftState done [03:45:11]opened in 1739752571 [03:45:11]opened+sec_in_day 1739838971 [03:45:11]quantity*price = 100012 [03:45:11]sum+1 = 100014 [03:45:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 14 17.02.2025 03:45 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186427 ФПД: 96090028891298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034513&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186427&fm=96090028891298&tin=02508201610067®Number=0000000000091857&sum=100013 [03:45:12]StoreToDocumentArchive [03:45:12]shift 644 fd 186427 [03:45:12]save to /storage/0644/doc_00186427 [03:45:12]save last doc name /storage/0644/doc_00186427 to /storage/kkm_last_doc_name [03:45:12]save OK [03:45:12]Clear old archive folders... [03:45:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:45:12]tlvbuf is 01FA1760 [03:45:12]SAM_PROTO_ClearQueue [03:45:12]wFMCommunicate request_size=4 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 09 00 00 [03:45:12]Write to MH i2c: E2 08 00 5C 12 80 09 00 00 00 00 00 00 E0 [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [03:45:12]RAPDU: 90 00 [03:45:12]wFMCommunicate OK [03:45:12]SAM_PROTO_ClearQueue done [03:45:12]KKMCreateOFDPacket [03:45:12]OFDProtocolAddRootSTLVToBuf [03:45:12]FM_MakeSignedData [03:45:12]FM_MakeSignedData [03:45:12]SAM_PROTO_SignData [03:45:12]wFMCommunicate request_size=4 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 0D 01 02 [03:45:12]Write to MH i2c: E2 08 00 5D 12 80 0D 01 02 00 00 00 00 E8 [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 5D 12 00 90 00 E3 [03:45:12]RAPDU: 90 00 [03:45:12]wFMCommunicate OK [03:45:12]wFMCommunicate request_size=255 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D8 02 00 35 04 06 00 57 [03:45:12]Write to MH i2c: E2 02 01 5E 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D8 02 00 35 04 06 00 57 00 00 05 [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]OFD Sender: No OFD packet to send [03:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 5E 12 00 90 00 E4 [03:45:12]RAPDU: 90 00 [03:45:12]wFMCommunicate OK [03:45:12]wFMCommunicate request_size=10 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 0D 02 02 05 64 B4 09 DC A2 [03:45:12]Write to MH i2c: E2 0D 00 5F 12 80 0D 02 02 05 00 64 B4 09 DC A2 00 00 94 [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 03 00 5F 12 00 90 00 E5 [03:45:12]RAPDU: 90 00 [03:45:12]wFMCommunicate OK [03:45:12]wFMCommunicate request_size=4 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 0D 03 02 [03:45:12]Write to MH i2c: E2 08 00 60 12 80 0D 03 02 00 00 00 00 ED [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 0B 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 0B 00 60 12 00 AB 2D B9 FA F3 75 36 86 90 00 9D [03:45:12]RAPDU: AB 2D B9 FA F3 75 36 86 90 00 [03:45:12]wFMCommunicate OK [03:45:12]SAM_PROTO_SignData done [03:45:12]FM_MakeSignedData done [03:45:12]CreateOFDProtocolMessage [03:45:12]wFMCommunicate request_size=4 [03:45:12]MH_SAM_APDU [03:45:12]CAPDU: 80 11 00 00 [03:45:12]Write to MH i2c: E2 08 00 61 12 80 11 00 00 00 00 00 00 ED [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:12]Read from MH i2c: E2 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 17 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: E2 17 00 61 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [03:45:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:45:12]wFMCommunicate OK [03:45:12]CreateOFDProtocolMessage done [03:45:12]OFDSenderStorePacket 186427 [03:45:12]StoreOFDPacket docnum=186427 [03:45:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B D5 07 01 36 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D8 02 00 35 04 06 00 57 64 B4 09 DC A2 AB 2D B9 FA F3 75 36 86 [03:45:12]CheckFolder [03:45:12]dirname=/storage/ofd_packets [03:45:12]CheckFolder done [03:45:12]ProducePacketName [03:45:12]name=ofd_packets/00186427 [03:45:12]NVStorageSaveData ofd_packets/00186427 [03:45:12]File name is /storage/ofd_packets/00186427 [03:45:12]Write 301 bytes [03:45:12]NVStorageSaveData done [03:45:12]OFDSenderStorePacket done [03:45:12]KKMCreateOFDPacket done [03:45:12]NVStorageSaveData kkm_last_timestamp [03:45:12]File name is /storage/kkm_last_timestamp [03:45:12]Write 4 bytes [03:45:12]NVStorageSaveData done [03:45:12]ExternCall_PrintAddStr [03:45:12]wPrintStart [03:45:12]Write to MH i2c: 01 00 00 62 12 74 [03:45:12]Write i2c OK [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: 01 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: 01 07 00 [03:45:12]MH_I2C_Read... [03:45:12]Read from MH i2c: 01 07 00 62 12 00 00 00 00 00 FF 0F 89 [03:45:12]RasterBufferAndPrint [03:45:12]line Счет N : (1)411559 [03:45:12]line ИНН: 02508201610067 [03:45:12]line Контрольно-Кассовый Чек [03:45:12]line ПРОДАЖА [03:45:12]line ТРК (МРК, ГНК) : 33 [03:45:12]line Товар: 2710124500 [03:45:12]line Аи-95-К-5 [03:45:12]line 13.910 * 71.90 [03:45:12]line = 1000.13 [03:45:12]line НДС 12% НСП 1% [03:45:12]line > о реализуемом товаре [03:45:12]line ИТОГО: 1000.13 [03:45:12]line НСП 1% : 8.85 [03:45:12]line НДС 12% : 106.21 [03:45:12]line Наличными: 0.00 [03:45:12]line Безнал.: 1000.13 [03:45:12]line Место: АЗС № 92 "Партнер Нефть" [03:45:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [03:45:12]line СНО: Общий режим [03:45:12]line Чек 14 17.02.2025 03:45 [03:45:12]line Смена: 644 ФФД: 1.0 [03:45:12]line ЗНМ: 0300000118 [03:45:12]line РНМ: 0000000000091857 [03:45:12]line Версия ККМ: 001 [03:45:12]line Платежная система: O! деньги [03:45:12]line ФМ: 0000000000871826 [03:45:12]line ФД: 186427 [03:45:12]line ФПД: 96090028891298 [03:45:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T034513&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186427&fm=96090028891298&tin=02508201610067®Number=0000000000091857&sum=100013 [03:45:13]OFD Sender: Processing packet 186427 [packets to send 49, broken 48] [03:45:13]ProducePacketName [03:45:13]name=ofd_packets/00186427 [03:45:13]OFD Sender: To server: pG, [03:45:13]CommunicateWithHost lk.salyk.kg:30040 [03:45:13]ConnectInit lk.salyk.kg [03:45:13]written 0, free lines is 4095 [03:45:13]Connected sock=9 [03:45:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B D5 07 01 36 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 B0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D8 02 00 35 04 06 00 57 64 B4 09 DC A2 AB 2D B9 FA F3 75 36 86 [03:45:13]Write to MH i2c: 01 00 00 8C 12 9E [03:45:13]Write i2c OK [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: 01 [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: 01 07 00 [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: 01 07 00 8C 12 00 00 00 00 00 FB 0C AC [03:45:13]RasterBufferAndPrint [03:45:13]line [03:45:13]line [03:45:13]line [03:45:13]line [03:45:13]line [03:45:13]written 0, free lines is 3329 [03:45:13]MH_Cut [03:45:13]Write to MH i2c: D1 01 00 93 12 01 77 [03:45:13]Write i2c OK [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: D1 [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: D1 01 00 [03:45:13]MH_I2C_Read... [03:45:13]Read from MH i2c: D1 01 00 93 12 00 76 [03:45:13]Write to MH i2c: 01 00 00 94 12 A6 [03:45:13]Write i2c OK [03:45:13]MH_I2C_Read... [03:45:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 24 4A 47 00 D3 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D8 02 00 F4 03 04 00 25 57 B2 67 B6 04 01 00 00 C8 70 98 0A 0C 81 A0 06 [03:45:13]CommunicateWithHost err = 0 [03:45:13]CheckOFDResponse [03:45:13]1017 (14) - 77093643461234 [03:45:13]1041 (16) - 0000000000871826 [03:45:13]1040 (4) - 186427 [03:45:13]1012 (4) - 16.02.2025 21:22 [03:45:13]1206 (1) - 0 [03:45:13]OFD Sender: Remove packet 186427 [03:45:13]ProducePacketName [03:45:13]name=ofd_packets/00186427 [03:45:13]NVStorageDeleteData [03:45:14]OFD Sender: No OFD packet to send [03:45:14]*** Cut start [03:45:14]*** Partial cut [03:45:14]*** CUTSNS_PIN = 1 [03:45:14]*** CUTSNS_PIN = 0 [03:45:14]*** Brake cut motor [03:45:14]Read from MH i2c: 01 [03:45:14]MH_I2C_Read... [03:45:14]*** Stop cut motor [03:45:14]*** Cut end [03:45:14]Read from MH i2c: 01 07 00 [03:45:14]MH_I2C_Read... [03:45:14]Read from MH i2c: 01 07 00 94 12 00 00 00 00 00 FF 0F BB [03:45:14]process_action close_receipt done [03:45:14]requested_data is exist [03:45:14]produce_requested_data [03:45:14]requested_item fm.sn is exist - process it [03:45:14]wFMCommunicate request_size=4 [03:45:14]MH_SAM_APDU [03:45:14]CAPDU: 80 11 00 00 [03:45:14]Write to MH i2c: E2 08 00 95 12 80 11 00 00 00 00 00 00 21 [03:45:14]Write i2c OK [03:45:14]MH_I2C_Read... [03:45:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:45:14]Read from MH i2c: E2 [03:45:14]MH_I2C_Read... [03:45:14]Read from MH i2c: E2 17 00 [03:45:14]MH_I2C_Read... [03:45:14]Read from MH i2c: E2 17 00 95 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [03:45:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [03:45:14]wFMCommunicate OK [03:45:14]requested_item fd.num is exist - process it [03:45:14]SAM_PROTO_GetFieldsCounters [03:45:14]wFMCommunicate request_size=4 [03:45:14]MH_SAM_APDU [03:45:14]CAPDU: 80 13 00 00 [03:45:14]Write to MH i2c: E2 08 00 96 12 80 13 00 00 00 00 00 00 24 [03:45:14]Write i2c OK [03:45:14]MH_I2C_Read... [03:45:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:45:15]Read from MH i2c: E2 [03:45:15]MH_I2C_Read... [03:45:15]Read from MH i2c: E2 62 00 [03:45:15]MH_I2C_Read... [03:45:15]Read from MH i2c: E2 62 00 96 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [03:45:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:45:15]wFMCommunicate OK [03:45:15]SAM_PROTO_GetFieldsCounters done [03:45:15]requested_item shift.num is exist - process it [03:45:15]requested_item shift.opened is exist - process it [03:45:15]req_shift_opened [03:45:15]FM_GetShiftState [03:45:15]SAM_PROTO_GetShiftState [03:45:15]wFMCommunicate request_size=4 [03:45:15]MH_SAM_APDU [03:45:15]CAPDU: 80 13 01 00 [03:45:15]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [03:45:15]Write i2c OK [03:45:15]MH_I2C_Read... [03:45:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:45:15]Read from MH i2c: E2 [03:45:15]MH_I2C_Read... [03:45:15]Read from MH i2c: E2 0E 00 [03:45:15]MH_I2C_Read... [03:45:15]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4A [03:45:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [03:45:15]wFMCommunicate OK [03:45:15]SAM_PROTO_GetShiftState done [03:45:15]FM_GetShiftState done [03:45:15]req_shift_opened done [03:45:15]requested_item shift.open_date is exist - process it [03:45:15]req_shift_open_date [03:45:15]req_shift_open_date done [03:45:15]produce_requested_data done [03:45:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186427,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [03:45:15]process_action_free close_receipt [03:45:15]json_value_free [03:45:15]json_value_free done [03:45:15]process_json_proto returns [03:45:15]Send response to host [03:45:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186427,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [03:45:15]free response buf [03:45:15]execute_script done [03:45:15]execute_script returns [03:45:15]free content buf [03:45:15]Sock 10.Close socket [03:45:15]Sock 10.Thread stoped [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:55]int [03:59:55]Write to MH i2c: 01 00 00 98 12 AA [03:59:55]*** FLAG_PRN_KEY set [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 98 12 00 08 00 00 00 FF 0F C7 [03:59:55]state=0 [03:59:55]Key pressed [03:59:55]Feed [03:59:55]Write to MH i2c: D8 00 00 99 12 82 [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 01 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 01 00 99 12 00 83 [03:59:55]int [03:59:55]Write to MH i2c: 01 00 00 9A 12 AC [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 9A 12 00 48 00 00 00 3C 00 37 [03:59:55]state=2 [03:59:55]Key pressed [03:59:55]int [03:59:55]Write to MH i2c: 01 00 00 9B 12 AD [03:59:55]*** FLAG_PRN_KEY reset [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 9B 12 00 00 00 00 00 F6 0F B9 [03:59:55]state=2 [03:59:55]Stop feed [03:59:55]int [03:59:55]Write to MH i2c: 01 00 00 9C 12 AE [03:59:55]*** FLAG_PRN_KEY set [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 9C 12 00 08 00 00 00 FF 0F CB [03:59:55]state=0 [03:59:55]Key pressed [03:59:55]Feed [03:59:55]Write to MH i2c: D8 00 00 9D 12 86 [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 01 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: D8 01 00 9D 12 00 87 [03:59:55]int [03:59:55]Write to MH i2c: 01 00 00 9E 12 B0 [03:59:55]Write i2c OK [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 [03:59:55]MH_I2C_Read... [03:59:55]Read from MH i2c: 01 07 00 9E 12 00 48 00 00 00 3C 00 3B [03:59:55]state=2 [03:59:55]Key pressed [03:59:56]int [03:59:56]Write to MH i2c: 01 00 00 9F 12 B1 [03:59:56]*** FLAG_PRN_KEY reset [03:59:56]Write i2c OK [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 07 00 [03:59:56]MH_I2C_Read... [03:59:56]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 F6 0F BD [03:59:56]state=2 [03:59:56]Stop feed [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:44]OFD Sender: No OFD packet to send [04:00:49]OFD Sender: No OFD packet to send [04:00:54]OFD Sender: No OFD packet to send [04:00:59]OFD Sender: No OFD packet to send [04:01:04]OFD Sender: No OFD packet to send [04:01:09]OFD Sender: No OFD packet to send [04:01:14]OFD Sender: No OFD packet to send [04:01:19]OFD Sender: No OFD packet to send [04:01:24]OFD Sender: No OFD packet to send [04:01:29]OFD Sender: No OFD packet to send [04:01:34]OFD Sender: No OFD packet to send [04:01:38]int [04:01:38]Write to MH i2c: 01 00 00 A0 12 B2 [04:01:38]*** FLAG_PRN_KEY set [04:01:38]Write i2c OK [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 07 00 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 07 00 A0 12 00 08 00 00 00 FF 0F CF [04:01:38]state=0 [04:01:38]Key pressed [04:01:38]Feed [04:01:38]Write to MH i2c: D8 00 00 A1 12 8A [04:01:38]Write i2c OK [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: D8 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: D8 01 00 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: D8 01 00 A1 12 00 8B [04:01:38]int [04:01:38]Write to MH i2c: 01 00 00 A2 12 B4 [04:01:38]Write i2c OK [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 07 00 [04:01:38]MH_I2C_Read... [04:01:38]Read from MH i2c: 01 07 00 A2 12 00 48 00 00 00 3D 00 40 [04:01:38]state=2 [04:01:38]Key pressed [04:01:39]int [04:01:39]Write to MH i2c: 01 00 00 A3 12 B5 [04:01:39]*** FLAG_PRN_KEY reset [04:01:39]Write i2c OK [04:01:39]MH_I2C_Read... [04:01:39]Read from MH i2c: 01 [04:01:39]MH_I2C_Read... [04:01:39]Read from MH i2c: 01 07 00 [04:01:39]MH_I2C_Read... [04:01:39]Read from MH i2c: 01 07 00 A3 12 00 00 00 00 00 F6 0F C1 [04:01:39]state=2 [04:01:39]Stop feed [04:01:39]OFD Sender: No OFD packet to send [04:01:44]OFD Sender: No OFD packet to send [04:01:49]OFD Sender: No OFD packet to send [04:01:54]OFD Sender: No OFD packet to send [04:01:59]OFD Sender: No OFD packet to send [04:02:04]OFD Sender: No OFD packet to send [04:02:09]OFD Sender: No OFD packet to send [04:02:14]OFD Sender: No OFD packet to send [04:02:19]OFD Sender: No OFD packet to send [04:02:24]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:25]OFD Sender: No OFD packet to send [04:13:30]OFD Sender: No OFD packet to send [04:13:35]OFD Sender: No OFD packet to send [04:13:40]OFD Sender: No OFD packet to send [04:13:45]OFD Sender: No OFD packet to send [04:13:50]OFD Sender: No OFD packet to send [04:13:55]OFD Sender: No OFD packet to send [04:14:00]OFD Sender: No OFD packet to send [04:14:05]OFD Sender: No OFD packet to send [04:14:10]OFD Sender: No OFD packet to send [04:14:15]OFD Sender: No OFD packet to send [04:14:20]OFD Sender: No OFD packet to send [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:30]OFD Sender: No OFD packet to send [04:16:35]OFD Sender: No OFD packet to send [04:16:40]OFD Sender: No OFD packet to send [04:16:45]OFD Sender: No OFD packet to send [04:16:50]OFD Sender: No OFD packet to send [04:16:55]OFD Sender: No OFD packet to send [04:17:00]OFD Sender: No OFD packet to send [04:17:05]OFD Sender: No OFD packet to send [04:17:10]OFD Sender: No OFD packet to send [04:17:15]OFD Sender: No OFD packet to send [04:17:20]OFD Sender: No OFD packet to send [04:17:25]OFD Sender: No OFD packet to send [04:17:30]OFD Sender: No OFD packet to send [04:17:35]OFD Sender: No OFD packet to send [04:17:40]OFD Sender: No OFD packet to send [04:17:45]OFD Sender: No OFD packet to send [04:17:50]OFD Sender: No OFD packet to send [04:17:55]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:06]accept exits with 8 [05:34:06]New connection [05:34:06]New thread 3067358564 created [05:34:06]Thread 3067501924 joined [05:34:06]Waiting for new connection... [05:34:06] Sock 8.Parse request [05:34:06]Sock 8.Check first char [05:34:06]Sock 8.First char is OK [05:34:06]request: POST /json_proto HTTP/1.0 [05:34:06]Method: POST [05:34:06]URL: /json_proto [05:34:06]Method is POST - this is cgi request [05:34:06]url: /json_proto [05:34:06]query_string will be loaded in cgi processing [05:34:06]execute_cgi json_proto POST (null) [05:34:06]execute_cgi path=json_proto method=POST [05:34:06]POST find Content-Length [05:34:06]Host: 172.17.46.131:8080 [05:34:06]Content-Length: 678 [05:34:06]Content-Type: application/json [05:34:06] [05:34:06]POST finish read [05:34:06]Found Content-Length = 678 [05:34:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:34:06]execute_script... [05:34:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 16.530, "sum" : 1200.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:34:06]POST & json_proto [05:34:06]process_json_proto [05:34:06]json parsed OK: [05:34:06]protocol is kg_v1.0 [05:34:06]action value=close_receipt [05:34:06]process_action close_receipt [05:34:06]cmd_close_receipt [05:34:06]MH_GetDate [05:34:06]Write to MH i2c: F0 00 00 A4 12 A5 [05:34:06]Write i2c OK [05:34:06]MH_I2C_Read... [05:34:06]Read from MH i2c: F0 [05:34:06]MH_I2C_Read... [05:34:06]Read from MH i2c: F0 09 00 [05:34:06]MH_I2C_Read... [05:34:06]Read from MH i2c: F0 09 00 A4 12 00 51 CA B2 67 7E 41 4F 65 55 [05:34:06]GetLastDocTimeStamp 1739763913 [05:34:06]current date 1739770449 [05:34:06]FM_GetShiftState [05:34:06]SAM_PROTO_GetShiftState [05:34:06]wFMCommunicate request_size=4 [05:34:06]MH_SAM_APDU [05:34:06]CAPDU: 80 13 01 00 [05:34:06]Write to MH i2c: E2 08 00 A5 12 80 13 01 00 00 00 00 00 34 [05:34:06]Write i2c OK [05:34:06]MH_I2C_Read... [05:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:06]Read from MH i2c: E2 [05:34:06]MH_I2C_Read... [05:34:06]Read from MH i2c: E2 0E 00 [05:34:06]MH_I2C_Read... [05:34:06]Read from MH i2c: E2 0E 00 A5 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 58 [05:34:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [05:34:06]wFMCommunicate OK [05:34:06]SAM_PROTO_GetShiftState done [05:34:06]FM_GetShiftState done [05:34:06]opened in 1739752571 [05:34:06]opened+sec_in_day 1739838971 [05:34:06]quantity*price = 120007 [05:34:06]sum+1 = 120009 [05:34:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 15 17.02.2025 05:34 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186428 ФПД: 263049470404662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T053409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186428&fm=263049470404662&tin=02508201610067®Number=0000000000091857&sum=120000 [05:34:07]StoreToDocumentArchive [05:34:07]shift 644 fd 186428 [05:34:07]save to /storage/0644/doc_00186428 [05:34:07]save last doc name /storage/0644/doc_00186428 to /storage/kkm_last_doc_name [05:34:07]save OK [05:34:07]Clear old archive folders... [05:34:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:34:07]tlvbuf is 01FB72F0 [05:34:07]SAM_PROTO_ClearQueue [05:34:07]wFMCommunicate request_size=4 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 09 00 00 [05:34:07]Write to MH i2c: E2 08 00 B2 12 80 09 00 00 00 00 00 00 36 [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [05:34:07]RAPDU: 90 00 [05:34:07]wFMCommunicate OK [05:34:07]SAM_PROTO_ClearQueue done [05:34:07]KKMCreateOFDPacket [05:34:07]OFDProtocolAddRootSTLVToBuf [05:34:07]FM_MakeSignedData [05:34:07]FM_MakeSignedData [05:34:07]SAM_PROTO_SignData [05:34:07]wFMCommunicate request_size=4 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 0D 01 02 [05:34:07]Write to MH i2c: E2 08 00 B3 12 80 0D 01 02 00 00 00 00 3E [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 B3 12 00 90 00 39 [05:34:07]RAPDU: 90 00 [05:34:07]wFMCommunicate OK [05:34:07]wFMCommunicate request_size=255 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 51 CA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D8 02 00 35 04 06 00 EF 3D FA 3D [05:34:07]Write to MH i2c: E2 02 01 B4 12 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 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 51 CA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D8 02 00 35 04 06 00 EF 3D FA 3D 00 00 16 [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 B4 12 00 90 00 3A [05:34:07]RAPDU: 90 00 [05:34:07]wFMCommunicate OK [05:34:07]wFMCommunicate request_size=7 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 0D 02 02 02 E8 36 [05:34:07]Write to MH i2c: E2 0A 00 B5 12 80 0D 02 02 02 00 E8 36 00 00 63 [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 03 00 B5 12 00 90 00 3B [05:34:07]RAPDU: 90 00 [05:34:07]wFMCommunicate OK [05:34:07]wFMCommunicate request_size=4 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 0D 03 02 [05:34:07]Write to MH i2c: E2 08 00 B6 12 80 0D 03 02 00 00 00 00 43 [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 0B 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 0B 00 B6 12 00 F7 B1 AA BF EE F8 68 57 90 00 FA [05:34:07]RAPDU: F7 B1 AA BF EE F8 68 57 90 00 [05:34:07]wFMCommunicate OK [05:34:07]SAM_PROTO_SignData done [05:34:07]FM_MakeSignedData done [05:34:07]CreateOFDProtocolMessage [05:34:07]wFMCommunicate request_size=4 [05:34:07]MH_SAM_APDU [05:34:07]CAPDU: 80 11 00 00 [05:34:07]Write to MH i2c: E2 08 00 B7 12 80 11 00 00 00 00 00 00 43 [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:07]Read from MH i2c: E2 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 17 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: E2 17 00 B7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [05:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:34:07]wFMCommunicate OK [05:34:07]CreateOFDProtocolMessage done [05:34:07]OFDSenderStorePacket 186428 [05:34:07]StoreOFDPacket docnum=186428 [05:34:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3C 94 04 01 0E F5 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 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 51 CA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D8 02 00 35 04 06 00 EF 3D FA 3D E8 36 F7 B1 AA BF EE F8 68 57 [05:34:07]CheckFolder [05:34:07]dirname=/storage/ofd_packets [05:34:07]CheckFolder done [05:34:07]ProducePacketName [05:34:07]name=ofd_packets/00186428 [05:34:07]NVStorageSaveData ofd_packets/00186428 [05:34:07]File name is /storage/ofd_packets/00186428 [05:34:07]Write 298 bytes [05:34:07]NVStorageSaveData done [05:34:07]OFDSenderStorePacket done [05:34:07]KKMCreateOFDPacket done [05:34:07]NVStorageSaveData kkm_last_timestamp [05:34:07]File name is /storage/kkm_last_timestamp [05:34:07]Write 4 bytes [05:34:07]NVStorageSaveData done [05:34:07]ExternCall_PrintAddStr [05:34:07]wPrintStart [05:34:07]Write to MH i2c: 01 00 00 B8 12 CA [05:34:07]Write i2c OK [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: 01 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: 01 07 00 [05:34:07]MH_I2C_Read... [05:34:07]Read from MH i2c: 01 07 00 B8 12 00 00 00 00 00 FF 0F DF [05:34:07]RasterBufferAndPrint [05:34:07]line Счет N : (1)411560 [05:34:07]line ИНН: 02508201610067 [05:34:07]line Контрольно-Кассовый Чек [05:34:07]line ПРОДАЖА [05:34:07]line ТРК (МРК, ГНК) : 5 [05:34:07]line Товар: 2710194210 [05:34:07]line ДТ-К-5 [05:34:07]line 16.530 * 72.60 [05:34:07]line = 1200.08 [05:34:07]line НДС 12% НСП 1% [05:34:07]line > о реализуемом товаре [05:34:07]line ОКРУГЛЕНИЕ: -0.08 [05:34:07]line ИТОГО: 1200.00 [05:34:07]line Внесено: 1200.00 [05:34:07]line СДАЧА: 0.00 [05:34:07]line НСП 1% : 10.62 [05:34:07]line НДС 12% : 127.44 [05:34:07]line Наличными: 1200.00 [05:34:07]line Безнал.: 0.00 [05:34:07]line Место: АЗС № 92 "Партнер Нефть" [05:34:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [05:34:07]line СНО: Общий режим [05:34:07]line Чек 15 17.02.2025 05:34 [05:34:07]line Смена: 644 ФФД: 1.0 [05:34:07]line ЗНМ: 0300000118 [05:34:07]line РНМ: 0000000000091857 [05:34:07]line Версия ККМ: 001 [05:34:07]line ФМ: 0000000000871826 [05:34:07]line ФД: 186428 [05:34:07]line ФПД: 263049470404662 [05:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T053409&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186428&fm=263049470404662&tin=02508201610067®Number=0000000000091857&sum=120000 [05:34:08]OFD Sender: Processing packet 186428 [packets to send 49, broken 48] [05:34:08]ProducePacketName [05:34:08]name=ofd_packets/00186428 [05:34:08]OFD Sender: To server: pG, [05:34:08]CommunicateWithHost lk.salyk.kg:30040 [05:34:08]ConnectInit lk.salyk.kg [05:34:08]written 0, free lines is 4095 [05:34:08]Connected sock=10 [05:34:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3C 94 04 01 0E F5 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 92 40 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 51 CA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D8 02 00 35 04 06 00 EF 3D FA 3D E8 36 F7 B1 AA BF EE F8 68 57 [05:34:08]Write to MH i2c: 01 00 00 E3 12 F5 [05:34:08]Write i2c OK [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: 01 [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: 01 07 00 [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: 01 07 00 E3 12 00 00 00 00 00 FC 0C 04 [05:34:08]RasterBufferAndPrint [05:34:08]line [05:34:08]line [05:34:08]line [05:34:08]line [05:34:08]line [05:34:08]written 0, free lines is 3331 [05:34:08]MH_Cut [05:34:08]Write to MH i2c: D1 01 00 EA 12 01 CE [05:34:08]Write i2c OK [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: D1 [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: D1 01 00 [05:34:08]MH_I2C_Read... [05:34:08]Read from MH i2c: D1 01 00 EA 12 00 CD [05:34:08]Write to MH i2c: 01 00 00 EB 12 FD [05:34:08]Write i2c OK [05:34:08]MH_I2C_Read... [05:34:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B D0 47 00 2A 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D8 02 00 F4 03 04 00 AC 70 B2 67 B6 04 01 00 00 C7 64 56 76 1C 80 33 A7 [05:34:08]CommunicateWithHost err = 0 [05:34:08]CheckOFDResponse [05:34:08]1017 (14) - 77093643461234 [05:34:08]1041 (16) - 0000000000871826 [05:34:08]1040 (4) - 186428 [05:34:08]1012 (4) - 16.02.2025 23:11 [05:34:08]1206 (1) - 0 [05:34:08]OFD Sender: Remove packet 186428 [05:34:08]ProducePacketName [05:34:08]name=ofd_packets/00186428 [05:34:08]NVStorageDeleteData [05:34:09]OFD Sender: No OFD packet to send [05:34:09]*** Cut start [05:34:09]*** Partial cut [05:34:09]*** CUTSNS_PIN = 1 [05:34:09]*** CUTSNS_PIN = 0 [05:34:09]*** Brake cut motor [05:34:10]Read from MH i2c: 01 [05:34:10]MH_I2C_Read... [05:34:10]*** Stop cut motor [05:34:10]*** Cut end [05:34:10]Read from MH i2c: 01 07 00 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [05:34:10]process_action close_receipt done [05:34:10]requested_data is exist [05:34:10]produce_requested_data [05:34:10]requested_item fm.sn is exist - process it [05:34:10]wFMCommunicate request_size=4 [05:34:10]MH_SAM_APDU [05:34:10]CAPDU: 80 11 00 00 [05:34:10]Write to MH i2c: E2 08 00 EC 12 80 11 00 00 00 00 00 00 78 [05:34:10]Write i2c OK [05:34:10]MH_I2C_Read... [05:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:34:10]Read from MH i2c: E2 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 17 00 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 17 00 EC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [05:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [05:34:10]wFMCommunicate OK [05:34:10]requested_item fd.num is exist - process it [05:34:10]SAM_PROTO_GetFieldsCounters [05:34:10]wFMCommunicate request_size=4 [05:34:10]MH_SAM_APDU [05:34:10]CAPDU: 80 13 00 00 [05:34:10]Write to MH i2c: E2 08 00 ED 12 80 13 00 00 00 00 00 00 7B [05:34:10]Write i2c OK [05:34:10]MH_I2C_Read... [05:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:34:10]Read from MH i2c: E2 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 62 00 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 62 00 ED 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [05:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:34:10]wFMCommunicate OK [05:34:10]SAM_PROTO_GetFieldsCounters done [05:34:10]requested_item shift.num is exist - process it [05:34:10]requested_item shift.opened is exist - process it [05:34:10]req_shift_opened [05:34:10]FM_GetShiftState [05:34:10]SAM_PROTO_GetShiftState [05:34:10]wFMCommunicate request_size=4 [05:34:10]MH_SAM_APDU [05:34:10]CAPDU: 80 13 01 00 [05:34:10]Write to MH i2c: E2 08 00 EE 12 80 13 01 00 00 00 00 00 7D [05:34:10]Write i2c OK [05:34:10]MH_I2C_Read... [05:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:34:10]Read from MH i2c: E2 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 0E 00 [05:34:10]MH_I2C_Read... [05:34:10]Read from MH i2c: E2 0E 00 EE 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A1 [05:34:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [05:34:10]wFMCommunicate OK [05:34:10]SAM_PROTO_GetShiftState done [05:34:10]FM_GetShiftState done [05:34:10]req_shift_opened done [05:34:10]requested_item shift.open_date is exist - process it [05:34:10]req_shift_open_date [05:34:10]req_shift_open_date done [05:34:10]produce_requested_data done [05:34:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186428,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [05:34:10]process_action_free close_receipt [05:34:10]json_value_free [05:34:10]json_value_free done [05:34:10]process_json_proto returns [05:34:10]Send response to host [05:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186428,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [05:34:10]free response buf [05:34:10]execute_script done [05:34:10]execute_script returns [05:34:10]free content buf [05:34:10]Sock 8.Close socket [05:34:10]Sock 8.Thread stoped [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:49]OFD Sender: No OFD packet to send [05:45:54]OFD Sender: No OFD packet to send [05:45:59]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:19]OFD Sender: No OFD packet to send [05:46:24]OFD Sender: No OFD packet to send [05:46:29]OFD Sender: No OFD packet to send [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]accept exits with 9 [06:04:05]New connection [06:04:05]New thread 3067501924 created [06:04:05]Thread 3067358564 joined [06:04:05]Waiting for new connection... [06:04:05] Sock 9.Parse request [06:04:05]Sock 9.Check first char [06:04:05]Sock 9.First char is OK [06:04:05]request: POST /json_proto HTTP/1.0 [06:04:05]Method: POST [06:04:05]URL: /json_proto [06:04:05]Method is POST - this is cgi request [06:04:05]url: /json_proto [06:04:05]query_string will be loaded in cgi processing [06:04:05]execute_cgi json_proto POST (null) [06:04:05]execute_cgi path=json_proto method=POST [06:04:05]POST find Content-Length [06:04:05]Host: 172.17.46.131:8080 [06:04:05]Content-Length: 682 [06:04:05]Content-Type: application/json [06:04:05] [06:04:05]POST finish read [06:04:05]Found Content-Length = 682 [06:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:05]execute_script... [06:04:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:05]POST & json_proto [06:04:05]process_json_proto [06:04:05]json parsed OK: [06:04:05]protocol is kg_v1.0 [06:04:05]action value=close_receipt [06:04:05]process_action close_receipt [06:04:05]cmd_close_receipt [06:04:05]MH_GetDate [06:04:05]Write to MH i2c: F0 00 00 EF 12 F0 [06:04:05]Write i2c OK [06:04:05]MH_I2C_Read... [06:04:05]Read from MH i2c: F0 [06:04:05]MH_I2C_Read... [06:04:05]Read from MH i2c: F0 09 00 [06:04:05]MH_I2C_Read... [06:04:05]Read from MH i2c: F0 09 00 EF 12 00 58 D1 B2 67 7E 41 4F 65 AE [06:04:05]GetLastDocTimeStamp 1739770449 [06:04:05]current date 1739772248 [06:04:05]FM_GetShiftState [06:04:05]SAM_PROTO_GetShiftState [06:04:05]wFMCommunicate request_size=4 [06:04:05]MH_SAM_APDU [06:04:05]CAPDU: 80 13 01 00 [06:04:05]Write to MH i2c: E2 08 00 F0 12 80 13 01 00 00 00 00 00 7F [06:04:05]Write i2c OK [06:04:05]MH_I2C_Read... [06:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:05]Read from MH i2c: E2 [06:04:05]MH_I2C_Read... [06:04:05]Read from MH i2c: E2 0E 00 [06:04:05]MH_I2C_Read... [06:04:05]Read from MH i2c: E2 0E 00 F0 12 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A3 [06:04:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:04:05]wFMCommunicate OK [06:04:05]SAM_PROTO_GetShiftState done [06:04:05]FM_GetShiftState done [06:04:05]opened in 1739752571 [06:04:05]opened+sec_in_day 1739838971 [06:04:05]quantity*price = 100023 [06:04:05]sum+1 = 100025 [06:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 16 17.02.2025 06:04 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186429 ФПД: 178324809622950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T060408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186429&fm=178324809622950&tin=02508201610067®Number=0000000000091857&sum=100000 [06:04:06]StoreToDocumentArchive [06:04:06]shift 644 fd 186429 [06:04:06]save to /storage/0644/doc_00186429 [06:04:06]save last doc name /storage/0644/doc_00186429 to /storage/kkm_last_doc_name [06:04:06]save OK [06:04:06]Clear old archive folders... [06:04:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:04:06]tlvbuf is B6F47AB0 [06:04:06]SAM_PROTO_ClearQueue [06:04:06]wFMCommunicate request_size=4 [06:04:06]MH_SAM_APDU [06:04:06]CAPDU: 80 09 00 00 [06:04:06]Write to MH i2c: E2 08 00 FD 12 80 09 00 00 00 00 00 00 81 [06:04:06]Write i2c OK [06:04:06]MH_I2C_Read... [06:04:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:06]Read from MH i2c: E2 [06:04:06]MH_I2C_Read... [06:04:06]Read from MH i2c: E2 03 00 [06:04:06]MH_I2C_Read... [06:04:06]Read from MH i2c: E2 03 00 FD 12 00 90 00 83 [06:04:06]RAPDU: 90 00 [06:04:06]wFMCommunicate OK [06:04:06]SAM_PROTO_ClearQueue done [06:04:06]KKMCreateOFDPacket [06:04:06]OFDProtocolAddRootSTLVToBuf [06:04:06]FM_MakeSignedData [06:04:06]FM_MakeSignedData [06:04:06]SAM_PROTO_SignData [06:04:06]wFMCommunicate request_size=4 [06:04:06]MH_SAM_APDU [06:04:06]CAPDU: 80 0D 01 02 [06:04:06]Write to MH i2c: E2 08 00 FE 12 80 0D 01 02 00 00 00 00 89 [06:04:06]Write i2c OK [06:04:06]MH_I2C_Read... [06:04:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:06]Read from MH i2c: E2 [06:04:06]MH_I2C_Read... [06:04:06]Read from MH i2c: E2 03 00 [06:04:06]MH_I2C_Read... [06:04:06]Read from MH i2c: E2 03 00 FE 12 00 90 00 84 [06:04:06]RAPDU: 90 00 [06:04:06]wFMCommunicate OK [06:04:06]wFMCommunicate request_size=255 [06:04:06]MH_SAM_APDU [06:04:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 58 D1 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D8 02 00 35 04 06 00 A2 [06:04:06]Write to MH i2c: E2 02 01 FF 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 58 D1 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D8 02 00 35 04 06 00 A2 00 00 17 [06:04:06]Write i2c OK [06:04:06]MH_I2C_Read... [06:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:07]Read from MH i2c: E2 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 03 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 03 00 FF 12 00 90 00 85 [06:04:07]RAPDU: 90 00 [06:04:07]wFMCommunicate OK [06:04:07]wFMCommunicate request_size=10 [06:04:07]MH_SAM_APDU [06:04:07]CAPDU: 80 0D 02 02 05 2F 7A EE A5 A6 [06:04:07]Write to MH i2c: E2 0D 00 00 13 80 0D 02 02 05 00 2F 7A EE A5 A6 00 00 79 [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:07]Read from MH i2c: E2 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 03 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [06:04:07]RAPDU: 90 00 [06:04:07]wFMCommunicate OK [06:04:07]wFMCommunicate request_size=4 [06:04:07]MH_SAM_APDU [06:04:07]CAPDU: 80 0D 03 02 [06:04:07]Write to MH i2c: E2 08 00 01 13 80 0D 03 02 00 00 00 00 8F [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:07]Read from MH i2c: E2 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 0B 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 0B 00 01 13 00 B7 AA FF F6 CE 89 3D C5 90 00 3F [06:04:07]RAPDU: B7 AA FF F6 CE 89 3D C5 90 00 [06:04:07]wFMCommunicate OK [06:04:07]SAM_PROTO_SignData done [06:04:07]FM_MakeSignedData done [06:04:07]CreateOFDProtocolMessage [06:04:07]wFMCommunicate request_size=4 [06:04:07]MH_SAM_APDU [06:04:07]CAPDU: 80 11 00 00 [06:04:07]Write to MH i2c: E2 08 00 02 13 80 11 00 00 00 00 00 00 8F [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:07]Read from MH i2c: E2 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 17 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: E2 17 00 02 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [06:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:04:07]wFMCommunicate OK [06:04:07]CreateOFDProtocolMessage done [06:04:07]OFDSenderStorePacket 186429 [06:04:07]StoreOFDPacket docnum=186429 [06:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F D0 07 01 59 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 58 D1 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D8 02 00 35 04 06 00 A2 2F 7A EE A5 A6 B7 AA FF F6 CE 89 3D C5 [06:04:07]CheckFolder [06:04:07]dirname=/storage/ofd_packets [06:04:07]CheckFolder done [06:04:07]ProducePacketName [06:04:07]name=ofd_packets/00186429 [06:04:07]NVStorageSaveData ofd_packets/00186429 [06:04:07]File name is /storage/ofd_packets/00186429 [06:04:07]Write 301 bytes [06:04:07]NVStorageSaveData done [06:04:07]OFDSenderStorePacket done [06:04:07]KKMCreateOFDPacket done [06:04:07]NVStorageSaveData kkm_last_timestamp [06:04:07]File name is /storage/kkm_last_timestamp [06:04:07]Write 4 bytes [06:04:07]NVStorageSaveData done [06:04:07]ExternCall_PrintAddStr [06:04:07]wPrintStart [06:04:07]Write to MH i2c: 01 00 00 03 13 16 [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 07 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 FF 0F 2B [06:04:07]RasterBufferAndPrint [06:04:07]line Счет N : (1)411561 [06:04:07]line ИНН: 02508201610067 [06:04:07]line Контрольно-Кассовый Чек [06:04:07]line ПРОДАЖА [06:04:07]line ТРК (МРК, ГНК) : 12 [06:04:07]line Товар: 2710124130 [06:04:07]line Аи-92-К-2 [06:04:07]line 15.580 * 64.20 [06:04:07]line = 1000.24 [06:04:07]line НДС 12% НСП 1% [06:04:07]line > о реализуемом товаре [06:04:07]line ОКРУГЛЕНИЕ: -0.24 [06:04:07]line ИТОГО: 1000.00 [06:04:07]line Внесено: 1000.00 [06:04:07]line СДАЧА: 0.00 [06:04:07]line НСП 1% : 8.85 [06:04:07]line НДС 12% : 106.22 [06:04:07]line Наличными: 1000.00 [06:04:07]line Безнал.: 0.00 [06:04:07]line Место: АЗС № 92 "Партнер Нефть" [06:04:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:04:07]line СНО: Общий режим [06:04:07]line Чек 16 17.02.2025 06:04 [06:04:07]line Смена: 644 ФФД: 1.0 [06:04:07]line ЗНМ: 0300000118 [06:04:07]line РНМ: 0000000000091857 [06:04:07]line Версия ККМ: 001 [06:04:07]line ФМ: 0000000000871826 [06:04:07]line ФД: 186429 [06:04:07]line ФПД: 178324809622950 [06:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T060408&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186429&fm=178324809622950&tin=02508201610067®Number=0000000000091857&sum=100000 [06:04:07]written 0, free lines is 4095 [06:04:07]OFD Sender: Processing packet 186429 [packets to send 49, broken 48] [06:04:07]ProducePacketName [06:04:07]name=ofd_packets/00186429 [06:04:07]OFD Sender: To server: pG, [06:04:07]CommunicateWithHost lk.salyk.kg:30040 [06:04:07]ConnectInit lk.salyk.kg [06:04:07]Connected sock=10 [06:04:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3F D0 07 01 59 E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 58 D1 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D8 02 00 35 04 06 00 A2 2F 7A EE A5 A6 B7 AA FF F6 CE 89 3D C5 [06:04:07]Write to MH i2c: 01 00 00 2E 13 41 [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 07 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: 01 07 00 2E 13 00 00 00 00 00 FC 0C 50 [06:04:07]RasterBufferAndPrint [06:04:07]line [06:04:07]line [06:04:07]line [06:04:07]line [06:04:07]line [06:04:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C 50 47 00 7F E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D8 02 00 F4 03 04 00 B3 77 B2 67 B6 04 01 00 00 44 51 AC 33 99 2E 96 F7 [06:04:07]CommunicateWithHost err = 0 [06:04:07]CheckOFDResponse [06:04:07]1017 (14) - 77093643461234 [06:04:07]1041 (16) - 0000000000871826 [06:04:07]1040 (4) - 186429 [06:04:07]1012 (4) - 16.02.2025 23:41 [06:04:07]1206 (1) - 0 [06:04:07]OFD Sender: Remove packet 186429 [06:04:07]ProducePacketName [06:04:07]name=ofd_packets/00186429 [06:04:07]NVStorageDeleteData [06:04:07]written 0, free lines is 3336 [06:04:07]MH_Cut [06:04:07]Write to MH i2c: D1 01 00 35 13 01 1A [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: D1 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: D1 01 00 [06:04:07]MH_I2C_Read... [06:04:07]Read from MH i2c: D1 01 00 35 13 00 19 [06:04:07]Write to MH i2c: 01 00 00 36 13 49 [06:04:07]Write i2c OK [06:04:07]MH_I2C_Read... [06:04:08]OFD Sender: No OFD packet to send [06:04:08]*** Cut start [06:04:08]*** Partial cut [06:04:08]*** CUTSNS_PIN = 1 [06:04:08]*** CUTSNS_PIN = 0 [06:04:08]*** Brake cut motor [06:04:09]Read from MH i2c: 01 [06:04:09]MH_I2C_Read... [06:04:09]*** Stop cut motor [06:04:09]*** Cut end [06:04:09]Read from MH i2c: 01 07 00 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 FF 0F 5E [06:04:09]process_action close_receipt done [06:04:09]requested_data is exist [06:04:09]produce_requested_data [06:04:09]requested_item fm.sn is exist - process it [06:04:09]wFMCommunicate request_size=4 [06:04:09]MH_SAM_APDU [06:04:09]CAPDU: 80 11 00 00 [06:04:09]Write to MH i2c: E2 08 00 37 13 80 11 00 00 00 00 00 00 C4 [06:04:09]Write i2c OK [06:04:09]MH_I2C_Read... [06:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:09]Read from MH i2c: E2 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 17 00 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 17 00 37 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [06:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:04:09]wFMCommunicate OK [06:04:09]requested_item fd.num is exist - process it [06:04:09]SAM_PROTO_GetFieldsCounters [06:04:09]wFMCommunicate request_size=4 [06:04:09]MH_SAM_APDU [06:04:09]CAPDU: 80 13 00 00 [06:04:09]Write to MH i2c: E2 08 00 38 13 80 13 00 00 00 00 00 00 C7 [06:04:09]Write i2c OK [06:04:09]MH_I2C_Read... [06:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:09]Read from MH i2c: E2 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 62 00 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 62 00 38 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [06:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:04:09]wFMCommunicate OK [06:04:09]SAM_PROTO_GetFieldsCounters done [06:04:09]requested_item shift.num is exist - process it [06:04:09]requested_item shift.opened is exist - process it [06:04:09]req_shift_opened [06:04:09]FM_GetShiftState [06:04:09]SAM_PROTO_GetShiftState [06:04:09]wFMCommunicate request_size=4 [06:04:09]MH_SAM_APDU [06:04:09]CAPDU: 80 13 01 00 [06:04:09]Write to MH i2c: E2 08 00 39 13 80 13 01 00 00 00 00 00 C9 [06:04:09]Write i2c OK [06:04:09]MH_I2C_Read... [06:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:09]Read from MH i2c: E2 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 0E 00 [06:04:09]MH_I2C_Read... [06:04:09]Read from MH i2c: E2 0E 00 39 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 ED [06:04:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:04:09]wFMCommunicate OK [06:04:09]SAM_PROTO_GetShiftState done [06:04:09]FM_GetShiftState done [06:04:09]req_shift_opened done [06:04:09]requested_item shift.open_date is exist - process it [06:04:09]req_shift_open_date [06:04:09]req_shift_open_date done [06:04:09]produce_requested_data done [06:04:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186429,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [06:04:09]process_action_free close_receipt [06:04:09]json_value_free [06:04:09]json_value_free done [06:04:09]process_json_proto returns [06:04:09]Send response to host [06:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186429,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [06:04:09]free response buf [06:04:09]execute_script done [06:04:09]execute_script returns [06:04:09]free content buf [06:04:09]Sock 9.Close socket [06:04:09]Sock 9.Thread stoped [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:05]accept exits with 8 [06:11:05]New connection [06:11:05]New thread 3067358564 created [06:11:05]Thread 3067501924 joined [06:11:05]Waiting for new connection... [06:11:05] Sock 8.Parse request [06:11:05]Sock 8.Check first char [06:11:05]Sock 8.First char is OK [06:11:05]request: POST /json_proto HTTP/1.0 [06:11:05]Method: POST [06:11:05]URL: /json_proto [06:11:05]Method is POST - this is cgi request [06:11:05]url: /json_proto [06:11:05]query_string will be loaded in cgi processing [06:11:05]execute_cgi json_proto POST (null) [06:11:05]execute_cgi path=json_proto method=POST [06:11:05]POST find Content-Length [06:11:05]Host: 172.17.46.131:8080 [06:11:05]Content-Length: 682 [06:11:05]Content-Type: application/json [06:11:05] [06:11:05]POST finish read [06:11:05]Found Content-Length = 682 [06:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:05]execute_script... [06:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:05]POST & json_proto [06:11:05]process_json_proto [06:11:05]json parsed OK: [06:11:05]protocol is kg_v1.0 [06:11:05]action value=close_receipt [06:11:05]process_action close_receipt [06:11:05]cmd_close_receipt [06:11:05]MH_GetDate [06:11:05]Write to MH i2c: F0 00 00 3A 13 3C [06:11:05]Write i2c OK [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: F0 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: F0 09 00 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: F0 09 00 3A 13 00 FC D2 B2 67 7E 41 4F 65 9F [06:11:05]GetLastDocTimeStamp 1739772248 [06:11:05]current date 1739772668 [06:11:05]FM_GetShiftState [06:11:05]SAM_PROTO_GetShiftState [06:11:05]wFMCommunicate request_size=4 [06:11:05]MH_SAM_APDU [06:11:05]CAPDU: 80 13 01 00 [06:11:05]Write to MH i2c: E2 08 00 3B 13 80 13 01 00 00 00 00 00 CB [06:11:05]Write i2c OK [06:11:05]MH_I2C_Read... [06:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:05]Read from MH i2c: E2 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: E2 0E 00 [06:11:05]MH_I2C_Read... [06:11:05]Read from MH i2c: E2 0E 00 3B 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EF [06:11:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:11:05]wFMCommunicate OK [06:11:05]SAM_PROTO_GetShiftState done [06:11:05]FM_GetShiftState done [06:11:05]opened in 1739752571 [06:11:05]opened+sec_in_day 1739838971 [06:11:05]quantity*price = 100023 [06:11:05]sum+1 = 100025 [06:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 17 17.02.2025 06:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186430 ФПД: 184001905287177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T061108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186430&fm=184001905287177&tin=02508201610067®Number=0000000000091857&sum=100000 [06:11:06]StoreToDocumentArchive [06:11:06]shift 644 fd 186430 [06:11:06]save to /storage/0644/doc_00186430 [06:11:06]save last doc name /storage/0644/doc_00186430 to /storage/kkm_last_doc_name [06:11:06]save OK [06:11:06]Clear old archive folders... [06:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:11:06]tlvbuf is 01F9D510 [06:11:06]SAM_PROTO_ClearQueue [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 09 00 00 [06:11:06]Write to MH i2c: E2 08 00 48 13 80 09 00 00 00 00 00 00 CD [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 48 13 00 90 00 CF [06:11:06]RAPDU: 90 00 [06:11:06]wFMCommunicate OK [06:11:06]SAM_PROTO_ClearQueue done [06:11:06]KKMCreateOFDPacket [06:11:06]OFDProtocolAddRootSTLVToBuf [06:11:06]FM_MakeSignedData [06:11:06]FM_MakeSignedData [06:11:06]SAM_PROTO_SignData [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 0D 01 02 [06:11:06]Write to MH i2c: E2 08 00 49 13 80 0D 01 02 00 00 00 00 D5 [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 49 13 00 90 00 D0 [06:11:06]RAPDU: 90 00 [06:11:06]wFMCommunicate OK [06:11:06]wFMCommunicate request_size=255 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC D2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D8 02 00 35 04 06 00 A7 [06:11:06]Write to MH i2c: E2 02 01 4A 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC D2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D8 02 00 35 04 06 00 A7 00 00 0F [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 4A 13 00 90 00 D1 [06:11:06]RAPDU: 90 00 [06:11:06]wFMCommunicate OK [06:11:06]wFMCommunicate request_size=10 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 0D 02 02 05 59 48 33 E0 09 [06:11:06]Write to MH i2c: E2 0D 00 4B 13 80 0D 02 02 05 00 59 48 33 E0 09 00 00 9F [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [06:11:06]RAPDU: 90 00 [06:11:06]wFMCommunicate OK [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 0D 03 02 [06:11:06]Write to MH i2c: E2 08 00 4C 13 80 0D 03 02 00 00 00 00 DA [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 0B 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 0B 00 4C 13 00 EA 1C 6F 4F 25 52 2E 67 90 00 AB [06:11:06]RAPDU: EA 1C 6F 4F 25 52 2E 67 90 00 [06:11:06]wFMCommunicate OK [06:11:06]SAM_PROTO_SignData done [06:11:06]FM_MakeSignedData done [06:11:06]CreateOFDProtocolMessage [06:11:06]wFMCommunicate request_size=4 [06:11:06]MH_SAM_APDU [06:11:06]CAPDU: 80 11 00 00 [06:11:06]Write to MH i2c: E2 08 00 4D 13 80 11 00 00 00 00 00 00 DA [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:06]Read from MH i2c: E2 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 17 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: E2 17 00 4D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [06:11:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:11:06]wFMCommunicate OK [06:11:06]CreateOFDProtocolMessage done [06:11:06]OFDSenderStorePacket 186430 [06:11:06]StoreOFDPacket docnum=186430 [06:11:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 18 19 07 01 2B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC D2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D8 02 00 35 04 06 00 A7 59 48 33 E0 09 EA 1C 6F 4F 25 52 2E 67 [06:11:06]CheckFolder [06:11:06]dirname=/storage/ofd_packets [06:11:06]CheckFolder done [06:11:06]ProducePacketName [06:11:06]name=ofd_packets/00186430 [06:11:06]NVStorageSaveData ofd_packets/00186430 [06:11:06]File name is /storage/ofd_packets/00186430 [06:11:06]Write 301 bytes [06:11:06]NVStorageSaveData done [06:11:06]OFDSenderStorePacket done [06:11:06]KKMCreateOFDPacket done [06:11:06]NVStorageSaveData kkm_last_timestamp [06:11:06]File name is /storage/kkm_last_timestamp [06:11:06]Write 4 bytes [06:11:06]NVStorageSaveData done [06:11:06]OFD Sender: Processing packet 186430 [packets to send 49, broken 48] [06:11:06]ProducePacketName [06:11:06]name=ofd_packets/00186430 [06:11:06]OFD Sender: To server: pG, [06:11:06]CommunicateWithHost lk.salyk.kg:30040 [06:11:06]ConnectInit lk.salyk.kg [06:11:06]ExternCall_PrintAddStr [06:11:06]wPrintStart [06:11:06]Write to MH i2c: 01 00 00 4E 13 61 [06:11:06]Write i2c OK [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: 01 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: 01 07 00 [06:11:06]MH_I2C_Read... [06:11:06]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [06:11:06]RasterBufferAndPrint [06:11:06]line Счет N : (1)411562 [06:11:06]line ИНН: 02508201610067 [06:11:06]line Контрольно-Кассовый Чек [06:11:06]line ПРОДАЖА [06:11:06]line ТРК (МРК, ГНК) : 12 [06:11:06]line Товар: 2710124130 [06:11:06]line Аи-92-К-2 [06:11:06]line 15.580 * 64.20 [06:11:06]line = 1000.24 [06:11:06]line НДС 12% НСП 1% [06:11:06]line > о реализуемом товаре [06:11:06]line ОКРУГЛЕНИЕ: -0.24 [06:11:06]line ИТОГО: 1000.00 [06:11:06]line Внесено: 1000.00 [06:11:06]line СДАЧА: 0.00 [06:11:06]line НСП 1% : 8.85 [06:11:06]line НДС 12% : 106.22 [06:11:06]line Наличными: 1000.00 [06:11:06]line Безнал.: 0.00 [06:11:06]line Место: АЗС № 92 "Партнер Нефть" [06:11:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:11:06]line СНО: Общий режим [06:11:06]line Чек 17 17.02.2025 06:11 [06:11:06]line Смена: 644 ФФД: 1.0 [06:11:06]line ЗНМ: 0300000118 [06:11:06]line РНМ: 0000000000091857 [06:11:06]line Версия ККМ: 001 [06:11:06]line ФМ: 0000000000871826 [06:11:06]line ФД: 186430 [06:11:06]line ФПД: 184001905287177 [06:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T061108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186430&fm=184001905287177&tin=02508201610067®Number=0000000000091857&sum=100000 [06:11:07]Connected sock=11 [06:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 18 19 07 01 2B 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FC D2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D8 02 00 35 04 06 00 A7 59 48 33 E0 09 EA 1C 6F 4F 25 52 2E 67 [06:11:07]written 0, free lines is 4095 [06:11:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A0 4C 47 00 BE 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D8 02 00 F4 03 04 00 57 79 B2 67 B6 04 01 00 00 CC 33 FA 11 16 61 01 E5 [06:11:07]CommunicateWithHost err = 0 [06:11:07]CheckOFDResponse [06:11:07]1017 (14) - 77093643461234 [06:11:07]1041 (16) - 0000000000871826 [06:11:07]1040 (4) - 186430 [06:11:07]1012 (4) - 16.02.2025 23:48 [06:11:07]1206 (1) - 0 [06:11:07]OFD Sender: Remove packet 186430 [06:11:07]ProducePacketName [06:11:07]name=ofd_packets/00186430 [06:11:07]NVStorageDeleteData [06:11:07]Write to MH i2c: 01 00 00 79 13 8C [06:11:07]Write i2c OK [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: 01 [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: 01 07 00 [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: 01 07 00 79 13 00 00 00 00 00 F5 0C 94 [06:11:07]RasterBufferAndPrint [06:11:07]line [06:11:07]line [06:11:07]line [06:11:07]line [06:11:07]line [06:11:07]written 0, free lines is 3323 [06:11:07]MH_Cut [06:11:07]Write to MH i2c: D1 01 00 80 13 01 65 [06:11:07]Write i2c OK [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: D1 [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: D1 01 00 [06:11:07]MH_I2C_Read... [06:11:07]Read from MH i2c: D1 01 00 80 13 00 64 [06:11:07]Write to MH i2c: 01 00 00 81 13 94 [06:11:07]Write i2c OK [06:11:07]MH_I2C_Read... [06:11:07]OFD Sender: No OFD packet to send [06:11:08]*** Cut start [06:11:08]*** Partial cut [06:11:08]*** CUTSNS_PIN = 1 [06:11:08]*** CUTSNS_PIN = 0 [06:11:08]*** Brake cut motor [06:11:08]Read from MH i2c: 01 [06:11:08]MH_I2C_Read... [06:11:08]*** Stop cut motor [06:11:08]*** Cut end [06:11:08]Read from MH i2c: 01 07 00 [06:11:08]MH_I2C_Read... [06:11:08]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 FF 0F A9 [06:11:08]process_action close_receipt done [06:11:08]requested_data is exist [06:11:08]produce_requested_data [06:11:08]requested_item fm.sn is exist - process it [06:11:08]wFMCommunicate request_size=4 [06:11:08]MH_SAM_APDU [06:11:08]CAPDU: 80 11 00 00 [06:11:08]Write to MH i2c: E2 08 00 82 13 80 11 00 00 00 00 00 00 0F [06:11:08]Write i2c OK [06:11:08]MH_I2C_Read... [06:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:09]Read from MH i2c: E2 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 17 00 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 17 00 82 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [06:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:11:09]wFMCommunicate OK [06:11:09]requested_item fd.num is exist - process it [06:11:09]SAM_PROTO_GetFieldsCounters [06:11:09]wFMCommunicate request_size=4 [06:11:09]MH_SAM_APDU [06:11:09]CAPDU: 80 13 00 00 [06:11:09]Write to MH i2c: E2 08 00 83 13 80 13 00 00 00 00 00 00 12 [06:11:09]Write i2c OK [06:11:09]MH_I2C_Read... [06:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:09]Read from MH i2c: E2 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 62 00 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 62 00 83 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [06:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:11:09]wFMCommunicate OK [06:11:09]SAM_PROTO_GetFieldsCounters done [06:11:09]requested_item shift.num is exist - process it [06:11:09]requested_item shift.opened is exist - process it [06:11:09]req_shift_opened [06:11:09]FM_GetShiftState [06:11:09]SAM_PROTO_GetShiftState [06:11:09]wFMCommunicate request_size=4 [06:11:09]MH_SAM_APDU [06:11:09]CAPDU: 80 13 01 00 [06:11:09]Write to MH i2c: E2 08 00 84 13 80 13 01 00 00 00 00 00 14 [06:11:09]Write i2c OK [06:11:09]MH_I2C_Read... [06:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:09]Read from MH i2c: E2 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 0E 00 [06:11:09]MH_I2C_Read... [06:11:09]Read from MH i2c: E2 0E 00 84 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 38 [06:11:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:11:09]wFMCommunicate OK [06:11:09]SAM_PROTO_GetShiftState done [06:11:09]FM_GetShiftState done [06:11:09]req_shift_opened done [06:11:09]requested_item shift.open_date is exist - process it [06:11:09]req_shift_open_date [06:11:09]req_shift_open_date done [06:11:09]produce_requested_data done [06:11:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186430,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [06:11:09]process_action_free close_receipt [06:11:09]json_value_free [06:11:09]json_value_free done [06:11:09]process_json_proto returns [06:11:09]Send response to host [06:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186430,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [06:11:09]free response buf [06:11:09]execute_script done [06:11:09]execute_script returns [06:11:09]free content buf [06:11:09]Sock 8.Close socket [06:11:09]Sock 8.Thread stoped [06:11:12]OFD Sender: No OFD packet to send [06:11:17]OFD Sender: No OFD packet to send [06:11:22]OFD Sender: No OFD packet to send [06:11:27]OFD Sender: No OFD packet to send [06:11:32]OFD Sender: No OFD packet to send [06:11:37]OFD Sender: No OFD packet to send [06:11:42]OFD Sender: No OFD packet to send [06:11:47]OFD Sender: No OFD packet to send [06:11:52]OFD Sender: No OFD packet to send [06:11:57]OFD Sender: No OFD packet to send [06:12:02]OFD Sender: No OFD packet to send [06:12:07]OFD Sender: No OFD packet to send [06:12:12]OFD Sender: No OFD packet to send [06:12:17]OFD Sender: No OFD packet to send [06:12:22]OFD Sender: No OFD packet to send [06:12:27]OFD Sender: No OFD packet to send [06:12:32]OFD Sender: No OFD packet to send [06:12:37]OFD Sender: No OFD packet to send [06:12:42]OFD Sender: No OFD packet to send [06:12:47]OFD Sender: No OFD packet to send [06:12:52]OFD Sender: No OFD packet to send [06:12:57]OFD Sender: No OFD packet to send [06:13:02]OFD Sender: No OFD packet to send [06:13:07]OFD Sender: No OFD packet to send [06:13:12]OFD Sender: No OFD packet to send [06:13:17]OFD Sender: No OFD packet to send [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:54]accept exits with 9 [06:17:54]New connection [06:17:54]New thread 3067501924 created [06:17:54]Thread 3067358564 joined [06:17:54]Waiting for new connection... [06:17:54] Sock 9.Parse request [06:17:54]Sock 9.Check first char [06:17:54]Sock 9.First char is OK [06:17:54]request: POST /json_proto HTTP/1.0 [06:17:54]Method: POST [06:17:54]URL: /json_proto [06:17:54]Method is POST - this is cgi request [06:17:54]url: /json_proto [06:17:54]query_string will be loaded in cgi processing [06:17:54]execute_cgi json_proto POST (null) [06:17:54]execute_cgi path=json_proto method=POST [06:17:54]POST find Content-Length [06:17:54]Host: 172.17.46.131:8080 [06:17:54]Content-Length: 677 [06:17:54]Content-Type: application/json [06:17:54] [06:17:54]POST finish read [06:17:54]Found Content-Length = 677 [06:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.150, "sum" : 330.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:54]execute_script... [06:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.150, "sum" : 330.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:54]POST & json_proto [06:17:54]process_json_proto [06:17:54]json parsed OK: [06:17:54]protocol is kg_v1.0 [06:17:54]action value=close_receipt [06:17:54]process_action close_receipt [06:17:54]cmd_close_receipt [06:17:54]MH_GetDate [06:17:54]Write to MH i2c: F0 00 00 85 13 87 [06:17:54]Write i2c OK [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: F0 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: F0 09 00 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: F0 09 00 85 13 00 95 D4 B2 67 7E 41 4F 65 85 [06:17:54]GetLastDocTimeStamp 1739772668 [06:17:54]current date 1739773077 [06:17:54]FM_GetShiftState [06:17:54]SAM_PROTO_GetShiftState [06:17:54]wFMCommunicate request_size=4 [06:17:54]MH_SAM_APDU [06:17:54]CAPDU: 80 13 01 00 [06:17:54]Write to MH i2c: E2 08 00 86 13 80 13 01 00 00 00 00 00 16 [06:17:54]Write i2c OK [06:17:54]MH_I2C_Read... [06:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:54]Read from MH i2c: E2 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: E2 0E 00 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: E2 0E 00 86 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3A [06:17:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:17:54]wFMCommunicate OK [06:17:54]SAM_PROTO_GetShiftState done [06:17:54]FM_GetShiftState done [06:17:54]opened in 1739752571 [06:17:54]opened+sec_in_day 1739838971 [06:17:54]quantity*price = 33063 [06:17:54]sum+1 = 33064 [06:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.93 НДС 12% : 35.11 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 18 17.02.2025 06:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186431 ФПД: 54943904654700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T061757&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186431&fm=54943904654700&tin=02508201610067®Number=0000000000091857&sum=33000 [06:17:55]StoreToDocumentArchive [06:17:55]shift 644 fd 186431 [06:17:55]save to /storage/0644/doc_00186431 [06:17:55]save last doc name /storage/0644/doc_00186431 to /storage/kkm_last_doc_name [06:17:55]save OK [06:17:55]Clear old archive folders... [06:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:17:55]tlvbuf is 02005B50 [06:17:55]SAM_PROTO_ClearQueue [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 09 00 00 [06:17:55]Write to MH i2c: E2 08 00 93 13 80 09 00 00 00 00 00 00 18 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 93 13 00 90 00 1A [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]SAM_PROTO_ClearQueue done [06:17:55]KKMCreateOFDPacket [06:17:55]OFDProtocolAddRootSTLVToBuf [06:17:55]FM_MakeSignedData [06:17:55]FM_MakeSignedData [06:17:55]SAM_PROTO_SignData [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 01 02 [06:17:55]Write to MH i2c: E2 08 00 94 13 80 0D 01 02 00 00 00 00 20 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 94 13 00 90 00 1B [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=255 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 27 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 95 D4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D8 02 00 35 04 06 00 31 [06:17:55]Write to MH i2c: E2 02 01 95 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 27 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 95 D4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D8 02 00 35 04 06 00 31 00 00 51 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 95 13 00 90 00 1C [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=10 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 02 02 05 F8 9F EB 65 6C [06:17:55]Write to MH i2c: E2 0D 00 96 13 80 0D 02 02 05 00 F8 9F EB 65 6C 00 00 80 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [06:17:55]RAPDU: 90 00 [06:17:55]wFMCommunicate OK [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 0D 03 02 [06:17:55]Write to MH i2c: E2 08 00 97 13 80 0D 03 02 00 00 00 00 25 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 0B 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 0B 00 97 13 00 51 DC F9 5A A9 4F 22 C6 90 00 86 [06:17:55]RAPDU: 51 DC F9 5A A9 4F 22 C6 90 00 [06:17:55]wFMCommunicate OK [06:17:55]SAM_PROTO_SignData done [06:17:55]FM_MakeSignedData done [06:17:55]CreateOFDProtocolMessage [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 11 00 00 [06:17:55]Write to MH i2c: E2 08 00 98 13 80 11 00 00 00 00 00 00 25 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 98 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 78 [06:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:17:55]wFMCommunicate OK [06:17:55]CreateOFDProtocolMessage done [06:17:55]OFDSenderStorePacket 186431 [06:17:55]StoreOFDPacket docnum=186431 [06:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FF 97 07 01 D4 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 27 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 95 D4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D8 02 00 35 04 06 00 31 F8 9F EB 65 6C 51 DC F9 5A A9 4F 22 C6 [06:17:55]CheckFolder [06:17:55]dirname=/storage/ofd_packets [06:17:55]CheckFolder done [06:17:55]ProducePacketName [06:17:55]name=ofd_packets/00186431 [06:17:55]NVStorageSaveData ofd_packets/00186431 [06:17:55]File name is /storage/ofd_packets/00186431 [06:17:55]Write 301 bytes [06:17:55]NVStorageSaveData done [06:17:55]OFDSenderStorePacket done [06:17:55]KKMCreateOFDPacket done [06:17:55]NVStorageSaveData kkm_last_timestamp [06:17:55]File name is /storage/kkm_last_timestamp [06:17:55]Write 4 bytes [06:17:55]NVStorageSaveData done [06:17:55]ExternCall_PrintAddStr [06:17:55]wPrintStart [06:17:55]Write to MH i2c: 01 00 00 99 13 AC [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 07 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 07 00 99 13 00 00 00 00 00 FF 0F C1 [06:17:55]RasterBufferAndPrint [06:17:55]line Счет N : (1)411563 [06:17:55]line ИНН: 02508201610067 [06:17:55]line Контрольно-Кассовый Чек [06:17:55]line ПРОДАЖА [06:17:55]line ТРК (МРК, ГНК) : 12 [06:17:55]line Товар: 2710124130 [06:17:55]line Аи-92-К-2 [06:17:55]line 5.150 * 64.20 [06:17:55]line = 330.63 [06:17:55]line НДС 12% НСП 1% [06:17:55]line > о реализуемом товаре [06:17:55]line ОКРУГЛЕНИЕ: -0.63 [06:17:55]line ИТОГО: 330.00 [06:17:55]line Внесено: 330.00 [06:17:55]line СДАЧА: 0.00 [06:17:55]line НСП 1% : 2.93 [06:17:55]line НДС 12% : 35.11 [06:17:55]line Наличными: 330.00 [06:17:55]line Безнал.: 0.00 [06:17:55]line Место: АЗС № 92 "Партнер Нефть" [06:17:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:17:55]line СНО: Общий режим [06:17:55]line Чек 18 17.02.2025 06:17 [06:17:55]line Смена: 644 ФФД: 1.0 [06:17:55]line ЗНМ: 0300000118 [06:17:55]line РНМ: 0000000000091857 [06:17:55]line Версия ККМ: 001 [06:17:55]line ФМ: 0000000000871826 [06:17:55]line ФД: 186431 [06:17:55]line ФПД: 54943904654700 [06:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T061757&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186431&fm=54943904654700&tin=02508201610067®Number=0000000000091857&sum=33000 [06:17:56]written 0, free lines is 4095 [06:17:56]OFD Sender: Processing packet 186431 [packets to send 49, broken 48] [06:17:56]ProducePacketName [06:17:56]name=ofd_packets/00186431 [06:17:56]OFD Sender: To server: pG, [06:17:56]CommunicateWithHost lk.salyk.kg:30040 [06:17:56]ConnectInit lk.salyk.kg [06:17:56]Connected sock=10 [06:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FF 97 07 01 D4 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 27 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 95 D4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D8 02 00 35 04 06 00 31 F8 9F EB 65 6C 51 DC F9 5A A9 4F 22 C6 [06:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 79 12 47 00 47 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D8 02 00 F4 03 04 00 F0 7A B2 67 B6 04 01 00 00 E5 75 9F 93 A2 6E B3 DE [06:17:56]CommunicateWithHost err = 0 [06:17:56]CheckOFDResponse [06:17:56]1017 (14) - 77093643461234 [06:17:56]1041 (16) - 0000000000871826 [06:17:56]1040 (4) - 186431 [06:17:56]1012 (4) - 16.02.2025 23:55 [06:17:56]1206 (1) - 0 [06:17:56]OFD Sender: Remove packet 186431 [06:17:56]ProducePacketName [06:17:56]name=ofd_packets/00186431 [06:17:56]NVStorageDeleteData [06:17:56]Write to MH i2c: 01 00 00 C4 13 D7 [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 07 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: 01 07 00 C4 13 00 00 00 00 00 F0 0C DA [06:17:56]RasterBufferAndPrint [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]line [06:17:56]written 0, free lines is 3318 [06:17:56]MH_Cut [06:17:56]Write to MH i2c: D1 01 00 CB 13 01 B0 [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 01 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: D1 01 00 CB 13 00 AF [06:17:56]Write to MH i2c: 01 00 00 CC 13 DF [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:57]OFD Sender: No OFD packet to send [06:17:57]*** Cut start [06:17:57]*** Partial cut [06:17:57]*** CUTSNS_PIN = 1 [06:17:57]*** CUTSNS_PIN = 0 [06:17:57]*** Brake cut motor [06:17:57]Read from MH i2c: 01 [06:17:57]MH_I2C_Read... [06:17:57]*** Stop cut motor [06:17:58]*** Cut end [06:17:58]Read from MH i2c: 01 07 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 FF 0F F4 [06:17:58]process_action close_receipt done [06:17:58]requested_data is exist [06:17:58]produce_requested_data [06:17:58]requested_item fm.sn is exist - process it [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 11 00 00 [06:17:58]Write to MH i2c: E2 08 00 CD 13 80 11 00 00 00 00 00 00 5A [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 17 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 17 00 CD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [06:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:17:58]wFMCommunicate OK [06:17:58]requested_item fd.num is exist - process it [06:17:58]SAM_PROTO_GetFieldsCounters [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 13 00 00 [06:17:58]Write to MH i2c: E2 08 00 CE 13 80 13 00 00 00 00 00 00 5D [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 62 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 62 00 CE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [06:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:58]wFMCommunicate OK [06:17:58]SAM_PROTO_GetFieldsCounters done [06:17:58]requested_item shift.num is exist - process it [06:17:58]requested_item shift.opened is exist - process it [06:17:58]req_shift_opened [06:17:58]FM_GetShiftState [06:17:58]SAM_PROTO_GetShiftState [06:17:58]wFMCommunicate request_size=4 [06:17:58]MH_SAM_APDU [06:17:58]CAPDU: 80 13 01 00 [06:17:58]Write to MH i2c: E2 08 00 CF 13 80 13 01 00 00 00 00 00 5F [06:17:58]Write i2c OK [06:17:58]MH_I2C_Read... [06:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:58]Read from MH i2c: E2 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 0E 00 [06:17:58]MH_I2C_Read... [06:17:58]Read from MH i2c: E2 0E 00 CF 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 83 [06:17:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:17:58]wFMCommunicate OK [06:17:58]SAM_PROTO_GetShiftState done [06:17:58]FM_GetShiftState done [06:17:58]req_shift_opened done [06:17:58]requested_item shift.open_date is exist - process it [06:17:58]req_shift_open_date [06:17:58]req_shift_open_date done [06:17:58]produce_requested_data done [06:17:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186431,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [06:17:58]process_action_free close_receipt [06:17:58]json_value_free [06:17:58]json_value_free done [06:17:58]process_json_proto returns [06:17:58]Send response to host [06:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186431,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [06:17:58]free response buf [06:17:58]execute_script done [06:17:58]execute_script returns [06:17:58]free content buf [06:17:58]Sock 9.Close socket [06:17:58]Sock 9.Thread stoped [06:18:02]OFD Sender: No OFD packet to send [06:18:07]OFD Sender: No OFD packet to send [06:18:12]OFD Sender: No OFD packet to send [06:18:17]OFD Sender: No OFD packet to send [06:18:22]OFD Sender: No OFD packet to send [06:18:27]OFD Sender: No OFD packet to send [06:18:32]OFD Sender: No OFD packet to send [06:18:37]OFD Sender: No OFD packet to send [06:18:42]OFD Sender: No OFD packet to send [06:18:47]OFD Sender: No OFD packet to send [06:18:52]OFD Sender: No OFD packet to send [06:18:57]OFD Sender: No OFD packet to send [06:19:02]OFD Sender: No OFD packet to send [06:19:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:19:57]OFD Sender: No OFD packet to send [06:20:02]OFD Sender: No OFD packet to send [06:20:07]OFD Sender: No OFD packet to send [06:20:12]OFD Sender: No OFD packet to send [06:20:17]OFD Sender: No OFD packet to send [06:20:22]OFD Sender: No OFD packet to send [06:20:27]OFD Sender: No OFD packet to send [06:20:32]OFD Sender: No OFD packet to send [06:20:37]OFD Sender: No OFD packet to send [06:20:42]OFD Sender: No OFD packet to send [06:20:47]OFD Sender: No OFD packet to send [06:20:52]OFD Sender: No OFD packet to send [06:20:57]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:10]accept exits with 8 [06:34:10]New connection [06:34:10]New thread 3067358564 created [06:34:10]Thread 3067501924 joined [06:34:10]Waiting for new connection... [06:34:10] Sock 8.Parse request [06:34:10]Sock 8.Check first char [06:34:10]Sock 8.First char is OK [06:34:10]request: POST /json_proto HTTP/1.0 [06:34:10]Method: POST [06:34:10]URL: /json_proto [06:34:10]Method is POST - this is cgi request [06:34:10]url: /json_proto [06:34:10]query_string will be loaded in cgi processing [06:34:10]execute_cgi json_proto POST (null) [06:34:10]execute_cgi path=json_proto method=POST [06:34:10]POST find Content-Length [06:34:10]Host: 172.17.46.131:8080 [06:34:10]Content-Length: 677 [06:34:10]Content-Type: application/json [06:34:10] [06:34:10]POST finish read [06:34:10]Found Content-Length = 677 [06:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:10]execute_script... [06:34:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:34:10]POST & json_proto [06:34:10]process_json_proto [06:34:10]json parsed OK: [06:34:10]protocol is kg_v1.0 [06:34:10]action value=close_receipt [06:34:10]process_action close_receipt [06:34:10]cmd_close_receipt [06:34:10]MH_GetDate [06:34:10]Write to MH i2c: F0 00 00 D0 13 D2 [06:34:10]Write i2c OK [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 09 00 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: F0 09 00 D0 13 00 65 D8 B2 67 7E 41 4F 65 A4 [06:34:10]GetLastDocTimeStamp 1739773077 [06:34:10]current date 1739774053 [06:34:10]FM_GetShiftState [06:34:10]SAM_PROTO_GetShiftState [06:34:10]wFMCommunicate request_size=4 [06:34:10]MH_SAM_APDU [06:34:10]CAPDU: 80 13 01 00 [06:34:10]Write to MH i2c: E2 08 00 D1 13 80 13 01 00 00 00 00 00 61 [06:34:10]Write i2c OK [06:34:10]MH_I2C_Read... [06:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:10]Read from MH i2c: E2 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: E2 0E 00 [06:34:10]MH_I2C_Read... [06:34:10]Read from MH i2c: E2 0E 00 D1 13 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 85 [06:34:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:34:10]wFMCommunicate OK [06:34:10]SAM_PROTO_GetShiftState done [06:34:10]FM_GetShiftState done [06:34:10]opened in 1739752571 [06:34:10]opened+sec_in_day 1739838971 [06:34:10]quantity*price = 50011 [06:34:10]sum+1 = 50013 [06:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 19 17.02.2025 06:34 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186432 ФПД: 143872715387801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T063413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186432&fm=143872715387801&tin=02508201610067®Number=0000000000091857&sum=50000 [06:34:11]StoreToDocumentArchive [06:34:11]shift 644 fd 186432 [06:34:11]save to /storage/0644/doc_00186432 [06:34:11]save last doc name /storage/0644/doc_00186432 to /storage/kkm_last_doc_name [06:34:11]save OK [06:34:11]Clear old archive folders... [06:34:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:34:11]tlvbuf is 01FE48D0 [06:34:11]SAM_PROTO_ClearQueue [06:34:11]wFMCommunicate request_size=4 [06:34:11]MH_SAM_APDU [06:34:11]CAPDU: 80 09 00 00 [06:34:11]Write to MH i2c: E2 08 00 DE 13 80 09 00 00 00 00 00 00 63 [06:34:11]Write i2c OK [06:34:11]MH_I2C_Read... [06:34:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:11]Read from MH i2c: E2 [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 03 00 [06:34:11]MH_I2C_Read... [06:34:11]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [06:34:11]RAPDU: 90 00 [06:34:11]wFMCommunicate OK [06:34:11]SAM_PROTO_ClearQueue done [06:34:11]KKMCreateOFDPacket [06:34:11]OFDProtocolAddRootSTLVToBuf [06:34:11]FM_MakeSignedData [06:34:11]FM_MakeSignedData [06:34:11]SAM_PROTO_SignData [06:34:11]wFMCommunicate request_size=4 [06:34:11]MH_SAM_APDU [06:34:11]CAPDU: 80 0D 01 02 [06:34:11]Write to MH i2c: E2 08 00 DF 13 80 0D 01 02 00 00 00 00 6B [06:34:11]Write i2c OK [06:34:11]MH_I2C_Read... [06:34:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 DF 13 00 90 00 66 [06:34:12]RAPDU: 90 00 [06:34:12]wFMCommunicate OK [06:34:12]wFMCommunicate request_size=255 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 65 D8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D8 02 00 35 04 06 00 82 [06:34:12]Write to MH i2c: E2 02 01 E0 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 65 D8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D8 02 00 35 04 06 00 82 00 00 8F [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 E0 13 00 90 00 67 [06:34:12]RAPDU: 90 00 [06:34:12]wFMCommunicate OK [06:34:12]wFMCommunicate request_size=10 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 0D 02 02 05 D9 FA 17 F3 99 [06:34:12]Write to MH i2c: E2 0D 00 E1 13 80 0D 02 02 05 00 D9 FA 17 F3 99 00 00 EE [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [06:34:12]RAPDU: 90 00 [06:34:12]wFMCommunicate OK [06:34:12]wFMCommunicate request_size=4 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 0D 03 02 [06:34:12]Write to MH i2c: E2 08 00 E2 13 80 0D 03 02 00 00 00 00 70 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 0B 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 0B 00 E2 13 00 B9 EC C9 17 DA 18 FD 3D 90 00 22 [06:34:12]RAPDU: B9 EC C9 17 DA 18 FD 3D 90 00 [06:34:12]wFMCommunicate OK [06:34:12]SAM_PROTO_SignData done [06:34:12]FM_MakeSignedData done [06:34:12]CreateOFDProtocolMessage [06:34:12]wFMCommunicate request_size=4 [06:34:12]MH_SAM_APDU [06:34:12]CAPDU: 80 11 00 00 [06:34:12]Write to MH i2c: E2 08 00 E3 13 80 11 00 00 00 00 00 00 70 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:12]Read from MH i2c: E2 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 17 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: E2 17 00 E3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C3 [06:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:34:12]wFMCommunicate OK [06:34:12]CreateOFDProtocolMessage done [06:34:12]OFDSenderStorePacket 186432 [06:34:12]StoreOFDPacket docnum=186432 [06:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 B0 07 01 DE DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 65 D8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D8 02 00 35 04 06 00 82 D9 FA 17 F3 99 B9 EC C9 17 DA 18 FD 3D [06:34:12]CheckFolder [06:34:12]dirname=/storage/ofd_packets [06:34:12]CheckFolder done [06:34:12]ProducePacketName [06:34:12]name=ofd_packets/00186432 [06:34:12]NVStorageSaveData ofd_packets/00186432 [06:34:12]File name is /storage/ofd_packets/00186432 [06:34:12]Write 301 bytes [06:34:12]NVStorageSaveData done [06:34:12]OFDSenderStorePacket done [06:34:12]KKMCreateOFDPacket done [06:34:12]NVStorageSaveData kkm_last_timestamp [06:34:12]File name is /storage/kkm_last_timestamp [06:34:12]Write 4 bytes [06:34:12]NVStorageSaveData done [06:34:12]ExternCall_PrintAddStr [06:34:12]wPrintStart [06:34:12]Write to MH i2c: 01 00 00 E4 13 F7 [06:34:12]Write i2c OK [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 [06:34:12]MH_I2C_Read... [06:34:12]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [06:34:12]RasterBufferAndPrint [06:34:12]line Счет N : (1)411564 [06:34:12]line ИНН: 02508201610067 [06:34:12]line Контрольно-Кассовый Чек [06:34:12]line ПРОДАЖА [06:34:12]line ТРК (МРК, ГНК) : 22 [06:34:12]line Товар: 2710124130 [06:34:12]line Аи-92-К-2 [06:34:12]line 7.790 * 64.20 [06:34:12]line = 500.12 [06:34:12]line НДС 12% НСП 1% [06:34:12]line > о реализуемом товаре [06:34:12]line ОКРУГЛЕНИЕ: -0.12 [06:34:12]line ИТОГО: 500.00 [06:34:12]line Внесено: 500.00 [06:34:12]line СДАЧА: 0.00 [06:34:12]line НСП 1% : 4.43 [06:34:12]line НДС 12% : 53.11 [06:34:12]line Наличными: 500.00 [06:34:12]line Безнал.: 0.00 [06:34:12]line Место: АЗС № 92 "Партнер Нефть" [06:34:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [06:34:12]line СНО: Общий режим [06:34:12]line Чек 19 17.02.2025 06:34 [06:34:12]line Смена: 644 ФФД: 1.0 [06:34:12]line ЗНМ: 0300000118 [06:34:12]line РНМ: 0000000000091857 [06:34:12]line Версия ККМ: 001 [06:34:12]line ФМ: 0000000000871826 [06:34:12]line ФД: 186432 [06:34:12]line ФПД: 143872715387801 [06:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T063413&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186432&fm=143872715387801&tin=02508201610067®Number=0000000000091857&sum=50000 [06:34:12]OFD Sender: Processing packet 186432 [packets to send 49, broken 48] [06:34:12]ProducePacketName [06:34:12]name=ofd_packets/00186432 [06:34:12]OFD Sender: To server: pG, [06:34:12]CommunicateWithHost lk.salyk.kg:30040 [06:34:12]ConnectInit lk.salyk.kg [06:34:12]written 0, free lines is 4095 [06:34:12]Connected sock=10 [06:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 B0 07 01 DE DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 65 D8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D8 02 00 35 04 06 00 82 D9 FA 17 F3 99 B9 EC C9 17 DA 18 FD 3D [06:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 04 47 00 5F 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D8 02 00 F4 03 04 00 C0 7E B2 67 B6 04 01 00 00 46 41 FF D2 78 64 22 2E [06:34:13]CommunicateWithHost err = 0 [06:34:13]CheckOFDResponse [06:34:13]1017 (14) - 77093643461234 [06:34:13]1041 (16) - 0000000000871826 [06:34:13]1040 (4) - 186432 [06:34:13]1012 (4) - 17.02.2025 00:11 [06:34:13]1206 (1) - 0 [06:34:13]OFD Sender: Remove packet 186432 [06:34:13]ProducePacketName [06:34:13]name=ofd_packets/00186432 [06:34:13]NVStorageDeleteData [06:34:13]Write to MH i2c: 01 00 00 0F 14 23 [06:34:13]Write i2c OK [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: 01 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: 01 07 00 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 F2 0C 28 [06:34:13]RasterBufferAndPrint [06:34:13]line [06:34:13]line [06:34:13]line [06:34:13]line [06:34:13]line [06:34:13]written 0, free lines is 3320 [06:34:13]MH_Cut [06:34:13]Write to MH i2c: D1 01 00 16 14 01 FC [06:34:13]Write i2c OK [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 01 00 [06:34:13]MH_I2C_Read... [06:34:13]Read from MH i2c: D1 01 00 16 14 00 FB [06:34:13]Write to MH i2c: 01 00 00 17 14 2B [06:34:13]Write i2c OK [06:34:13]MH_I2C_Read... [06:34:13]OFD Sender: No OFD packet to send [06:34:13]*** Cut start [06:34:13]*** Partial cut [06:34:13]*** CUTSNS_PIN = 1 [06:34:13]*** CUTSNS_PIN = 0 [06:34:14]*** Brake cut motor [06:34:14]Read from MH i2c: 01 [06:34:14]MH_I2C_Read... [06:34:14]*** Stop cut motor [06:34:14]*** Cut end [06:34:14]Read from MH i2c: 01 07 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [06:34:14]process_action close_receipt done [06:34:14]requested_data is exist [06:34:14]produce_requested_data [06:34:14]requested_item fm.sn is exist - process it [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 11 00 00 [06:34:14]Write to MH i2c: E2 08 00 18 14 80 11 00 00 00 00 00 00 A6 [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 17 00 18 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [06:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [06:34:14]wFMCommunicate OK [06:34:14]requested_item fd.num is exist - process it [06:34:14]SAM_PROTO_GetFieldsCounters [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 00 00 [06:34:14]Write to MH i2c: E2 08 00 19 14 80 13 00 00 00 00 00 00 A9 [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 62 00 19 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [06:34:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetFieldsCounters done [06:34:14]requested_item shift.num is exist - process it [06:34:14]requested_item shift.opened is exist - process it [06:34:14]req_shift_opened [06:34:14]FM_GetShiftState [06:34:14]SAM_PROTO_GetShiftState [06:34:14]wFMCommunicate request_size=4 [06:34:14]MH_SAM_APDU [06:34:14]CAPDU: 80 13 01 00 [06:34:14]Write to MH i2c: E2 08 00 1A 14 80 13 01 00 00 00 00 00 AB [06:34:14]Write i2c OK [06:34:14]MH_I2C_Read... [06:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:14]Read from MH i2c: E2 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 [06:34:14]MH_I2C_Read... [06:34:14]Read from MH i2c: E2 0E 00 1A 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CF [06:34:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [06:34:14]wFMCommunicate OK [06:34:14]SAM_PROTO_GetShiftState done [06:34:14]FM_GetShiftState done [06:34:14]req_shift_opened done [06:34:14]requested_item shift.open_date is exist - process it [06:34:14]req_shift_open_date [06:34:14]req_shift_open_date done [06:34:14]produce_requested_data done [06:34:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186432,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [06:34:14]process_action_free close_receipt [06:34:14]json_value_free [06:34:14]json_value_free done [06:34:14]process_json_proto returns [06:34:14]Send response to host [06:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186432,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [06:34:14]free response buf [06:34:14]execute_script done [06:34:14]execute_script returns [06:34:14]free content buf [06:34:14]Sock 8.Close socket [06:34:14]Sock 8.Thread stoped [06:34:18]OFD Sender: No OFD packet to send [06:34:23]OFD Sender: No OFD packet to send [06:34:28]OFD Sender: No OFD packet to send [06:34:33]OFD Sender: No OFD packet to send [06:34:38]OFD Sender: No OFD packet to send [06:34:43]OFD Sender: No OFD packet to send [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:47:59]OFD Sender: No OFD packet to send [06:48:04]OFD Sender: No OFD packet to send [06:48:09]OFD Sender: No OFD packet to send [06:48:14]OFD Sender: No OFD packet to send [06:48:19]OFD Sender: No OFD packet to send [06:48:24]OFD Sender: No OFD packet to send [06:48:29]OFD Sender: No OFD packet to send [06:48:34]OFD Sender: No OFD packet to send [06:48:39]OFD Sender: No OFD packet to send [06:48:44]OFD Sender: No OFD packet to send [06:48:49]OFD Sender: No OFD packet to send [06:48:54]OFD Sender: No OFD packet to send [06:48:59]OFD Sender: No OFD packet to send [06:49:04]OFD Sender: No OFD packet to send [06:49:09]OFD Sender: No OFD packet to send [06:49:14]OFD Sender: No OFD packet to send [06:49:19]OFD Sender: No OFD packet to send [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:59]OFD Sender: No OFD packet to send [06:51:04]OFD Sender: No OFD packet to send [06:51:09]OFD Sender: No OFD packet to send [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [06:51:39]OFD Sender: No OFD packet to send [06:51:44]OFD Sender: No OFD packet to send [06:51:49]OFD Sender: No OFD packet to send [06:51:54]OFD Sender: No OFD packet to send [06:51:59]OFD Sender: No OFD packet to send [06:52:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:10]OFD Sender: No OFD packet to send [07:06:15]OFD Sender: No OFD packet to send [07:06:20]OFD Sender: No OFD packet to send [07:06:25]OFD Sender: No OFD packet to send [07:06:30]OFD Sender: No OFD packet to send [07:06:35]OFD Sender: No OFD packet to send [07:06:40]OFD Sender: No OFD packet to send [07:06:45]OFD Sender: No OFD packet to send [07:06:50]OFD Sender: No OFD packet to send [07:06:55]OFD Sender: No OFD packet to send [07:07:00]OFD Sender: No OFD packet to send [07:07:05]OFD Sender: No OFD packet to send [07:07:10]OFD Sender: No OFD packet to send [07:07:15]OFD Sender: No OFD packet to send [07:07:20]OFD Sender: No OFD packet to send [07:07:25]OFD Sender: No OFD packet to send [07:07:30]OFD Sender: No OFD packet to send [07:07:35]OFD Sender: No OFD packet to send [07:07:40]OFD Sender: No OFD packet to send [07:07:45]OFD Sender: No OFD packet to send [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:42]accept exits with 9 [07:33:42]New connection [07:33:42]New thread 3067501924 created [07:33:42]Thread 3067358564 joined [07:33:42]Waiting for new connection... [07:33:42] Sock 9.Parse request [07:33:42]Sock 9.Check first char [07:33:42]Sock 9.First char is OK [07:33:42]request: POST /json_proto HTTP/1.0 [07:33:42]Method: POST [07:33:42]URL: /json_proto [07:33:42]Method is POST - this is cgi request [07:33:42]url: /json_proto [07:33:42]query_string will be loaded in cgi processing [07:33:42]execute_cgi json_proto POST (null) [07:33:42]execute_cgi path=json_proto method=POST [07:33:42]POST find Content-Length [07:33:42]Host: 172.17.46.131:8080 [07:33:42]Content-Length: 677 [07:33:42]Content-Type: application/json [07:33:42] [07:33:42]POST finish read [07:33:42]Found Content-Length = 677 [07:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.630, "sum" : 620.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:42]execute_script... [07:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 8.630, "sum" : 620.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:33:42]POST & json_proto [07:33:42]process_json_proto [07:33:42]json parsed OK: [07:33:42]protocol is kg_v1.0 [07:33:42]action value=close_receipt [07:33:42]process_action close_receipt [07:33:42]cmd_close_receipt [07:33:42]MH_GetDate [07:33:42]Write to MH i2c: F0 00 00 1B 14 1E [07:33:42]Write i2c OK [07:33:42]MH_I2C_Read... [07:33:42]Read from MH i2c: F0 [07:33:42]MH_I2C_Read... [07:33:42]Read from MH i2c: F0 09 00 [07:33:42]MH_I2C_Read... [07:33:42]Read from MH i2c: F0 09 00 1B 14 00 5A E6 B2 67 7E 41 4F 65 F3 [07:33:42]GetLastDocTimeStamp 1739774053 [07:33:42]current date 1739777626 [07:33:42]FM_GetShiftState [07:33:42]SAM_PROTO_GetShiftState [07:33:42]wFMCommunicate request_size=4 [07:33:42]MH_SAM_APDU [07:33:42]CAPDU: 80 13 01 00 [07:33:42]Write to MH i2c: E2 08 00 1C 14 80 13 01 00 00 00 00 00 AD [07:33:42]Write i2c OK [07:33:42]MH_I2C_Read... [07:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:42]Read from MH i2c: E2 [07:33:42]MH_I2C_Read... [07:33:42]Read from MH i2c: E2 0E 00 [07:33:42]MH_I2C_Read... [07:33:42]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D1 [07:33:42]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:33:42]wFMCommunicate OK [07:33:42]SAM_PROTO_GetShiftState done [07:33:42]FM_GetShiftState done [07:33:42]opened in 1739752571 [07:33:42]opened+sec_in_day 1739838971 [07:33:42]quantity*price = 62049 [07:33:42]sum+1 = 62051 [07:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 20 17.02.2025 07:33 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186433 ФПД: 79152847432813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T073346&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186433&fm=79152847432813&tin=02508201610067®Number=0000000000091857&sum=62000 [07:33:44]StoreToDocumentArchive [07:33:44]shift 644 fd 186433 [07:33:44]save to /storage/0644/doc_00186433 [07:33:44]save last doc name /storage/0644/doc_00186433 to /storage/kkm_last_doc_name [07:33:44]save OK [07:33:44]Clear old archive folders... [07:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:33:44]tlvbuf is 01FB6AE0 [07:33:44]SAM_PROTO_ClearQueue [07:33:44]wFMCommunicate request_size=4 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 09 00 00 [07:33:44]Write to MH i2c: E2 08 00 29 14 80 09 00 00 00 00 00 00 AF [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [07:33:44]RAPDU: 90 00 [07:33:44]wFMCommunicate OK [07:33:44]SAM_PROTO_ClearQueue done [07:33:44]KKMCreateOFDPacket [07:33:44]OFDProtocolAddRootSTLVToBuf [07:33:44]FM_MakeSignedData [07:33:44]FM_MakeSignedData [07:33:44]SAM_PROTO_SignData [07:33:44]wFMCommunicate request_size=4 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 0D 01 02 [07:33:44]Write to MH i2c: E2 08 00 2A 14 80 0D 01 02 00 00 00 00 B7 [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [07:33:44]RAPDU: 90 00 [07:33:44]wFMCommunicate OK [07:33:44]wFMCommunicate request_size=255 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5A E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D8 02 00 35 04 06 00 47 [07:33:44]Write to MH i2c: E2 02 01 2B 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5A E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D8 02 00 35 04 06 00 47 00 00 BD [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [07:33:44]RAPDU: 90 00 [07:33:44]wFMCommunicate OK [07:33:44]wFMCommunicate request_size=10 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 0D 02 02 05 FD 35 5A AC 6D [07:33:44]Write to MH i2c: E2 0D 00 2C 14 80 0D 02 02 05 00 FD 35 5A AC 6D 00 00 69 [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [07:33:44]RAPDU: 90 00 [07:33:44]wFMCommunicate OK [07:33:44]wFMCommunicate request_size=4 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 0D 03 02 [07:33:44]Write to MH i2c: E2 08 00 2D 14 80 0D 03 02 00 00 00 00 BC [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 0B 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 0B 00 2D 14 00 86 7F 18 D3 67 F9 7F 3F 90 00 CB [07:33:44]RAPDU: 86 7F 18 D3 67 F9 7F 3F 90 00 [07:33:44]wFMCommunicate OK [07:33:44]SAM_PROTO_SignData done [07:33:44]FM_MakeSignedData done [07:33:44]CreateOFDProtocolMessage [07:33:44]wFMCommunicate request_size=4 [07:33:44]MH_SAM_APDU [07:33:44]CAPDU: 80 11 00 00 [07:33:44]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:44]Read from MH i2c: E2 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 17 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [07:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:33:44]wFMCommunicate OK [07:33:44]CreateOFDProtocolMessage done [07:33:44]OFDSenderStorePacket 186433 [07:33:44]StoreOFDPacket docnum=186433 [07:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 FD 07 01 D7 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5A E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D8 02 00 35 04 06 00 47 FD 35 5A AC 6D 86 7F 18 D3 67 F9 7F 3F [07:33:44]CheckFolder [07:33:44]dirname=/storage/ofd_packets [07:33:44]CheckFolder done [07:33:44]ProducePacketName [07:33:44]name=ofd_packets/00186433 [07:33:44]NVStorageSaveData ofd_packets/00186433 [07:33:44]File name is /storage/ofd_packets/00186433 [07:33:44]Write 301 bytes [07:33:44]NVStorageSaveData done [07:33:44]OFDSenderStorePacket done [07:33:44]KKMCreateOFDPacket done [07:33:44]NVStorageSaveData kkm_last_timestamp [07:33:44]File name is /storage/kkm_last_timestamp [07:33:44]Write 4 bytes [07:33:44]NVStorageSaveData done [07:33:44]ExternCall_PrintAddStr [07:33:44]wPrintStart [07:33:44]Write to MH i2c: 01 00 00 2F 14 43 [07:33:44]Write i2c OK [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: 01 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: 01 07 00 [07:33:44]MH_I2C_Read... [07:33:44]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [07:33:44]RasterBufferAndPrint [07:33:44]line Счет N : (1)411565 [07:33:44]line ИНН: 02508201610067 [07:33:44]line Контрольно-Кассовый Чек [07:33:44]line ПРОДАЖА [07:33:44]line ТРК (МРК, ГНК) : 33 [07:33:44]line Товар: 2710124500 [07:33:44]line Аи-95-К-5 [07:33:44]line 8.630 * 71.90 [07:33:44]line = 620.50 [07:33:44]line НДС 12% НСП 1% [07:33:44]line > о реализуемом товаре [07:33:44]line ОКРУГЛЕНИЕ: -0.50 [07:33:44]line ИТОГО: 620.00 [07:33:44]line Внесено: 620.00 [07:33:44]line СДАЧА: 0.00 [07:33:44]line НСП 1% : 5.49 [07:33:44]line НДС 12% : 65.89 [07:33:44]line Наличными: 620.00 [07:33:44]line Безнал.: 0.00 [07:33:44]line Место: АЗС № 92 "Партнер Нефть" [07:33:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:33:44]line СНО: Общий режим [07:33:44]line Чек 20 17.02.2025 07:33 [07:33:44]line Смена: 644 ФФД: 1.0 [07:33:44]line ЗНМ: 0300000118 [07:33:44]line РНМ: 0000000000091857 [07:33:44]line Версия ККМ: 001 [07:33:44]line ФМ: 0000000000871826 [07:33:44]line ФД: 186433 [07:33:44]line ФПД: 79152847432813 [07:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T073346&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186433&fm=79152847432813&tin=02508201610067®Number=0000000000091857&sum=62000 [07:33:44]OFD Sender: Processing packet 186433 [packets to send 49, broken 48] [07:33:44]ProducePacketName [07:33:44]name=ofd_packets/00186433 [07:33:44]OFD Sender: To server: pG, [07:33:44]CommunicateWithHost lk.salyk.kg:30040 [07:33:44]ConnectInit lk.salyk.kg [07:33:44]written 0, free lines is 4095 [07:33:45]Connected sock=10 [07:33:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 FD 07 01 D7 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B6 21 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 5A E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D8 02 00 35 04 06 00 47 FD 35 5A AC 6D 86 7F 18 D3 67 F9 7F 3F [07:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C A4 47 00 BE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D8 02 00 F4 03 04 00 B5 8C B2 67 B6 04 01 00 00 35 96 B9 10 7B 1F 90 4D [07:33:45]CommunicateWithHost err = 0 [07:33:45]CheckOFDResponse [07:33:45]1017 (14) - 77093643461234 [07:33:45]1041 (16) - 0000000000871826 [07:33:45]1040 (4) - 186433 [07:33:45]1012 (4) - 17.02.2025 01:11 [07:33:45]1206 (1) - 0 [07:33:45]OFD Sender: Remove packet 186433 [07:33:45]ProducePacketName [07:33:45]name=ofd_packets/00186433 [07:33:45]NVStorageDeleteData [07:33:45]Write to MH i2c: 01 00 00 5A 14 6E [07:33:45]Write i2c OK [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: 01 [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: 01 07 00 [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: 01 07 00 5A 14 00 00 00 00 00 F7 0C 78 [07:33:45]RasterBufferAndPrint [07:33:45]line [07:33:45]line [07:33:45]line [07:33:45]line [07:33:45]line [07:33:45]written 0, free lines is 3328 [07:33:45]MH_Cut [07:33:45]Write to MH i2c: D1 01 00 61 14 01 47 [07:33:45]Write i2c OK [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: D1 [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: D1 01 00 [07:33:45]MH_I2C_Read... [07:33:45]Read from MH i2c: D1 01 00 61 14 00 46 [07:33:45]Write to MH i2c: 01 00 00 62 14 76 [07:33:45]Write i2c OK [07:33:45]MH_I2C_Read... [07:33:45]OFD Sender: No OFD packet to send [07:33:46]*** Cut start [07:33:46]*** Partial cut [07:33:46]*** CUTSNS_PIN = 1 [07:33:46]*** CUTSNS_PIN = 0 [07:33:46]*** Brake cut motor [07:33:46]Read from MH i2c: 01 [07:33:46]MH_I2C_Read... [07:33:46]*** Stop cut motor [07:33:46]*** Cut end [07:33:46]Read from MH i2c: 01 07 00 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: 01 07 00 62 14 00 00 00 00 00 FF 0F 8B [07:33:46]process_action close_receipt done [07:33:46]requested_data is exist [07:33:46]produce_requested_data [07:33:46]requested_item fm.sn is exist - process it [07:33:46]wFMCommunicate request_size=4 [07:33:46]MH_SAM_APDU [07:33:46]CAPDU: 80 11 00 00 [07:33:46]Write to MH i2c: E2 08 00 63 14 80 11 00 00 00 00 00 00 F1 [07:33:46]Write i2c OK [07:33:46]MH_I2C_Read... [07:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:33:46]Read from MH i2c: E2 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 17 00 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 17 00 63 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [07:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:33:46]wFMCommunicate OK [07:33:46]requested_item fd.num is exist - process it [07:33:46]SAM_PROTO_GetFieldsCounters [07:33:46]wFMCommunicate request_size=4 [07:33:46]MH_SAM_APDU [07:33:46]CAPDU: 80 13 00 00 [07:33:46]Write to MH i2c: E2 08 00 64 14 80 13 00 00 00 00 00 00 F4 [07:33:46]Write i2c OK [07:33:46]MH_I2C_Read... [07:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:33:46]Read from MH i2c: E2 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 62 00 [07:33:46]MH_I2C_Read... [07:33:46]Read from MH i2c: E2 62 00 64 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [07:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:33:46]wFMCommunicate OK [07:33:46]SAM_PROTO_GetFieldsCounters done [07:33:46]requested_item shift.num is exist - process it [07:33:46]requested_item shift.opened is exist - process it [07:33:46]req_shift_opened [07:33:46]FM_GetShiftState [07:33:46]SAM_PROTO_GetShiftState [07:33:46]wFMCommunicate request_size=4 [07:33:46]MH_SAM_APDU [07:33:46]CAPDU: 80 13 01 00 [07:33:46]Write to MH i2c: E2 08 00 65 14 80 13 01 00 00 00 00 00 F6 [07:33:46]Write i2c OK [07:33:46]MH_I2C_Read... [07:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:33:47]Read from MH i2c: E2 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 0E 00 [07:33:47]MH_I2C_Read... [07:33:47]Read from MH i2c: E2 0E 00 65 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1A [07:33:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:33:47]wFMCommunicate OK [07:33:47]SAM_PROTO_GetShiftState done [07:33:47]FM_GetShiftState done [07:33:47]req_shift_opened done [07:33:47]requested_item shift.open_date is exist - process it [07:33:47]req_shift_open_date [07:33:47]req_shift_open_date done [07:33:47]produce_requested_data done [07:33:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186433,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [07:33:47]process_action_free close_receipt [07:33:47]json_value_free [07:33:47]json_value_free done [07:33:47]process_json_proto returns [07:33:47]Send response to host [07:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186433,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [07:33:47]free response buf [07:33:47]execute_script done [07:33:47]execute_script returns [07:33:47]free content buf [07:33:47]Sock 9.Close socket [07:33:47]Sock 9.Thread stoped [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:49]accept exits with 8 [07:34:49]New connection [07:34:49]New thread 3067358564 created [07:34:49]Thread 3067501924 joined [07:34:49]Waiting for new connection... [07:34:49] Sock 8.Parse request [07:34:49]Sock 8.Check first char [07:34:49]Sock 8.First char is OK [07:34:49]request: POST /json_proto HTTP/1.0 [07:34:49]Method: POST [07:34:49]URL: /json_proto [07:34:49]Method is POST - this is cgi request [07:34:49]url: /json_proto [07:34:49]query_string will be loaded in cgi processing [07:34:49]execute_cgi json_proto POST (null) [07:34:49]execute_cgi path=json_proto method=POST [07:34:49]POST find Content-Length [07:34:49]Host: 172.17.46.131:8080 [07:34:49]Content-Length: 678 [07:34:49]Content-Type: application/json [07:34:49] [07:34:49]POST finish read [07:34:49]Found Content-Length = 678 [07:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:49]execute_script... [07:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:49]POST & json_proto [07:34:49]process_json_proto [07:34:49]json parsed OK: [07:34:49]protocol is kg_v1.0 [07:34:49]action value=close_receipt [07:34:49]process_action close_receipt [07:34:49]cmd_close_receipt [07:34:49]MH_GetDate [07:34:49]Write to MH i2c: F0 00 00 66 14 69 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: F0 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: F0 09 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: F0 09 00 66 14 00 9C E6 B2 67 7E 41 4F 65 80 [07:34:49]GetLastDocTimeStamp 1739777626 [07:34:49]current date 1739777692 [07:34:49]FM_GetShiftState [07:34:49]SAM_PROTO_GetShiftState [07:34:49]wFMCommunicate request_size=4 [07:34:49]MH_SAM_APDU [07:34:49]CAPDU: 80 13 01 00 [07:34:49]Write to MH i2c: E2 08 00 67 14 80 13 01 00 00 00 00 00 F8 [07:34:49]Write i2c OK [07:34:49]MH_I2C_Read... [07:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:49]Read from MH i2c: E2 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 0E 00 [07:34:49]MH_I2C_Read... [07:34:49]Read from MH i2c: E2 0E 00 67 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1C [07:34:49]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:34:49]wFMCommunicate OK [07:34:49]SAM_PROTO_GetShiftState done [07:34:49]FM_GetShiftState done [07:34:49]opened in 1739752571 [07:34:49]opened+sec_in_day 1739838971 [07:34:49]quantity*price = 70042 [07:34:49]sum+1 = 70043 [07:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 21 17.02.2025 07:34 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186434 ФПД: 111019139075418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T073452&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186434&fm=111019139075418&tin=02508201610067®Number=0000000000091857&sum=70000 [07:34:50]StoreToDocumentArchive [07:34:50]shift 644 fd 186434 [07:34:50]save to /storage/0644/doc_00186434 [07:34:50]save last doc name /storage/0644/doc_00186434 to /storage/kkm_last_doc_name [07:34:50]save OK [07:34:50]Clear old archive folders... [07:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:34:50]tlvbuf is 01FA0F00 [07:34:50]SAM_PROTO_ClearQueue [07:34:50]wFMCommunicate request_size=4 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 09 00 00 [07:34:50]Write to MH i2c: E2 08 00 74 14 80 09 00 00 00 00 00 00 FA [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 74 14 00 90 00 FC [07:34:50]RAPDU: 90 00 [07:34:50]wFMCommunicate OK [07:34:50]SAM_PROTO_ClearQueue done [07:34:50]KKMCreateOFDPacket [07:34:50]OFDProtocolAddRootSTLVToBuf [07:34:50]FM_MakeSignedData [07:34:50]FM_MakeSignedData [07:34:50]SAM_PROTO_SignData [07:34:50]wFMCommunicate request_size=4 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 0D 01 02 [07:34:50]Write to MH i2c: E2 08 00 75 14 80 0D 01 02 00 00 00 00 02 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 75 14 00 90 00 FD [07:34:50]RAPDU: 90 00 [07:34:50]wFMCommunicate OK [07:34:50]wFMCommunicate request_size=255 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 9C E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D8 02 00 35 04 06 00 64 [07:34:50]Write to MH i2c: E2 02 01 76 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 9C E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D8 02 00 35 04 06 00 64 00 00 02 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 76 14 00 90 00 FE [07:34:50]RAPDU: 90 00 [07:34:50]wFMCommunicate OK [07:34:50]wFMCommunicate request_size=10 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 0D 02 02 05 F8 A8 59 0D 5A [07:34:50]Write to MH i2c: E2 0D 00 77 14 80 0D 02 02 05 00 F8 A8 59 0D 5A 00 00 6F [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [07:34:50]RAPDU: 90 00 [07:34:50]wFMCommunicate OK [07:34:50]wFMCommunicate request_size=4 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 0D 03 02 [07:34:50]Write to MH i2c: E2 08 00 78 14 80 0D 03 02 00 00 00 00 07 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 0B 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 0B 00 78 14 00 37 A7 90 1C BD F3 F9 C7 90 00 02 [07:34:50]RAPDU: 37 A7 90 1C BD F3 F9 C7 90 00 [07:34:50]wFMCommunicate OK [07:34:50]SAM_PROTO_SignData done [07:34:50]FM_MakeSignedData done [07:34:50]CreateOFDProtocolMessage [07:34:50]wFMCommunicate request_size=4 [07:34:50]MH_SAM_APDU [07:34:50]CAPDU: 80 11 00 00 [07:34:50]Write to MH i2c: E2 08 00 79 14 80 11 00 00 00 00 00 00 07 [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:50]Read from MH i2c: E2 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 17 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: E2 17 00 79 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [07:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:34:50]wFMCommunicate OK [07:34:50]CreateOFDProtocolMessage done [07:34:50]OFDSenderStorePacket 186434 [07:34:50]StoreOFDPacket docnum=186434 [07:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 DF 07 01 23 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 9C E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D8 02 00 35 04 06 00 64 F8 A8 59 0D 5A 37 A7 90 1C BD F3 F9 C7 [07:34:50]CheckFolder [07:34:50]dirname=/storage/ofd_packets [07:34:50]CheckFolder done [07:34:50]ProducePacketName [07:34:50]name=ofd_packets/00186434 [07:34:50]NVStorageSaveData ofd_packets/00186434 [07:34:50]File name is /storage/ofd_packets/00186434 [07:34:50]Write 301 bytes [07:34:50]NVStorageSaveData done [07:34:50]OFDSenderStorePacket done [07:34:50]KKMCreateOFDPacket done [07:34:50]NVStorageSaveData kkm_last_timestamp [07:34:50]File name is /storage/kkm_last_timestamp [07:34:50]Write 4 bytes [07:34:50]NVStorageSaveData done [07:34:50]ExternCall_PrintAddStr [07:34:50]wPrintStart [07:34:50]Write to MH i2c: 01 00 00 7A 14 8E [07:34:50]OFD Sender: Processing packet 186434 [packets to send 49, broken 48] [07:34:50]ProducePacketName [07:34:50]name=ofd_packets/00186434 [07:34:50]OFD Sender: To server: pG, [07:34:50]CommunicateWithHost lk.salyk.kg:30040 [07:34:50]ConnectInit lk.salyk.kg [07:34:50]Write i2c OK [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 07 00 [07:34:50]MH_I2C_Read... [07:34:50]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [07:34:50]RasterBufferAndPrint [07:34:50]line Счет N : (1)411566 [07:34:50]line ИНН: 02508201610067 [07:34:50]line Контрольно-Кассовый Чек [07:34:50]line ПРОДАЖА [07:34:50]line ТРК (МРК, ГНК) : 22 [07:34:50]line Товар: 2710124130 [07:34:50]line Аи-92-К-2 [07:34:50]line 10.910 * 64.20 [07:34:50]line = 700.42 [07:34:50]line НДС 12% НСП 1% [07:34:50]line > о реализуемом товаре [07:34:50]line ОКРУГЛЕНИЕ: -0.42 [07:34:50]line ИТОГО: 700.00 [07:34:50]line Внесено: 700.00 [07:34:50]line СДАЧА: 0.00 [07:34:50]line НСП 1% : 6.20 [07:34:50]line НДС 12% : 74.38 [07:34:50]line Наличными: 700.00 [07:34:50]line Безнал.: 0.00 [07:34:50]line Место: АЗС № 92 "Партнер Нефть" [07:34:50]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:34:50]line СНО: Общий режим [07:34:50]line Чек 21 17.02.2025 07:34 [07:34:50]line Смена: 644 ФФД: 1.0 [07:34:50]line ЗНМ: 0300000118 [07:34:50]line РНМ: 0000000000091857 [07:34:50]line Версия ККМ: 001 [07:34:50]line ФМ: 0000000000871826 [07:34:50]line ФД: 186434 [07:34:50]line ФПД: 111019139075418 [07:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T073452&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186434&fm=111019139075418&tin=02508201610067®Number=0000000000091857&sum=70000 [07:34:50]written 0, free lines is 4095 [07:34:51]Connected sock=10 [07:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B1 DF 07 01 23 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 9C E6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D8 02 00 35 04 06 00 64 F8 A8 59 0D 5A 37 A7 90 1C BD F3 F9 C7 [07:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FB FF 47 00 3A 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D8 02 00 F4 03 04 00 F7 8C B2 67 B6 04 01 00 00 E4 61 C0 84 8C 1D AB 42 [07:34:51]CommunicateWithHost err = 0 [07:34:51]CheckOFDResponse [07:34:51]1017 (14) - 77093643461234 [07:34:51]1041 (16) - 0000000000871826 [07:34:51]1040 (4) - 186434 [07:34:51]1012 (4) - 17.02.2025 01:12 [07:34:51]1206 (1) - 0 [07:34:51]OFD Sender: Remove packet 186434 [07:34:51]ProducePacketName [07:34:51]name=ofd_packets/00186434 [07:34:51]NVStorageDeleteData [07:34:51]Write to MH i2c: 01 00 00 A5 14 B9 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: 01 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: 01 07 00 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: 01 07 00 A5 14 00 00 00 00 00 EE 0C BA [07:34:51]RasterBufferAndPrint [07:34:51]line [07:34:51]line [07:34:51]line [07:34:51]line [07:34:51]line [07:34:51]written 0, free lines is 3316 [07:34:51]MH_Cut [07:34:51]Write to MH i2c: D1 01 00 AC 14 01 92 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: D1 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: D1 01 00 [07:34:51]MH_I2C_Read... [07:34:51]Read from MH i2c: D1 01 00 AC 14 00 91 [07:34:51]Write to MH i2c: 01 00 00 AD 14 C1 [07:34:51]Write i2c OK [07:34:51]MH_I2C_Read... [07:34:51]OFD Sender: No OFD packet to send [07:34:52]*** Cut start [07:34:52]*** Partial cut [07:34:52]*** CUTSNS_PIN = 1 [07:34:52]*** CUTSNS_PIN = 0 [07:34:52]*** Brake cut motor [07:34:52]Read from MH i2c: 01 [07:34:52]MH_I2C_Read... [07:34:52]*** Stop cut motor [07:34:52]*** Cut end [07:34:52]Read from MH i2c: 01 07 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: 01 07 00 AD 14 00 00 00 00 00 FF 0F D6 [07:34:52]process_action close_receipt done [07:34:52]requested_data is exist [07:34:52]produce_requested_data [07:34:52]requested_item fm.sn is exist - process it [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 11 00 00 [07:34:52]Write to MH i2c: E2 08 00 AE 14 80 11 00 00 00 00 00 00 3C [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:52]Read from MH i2c: E2 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 [07:34:52]MH_I2C_Read... [07:34:52]Read from MH i2c: E2 17 00 AE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [07:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:34:52]wFMCommunicate OK [07:34:52]requested_item fd.num is exist - process it [07:34:52]SAM_PROTO_GetFieldsCounters [07:34:52]wFMCommunicate request_size=4 [07:34:52]MH_SAM_APDU [07:34:52]CAPDU: 80 13 00 00 [07:34:52]Write to MH i2c: E2 08 00 AF 14 80 13 00 00 00 00 00 00 3F [07:34:52]Write i2c OK [07:34:52]MH_I2C_Read... [07:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:53]Read from MH i2c: E2 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 62 00 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 62 00 AF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [07:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:34:53]wFMCommunicate OK [07:34:53]SAM_PROTO_GetFieldsCounters done [07:34:53]requested_item shift.num is exist - process it [07:34:53]requested_item shift.opened is exist - process it [07:34:53]req_shift_opened [07:34:53]FM_GetShiftState [07:34:53]SAM_PROTO_GetShiftState [07:34:53]wFMCommunicate request_size=4 [07:34:53]MH_SAM_APDU [07:34:53]CAPDU: 80 13 01 00 [07:34:53]Write to MH i2c: E2 08 00 B0 14 80 13 01 00 00 00 00 00 41 [07:34:53]Write i2c OK [07:34:53]MH_I2C_Read... [07:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:53]Read from MH i2c: E2 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 0E 00 [07:34:53]MH_I2C_Read... [07:34:53]Read from MH i2c: E2 0E 00 B0 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 65 [07:34:53]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:34:53]wFMCommunicate OK [07:34:53]SAM_PROTO_GetShiftState done [07:34:53]FM_GetShiftState done [07:34:53]req_shift_opened done [07:34:53]requested_item shift.open_date is exist - process it [07:34:53]req_shift_open_date [07:34:53]req_shift_open_date done [07:34:53]produce_requested_data done [07:34:53]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186434,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [07:34:53]process_action_free close_receipt [07:34:53]json_value_free [07:34:53]json_value_free done [07:34:53]process_json_proto returns [07:34:53]Send response to host [07:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186434,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [07:34:53]free response buf [07:34:53]execute_script done [07:34:53]execute_script returns [07:34:53]free content buf [07:34:53]Sock 8.Close socket [07:34:53]Sock 8.Thread stoped [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:36:01]OFD Sender: No OFD packet to send [07:36:06]OFD Sender: No OFD packet to send [07:36:11]OFD Sender: No OFD packet to send [07:36:16]OFD Sender: No OFD packet to send [07:36:21]OFD Sender: No OFD packet to send [07:36:26]OFD Sender: No OFD packet to send [07:36:31]OFD Sender: No OFD packet to send [07:36:36]OFD Sender: No OFD packet to send [07:36:41]OFD Sender: No OFD packet to send [07:36:46]OFD Sender: No OFD packet to send [07:36:51]OFD Sender: No OFD packet to send [07:36:56]OFD Sender: No OFD packet to send [07:37:01]OFD Sender: No OFD packet to send [07:37:06]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:46]accept exits with 9 [07:40:46]New connection [07:40:46]New thread 3067501924 created [07:40:46]Thread 3067358564 joined [07:40:46]Waiting for new connection... [07:40:46] Sock 9.Parse request [07:40:46]Sock 9.Check first char [07:40:46]Sock 9.First char is OK [07:40:46]request: POST /json_proto HTTP/1.0 [07:40:46]Method: POST [07:40:46]URL: /json_proto [07:40:46]Method is POST - this is cgi request [07:40:46]url: /json_proto [07:40:46]query_string will be loaded in cgi processing [07:40:46]execute_cgi json_proto POST (null) [07:40:46]execute_cgi path=json_proto method=POST [07:40:46]POST find Content-Length [07:40:46]Host: 172.17.46.131:8080 [07:40:46]Content-Length: 799 [07:40:46]Content-Type: application/json [07:40:46] [07:40:46]POST finish read [07:40:46]Found Content-Length = 799 [07:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.200, "sum" : 2700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2700.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:46]execute_script... [07:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.200, "sum" : 2700.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2700.72 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:46]POST & json_proto [07:40:46]process_json_proto [07:40:46]json parsed OK: [07:40:46]protocol is kg_v1.0 [07:40:46]action value=close_receipt [07:40:46]process_action close_receipt [07:40:46]cmd_close_receipt [07:40:46]MH_GetDate [07:40:46]Write to MH i2c: F0 00 00 B1 14 B4 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: F0 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: F0 09 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: F0 09 00 B1 14 00 02 E8 B2 67 7E 41 4F 65 33 [07:40:46]GetLastDocTimeStamp 1739777692 [07:40:46]current date 1739778050 [07:40:46]FM_GetShiftState [07:40:46]SAM_PROTO_GetShiftState [07:40:46]wFMCommunicate request_size=4 [07:40:46]MH_SAM_APDU [07:40:46]CAPDU: 80 13 01 00 [07:40:46]Write to MH i2c: E2 08 00 B2 14 80 13 01 00 00 00 00 00 43 [07:40:46]Write i2c OK [07:40:46]MH_I2C_Read... [07:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:46]Read from MH i2c: E2 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 0E 00 [07:40:46]MH_I2C_Read... [07:40:46]Read from MH i2c: E2 0E 00 B2 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 67 [07:40:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:40:46]wFMCommunicate OK [07:40:46]SAM_PROTO_GetShiftState done [07:40:46]FM_GetShiftState done [07:40:46]opened in 1739752571 [07:40:46]opened+sec_in_day 1739838971 [07:40:46]quantity*price = 270072 [07:40:46]sum+1 = 270073 [07:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2700.72 НСП 1% : 23.90 НДС 12% : 286.80 Наличными: 0.00 Безнал.: 2700.72 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 22 17.02.2025 07:40 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186435 ФПД: 96886205794942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T074050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186435&fm=96886205794942&tin=02508201610067®Number=0000000000091857&sum=270072 [07:40:47]StoreToDocumentArchive [07:40:47]shift 644 fd 186435 [07:40:47]save to /storage/0644/doc_00186435 [07:40:47]save last doc name /storage/0644/doc_00186435 to /storage/kkm_last_doc_name [07:40:47]save OK [07:40:47]Clear old archive folders... [07:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:40:47]tlvbuf is 01FF6BF0 [07:40:47]SAM_PROTO_ClearQueue [07:40:47]wFMCommunicate request_size=4 [07:40:47]MH_SAM_APDU [07:40:47]CAPDU: 80 09 00 00 [07:40:47]Write to MH i2c: E2 08 00 BF 14 80 09 00 00 00 00 00 00 45 [07:40:47]Write i2c OK [07:40:47]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 BF 14 00 90 00 47 [07:40:48]RAPDU: 90 00 [07:40:48]wFMCommunicate OK [07:40:48]SAM_PROTO_ClearQueue done [07:40:48]KKMCreateOFDPacket [07:40:48]OFDProtocolAddRootSTLVToBuf [07:40:48]FM_MakeSignedData [07:40:48]FM_MakeSignedData [07:40:48]SAM_PROTO_SignData [07:40:48]wFMCommunicate request_size=4 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 0D 01 02 [07:40:48]Write to MH i2c: E2 08 00 C0 14 80 0D 01 02 00 00 00 00 4D [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 C0 14 00 90 00 48 [07:40:48]RAPDU: 90 00 [07:40:48]wFMCommunicate OK [07:40:48]wFMCommunicate request_size=255 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D8 02 00 35 04 06 00 58 1E 13 E1 [07:40:48]Write to MH i2c: E2 02 01 C1 14 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 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D8 02 00 35 04 06 00 58 1E 13 E1 00 00 53 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 C1 14 00 90 00 49 [07:40:48]RAPDU: 90 00 [07:40:48]wFMCommunicate OK [07:40:48]wFMCommunicate request_size=7 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 0D 02 02 02 4A 7E [07:40:48]Write to MH i2c: E2 0A 00 C2 14 80 0D 02 02 02 00 4A 7E 00 00 1C [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [07:40:48]RAPDU: 90 00 [07:40:48]wFMCommunicate OK [07:40:48]wFMCommunicate request_size=4 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 0D 03 02 [07:40:48]Write to MH i2c: E2 08 00 C3 14 80 0D 03 02 00 00 00 00 52 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 0B 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 0B 00 C3 14 00 59 1C B0 50 92 F6 91 D3 90 00 B4 [07:40:48]RAPDU: 59 1C B0 50 92 F6 91 D3 90 00 [07:40:48]wFMCommunicate OK [07:40:48]SAM_PROTO_SignData done [07:40:48]FM_MakeSignedData done [07:40:48]CreateOFDProtocolMessage [07:40:48]wFMCommunicate request_size=4 [07:40:48]MH_SAM_APDU [07:40:48]CAPDU: 80 11 00 00 [07:40:48]Write to MH i2c: E2 08 00 C4 14 80 11 00 00 00 00 00 00 52 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:48]Read from MH i2c: E2 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 17 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: E2 17 00 C4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [07:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:40:48]wFMCommunicate OK [07:40:48]CreateOFDProtocolMessage done [07:40:48]OFDSenderStorePacket 186435 [07:40:48]StoreOFDPacket docnum=186435 [07:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 37 41 04 01 D7 D2 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 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D8 02 00 35 04 06 00 58 1E 13 E1 4A 7E 59 1C B0 50 92 F6 91 D3 [07:40:48]CheckFolder [07:40:48]dirname=/storage/ofd_packets [07:40:48]CheckFolder done [07:40:48]ProducePacketName [07:40:48]name=ofd_packets/00186435 [07:40:48]NVStorageSaveData ofd_packets/00186435 [07:40:48]File name is /storage/ofd_packets/00186435 [07:40:48]Write 298 bytes [07:40:48]NVStorageSaveData done [07:40:48]OFDSenderStorePacket done [07:40:48]KKMCreateOFDPacket done [07:40:48]NVStorageSaveData kkm_last_timestamp [07:40:48]File name is /storage/kkm_last_timestamp [07:40:48]Write 4 bytes [07:40:48]NVStorageSaveData done [07:40:48]ExternCall_PrintAddStr [07:40:48]wPrintStart [07:40:48]Write to MH i2c: 01 00 00 C5 14 D9 [07:40:48]Write i2c OK [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 07 00 [07:40:48]MH_I2C_Read... [07:40:48]Read from MH i2c: 01 07 00 C5 14 00 00 00 00 00 FF 0F EE [07:40:48]RasterBufferAndPrint [07:40:48]line Счет N : (1)411567 [07:40:48]line ИНН: 02508201610067 [07:40:48]line Контрольно-Кассовый Чек [07:40:48]line ПРОДАЖА [07:40:48]line ТРК (МРК, ГНК) : 5 [07:40:48]line Товар: 2710194210 [07:40:48]line ДТ-К-5 [07:40:48]line 37.200 * 72.60 [07:40:48]line = 2700.72 [07:40:48]line НДС 12% НСП 1% [07:40:48]line > о реализуемом товаре [07:40:48]line ИТОГО: 2700.72 [07:40:48]line НСП 1% : 23.90 [07:40:48]line НДС 12% : 286.80 [07:40:48]line Наличными: 0.00 [07:40:48]line Безнал.: 2700.72 [07:40:48]line Место: АЗС № 92 "Партнер Нефть" [07:40:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:40:48]line СНО: Общий режим [07:40:48]line Чек 22 17.02.2025 07:40 [07:40:48]line Смена: 644 ФФД: 1.0 [07:40:48]line ЗНМ: 0300000118 [07:40:48]line РНМ: 0000000000091857 [07:40:48]line Версия ККМ: 001 [07:40:48]line Платежная система: O! деньги [07:40:48]line ФМ: 0000000000871826 [07:40:48]line ФД: 186435 [07:40:48]line ФПД: 96886205794942 [07:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T074050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186435&fm=96886205794942&tin=02508201610067®Number=0000000000091857&sum=270072 [07:40:48]OFD Sender: Processing packet 186435 [packets to send 49, broken 48] [07:40:48]ProducePacketName [07:40:48]name=ofd_packets/00186435 [07:40:48]OFD Sender: To server: pG, [07:40:48]CommunicateWithHost lk.salyk.kg:30040 [07:40:48]ConnectInit lk.salyk.kg [07:40:48]written 0, free lines is 4095 [07:40:48]Connected sock=8 [07:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 37 41 04 01 D7 D2 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 50 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 02 E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D8 02 00 35 04 06 00 58 1E 13 E1 4A 7E 59 1C B0 50 92 F6 91 D3 [07:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 39 AD 47 00 D3 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 43 D8 02 00 F4 03 04 00 5D 8E B2 67 B6 04 01 00 00 40 5F 07 16 87 42 2E 19 [07:40:49]CommunicateWithHost err = 0 [07:40:49]CheckOFDResponse [07:40:49]1017 (14) - 77093643461234 [07:40:49]1041 (16) - 0000000000871826 [07:40:49]1040 (4) - 186435 [07:40:49]1012 (4) - 17.02.2025 01:18 [07:40:49]1206 (1) - 0 [07:40:49]OFD Sender: Remove packet 186435 [07:40:49]ProducePacketName [07:40:49]name=ofd_packets/00186435 [07:40:49]NVStorageDeleteData [07:40:49]Write to MH i2c: 01 00 00 EF 14 03 [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: 01 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: 01 07 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 18 0D 2F [07:40:49]RasterBufferAndPrint [07:40:49]line [07:40:49]line [07:40:49]line [07:40:49]line [07:40:49]line [07:40:49]written 0, free lines is 3358 [07:40:49]MH_Cut [07:40:49]Write to MH i2c: D1 01 00 F6 14 01 DC [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: D1 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: D1 01 00 [07:40:49]MH_I2C_Read... [07:40:49]Read from MH i2c: D1 01 00 F6 14 00 DB [07:40:49]Write to MH i2c: 01 00 00 F7 14 0B [07:40:49]Write i2c OK [07:40:49]MH_I2C_Read... [07:40:49]OFD Sender: No OFD packet to send [07:40:49]*** Cut start [07:40:49]*** Partial cut [07:40:49]*** CUTSNS_PIN = 1 [07:40:50]*** CUTSNS_PIN = 0 [07:40:50]*** Brake cut motor [07:40:50]Read from MH i2c: 01 [07:40:50]MH_I2C_Read... [07:40:50]*** Stop cut motor [07:40:50]*** Cut end [07:40:50]Read from MH i2c: 01 07 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: 01 07 00 F7 14 00 00 00 00 00 FF 0F 20 [07:40:50]process_action close_receipt done [07:40:50]requested_data is exist [07:40:50]produce_requested_data [07:40:50]requested_item fm.sn is exist - process it [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 11 00 00 [07:40:50]Write to MH i2c: E2 08 00 F8 14 80 11 00 00 00 00 00 00 86 [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 17 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 17 00 F8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [07:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:40:50]wFMCommunicate OK [07:40:50]requested_item fd.num is exist - process it [07:40:50]SAM_PROTO_GetFieldsCounters [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 13 00 00 [07:40:50]Write to MH i2c: E2 08 00 F9 14 80 13 00 00 00 00 00 00 89 [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 62 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 62 00 F9 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [07:40:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 43 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:50]wFMCommunicate OK [07:40:50]SAM_PROTO_GetFieldsCounters done [07:40:50]requested_item shift.num is exist - process it [07:40:50]requested_item shift.opened is exist - process it [07:40:50]req_shift_opened [07:40:50]FM_GetShiftState [07:40:50]SAM_PROTO_GetShiftState [07:40:50]wFMCommunicate request_size=4 [07:40:50]MH_SAM_APDU [07:40:50]CAPDU: 80 13 01 00 [07:40:50]Write to MH i2c: E2 08 00 FA 14 80 13 01 00 00 00 00 00 8B [07:40:50]Write i2c OK [07:40:50]MH_I2C_Read... [07:40:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:50]Read from MH i2c: E2 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 0E 00 [07:40:50]MH_I2C_Read... [07:40:50]Read from MH i2c: E2 0E 00 FA 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AF [07:40:50]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:40:50]wFMCommunicate OK [07:40:50]SAM_PROTO_GetShiftState done [07:40:50]FM_GetShiftState done [07:40:50]req_shift_opened done [07:40:50]requested_item shift.open_date is exist - process it [07:40:50]req_shift_open_date [07:40:50]req_shift_open_date done [07:40:50]produce_requested_data done [07:40:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186435,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [07:40:50]process_action_free close_receipt [07:40:50]json_value_free [07:40:50]json_value_free done [07:40:50]process_json_proto returns [07:40:50]Send response to host [07:40:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186435,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [07:40:50]free response buf [07:40:50]execute_script done [07:40:50]execute_script returns [07:40:50]free content buf [07:40:50]Sock 9.Close socket [07:40:50]Sock 9.Thread stoped [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:47]accept exits with 10 [07:41:47]New connection [07:41:47]New thread 3067358564 created [07:41:47]Thread 3067501924 joined [07:41:47]Waiting for new connection... [07:41:47] Sock 10.Parse request [07:41:47]Sock 10.Check first char [07:41:47]Sock 10.First char is OK [07:41:47]request: POST /json_proto HTTP/1.0 [07:41:47]Method: POST [07:41:47]URL: /json_proto [07:41:47]Method is POST - this is cgi request [07:41:47]url: /json_proto [07:41:47]query_string will be loaded in cgi processing [07:41:47]execute_cgi json_proto POST (null) [07:41:47]execute_cgi path=json_proto method=POST [07:41:47]POST find Content-Length [07:41:47]Host: 172.17.46.131:8080 [07:41:47]Content-Length: 677 [07:41:47]Content-Type: application/json [07:41:47] [07:41:47]POST finish read [07:41:47]Found Content-Length = 677 [07:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:47]execute_script... [07:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:47]POST & json_proto [07:41:47]process_json_proto [07:41:47]json parsed OK: [07:41:47]protocol is kg_v1.0 [07:41:47]action value=close_receipt [07:41:47]process_action close_receipt [07:41:47]cmd_close_receipt [07:41:47]MH_GetDate [07:41:47]Write to MH i2c: F0 00 00 FB 14 FE [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 09 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: F0 09 00 FB 14 00 3E E8 B2 67 7E 41 4F 65 B9 [07:41:47]GetLastDocTimeStamp 1739778050 [07:41:47]current date 1739778110 [07:41:47]FM_GetShiftState [07:41:47]SAM_PROTO_GetShiftState [07:41:47]wFMCommunicate request_size=4 [07:41:47]MH_SAM_APDU [07:41:47]CAPDU: 80 13 01 00 [07:41:47]Write to MH i2c: E2 08 00 FC 14 80 13 01 00 00 00 00 00 8D [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:47]Read from MH i2c: E2 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 0E 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: E2 0E 00 FC 14 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B1 [07:41:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:41:47]wFMCommunicate OK [07:41:47]SAM_PROTO_GetShiftState done [07:41:47]FM_GetShiftState done [07:41:47]opened in 1739752571 [07:41:47]opened+sec_in_day 1739838971 [07:41:47]quantity*price = 50011 [07:41:47]sum+1 = 50013 [07:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 23 17.02.2025 07:41 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186436 ФПД: 57447165342706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T074150&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186436&fm=57447165342706&tin=02508201610067®Number=0000000000091857&sum=50000 [07:41:48]StoreToDocumentArchive [07:41:48]shift 644 fd 186436 [07:41:48]save to /storage/0644/doc_00186436 [07:41:48]save last doc name /storage/0644/doc_00186436 to /storage/kkm_last_doc_name [07:41:48]save OK [07:41:48]Clear old archive folders... [07:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:48]tlvbuf is 01F9CBA0 [07:41:48]SAM_PROTO_ClearQueue [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 09 00 00 [07:41:48]Write to MH i2c: E2 08 00 09 15 80 09 00 00 00 00 00 00 90 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_ClearQueue done [07:41:48]KKMCreateOFDPacket [07:41:48]OFDProtocolAddRootSTLVToBuf [07:41:48]FM_MakeSignedData [07:41:48]FM_MakeSignedData [07:41:48]SAM_PROTO_SignData [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 01 02 [07:41:48]Write to MH i2c: E2 08 00 0A 15 80 0D 01 02 00 00 00 00 98 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [07:41:48]RAPDU: 90 00 [07:41:48]wFMCommunicate OK [07:41:48]wFMCommunicate request_size=255 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 3E E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D8 02 00 35 04 06 00 34 [07:41:48]Write to MH i2c: E2 02 01 0B 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 3E E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D8 02 00 35 04 06 00 34 00 00 5F [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [07:41:49]RAPDU: 90 00 [07:41:49]wFMCommunicate OK [07:41:49]wFMCommunicate request_size=10 [07:41:49]MH_SAM_APDU [07:41:49]CAPDU: 80 0D 02 02 05 3F 75 E2 33 F2 [07:41:49]Write to MH i2c: E2 0D 00 0C 15 80 0D 02 02 05 00 3F 75 E2 33 F2 00 00 60 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 0C 15 00 90 00 95 [07:41:49]RAPDU: 90 00 [07:41:49]wFMCommunicate OK [07:41:49]wFMCommunicate request_size=4 [07:41:49]MH_SAM_APDU [07:41:49]CAPDU: 80 0D 03 02 [07:41:49]Write to MH i2c: E2 08 00 0D 15 80 0D 03 02 00 00 00 00 9D [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 0B 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 0B 00 0D 15 00 4C CC F8 82 DC C9 C7 7A 90 00 16 [07:41:49]RAPDU: 4C CC F8 82 DC C9 C7 7A 90 00 [07:41:49]wFMCommunicate OK [07:41:49]SAM_PROTO_SignData done [07:41:49]FM_MakeSignedData done [07:41:49]CreateOFDProtocolMessage [07:41:49]wFMCommunicate request_size=4 [07:41:49]MH_SAM_APDU [07:41:49]CAPDU: 80 11 00 00 [07:41:49]Write to MH i2c: E2 08 00 0E 15 80 11 00 00 00 00 00 00 9D [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 17 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 17 00 0E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [07:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:41:49]wFMCommunicate OK [07:41:49]CreateOFDProtocolMessage done [07:41:49]OFDSenderStorePacket 186436 [07:41:49]StoreOFDPacket docnum=186436 [07:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 8D 07 01 E4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 3E E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D8 02 00 35 04 06 00 34 3F 75 E2 33 F2 4C CC F8 82 DC C9 C7 7A [07:41:49]CheckFolder [07:41:49]dirname=/storage/ofd_packets [07:41:49]CheckFolder done [07:41:49]ProducePacketName [07:41:49]name=ofd_packets/00186436 [07:41:49]NVStorageSaveData ofd_packets/00186436 [07:41:49]File name is /storage/ofd_packets/00186436 [07:41:49]Write 301 bytes [07:41:49]NVStorageSaveData done [07:41:49]OFDSenderStorePacket done [07:41:49]KKMCreateOFDPacket done [07:41:49]NVStorageSaveData kkm_last_timestamp [07:41:49]File name is /storage/kkm_last_timestamp [07:41:49]Write 4 bytes [07:41:49]NVStorageSaveData done [07:41:49]ExternCall_PrintAddStr [07:41:49]wPrintStart [07:41:49]Write to MH i2c: 01 00 00 0F 15 24 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 0F 15 00 00 00 00 00 FF 0F 39 [07:41:49]RasterBufferAndPrint [07:41:49]line Счет N : (1)411568 [07:41:49]line ИНН: 02508201610067 [07:41:49]line Контрольно-Кассовый Чек [07:41:49]line ПРОДАЖА [07:41:49]line ТРК (МРК, ГНК) : 22 [07:41:49]line Товар: 2710124130 [07:41:49]line Аи-92-К-2 [07:41:49]line 7.790 * 64.20 [07:41:49]line = 500.12 [07:41:49]line НДС 12% НСП 1% [07:41:49]line > о реализуемом товаре [07:41:49]line ОКРУГЛЕНИЕ: -0.12 [07:41:49]line ИТОГО: 500.00 [07:41:49]line Внесено: 500.00 [07:41:49]line СДАЧА: 0.00 [07:41:49]line НСП 1% : 4.43 [07:41:49]line НДС 12% : 53.11 [07:41:49]line Наличными: 500.00 [07:41:49]line Безнал.: 0.00 [07:41:49]line Место: АЗС № 92 "Партнер Нефть" [07:41:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:41:49]line СНО: Общий режим [07:41:49]line Чек 23 17.02.2025 07:41 [07:41:49]line Смена: 644 ФФД: 1.0 [07:41:49]line ЗНМ: 0300000118 [07:41:49]line РНМ: 0000000000091857 [07:41:49]line Версия ККМ: 001 [07:41:49]line ФМ: 0000000000871826 [07:41:49]line ФД: 186436 [07:41:49]line ФПД: 57447165342706 [07:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T074150&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186436&fm=57447165342706&tin=02508201610067®Number=0000000000091857&sum=50000 [07:41:49]OFD Sender: Processing packet 186436 [packets to send 49, broken 48] [07:41:49]ProducePacketName [07:41:49]name=ofd_packets/00186436 [07:41:49]OFD Sender: To server: pG, [07:41:49]CommunicateWithHost lk.salyk.kg:30040 [07:41:49]ConnectInit lk.salyk.kg [07:41:49]written 0, free lines is 4095 [07:41:49]Connected sock=9 [07:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C7 8D 07 01 E4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 3E E8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D8 02 00 35 04 06 00 34 3F 75 E2 33 F2 4C CC F8 82 DC C9 C7 7A [07:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC F0 47 00 11 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 44 D8 02 00 F4 03 04 00 99 8E B2 67 B6 04 01 00 00 6D 58 0A 6F 5E B8 63 50 [07:41:49]CommunicateWithHost err = 0 [07:41:49]CheckOFDResponse [07:41:49]1017 (14) - 77093643461234 [07:41:49]1041 (16) - 0000000000871826 [07:41:49]1040 (4) - 186436 [07:41:49]1012 (4) - 17.02.2025 01:19 [07:41:49]1206 (1) - 0 [07:41:49]OFD Sender: Remove packet 186436 [07:41:49]ProducePacketName [07:41:49]name=ofd_packets/00186436 [07:41:49]NVStorageDeleteData [07:41:49]Write to MH i2c: 01 00 00 3A 15 4F [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 EC 0C 4E [07:41:49]RasterBufferAndPrint [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]line [07:41:49]written 0, free lines is 3315 [07:41:49]MH_Cut [07:41:49]Write to MH i2c: D1 01 00 41 15 01 28 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 01 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: D1 01 00 41 15 00 27 [07:41:49]Write to MH i2c: 01 00 00 42 15 57 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:50]OFD Sender: No OFD packet to send [07:41:50]*** Cut start [07:41:50]*** Partial cut [07:41:50]*** CUTSNS_PIN = 1 [07:41:50]*** CUTSNS_PIN = 0 [07:41:51]*** Brake cut motor [07:41:51]Read from MH i2c: 01 [07:41:51]MH_I2C_Read... [07:41:51]*** Stop cut motor [07:41:51]*** Cut end [07:41:51]Read from MH i2c: 01 07 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: 01 07 00 42 15 00 00 00 00 00 FF 0F 6C [07:41:51]process_action close_receipt done [07:41:51]requested_data is exist [07:41:51]produce_requested_data [07:41:51]requested_item fm.sn is exist - process it [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 11 00 00 [07:41:51]Write to MH i2c: E2 08 00 43 15 80 11 00 00 00 00 00 00 D2 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 17 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 17 00 43 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [07:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:41:51]wFMCommunicate OK [07:41:51]requested_item fd.num is exist - process it [07:41:51]SAM_PROTO_GetFieldsCounters [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 00 00 [07:41:51]Write to MH i2c: E2 08 00 44 15 80 13 00 00 00 00 00 00 D5 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 62 00 44 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [07:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 44 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetFieldsCounters done [07:41:51]requested_item shift.num is exist - process it [07:41:51]requested_item shift.opened is exist - process it [07:41:51]req_shift_opened [07:41:51]FM_GetShiftState [07:41:51]SAM_PROTO_GetShiftState [07:41:51]wFMCommunicate request_size=4 [07:41:51]MH_SAM_APDU [07:41:51]CAPDU: 80 13 01 00 [07:41:51]Write to MH i2c: E2 08 00 45 15 80 13 01 00 00 00 00 00 D7 [07:41:51]Write i2c OK [07:41:51]MH_I2C_Read... [07:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:51]Read from MH i2c: E2 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 [07:41:51]MH_I2C_Read... [07:41:51]Read from MH i2c: E2 0E 00 45 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FB [07:41:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:41:51]wFMCommunicate OK [07:41:51]SAM_PROTO_GetShiftState done [07:41:51]FM_GetShiftState done [07:41:51]req_shift_opened done [07:41:51]requested_item shift.open_date is exist - process it [07:41:51]req_shift_open_date [07:41:51]req_shift_open_date done [07:41:51]produce_requested_data done [07:41:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186436,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [07:41:51]process_action_free close_receipt [07:41:51]json_value_free [07:41:51]json_value_free done [07:41:51]process_json_proto returns [07:41:51]Send response to host [07:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186436,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [07:41:51]free response buf [07:41:51]execute_script done [07:41:51]execute_script returns [07:41:51]free content buf [07:41:51]Sock 10.Close socket [07:41:51]Sock 10.Thread stoped [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:53]accept exits with 8 [07:51:53]New connection [07:51:53]New thread 3067501924 created [07:51:53]Thread 3067358564 joined [07:51:53]Waiting for new connection... [07:51:53] Sock 8.Parse request [07:51:53]Sock 8.Check first char [07:51:53]Sock 8.First char is OK [07:51:53]request: POST /json_proto HTTP/1.0 [07:51:53]Method: POST [07:51:53]URL: /json_proto [07:51:53]Method is POST - this is cgi request [07:51:53]url: /json_proto [07:51:53]query_string will be loaded in cgi processing [07:51:53]execute_cgi json_proto POST (null) [07:51:53]execute_cgi path=json_proto method=POST [07:51:53]POST find Content-Length [07:51:53]Host: 172.17.46.131:8080 [07:51:53]Content-Length: 677 [07:51:53]Content-Type: application/json [07:51:53] [07:51:53]POST finish read [07:51:53]Found Content-Length = 677 [07:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:53]execute_script... [07:51: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)411569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:53]POST & json_proto [07:51:53]process_json_proto [07:51:53]json parsed OK: [07:51:53]protocol is kg_v1.0 [07:51:53]action value=close_receipt [07:51:53]process_action close_receipt [07:51:53]cmd_close_receipt [07:51:53]MH_GetDate [07:51:53]Write to MH i2c: F0 00 00 46 15 4A [07:51:53]Write i2c OK [07:51:53]MH_I2C_Read... [07:51:53]Read from MH i2c: F0 [07:51:53]MH_I2C_Read... [07:51:53]Read from MH i2c: F0 09 00 [07:51:53]MH_I2C_Read... [07:51:53]Read from MH i2c: F0 09 00 46 15 00 9C EA B2 67 7E 41 4F 65 65 [07:51:53]GetLastDocTimeStamp 1739778110 [07:51:53]current date 1739778716 [07:51:53]FM_GetShiftState [07:51:53]SAM_PROTO_GetShiftState [07:51:53]wFMCommunicate request_size=4 [07:51:53]MH_SAM_APDU [07:51:53]CAPDU: 80 13 01 00 [07:51:53]Write to MH i2c: E2 08 00 47 15 80 13 01 00 00 00 00 00 D9 [07:51:53]Write i2c OK [07:51:53]MH_I2C_Read... [07:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:53]Read from MH i2c: E2 [07:51:53]MH_I2C_Read... [07:51:53]Read from MH i2c: E2 0E 00 [07:51:53]MH_I2C_Read... [07:51:53]Read from MH i2c: E2 0E 00 47 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FD [07:51:53]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:51:53]wFMCommunicate OK [07:51:53]SAM_PROTO_GetShiftState done [07:51:53]FM_GetShiftState done [07:51:53]opened in 1739752571 [07:51:53]opened+sec_in_day 1739838971 [07:51:53]quantity*price = 60027 [07:51:53]sum+1 = 60028 [07:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 24 17.02.2025 07:51 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186437 ФПД: 8589261375485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T075156&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186437&fm=8589261375485&tin=02508201610067®Number=0000000000091857&sum=60000 [07:51:54]StoreToDocumentArchive [07:51:54]shift 644 fd 186437 [07:51:54]save to /storage/0644/doc_00186437 [07:51:54]save last doc name /storage/0644/doc_00186437 to /storage/kkm_last_doc_name [07:51:54]save OK [07:51:54]Clear old archive folders... [07:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:54]tlvbuf is 01FB6500 [07:51:54]SAM_PROTO_ClearQueue [07:51:54]wFMCommunicate request_size=4 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 09 00 00 [07:51:54]Write to MH i2c: E2 08 00 54 15 80 09 00 00 00 00 00 00 DB [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 54 15 00 90 00 DD [07:51:54]RAPDU: 90 00 [07:51:54]wFMCommunicate OK [07:51:54]SAM_PROTO_ClearQueue done [07:51:54]KKMCreateOFDPacket [07:51:54]OFDProtocolAddRootSTLVToBuf [07:51:54]FM_MakeSignedData [07:51:54]FM_MakeSignedData [07:51:54]SAM_PROTO_SignData [07:51:54]wFMCommunicate request_size=4 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 0D 01 02 [07:51:54]Write to MH i2c: E2 08 00 55 15 80 0D 01 02 00 00 00 00 E3 [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 55 15 00 90 00 DE [07:51:54]RAPDU: 90 00 [07:51:54]wFMCommunicate OK [07:51:54]wFMCommunicate request_size=255 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9C EA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D8 02 00 35 04 06 00 07 [07:51:54]Write to MH i2c: E2 02 01 56 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9C EA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D8 02 00 35 04 06 00 07 00 00 35 [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 56 15 00 90 00 DF [07:51:54]RAPDU: 90 00 [07:51:54]wFMCommunicate OK [07:51:54]wFMCommunicate request_size=10 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 0D 02 02 05 CF D7 DF 87 FD [07:51:54]Write to MH i2c: E2 0D 00 57 15 80 0D 02 02 05 00 CF D7 DF 87 FD 00 00 F9 [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 03 00 57 15 00 90 00 E0 [07:51:54]RAPDU: 90 00 [07:51:54]wFMCommunicate OK [07:51:54]wFMCommunicate request_size=4 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 0D 03 02 [07:51:54]Write to MH i2c: E2 08 00 58 15 80 0D 03 02 00 00 00 00 E8 [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 0B 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 0B 00 58 15 00 1C 26 A3 FA A5 C2 DD C5 90 00 D1 [07:51:54]RAPDU: 1C 26 A3 FA A5 C2 DD C5 90 00 [07:51:54]wFMCommunicate OK [07:51:54]SAM_PROTO_SignData done [07:51:54]FM_MakeSignedData done [07:51:54]CreateOFDProtocolMessage [07:51:54]wFMCommunicate request_size=4 [07:51:54]MH_SAM_APDU [07:51:54]CAPDU: 80 11 00 00 [07:51:54]Write to MH i2c: E2 08 00 59 15 80 11 00 00 00 00 00 00 E8 [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:54]Read from MH i2c: E2 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 17 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: E2 17 00 59 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [07:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:51:54]wFMCommunicate OK [07:51:54]CreateOFDProtocolMessage done [07:51:54]OFDSenderStorePacket 186437 [07:51:54]StoreOFDPacket docnum=186437 [07:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4B 62 07 01 C6 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9C EA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D8 02 00 35 04 06 00 07 CF D7 DF 87 FD 1C 26 A3 FA A5 C2 DD C5 [07:51:54]CheckFolder [07:51:54]dirname=/storage/ofd_packets [07:51:54]CheckFolder done [07:51:54]ProducePacketName [07:51:54]name=ofd_packets/00186437 [07:51:54]NVStorageSaveData ofd_packets/00186437 [07:51:54]File name is /storage/ofd_packets/00186437 [07:51:54]Write 301 bytes [07:51:54]NVStorageSaveData done [07:51:54]OFDSenderStorePacket done [07:51:54]KKMCreateOFDPacket done [07:51:54]NVStorageSaveData kkm_last_timestamp [07:51:54]File name is /storage/kkm_last_timestamp [07:51:54]Write 4 bytes [07:51:54]NVStorageSaveData done [07:51:54]ExternCall_PrintAddStr [07:51:54]wPrintStart [07:51:54]Write to MH i2c: 01 00 00 5A 15 6F [07:51:54]Write i2c OK [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: 01 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: 01 07 00 [07:51:54]MH_I2C_Read... [07:51:54]Read from MH i2c: 01 07 00 5A 15 00 00 00 00 00 FF 0F 84 [07:51:54]RasterBufferAndPrint [07:51:54]line Счет N : (1)411569 [07:51:54]line ИНН: 02508201610067 [07:51:54]line Контрольно-Кассовый Чек [07:51:54]line ПРОДАЖА [07:51:54]line ТРК (МРК, ГНК) : 22 [07:51:54]line Товар: 2710124130 [07:51:54]line Аи-92-К-2 [07:51:54]line 9.350 * 64.20 [07:51:54]line = 600.27 [07:51:54]line НДС 12% НСП 1% [07:51:54]line > о реализуемом товаре [07:51:54]line ОКРУГЛЕНИЕ: -0.27 [07:51:54]line ИТОГО: 600.00 [07:51:54]line Внесено: 600.00 [07:51:54]line СДАЧА: 0.00 [07:51:54]line НСП 1% : 5.31 [07:51:54]line НДС 12% : 63.74 [07:51:54]line Наличными: 600.00 [07:51:54]line Безнал.: 0.00 [07:51:54]line Место: АЗС № 92 "Партнер Нефть" [07:51:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [07:51:54]line СНО: Общий режим [07:51:54]line Чек 24 17.02.2025 07:51 [07:51:54]line Смена: 644 ФФД: 1.0 [07:51:54]line ЗНМ: 0300000118 [07:51:54]line РНМ: 0000000000091857 [07:51:54]line Версия ККМ: 001 [07:51:54]line ФМ: 0000000000871826 [07:51:54]line ФД: 186437 [07:51:54]line ФПД: 8589261375485 [07:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T075156&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186437&fm=8589261375485&tin=02508201610067®Number=0000000000091857&sum=60000 [07:51:55]OFD Sender: Processing packet 186437 [packets to send 49, broken 48] [07:51:55]ProducePacketName [07:51:55]name=ofd_packets/00186437 [07:51:55]OFD Sender: To server: pG, [07:51:55]CommunicateWithHost lk.salyk.kg:30040 [07:51:55]ConnectInit lk.salyk.kg [07:51:55]written 0, free lines is 4095 [07:51:55]Connected sock=10 [07:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4B 62 07 01 C6 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9C EA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D8 02 00 35 04 06 00 07 CF D7 DF 87 FD 1C 26 A3 FA A5 C2 DD C5 [07:51:55]Write to MH i2c: 01 00 00 85 15 9A [07:51:55]Write i2c OK [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: 01 [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: 01 07 00 [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 EE 0C 9B [07:51:55]RasterBufferAndPrint [07:51:55]line [07:51:55]line [07:51:55]line [07:51:55]line [07:51:55]line [07:51:55]written 0, free lines is 3316 [07:51:55]MH_Cut [07:51:55]Write to MH i2c: D1 01 00 8C 15 01 73 [07:51:55]Write i2c OK [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: D1 [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: D1 01 00 [07:51:55]MH_I2C_Read... [07:51:55]Read from MH i2c: D1 01 00 8C 15 00 72 [07:51:55]Write to MH i2c: 01 00 00 8D 15 A2 [07:51:55]Write i2c OK [07:51:55]MH_I2C_Read... [07:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 80 E2 47 00 A6 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 45 D8 02 00 F4 03 04 00 F7 90 B2 67 B6 04 01 00 00 2B B9 59 DC E8 A9 65 AE [07:51:55]CommunicateWithHost err = 0 [07:51:55]CheckOFDResponse [07:51:55]1017 (14) - 77093643461234 [07:51:55]1041 (16) - 0000000000871826 [07:51:55]1040 (4) - 186437 [07:51:55]1012 (4) - 17.02.2025 01:29 [07:51:55]1206 (1) - 0 [07:51:55]OFD Sender: Remove packet 186437 [07:51:55]ProducePacketName [07:51:55]name=ofd_packets/00186437 [07:51:55]NVStorageDeleteData [07:51:56]OFD Sender: No OFD packet to send [07:51:56]*** Cut start [07:51:56]*** Partial cut [07:51:56]*** CUTSNS_PIN = 1 [07:51:56]*** CUTSNS_PIN = 0 [07:51:56]*** Brake cut motor [07:51:57]Read from MH i2c: 01 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: 01 07 00 [07:51:57]MH_I2C_Read... [07:51:57]*** Stop cut motor [07:51:57]*** Cut end [07:51:57]Read from MH i2c: 01 07 00 8D 15 00 00 00 00 00 FF 0F B7 [07:51:57]process_action close_receipt done [07:51:57]requested_data is exist [07:51:57]produce_requested_data [07:51:57]requested_item fm.sn is exist - process it [07:51:57]wFMCommunicate request_size=4 [07:51:57]MH_SAM_APDU [07:51:57]CAPDU: 80 11 00 00 [07:51:57]Write to MH i2c: E2 08 00 8E 15 80 11 00 00 00 00 00 00 1D [07:51:57]Write i2c OK [07:51:57]MH_I2C_Read... [07:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:57]Read from MH i2c: E2 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 17 00 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 17 00 8E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [07:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [07:51:57]wFMCommunicate OK [07:51:57]requested_item fd.num is exist - process it [07:51:57]SAM_PROTO_GetFieldsCounters [07:51:57]wFMCommunicate request_size=4 [07:51:57]MH_SAM_APDU [07:51:57]CAPDU: 80 13 00 00 [07:51:57]Write to MH i2c: E2 08 00 8F 15 80 13 00 00 00 00 00 00 20 [07:51:57]Write i2c OK [07:51:57]MH_I2C_Read... [07:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:57]Read from MH i2c: E2 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 62 00 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 62 00 8F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [07:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 45 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:57]wFMCommunicate OK [07:51:57]SAM_PROTO_GetFieldsCounters done [07:51:57]requested_item shift.num is exist - process it [07:51:57]requested_item shift.opened is exist - process it [07:51:57]req_shift_opened [07:51:57]FM_GetShiftState [07:51:57]SAM_PROTO_GetShiftState [07:51:57]wFMCommunicate request_size=4 [07:51:57]MH_SAM_APDU [07:51:57]CAPDU: 80 13 01 00 [07:51:57]Write to MH i2c: E2 08 00 90 15 80 13 01 00 00 00 00 00 22 [07:51:57]Write i2c OK [07:51:57]MH_I2C_Read... [07:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:57]Read from MH i2c: E2 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 0E 00 [07:51:57]MH_I2C_Read... [07:51:57]Read from MH i2c: E2 0E 00 90 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 46 [07:51:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [07:51:57]wFMCommunicate OK [07:51:57]SAM_PROTO_GetShiftState done [07:51:57]FM_GetShiftState done [07:51:57]req_shift_opened done [07:51:57]requested_item shift.open_date is exist - process it [07:51:57]req_shift_open_date [07:51:57]req_shift_open_date done [07:51:57]produce_requested_data done [07:51:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186437,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [07:51:57]process_action_free close_receipt [07:51:57]json_value_free [07:51:57]json_value_free done [07:51:57]process_json_proto returns [07:51:57]Send response to host [07:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186437,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [07:51:57]free response buf [07:51:57]execute_script done [07:51:57]execute_script returns [07:51:57]free content buf [07:51:57]Sock 8.Close socket [07:51:57]Sock 8.Thread stoped [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:31]OFD Sender: No OFD packet to send [08:01:36]OFD Sender: No OFD packet to send [08:01:41]OFD Sender: No OFD packet to send [08:01:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:30]accept exits with 9 [08:04:30]New connection [08:04:30]New thread 3067358564 created [08:04:30]Thread 3067501924 joined [08:04:30]Waiting for new connection... [08:04:30] Sock 9.Parse request [08:04:30]Sock 9.Check first char [08:04:30]Sock 9.First char is OK [08:04:30]request: POST /json_proto HTTP/1.0 [08:04:30]Method: POST [08:04:30]URL: /json_proto [08:04:30]Method is POST - this is cgi request [08:04:30]url: /json_proto [08:04:30]query_string will be loaded in cgi processing [08:04:30]execute_cgi json_proto POST (null) [08:04:30]execute_cgi path=json_proto method=POST [08:04:30]POST find Content-Length [08:04:30]Host: 172.17.46.131:8080 [08:04:30]Content-Length: 803 [08:04:30]Content-Type: application/json [08:04:30] [08:04:30]POST finish read [08:04:30]Found Content-Length = 803 [08:04:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:30]execute_script... [08:04:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:30]POST & json_proto [08:04:30]process_json_proto [08:04:30]json parsed OK: [08:04:30]protocol is kg_v1.0 [08:04:30]action value=close_receipt [08:04:30]process_action close_receipt [08:04:30]cmd_close_receipt [08:04:30]MH_GetDate [08:04:30]Write to MH i2c: F0 00 00 91 15 95 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: F0 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: F0 09 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: F0 09 00 91 15 00 91 ED B2 67 7E 41 4F 65 A8 [08:04:30]GetLastDocTimeStamp 1739778716 [08:04:30]current date 1739779473 [08:04:30]FM_GetShiftState [08:04:30]SAM_PROTO_GetShiftState [08:04:30]wFMCommunicate request_size=4 [08:04:30]MH_SAM_APDU [08:04:30]CAPDU: 80 13 01 00 [08:04:30]Write to MH i2c: E2 08 00 92 15 80 13 01 00 00 00 00 00 24 [08:04:30]Write i2c OK [08:04:30]MH_I2C_Read... [08:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:30]Read from MH i2c: E2 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 0E 00 [08:04:30]MH_I2C_Read... [08:04:30]Read from MH i2c: E2 0E 00 92 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 48 [08:04:30]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:04:30]wFMCommunicate OK [08:04:30]SAM_PROTO_GetShiftState done [08:04:30]FM_GetShiftState done [08:04:30]opened in 1739752571 [08:04:30]opened+sec_in_day 1739838971 [08:04:30]quantity*price = 100023 [08:04:30]sum+1 = 100025 [08:04:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 25 17.02.2025 08:04 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186438 ФПД: 122875879582421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T080433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186438&fm=122875879582421&tin=02508201610067®Number=0000000000091857&sum=100024 [08:04:31]StoreToDocumentArchive [08:04:31]shift 644 fd 186438 [08:04:31]save to /storage/0644/doc_00186438 [08:04:31]save last doc name /storage/0644/doc_00186438 to /storage/kkm_last_doc_name [08:04:31]save OK [08:04:31]Clear old archive folders... [08:04:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:04:31]tlvbuf is 01FB6BA0 [08:04:31]SAM_PROTO_ClearQueue [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 09 00 00 [08:04:31]Write to MH i2c: E2 08 00 9F 15 80 09 00 00 00 00 00 00 26 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 9F 15 00 90 00 28 [08:04:31]RAPDU: 90 00 [08:04:31]wFMCommunicate OK [08:04:31]SAM_PROTO_ClearQueue done [08:04:31]KKMCreateOFDPacket [08:04:31]OFDProtocolAddRootSTLVToBuf [08:04:31]FM_MakeSignedData [08:04:31]FM_MakeSignedData [08:04:31]SAM_PROTO_SignData [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 0D 01 02 [08:04:31]Write to MH i2c: E2 08 00 A0 15 80 0D 01 02 00 00 00 00 2E [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 A0 15 00 90 00 29 [08:04:31]RAPDU: 90 00 [08:04:31]wFMCommunicate OK [08:04:31]wFMCommunicate request_size=255 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 91 ED B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D8 02 00 35 04 06 00 6F [08:04:31]Write to MH i2c: E2 02 01 A1 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 91 ED B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D8 02 00 35 04 06 00 6F 00 00 20 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 A1 15 00 90 00 2A [08:04:31]RAPDU: 90 00 [08:04:31]wFMCommunicate OK [08:04:31]wFMCommunicate request_size=10 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 0D 02 02 05 C1 45 27 6A D5 [08:04:31]Write to MH i2c: E2 0D 00 A2 15 80 0D 02 02 05 00 C1 45 27 6A D5 00 00 A7 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [08:04:31]RAPDU: 90 00 [08:04:31]wFMCommunicate OK [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 0D 03 02 [08:04:31]Write to MH i2c: E2 08 00 A3 15 80 0D 03 02 00 00 00 00 33 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 0B 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 0B 00 A3 15 00 35 52 0A 7F 1D 33 97 3C 90 00 67 [08:04:31]RAPDU: 35 52 0A 7F 1D 33 97 3C 90 00 [08:04:31]wFMCommunicate OK [08:04:31]SAM_PROTO_SignData done [08:04:31]FM_MakeSignedData done [08:04:31]CreateOFDProtocolMessage [08:04:31]wFMCommunicate request_size=4 [08:04:31]MH_SAM_APDU [08:04:31]CAPDU: 80 11 00 00 [08:04:31]Write to MH i2c: E2 08 00 A4 15 80 11 00 00 00 00 00 00 33 [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:31]Read from MH i2c: E2 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 17 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: E2 17 00 A4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [08:04:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:04:31]wFMCommunicate OK [08:04:31]CreateOFDProtocolMessage done [08:04:31]OFDSenderStorePacket 186438 [08:04:31]StoreOFDPacket docnum=186438 [08:04:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 47 A8 07 01 E2 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 91 ED B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D8 02 00 35 04 06 00 6F C1 45 27 6A D5 35 52 0A 7F 1D 33 97 3C [08:04:31]CheckFolder [08:04:31]dirname=/storage/ofd_packets [08:04:31]CheckFolder done [08:04:31]ProducePacketName [08:04:31]name=ofd_packets/00186438 [08:04:31]NVStorageSaveData ofd_packets/00186438 [08:04:31]File name is /storage/ofd_packets/00186438 [08:04:31]Write 301 bytes [08:04:31]NVStorageSaveData done [08:04:31]OFDSenderStorePacket done [08:04:31]KKMCreateOFDPacket done [08:04:31]NVStorageSaveData kkm_last_timestamp [08:04:31]File name is /storage/kkm_last_timestamp [08:04:31]Write 4 bytes [08:04:31]NVStorageSaveData done [08:04:31]ExternCall_PrintAddStr [08:04:31]wPrintStart [08:04:31]Write to MH i2c: 01 00 00 A5 15 BA [08:04:31]Write i2c OK [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: 01 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: 01 07 00 [08:04:31]MH_I2C_Read... [08:04:31]Read from MH i2c: 01 07 00 A5 15 00 00 00 00 00 FF 0F CF [08:04:31]RasterBufferAndPrint [08:04:31]line Счет N : (1)411570 [08:04:31]line ИНН: 02508201610067 [08:04:31]line Контрольно-Кассовый Чек [08:04:31]line ПРОДАЖА [08:04:31]line ТРК (МРК, ГНК) : 22 [08:04:31]line Товар: 2710124130 [08:04:31]line Аи-92-К-2 [08:04:31]line 15.580 * 64.20 [08:04:31]line = 1000.24 [08:04:31]line НДС 12% НСП 1% [08:04:31]line > о реализуемом товаре [08:04:31]line ИТОГО: 1000.24 [08:04:31]line НСП 1% : 8.85 [08:04:31]line НДС 12% : 106.22 [08:04:31]line Наличными: 0.00 [08:04:31]line Безнал.: 1000.24 [08:04:31]line Место: АЗС № 92 "Партнер Нефть" [08:04:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:04:31]line СНО: Общий режим [08:04:31]line Чек 25 17.02.2025 08:04 [08:04:31]line Смена: 644 ФФД: 1.0 [08:04:31]line ЗНМ: 0300000118 [08:04:31]line РНМ: 0000000000091857 [08:04:31]line Версия ККМ: 001 [08:04:31]line Платежная система: O! деньги [08:04:31]line ФМ: 0000000000871826 [08:04:31]line ФД: 186438 [08:04:31]line ФПД: 122875879582421 [08:04:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T080433&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186438&fm=122875879582421&tin=02508201610067®Number=0000000000091857&sum=100024 [08:04:32]OFD Sender: Processing packet 186438 [packets to send 49, broken 48] [08:04:32]ProducePacketName [08:04:32]name=ofd_packets/00186438 [08:04:32]OFD Sender: To server: pG, [08:04:32]CommunicateWithHost lk.salyk.kg:30040 [08:04:32]ConnectInit lk.salyk.kg [08:04:32]written 0, free lines is 4095 [08:04:32]Connected sock=10 [08:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 47 A8 07 01 E2 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 91 ED B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D8 02 00 35 04 06 00 6F C1 45 27 6A D5 35 52 0A 7F 1D 33 97 3C [08:04:32]Write to MH i2c: 01 00 00 CF 15 E4 [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: 01 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: 01 07 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: 01 07 00 CF 15 00 00 00 00 00 0A 0D 02 [08:04:32]RasterBufferAndPrint [08:04:32]line [08:04:32]line [08:04:32]line [08:04:32]line [08:04:32]line [08:04:32]written 0, free lines is 3344 [08:04:32]MH_Cut [08:04:32]Write to MH i2c: D1 01 00 D6 15 01 BD [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: D1 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: D1 01 00 [08:04:32]MH_I2C_Read... [08:04:32]Read from MH i2c: D1 01 00 D6 15 00 BC [08:04:32]Write to MH i2c: 01 00 00 D7 15 EC [08:04:32]Write i2c OK [08:04:32]MH_I2C_Read... [08:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7D DF 47 00 76 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 46 D8 02 00 F4 03 04 00 EC 93 B2 67 B6 04 01 00 00 A2 59 4D C9 F5 E5 21 73 [08:04:32]CommunicateWithHost err = 0 [08:04:32]CheckOFDResponse [08:04:32]1017 (14) - 77093643461234 [08:04:32]1041 (16) - 0000000000871826 [08:04:32]1040 (4) - 186438 [08:04:32]1012 (4) - 17.02.2025 01:42 [08:04:32]1206 (1) - 0 [08:04:32]OFD Sender: Remove packet 186438 [08:04:32]ProducePacketName [08:04:32]name=ofd_packets/00186438 [08:04:32]NVStorageDeleteData [08:04:33]OFD Sender: No OFD packet to send [08:04:33]*** Cut start [08:04:33]*** Partial cut [08:04:33]*** CUTSNS_PIN = 1 [08:04:33]*** CUTSNS_PIN = 0 [08:04:33]*** Brake cut motor [08:04:33]Read from MH i2c: 01 [08:04:33]MH_I2C_Read... [08:04:33]*** Stop cut motor [08:04:33]*** Cut end [08:04:33]Read from MH i2c: 01 07 00 [08:04:33]MH_I2C_Read... [08:04:33]Read from MH i2c: 01 07 00 D7 15 00 00 00 00 00 FF 0F 01 [08:04:33]process_action close_receipt done [08:04:33]requested_data is exist [08:04:33]produce_requested_data [08:04:33]requested_item fm.sn is exist - process it [08:04:33]wFMCommunicate request_size=4 [08:04:33]MH_SAM_APDU [08:04:33]CAPDU: 80 11 00 00 [08:04:33]Write to MH i2c: E2 08 00 D8 15 80 11 00 00 00 00 00 00 67 [08:04:33]Write i2c OK [08:04:33]MH_I2C_Read... [08:04:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:33]Read from MH i2c: E2 [08:04:33]MH_I2C_Read... [08:04:33]Read from MH i2c: E2 17 00 [08:04:33]MH_I2C_Read... [08:04:33]Read from MH i2c: E2 17 00 D8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BA [08:04:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:04:33]wFMCommunicate OK [08:04:33]requested_item fd.num is exist - process it [08:04:33]SAM_PROTO_GetFieldsCounters [08:04:33]wFMCommunicate request_size=4 [08:04:33]MH_SAM_APDU [08:04:33]CAPDU: 80 13 00 00 [08:04:33]Write to MH i2c: E2 08 00 D9 15 80 13 00 00 00 00 00 00 6A [08:04:33]Write i2c OK [08:04:33]MH_I2C_Read... [08:04:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:34]Read from MH i2c: E2 [08:04:34]MH_I2C_Read... [08:04:34]Read from MH i2c: E2 62 00 [08:04:34]MH_I2C_Read... [08:04:34]Read from MH i2c: E2 62 00 D9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [08:04:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 46 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:34]wFMCommunicate OK [08:04:34]SAM_PROTO_GetFieldsCounters done [08:04:34]requested_item shift.num is exist - process it [08:04:34]requested_item shift.opened is exist - process it [08:04:34]req_shift_opened [08:04:34]FM_GetShiftState [08:04:34]SAM_PROTO_GetShiftState [08:04:34]wFMCommunicate request_size=4 [08:04:34]MH_SAM_APDU [08:04:34]CAPDU: 80 13 01 00 [08:04:34]Write to MH i2c: E2 08 00 DA 15 80 13 01 00 00 00 00 00 6C [08:04:34]Write i2c OK [08:04:34]MH_I2C_Read... [08:04:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:34]Read from MH i2c: E2 [08:04:34]MH_I2C_Read... [08:04:34]Read from MH i2c: E2 0E 00 [08:04:34]MH_I2C_Read... [08:04:34]Read from MH i2c: E2 0E 00 DA 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 90 [08:04:34]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:04:34]wFMCommunicate OK [08:04:34]SAM_PROTO_GetShiftState done [08:04:34]FM_GetShiftState done [08:04:34]req_shift_opened done [08:04:34]requested_item shift.open_date is exist - process it [08:04:34]req_shift_open_date [08:04:34]req_shift_open_date done [08:04:34]produce_requested_data done [08:04:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186438,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:04:34]process_action_free close_receipt [08:04:34]json_value_free [08:04:34]json_value_free done [08:04:34]process_json_proto returns [08:04:34]Send response to host [08:04:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186438,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:04:34]free response buf [08:04:34]execute_script done [08:04:34]execute_script returns [08:04:34]free content buf [08:04:34]Sock 9.Close socket [08:04:34]Sock 9.Thread stoped [08:04:38]OFD Sender: No OFD packet to send [08:04:43]OFD Sender: No OFD packet to send [08:04:48]OFD Sender: No OFD packet to send [08:04:53]OFD Sender: No OFD packet to send [08:04:58]OFD Sender: No OFD packet to send [08:05:03]OFD Sender: No OFD packet to send [08:05:08]OFD Sender: No OFD packet to send [08:05:13]OFD Sender: No OFD packet to send [08:05:18]OFD Sender: No OFD packet to send [08:05:23]OFD Sender: No OFD packet to send [08:05:28]OFD Sender: No OFD packet to send [08:05:33]OFD Sender: No OFD packet to send [08:05:38]OFD Sender: No OFD packet to send [08:05:43]OFD Sender: No OFD packet to send [08:05:48]OFD Sender: No OFD packet to send [08:05:53]OFD Sender: No OFD packet to send [08:05:58]OFD Sender: No OFD packet to send [08:06:03]OFD Sender: No OFD packet to send [08:06:08]OFD Sender: No OFD packet to send [08:06:13]OFD Sender: No OFD packet to send [08:06:18]OFD Sender: No OFD packet to send [08:06:23]OFD Sender: No OFD packet to send [08:06:28]OFD Sender: No OFD packet to send [08:06:33]OFD Sender: No OFD packet to send [08:06:38]OFD Sender: No OFD packet to send [08:06:43]OFD Sender: No OFD packet to send [08:06:48]OFD Sender: No OFD packet to send [08:06:53]OFD Sender: No OFD packet to send [08:06:58]OFD Sender: No OFD packet to send [08:07:03]OFD Sender: No OFD packet to send [08:07:08]OFD Sender: No OFD packet to send [08:07:13]OFD Sender: No OFD packet to send [08:07:18]OFD Sender: No OFD packet to send [08:07:23]OFD Sender: No OFD packet to send [08:07:28]OFD Sender: No OFD packet to send [08:07:33]OFD Sender: No OFD packet to send [08:07:38]OFD Sender: No OFD packet to send [08:07:43]OFD Sender: No OFD packet to send [08:07:48]OFD Sender: No OFD packet to send [08:07:53]OFD Sender: No OFD packet to send [08:07:58]OFD Sender: No OFD packet to send [08:08:03]OFD Sender: No OFD packet to send [08:08:08]OFD Sender: No OFD packet to send [08:08:13]OFD Sender: No OFD packet to send [08:08:18]OFD Sender: No OFD packet to send [08:08:23]OFD Sender: No OFD packet to send [08:08:28]OFD Sender: No OFD packet to send [08:08:33]OFD Sender: No OFD packet to send [08:08:38]OFD Sender: No OFD packet to send [08:08:43]OFD Sender: No OFD packet to send [08:08:48]OFD Sender: No OFD packet to send [08:08:53]OFD Sender: No OFD packet to send [08:08:58]OFD Sender: No OFD packet to send [08:09:03]OFD Sender: No OFD packet to send [08:09:08]OFD Sender: No OFD packet to send [08:09:13]OFD Sender: No OFD packet to send [08:09:18]OFD Sender: No OFD packet to send [08:09:23]OFD Sender: No OFD packet to send [08:09:28]OFD Sender: No OFD packet to send [08:09:33]OFD Sender: No OFD packet to send [08:09:38]OFD Sender: No OFD packet to send [08:09:43]OFD Sender: No OFD packet to send [08:09:48]OFD Sender: No OFD packet to send [08:09:53]OFD Sender: No OFD packet to send [08:09:58]OFD Sender: No OFD packet to send [08:10:03]OFD Sender: No OFD packet to send [08:10:08]OFD Sender: No OFD packet to send [08:10:10]accept exits with 8 [08:10:10]New connection [08:10:10]New thread 3067501924 created [08:10:10]Thread 3067358564 joined [08:10:10]Waiting for new connection... [08:10:10] Sock 8.Parse request [08:10:10]Sock 8.Check first char [08:10:10]Sock 8.First char is OK [08:10:10]request: POST /json_proto HTTP/1.0 [08:10:10]Method: POST [08:10:10]URL: /json_proto [08:10:10]Method is POST - this is cgi request [08:10:10]url: /json_proto [08:10:10]query_string will be loaded in cgi processing [08:10:10]execute_cgi json_proto POST (null) [08:10:10]execute_cgi path=json_proto method=POST [08:10:10]POST find Content-Length [08:10:10]Host: 172.17.46.131:8080 [08:10:10]Content-Length: 682 [08:10:10]Content-Type: application/json [08:10:10] [08:10:10]POST finish read [08:10:10]Found Content-Length = 682 [08:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:10]execute_script... [08:10:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:10]POST & json_proto [08:10:10]process_json_proto [08:10:10]json parsed OK: [08:10:10]protocol is kg_v1.0 [08:10:10]action value=close_receipt [08:10:10]process_action close_receipt [08:10:10]cmd_close_receipt [08:10:10]MH_GetDate [08:10:10]Write to MH i2c: F0 00 00 DB 15 DF [08:10:10]Write i2c OK [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 09 00 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: F0 09 00 DB 15 00 E6 EE B2 67 7E 41 4F 65 48 [08:10:10]GetLastDocTimeStamp 1739779473 [08:10:10]current date 1739779814 [08:10:10]FM_GetShiftState [08:10:10]SAM_PROTO_GetShiftState [08:10:10]wFMCommunicate request_size=4 [08:10:10]MH_SAM_APDU [08:10:10]CAPDU: 80 13 01 00 [08:10:10]Write to MH i2c: E2 08 00 DC 15 80 13 01 00 00 00 00 00 6E [08:10:10]Write i2c OK [08:10:10]MH_I2C_Read... [08:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:10]Read from MH i2c: E2 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: E2 0E 00 [08:10:10]MH_I2C_Read... [08:10:10]Read from MH i2c: E2 0E 00 DC 15 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 92 [08:10:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:10:10]wFMCommunicate OK [08:10:10]SAM_PROTO_GetShiftState done [08:10:10]FM_GetShiftState done [08:10:10]opened in 1739752571 [08:10:10]opened+sec_in_day 1739838971 [08:10:10]quantity*price = 100023 [08:10:10]sum+1 = 100025 [08:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 26 17.02.2025 08:10 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186439 ФПД: 91514068150254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081014&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186439&fm=91514068150254&tin=02508201610067®Number=0000000000091857&sum=100000 [08:10:11]StoreToDocumentArchive [08:10:11]shift 644 fd 186439 [08:10:11]save to /storage/0644/doc_00186439 [08:10:11]save last doc name /storage/0644/doc_00186439 to /storage/kkm_last_doc_name [08:10:11]save OK [08:10:11]Clear old archive folders... [08:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:11]tlvbuf is 01FF6560 [08:10:11]SAM_PROTO_ClearQueue [08:10:11]wFMCommunicate request_size=4 [08:10:11]MH_SAM_APDU [08:10:11]CAPDU: 80 09 00 00 [08:10:11]Write to MH i2c: E2 08 00 E9 15 80 09 00 00 00 00 00 00 70 [08:10:11]Write i2c OK [08:10:11]MH_I2C_Read... [08:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:11]Read from MH i2c: E2 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 E9 15 00 90 00 72 [08:10:11]RAPDU: 90 00 [08:10:11]wFMCommunicate OK [08:10:11]SAM_PROTO_ClearQueue done [08:10:11]KKMCreateOFDPacket [08:10:11]OFDProtocolAddRootSTLVToBuf [08:10:11]FM_MakeSignedData [08:10:11]FM_MakeSignedData [08:10:11]SAM_PROTO_SignData [08:10:11]wFMCommunicate request_size=4 [08:10:11]MH_SAM_APDU [08:10:11]CAPDU: 80 0D 01 02 [08:10:11]Write to MH i2c: E2 08 00 EA 15 80 0D 01 02 00 00 00 00 78 [08:10:11]Write i2c OK [08:10:11]MH_I2C_Read... [08:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:11]Read from MH i2c: E2 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 [08:10:11]MH_I2C_Read... [08:10:11]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [08:10:11]RAPDU: 90 00 [08:10:11]wFMCommunicate OK [08:10:11]wFMCommunicate request_size=255 [08:10:11]MH_SAM_APDU [08:10:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E6 EE B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D8 02 00 35 04 06 00 53 [08:10:11]Write to MH i2c: E2 02 01 EB 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E6 EE B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D8 02 00 35 04 06 00 53 00 00 76 [08:10:11]Write i2c OK [08:10:11]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [08:10:12]RAPDU: 90 00 [08:10:12]wFMCommunicate OK [08:10:12]wFMCommunicate request_size=10 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 0D 02 02 05 3B 47 86 27 EE [08:10:12]Write to MH i2c: E2 0D 00 EC 15 80 0D 02 02 05 00 3B 47 86 27 EE 00 00 A2 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [08:10:12]RAPDU: 90 00 [08:10:12]wFMCommunicate OK [08:10:12]wFMCommunicate request_size=4 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 0D 03 02 [08:10:12]Write to MH i2c: E2 08 00 ED 15 80 0D 03 02 00 00 00 00 7D [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 0B 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 0B 00 ED 15 00 4E B5 D1 FC FF C9 1D 32 90 00 65 [08:10:12]RAPDU: 4E B5 D1 FC FF C9 1D 32 90 00 [08:10:12]wFMCommunicate OK [08:10:12]SAM_PROTO_SignData done [08:10:12]FM_MakeSignedData done [08:10:12]CreateOFDProtocolMessage [08:10:12]wFMCommunicate request_size=4 [08:10:12]MH_SAM_APDU [08:10:12]CAPDU: 80 11 00 00 [08:10:12]Write to MH i2c: E2 08 00 EE 15 80 11 00 00 00 00 00 00 7D [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:12]Read from MH i2c: E2 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 17 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: E2 17 00 EE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D0 [08:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:10:12]wFMCommunicate OK [08:10:12]CreateOFDProtocolMessage done [08:10:12]OFDSenderStorePacket 186439 [08:10:12]StoreOFDPacket docnum=186439 [08:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EE 7C 07 01 AD C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E6 EE B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D8 02 00 35 04 06 00 53 3B 47 86 27 EE 4E B5 D1 FC FF C9 1D 32 [08:10:12]CheckFolder [08:10:12]dirname=/storage/ofd_packets [08:10:12]CheckFolder done [08:10:12]ProducePacketName [08:10:12]name=ofd_packets/00186439 [08:10:12]NVStorageSaveData ofd_packets/00186439 [08:10:12]File name is /storage/ofd_packets/00186439 [08:10:12]Write 301 bytes [08:10:12]NVStorageSaveData done [08:10:12]OFDSenderStorePacket done [08:10:12]KKMCreateOFDPacket done [08:10:12]NVStorageSaveData kkm_last_timestamp [08:10:12]File name is /storage/kkm_last_timestamp [08:10:12]Write 4 bytes [08:10:12]NVStorageSaveData done [08:10:12]ExternCall_PrintAddStr [08:10:12]wPrintStart [08:10:12]Write to MH i2c: 01 00 00 EF 15 04 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 EF 15 00 00 00 00 00 FF 0F 19 [08:10:12]RasterBufferAndPrint [08:10:12]line Счет N : (1)411571 [08:10:12]line ИНН: 02508201610067 [08:10:12]line Контрольно-Кассовый Чек [08:10:12]line ПРОДАЖА [08:10:12]line ТРК (МРК, ГНК) : 22 [08:10:12]line Товар: 2710124130 [08:10:12]line Аи-92-К-2 [08:10:12]line 15.580 * 64.20 [08:10:12]line = 1000.24 [08:10:12]line НДС 12% НСП 1% [08:10:12]line > о реализуемом товаре [08:10:12]line ОКРУГЛЕНИЕ: -0.24 [08:10:12]line ИТОГО: 1000.00 [08:10:12]line Внесено: 1000.00 [08:10:12]line СДАЧА: 0.00 [08:10:12]line НСП 1% : 8.85 [08:10:12]line НДС 12% : 106.22 [08:10:12]line Наличными: 1000.00 [08:10:12]line Безнал.: 0.00 [08:10:12]line Место: АЗС № 92 "Партнер Нефть" [08:10:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:10:12]line СНО: Общий режим [08:10:12]line Чек 26 17.02.2025 08:10 [08:10:12]line Смена: 644 ФФД: 1.0 [08:10:12]line ЗНМ: 0300000118 [08:10:12]line РНМ: 0000000000091857 [08:10:12]line Версия ККМ: 001 [08:10:12]line ФМ: 0000000000871826 [08:10:12]line ФД: 186439 [08:10:12]line ФПД: 91514068150254 [08:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081014&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186439&fm=91514068150254&tin=02508201610067®Number=0000000000091857&sum=100000 [08:10:12]written 0, free lines is 4095 [08:10:12]OFD Sender: Processing packet 186439 [packets to send 49, broken 48] [08:10:12]ProducePacketName [08:10:12]name=ofd_packets/00186439 [08:10:12]OFD Sender: To server: pG, [08:10:12]CommunicateWithHost lk.salyk.kg:30040 [08:10:12]ConnectInit lk.salyk.kg [08:10:12]Connected sock=11 [08:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EE 7C 07 01 AD C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 E6 EE B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D8 02 00 35 04 06 00 53 3B 47 86 27 EE 4E B5 D1 FC FF C9 1D 32 [08:10:12]Write to MH i2c: 01 00 00 1A 16 30 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: 01 07 00 1A 16 00 00 00 00 00 F3 0C 36 [08:10:12]RasterBufferAndPrint [08:10:12]line [08:10:12]line [08:10:12]line [08:10:12]line [08:10:12]line [08:10:12]written 0, free lines is 3322 [08:10:12]MH_Cut [08:10:12]Write to MH i2c: D1 01 00 21 16 01 09 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: D1 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: D1 01 00 [08:10:12]MH_I2C_Read... [08:10:12]Read from MH i2c: D1 01 00 21 16 00 08 [08:10:12]Write to MH i2c: 01 00 00 22 16 38 [08:10:12]Write i2c OK [08:10:12]MH_I2C_Read... [08:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 5B 47 00 D1 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 47 D8 02 00 F4 03 04 00 40 95 B2 67 B6 04 01 00 00 C3 0E 18 FF E5 0D 4A 87 [08:10:12]CommunicateWithHost err = 0 [08:10:12]CheckOFDResponse [08:10:12]1017 (14) - 77093643461234 [08:10:12]1041 (16) - 0000000000871826 [08:10:12]1040 (4) - 186439 [08:10:12]1012 (4) - 17.02.2025 01:47 [08:10:12]1206 (1) - 0 [08:10:12]OFD Sender: Remove packet 186439 [08:10:12]ProducePacketName [08:10:12]name=ofd_packets/00186439 [08:10:12]NVStorageDeleteData [08:10:13]OFD Sender: No OFD packet to send [08:10:13]*** Cut start [08:10:13]*** Partial cut [08:10:13]*** CUTSNS_PIN = 1 [08:10:13]*** CUTSNS_PIN = 0 [08:10:13]*** Brake cut motor [08:10:14]Read from MH i2c: 01 [08:10:14]MH_I2C_Read... [08:10:14]*** Stop cut motor [08:10:14]*** Cut end [08:10:14]Read from MH i2c: 01 07 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 FF 0F 4D [08:10:14]process_action close_receipt done [08:10:14]requested_data is exist [08:10:14]produce_requested_data [08:10:14]requested_item fm.sn is exist - process it [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 11 00 00 [08:10:14]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 06 [08:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:10:14]wFMCommunicate OK [08:10:14]requested_item fd.num is exist - process it [08:10:14]SAM_PROTO_GetFieldsCounters [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 13 00 00 [08:10:14]Write to MH i2c: E2 08 00 24 16 80 13 00 00 00 00 00 00 B6 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 62 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 62 00 24 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [08:10:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 47 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_GetFieldsCounters done [08:10:14]requested_item shift.num is exist - process it [08:10:14]requested_item shift.opened is exist - process it [08:10:14]req_shift_opened [08:10:14]FM_GetShiftState [08:10:14]SAM_PROTO_GetShiftState [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 13 01 00 [08:10:14]Write to MH i2c: E2 08 00 25 16 80 13 01 00 00 00 00 00 B8 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 25 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DC [08:10:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_GetShiftState done [08:10:14]FM_GetShiftState done [08:10:14]req_shift_opened done [08:10:14]requested_item shift.open_date is exist - process it [08:10:14]req_shift_open_date [08:10:14]req_shift_open_date done [08:10:14]produce_requested_data done [08:10:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186439,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:10:14]process_action_free close_receipt [08:10:14]json_value_free [08:10:14]json_value_free done [08:10:14]process_json_proto returns [08:10:14]Send response to host [08:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186439,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:10:14]free response buf [08:10:14]execute_script done [08:10:14]execute_script returns [08:10:14]free content buf [08:10:14]Sock 8.Close socket [08:10:14]Sock 8.Thread stoped [08:10:18]OFD Sender: No OFD packet to send [08:10:23]OFD Sender: No OFD packet to send [08:10:28]OFD Sender: No OFD packet to send [08:10:33]OFD Sender: No OFD packet to send [08:10:38]OFD Sender: No OFD packet to send [08:10:43]OFD Sender: No OFD packet to send [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:48]OFD Sender: No OFD packet to send [08:11:53]OFD Sender: No OFD packet to send [08:11:58]OFD Sender: No OFD packet to send [08:12:03]OFD Sender: No OFD packet to send [08:12:08]OFD Sender: No OFD packet to send [08:12:13]OFD Sender: No OFD packet to send [08:12:18]OFD Sender: No OFD packet to send [08:12:23]OFD Sender: No OFD packet to send [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:28]OFD Sender: No OFD packet to send [08:13:33]OFD Sender: No OFD packet to send [08:13:38]OFD Sender: No OFD packet to send [08:13:43]OFD Sender: No OFD packet to send [08:13:48]OFD Sender: No OFD packet to send [08:13:50]accept exits with 9 [08:13:50]New connection [08:13:50]New thread 3067358564 created [08:13:50]Thread 3067501924 joined [08:13:50]Waiting for new connection... [08:13:50] Sock 9.Parse request [08:13:50]Sock 9.Check first char [08:13:50]Sock 9.First char is OK [08:13:50]request: POST /json_proto HTTP/1.0 [08:13:50]Method: POST [08:13:50]URL: /json_proto [08:13:50]Method is POST - this is cgi request [08:13:50]url: /json_proto [08:13:50]query_string will be loaded in cgi processing [08:13:50]execute_cgi json_proto POST (null) [08:13:50]execute_cgi path=json_proto method=POST [08:13:50]POST find Content-Length [08:13:50]Host: 172.17.46.131:8080 [08:13:50]Content-Length: 682 [08:13:50]Content-Type: application/json [08:13:50] [08:13:50]POST finish read [08:13:50]Found Content-Length = 682 [08:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:50]execute_script... [08:13:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:50]POST & json_proto [08:13:50]process_json_proto [08:13:50]json parsed OK: [08:13:50]protocol is kg_v1.0 [08:13:50]action value=close_receipt [08:13:50]process_action close_receipt [08:13:50]cmd_close_receipt [08:13:50]MH_GetDate [08:13:50]Write to MH i2c: F0 00 00 26 16 2B [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 09 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: F0 09 00 26 16 00 C2 EF B2 67 7E 41 4F 65 71 [08:13:50]GetLastDocTimeStamp 1739779814 [08:13:50]current date 1739780034 [08:13:50]FM_GetShiftState [08:13:50]SAM_PROTO_GetShiftState [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 13 01 00 [08:13:50]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DE [08:13:50]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_GetShiftState done [08:13:50]FM_GetShiftState done [08:13:50]opened in 1739752571 [08:13:50]opened+sec_in_day 1739838971 [08:13:50]quantity*price = 100023 [08:13:50]sum+1 = 100025 [08:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 27 17.02.2025 08:13 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186440 ФПД: 12505338214120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081354&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186440&fm=12505338214120&tin=02508201610067®Number=0000000000091857&sum=100000 [08:13:52]StoreToDocumentArchive [08:13:52]shift 644 fd 186440 [08:13:52]save to /storage/0644/doc_00186440 [08:13:52]save last doc name /storage/0644/doc_00186440 to /storage/kkm_last_doc_name [08:13:52]save OK [08:13:52]Clear old archive folders... [08:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:52]tlvbuf is 01FA0CF0 [08:13:52]SAM_PROTO_ClearQueue [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 09 00 00 [08:13:52]Write to MH i2c: E2 08 00 34 16 80 09 00 00 00 00 00 00 BC [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [08:13:52]RAPDU: 90 00 [08:13:52]wFMCommunicate OK [08:13:52]SAM_PROTO_ClearQueue done [08:13:52]KKMCreateOFDPacket [08:13:52]OFDProtocolAddRootSTLVToBuf [08:13:52]FM_MakeSignedData [08:13:52]FM_MakeSignedData [08:13:52]SAM_PROTO_SignData [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 0D 01 02 [08:13:52]Write to MH i2c: E2 08 00 35 16 80 0D 01 02 00 00 00 00 C4 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [08:13:52]RAPDU: 90 00 [08:13:52]wFMCommunicate OK [08:13:52]wFMCommunicate request_size=255 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C2 EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D8 02 00 35 04 06 00 0B [08:13:52]Write to MH i2c: E2 02 01 36 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C2 EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D8 02 00 35 04 06 00 0B 00 00 59 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [08:13:52]RAPDU: 90 00 [08:13:52]wFMCommunicate OK [08:13:52]wFMCommunicate request_size=10 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 0D 02 02 05 5F A0 3D F6 E8 [08:13:52]Write to MH i2c: E2 0D 00 37 16 80 0D 02 02 05 00 5F A0 3D F6 E8 00 00 EB [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [08:13:52]RAPDU: 90 00 [08:13:52]wFMCommunicate OK [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 0D 03 02 [08:13:52]Write to MH i2c: E2 08 00 38 16 80 0D 03 02 00 00 00 00 C9 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0B 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0B 00 38 16 00 4C EB A2 CE 7B 92 96 59 90 00 6D [08:13:52]RAPDU: 4C EB A2 CE 7B 92 96 59 90 00 [08:13:52]wFMCommunicate OK [08:13:52]SAM_PROTO_SignData done [08:13:52]FM_MakeSignedData done [08:13:52]CreateOFDProtocolMessage [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 11 00 00 [08:13:52]Write to MH i2c: E2 08 00 39 16 80 11 00 00 00 00 00 00 C9 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 17 00 39 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [08:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:13:52]wFMCommunicate OK [08:13:52]CreateOFDProtocolMessage done [08:13:52]OFDSenderStorePacket 186440 [08:13:52]StoreOFDPacket docnum=186440 [08:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 33 07 01 22 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C2 EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D8 02 00 35 04 06 00 0B 5F A0 3D F6 E8 4C EB A2 CE 7B 92 96 59 [08:13:52]CheckFolder [08:13:52]dirname=/storage/ofd_packets [08:13:52]CheckFolder done [08:13:52]ProducePacketName [08:13:52]name=ofd_packets/00186440 [08:13:52]NVStorageSaveData ofd_packets/00186440 [08:13:52]File name is /storage/ofd_packets/00186440 [08:13:52]Write 301 bytes [08:13:52]NVStorageSaveData done [08:13:52]OFDSenderStorePacket done [08:13:52]KKMCreateOFDPacket done [08:13:52]NVStorageSaveData kkm_last_timestamp [08:13:52]File name is /storage/kkm_last_timestamp [08:13:52]Write 4 bytes [08:13:52]NVStorageSaveData done [08:13:52]OFD Sender: Processing packet 186440 [packets to send 49, broken 48] [08:13:52]ProducePacketName [08:13:52]name=ofd_packets/00186440 [08:13:52]OFD Sender: To server: pG, [08:13:52]CommunicateWithHost lk.salyk.kg:30040 [08:13:52]ConnectInit lk.salyk.kg [08:13:52]ExternCall_PrintAddStr [08:13:52]wPrintStart [08:13:52]Write to MH i2c: 01 00 00 3A 16 50 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: 01 07 00 3A 16 00 00 00 00 00 FF 0F 65 [08:13:52]RasterBufferAndPrint [08:13:52]line Счет N : (1)411572 [08:13:52]line ИНН: 02508201610067 [08:13:52]line Контрольно-Кассовый Чек [08:13:52]line ПРОДАЖА [08:13:52]line ТРК (МРК, ГНК) : 22 [08:13:52]line Товар: 2710124130 [08:13:52]line Аи-92-К-2 [08:13:52]line 15.580 * 64.20 [08:13:52]line = 1000.24 [08:13:52]line НДС 12% НСП 1% [08:13:52]line > о реализуемом товаре [08:13:52]line ОКРУГЛЕНИЕ: -0.24 [08:13:52]line ИТОГО: 1000.00 [08:13:52]line Внесено: 1000.00 [08:13:52]line СДАЧА: 0.00 [08:13:52]line НСП 1% : 8.85 [08:13:52]line НДС 12% : 106.22 [08:13:52]line Наличными: 1000.00 [08:13:52]line Безнал.: 0.00 [08:13:52]line Место: АЗС № 92 "Партнер Нефть" [08:13:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:13:52]line СНО: Общий режим [08:13:52]line Чек 27 17.02.2025 08:13 [08:13:52]line Смена: 644 ФФД: 1.0 [08:13:52]line ЗНМ: 0300000118 [08:13:52]line РНМ: 0000000000091857 [08:13:52]line Версия ККМ: 001 [08:13:52]line ФМ: 0000000000871826 [08:13:52]line ФД: 186440 [08:13:52]line ФПД: 12505338214120 [08:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081354&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186440&fm=12505338214120&tin=02508201610067®Number=0000000000091857&sum=100000 [08:13:52]Connected sock=11 [08:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0E 33 07 01 22 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C2 EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D8 02 00 35 04 06 00 0B 5F A0 3D F6 E8 4C EB A2 CE 7B 92 96 59 [08:13:52]written 0, free lines is 4095 [08:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DD 20 47 00 C5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 48 D8 02 00 F4 03 04 00 1D 96 B2 67 B6 04 01 00 00 A4 BB 75 BB DA 8F 1D 72 [08:13:53]CommunicateWithHost err = 0 [08:13:53]CheckOFDResponse [08:13:53]1017 (14) - 77093643461234 [08:13:53]1041 (16) - 0000000000871826 [08:13:53]1040 (4) - 186440 [08:13:53]1012 (4) - 17.02.2025 01:51 [08:13:53]1206 (1) - 0 [08:13:53]OFD Sender: Remove packet 186440 [08:13:53]ProducePacketName [08:13:53]name=ofd_packets/00186440 [08:13:53]NVStorageDeleteData [08:13:53]Write to MH i2c: 01 00 00 65 16 7B [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 65 16 00 00 00 00 00 E4 0C 72 [08:13:53]RasterBufferAndPrint [08:13:53]line [08:13:53]line [08:13:53]line [08:13:53]line [08:13:53]line [08:13:53]written 0, free lines is 3306 [08:13:53]MH_Cut [08:13:53]Write to MH i2c: D1 01 00 6C 16 01 54 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: D1 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: D1 01 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: D1 01 00 6C 16 00 53 [08:13:53]Write to MH i2c: 01 00 00 6D 16 83 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]OFD Sender: No OFD packet to send [08:13:54]*** Cut start [08:13:54]*** Partial cut [08:13:54]*** CUTSNS_PIN = 1 [08:13:54]*** CUTSNS_PIN = 0 [08:13:54]*** Brake cut motor [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]*** Stop cut motor [08:13:54]*** Cut end [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 6D 16 00 00 00 00 00 FF 0F 98 [08:13:54]process_action close_receipt done [08:13:54]requested_data is exist [08:13:54]produce_requested_data [08:13:54]requested_item fm.sn is exist - process it [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 11 00 00 [08:13:54]Write to MH i2c: E2 08 00 6E 16 80 11 00 00 00 00 00 00 FE [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 6E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [08:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:13:54]wFMCommunicate OK [08:13:54]requested_item fd.num is exist - process it [08:13:54]SAM_PROTO_GetFieldsCounters [08:13:54]wFMCommunicate request_size=4 [08:13:54]MH_SAM_APDU [08:13:54]CAPDU: 80 13 00 00 [08:13:54]Write to MH i2c: E2 08 00 6F 16 80 13 00 00 00 00 00 00 01 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 62 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 62 00 6F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [08:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 48 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:55]wFMCommunicate OK [08:13:55]SAM_PROTO_GetFieldsCounters done [08:13:55]requested_item shift.num is exist - process it [08:13:55]requested_item shift.opened is exist - process it [08:13:55]req_shift_opened [08:13:55]FM_GetShiftState [08:13:55]SAM_PROTO_GetShiftState [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 13 01 00 [08:13:55]Write to MH i2c: E2 08 00 70 16 80 13 01 00 00 00 00 00 03 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 0E 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 0E 00 70 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 27 [08:13:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:13:55]wFMCommunicate OK [08:13:55]SAM_PROTO_GetShiftState done [08:13:55]FM_GetShiftState done [08:13:55]req_shift_opened done [08:13:55]requested_item shift.open_date is exist - process it [08:13:55]req_shift_open_date [08:13:55]req_shift_open_date done [08:13:55]produce_requested_data done [08:13:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186440,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:13:55]process_action_free close_receipt [08:13:55]json_value_free [08:13:55]json_value_free done [08:13:55]process_json_proto returns [08:13:55]Send response to host [08:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186440,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:13:55]free response buf [08:13:55]execute_script done [08:13:55]execute_script returns [08:13:55]free content buf [08:13:55]Sock 9.Close socket [08:13:55]Sock 9.Thread stoped [08:13:58]OFD Sender: No OFD packet to send [08:14:00]accept exits with 8 [08:14:00]New connection [08:14:00]New thread 3067501924 created [08:14:00]Thread 3067358564 joined [08:14:00]Waiting for new connection... [08:14:00] Sock 8.Parse request [08:14:00]Sock 8.Check first char [08:14:00]Sock 8.First char is OK [08:14:00]request: POST /json_proto HTTP/1.0 [08:14:00]Method: POST [08:14:00]URL: /json_proto [08:14:00]Method is POST - this is cgi request [08:14:00]url: /json_proto [08:14:00]query_string will be loaded in cgi processing [08:14:00]execute_cgi json_proto POST (null) [08:14:00]execute_cgi path=json_proto method=POST [08:14:00]POST find Content-Length [08:14:00]Host: 172.17.46.131:8080 [08:14:00]Content-Length: 790 [08:14:00]Content-Type: application/json [08:14:00] [08:14:00]POST finish read [08:14:00]Found Content-Length = 790 [08:14:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:00]execute_script... [08:14:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:00]POST & json_proto [08:14:00]process_json_proto [08:14:00]json parsed OK: [08:14:00]protocol is kg_v1.0 [08:14:00]action value=close_receipt [08:14:00]process_action close_receipt [08:14:00]cmd_close_receipt [08:14:00]MH_GetDate [08:14:00]Write to MH i2c: F0 00 00 71 16 76 [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: F0 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: F0 09 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: F0 09 00 71 16 00 CC EF B2 67 7E 41 4F 65 C6 [08:14:00]GetLastDocTimeStamp 1739780034 [08:14:00]current date 1739780044 [08:14:00]FM_GetShiftState [08:14:00]SAM_PROTO_GetShiftState [08:14:00]wFMCommunicate request_size=4 [08:14:00]MH_SAM_APDU [08:14:00]CAPDU: 80 13 01 00 [08:14:00]Write to MH i2c: E2 08 00 72 16 80 13 01 00 00 00 00 00 05 [08:14:00]Write i2c OK [08:14:00]MH_I2C_Read... [08:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:00]Read from MH i2c: E2 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 0E 00 [08:14:00]MH_I2C_Read... [08:14:00]Read from MH i2c: E2 0E 00 72 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 29 [08:14:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:14:00]wFMCommunicate OK [08:14:00]SAM_PROTO_GetShiftState done [08:14:00]FM_GetShiftState done [08:14:00]opened in 1739752571 [08:14:00]opened+sec_in_day 1739838971 [08:14:00]quantity*price = 70030 [08:14:00]sum+1 = 70032 [08:14:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.31 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.31 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 28 17.02.2025 08:14 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000871826 ФД: 186441 ФПД: 87623495879834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081404&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186441&fm=87623495879834&tin=02508201610067®Number=0000000000091857&sum=70031 [08:14:01]StoreToDocumentArchive [08:14:01]shift 644 fd 186441 [08:14:01]save to /storage/0644/doc_00186441 [08:14:01]save last doc name /storage/0644/doc_00186441 to /storage/kkm_last_doc_name [08:14:01]save OK [08:14:01]Clear old archive folders... [08:14:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:01]tlvbuf is 01FF6D50 [08:14:01]SAM_PROTO_ClearQueue [08:14:01]wFMCommunicate request_size=4 [08:14:01]MH_SAM_APDU [08:14:01]CAPDU: 80 09 00 00 [08:14:01]Write to MH i2c: E2 08 00 7F 16 80 09 00 00 00 00 00 00 07 [08:14:01]Write i2c OK [08:14:01]MH_I2C_Read... [08:14:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:01]Read from MH i2c: E2 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: E2 03 00 [08:14:01]MH_I2C_Read... [08:14:01]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [08:14:01]RAPDU: 90 00 [08:14:01]wFMCommunicate OK [08:14:01]SAM_PROTO_ClearQueue done [08:14:01]KKMCreateOFDPacket [08:14:01]OFDProtocolAddRootSTLVToBuf [08:14:01]FM_MakeSignedData [08:14:01]FM_MakeSignedData [08:14:01]SAM_PROTO_SignData [08:14:01]wFMCommunicate request_size=4 [08:14:01]MH_SAM_APDU [08:14:01]CAPDU: 80 0D 01 02 [08:14:01]Write to MH i2c: E2 08 00 80 16 80 0D 01 02 00 00 00 00 0F [08:14:01]Write i2c OK [08:14:01]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:02]Read from MH i2c: E2 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 03 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [08:14:02]RAPDU: 90 00 [08:14:02]wFMCommunicate OK [08:14:02]wFMCommunicate request_size=255 [08:14:02]MH_SAM_APDU [08:14:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CC EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D8 02 00 35 04 06 00 4F [08:14:02]Write to MH i2c: E2 02 01 81 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CC EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D8 02 00 35 04 06 00 4F 00 00 E9 [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 [08:14:02]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:02]Read from MH i2c: E2 03 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [08:14:02]RAPDU: 90 00 [08:14:02]wFMCommunicate OK [08:14:02]wFMCommunicate request_size=10 [08:14:02]MH_SAM_APDU [08:14:02]CAPDU: 80 0D 02 02 05 B1 6F 58 8C 9A [08:14:02]Write to MH i2c: E2 0D 00 82 16 80 0D 02 02 05 00 B1 6F 58 8C 9A 00 00 BA [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:02]Read from MH i2c: E2 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 03 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [08:14:02]RAPDU: 90 00 [08:14:02]wFMCommunicate OK [08:14:02]wFMCommunicate request_size=4 [08:14:02]MH_SAM_APDU [08:14:02]CAPDU: 80 0D 03 02 [08:14:02]Write to MH i2c: E2 08 00 83 16 80 0D 03 02 00 00 00 00 14 [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:02]Read from MH i2c: E2 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 0B 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 0B 00 83 16 00 6F 24 74 78 DF E1 B8 6C 90 00 78 [08:14:02]RAPDU: 6F 24 74 78 DF E1 B8 6C 90 00 [08:14:02]wFMCommunicate OK [08:14:02]SAM_PROTO_SignData done [08:14:02]FM_MakeSignedData done [08:14:02]CreateOFDProtocolMessage [08:14:02]wFMCommunicate request_size=4 [08:14:02]MH_SAM_APDU [08:14:02]CAPDU: 80 11 00 00 [08:14:02]Write to MH i2c: E2 08 00 84 16 80 11 00 00 00 00 00 00 14 [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:02]Read from MH i2c: E2 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 17 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: E2 17 00 84 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 67 [08:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:14:02]wFMCommunicate OK [08:14:02]CreateOFDProtocolMessage done [08:14:02]OFDSenderStorePacket 186441 [08:14:02]StoreOFDPacket docnum=186441 [08:14:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 66 07 01 71 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CC EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D8 02 00 35 04 06 00 4F B1 6F 58 8C 9A 6F 24 74 78 DF E1 B8 6C [08:14:02]CheckFolder [08:14:02]dirname=/storage/ofd_packets [08:14:02]CheckFolder done [08:14:02]ProducePacketName [08:14:02]name=ofd_packets/00186441 [08:14:02]NVStorageSaveData ofd_packets/00186441 [08:14:02]File name is /storage/ofd_packets/00186441 [08:14:02]Write 301 bytes [08:14:02]NVStorageSaveData done [08:14:02]OFDSenderStorePacket done [08:14:02]KKMCreateOFDPacket done [08:14:02]NVStorageSaveData kkm_last_timestamp [08:14:02]File name is /storage/kkm_last_timestamp [08:14:02]Write 4 bytes [08:14:02]NVStorageSaveData done [08:14:02]ExternCall_PrintAddStr [08:14:02]wPrintStart [08:14:02]Write to MH i2c: 01 00 00 85 16 9B [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 07 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 07 00 85 16 00 00 00 00 00 FF 0F B0 [08:14:02]RasterBufferAndPrint [08:14:02]line Счет N : (1)411573 [08:14:02]line ИНН: 02508201610067 [08:14:02]line Контрольно-Кассовый Чек [08:14:02]line ПРОДАЖА [08:14:02]line ТРК (МРК, ГНК) : 43 [08:14:02]line Товар: 2710124500 [08:14:02]line Аи-95-К-5 [08:14:02]line 9.740 * 71.90 [08:14:02]line = 700.31 [08:14:02]line НДС 12% НСП 1% [08:14:02]line > о реализуемом товаре [08:14:02]line ИТОГО: 700.31 [08:14:02]line НСП 1% : 6.20 [08:14:02]line НДС 12% : 74.37 [08:14:02]line Наличными: 0.00 [08:14:02]line Безнал.: 700.31 [08:14:02]line Место: АЗС № 92 "Партнер Нефть" [08:14:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:14:02]line СНО: Общий режим [08:14:02]line Чек 28 17.02.2025 08:14 [08:14:02]line Смена: 644 ФФД: 1.0 [08:14:02]line ЗНМ: 0300000118 [08:14:02]line РНМ: 0000000000091857 [08:14:02]line Версия ККМ: 001 [08:14:02]line Платежная система: KICB Банк [08:14:02]line ФМ: 0000000000871826 [08:14:02]line ФД: 186441 [08:14:02]line ФПД: 87623495879834 [08:14:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081404&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186441&fm=87623495879834&tin=02508201610067®Number=0000000000091857&sum=70031 [08:14:02]written 0, free lines is 4095 [08:14:02]OFD Sender: Processing packet 186441 [packets to send 49, broken 48] [08:14:02]ProducePacketName [08:14:02]name=ofd_packets/00186441 [08:14:02]OFD Sender: To server: pG, [08:14:02]CommunicateWithHost lk.salyk.kg:30040 [08:14:02]ConnectInit lk.salyk.kg [08:14:02]Connected sock=10 [08:14:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 83 66 07 01 71 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 CC EF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D8 02 00 35 04 06 00 4F B1 6F 58 8C 9A 6F 24 74 78 DF E1 B8 6C [08:14:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E 60 47 00 65 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 49 D8 02 00 F4 03 04 00 26 96 B2 67 B6 04 01 00 00 67 FA 23 9A 77 97 61 A1 [08:14:02]CommunicateWithHost err = 0 [08:14:02]CheckOFDResponse [08:14:02]1017 (14) - 77093643461234 [08:14:02]1041 (16) - 0000000000871826 [08:14:02]1040 (4) - 186441 [08:14:02]1012 (4) - 17.02.2025 01:51 [08:14:02]1206 (1) - 0 [08:14:02]OFD Sender: Remove packet 186441 [08:14:02]ProducePacketName [08:14:02]name=ofd_packets/00186441 [08:14:02]NVStorageDeleteData [08:14:02]Write to MH i2c: 01 00 00 AF 16 C5 [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 07 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: 01 07 00 AF 16 00 00 00 00 00 0B 0D E4 [08:14:02]RasterBufferAndPrint [08:14:02]line [08:14:02]line [08:14:02]line [08:14:02]line [08:14:02]line [08:14:02]written 0, free lines is 3348 [08:14:02]MH_Cut [08:14:02]Write to MH i2c: D1 01 00 B6 16 01 9E [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: D1 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: D1 01 00 [08:14:02]MH_I2C_Read... [08:14:02]Read from MH i2c: D1 01 00 B6 16 00 9D [08:14:02]Write to MH i2c: 01 00 00 B7 16 CD [08:14:02]Write i2c OK [08:14:02]MH_I2C_Read... [08:14:03]OFD Sender: No OFD packet to send [08:14:03]*** Cut start [08:14:03]*** Partial cut [08:14:03]*** CUTSNS_PIN = 1 [08:14:03]*** CUTSNS_PIN = 0 [08:14:03]*** Brake cut motor [08:14:04]Read from MH i2c: 01 [08:14:04]MH_I2C_Read... [08:14:04]*** Stop cut motor [08:14:04]*** Cut end [08:14:04]Read from MH i2c: 01 07 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: 01 07 00 B7 16 00 00 00 00 00 FF 0F E2 [08:14:04]process_action close_receipt done [08:14:04]requested_data is exist [08:14:04]produce_requested_data [08:14:04]requested_item fm.sn is exist - process it [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 11 00 00 [08:14:04]Write to MH i2c: E2 08 00 B8 16 80 11 00 00 00 00 00 00 48 [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 17 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 17 00 B8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [08:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:14:04]wFMCommunicate OK [08:14:04]requested_item fd.num is exist - process it [08:14:04]SAM_PROTO_GetFieldsCounters [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 13 00 00 [08:14:04]Write to MH i2c: E2 08 00 B9 16 80 13 00 00 00 00 00 00 4B [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 62 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 62 00 B9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:14:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 49 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:04]wFMCommunicate OK [08:14:04]SAM_PROTO_GetFieldsCounters done [08:14:04]requested_item shift.num is exist - process it [08:14:04]requested_item shift.opened is exist - process it [08:14:04]req_shift_opened [08:14:04]FM_GetShiftState [08:14:04]SAM_PROTO_GetShiftState [08:14:04]wFMCommunicate request_size=4 [08:14:04]MH_SAM_APDU [08:14:04]CAPDU: 80 13 01 00 [08:14:04]Write to MH i2c: E2 08 00 BA 16 80 13 01 00 00 00 00 00 4D [08:14:04]Write i2c OK [08:14:04]MH_I2C_Read... [08:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:04]Read from MH i2c: E2 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 0E 00 [08:14:04]MH_I2C_Read... [08:14:04]Read from MH i2c: E2 0E 00 BA 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 71 [08:14:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:14:04]wFMCommunicate OK [08:14:04]SAM_PROTO_GetShiftState done [08:14:04]FM_GetShiftState done [08:14:04]req_shift_opened done [08:14:04]requested_item shift.open_date is exist - process it [08:14:04]req_shift_open_date [08:14:04]req_shift_open_date done [08:14:04]produce_requested_data done [08:14:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186441,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:14:04]process_action_free close_receipt [08:14:04]json_value_free [08:14:04]json_value_free done [08:14:04]process_json_proto returns [08:14:04]Send response to host [08:14:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186441,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:14:04]free response buf [08:14:04]execute_script done [08:14:04]execute_script returns [08:14:04]free content buf [08:14:04]Sock 8.Close socket [08:14:04]Sock 8.Thread stoped [08:14:08]OFD Sender: No OFD packet to send [08:14:13]OFD Sender: No OFD packet to send [08:14:18]OFD Sender: No OFD packet to send [08:14:23]OFD Sender: No OFD packet to send [08:14:28]OFD Sender: No OFD packet to send [08:14:33]OFD Sender: No OFD packet to send [08:14:38]OFD Sender: No OFD packet to send [08:14:43]OFD Sender: No OFD packet to send [08:14:48]OFD Sender: No OFD packet to send [08:14:53]OFD Sender: No OFD packet to send [08:14:58]OFD Sender: No OFD packet to send [08:15:03]OFD Sender: No OFD packet to send [08:15:08]OFD Sender: No OFD packet to send [08:15:13]OFD Sender: No OFD packet to send [08:15:18]OFD Sender: No OFD packet to send [08:15:23]OFD Sender: No OFD packet to send [08:15:28]OFD Sender: No OFD packet to send [08:15:33]OFD Sender: No OFD packet to send [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:01]accept exits with 9 [08:17:01]New connection [08:17:01]New thread 3067358564 created [08:17:01]Thread 3067501924 joined [08:17:01]Waiting for new connection... [08:17:01] Sock 9.Parse request [08:17:01]Sock 9.Check first char [08:17:01]Sock 9.First char is OK [08:17:01]request: POST /json_proto HTTP/1.0 [08:17:01]Method: POST [08:17:01]URL: /json_proto [08:17:01]Method is POST - this is cgi request [08:17:01]url: /json_proto [08:17:01]query_string will be loaded in cgi processing [08:17:01]execute_cgi json_proto POST (null) [08:17:01]execute_cgi path=json_proto method=POST [08:17:01]POST find Content-Length [08:17:01]Host: 172.17.46.131:8080 [08:17:01]Content-Length: 677 [08:17:01]Content-Type: application/json [08:17:01] [08:17:01]POST finish read [08:17:01]Found Content-Length = 677 [08:17:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:01]execute_script... [08:17:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:01]POST & json_proto [08:17:01]process_json_proto [08:17:01]json parsed OK: [08:17:01]protocol is kg_v1.0 [08:17:01]action value=close_receipt [08:17:01]process_action close_receipt [08:17:01]cmd_close_receipt [08:17:01]MH_GetDate [08:17:01]Write to MH i2c: F0 00 00 BB 16 C0 [08:17:01]Write i2c OK [08:17:01]MH_I2C_Read... [08:17:01]Read from MH i2c: F0 [08:17:01]MH_I2C_Read... [08:17:01]Read from MH i2c: F0 09 00 [08:17:01]MH_I2C_Read... [08:17:01]Read from MH i2c: F0 09 00 BB 16 00 80 F0 B2 67 7E 41 4F 65 C5 [08:17:01]GetLastDocTimeStamp 1739780044 [08:17:01]current date 1739780224 [08:17:01]FM_GetShiftState [08:17:01]SAM_PROTO_GetShiftState [08:17:01]wFMCommunicate request_size=4 [08:17:01]MH_SAM_APDU [08:17:01]CAPDU: 80 13 01 00 [08:17:01]Write to MH i2c: E2 08 00 BC 16 80 13 01 00 00 00 00 00 4F [08:17:01]Write i2c OK [08:17:01]MH_I2C_Read... [08:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:01]Read from MH i2c: E2 [08:17:01]MH_I2C_Read... [08:17:01]Read from MH i2c: E2 0E 00 [08:17:01]MH_I2C_Read... [08:17:01]Read from MH i2c: E2 0E 00 BC 16 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 73 [08:17:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:17:01]wFMCommunicate OK [08:17:01]SAM_PROTO_GetShiftState done [08:17:01]FM_GetShiftState done [08:17:01]opened in 1739752571 [08:17:01]opened+sec_in_day 1739838971 [08:17:01]quantity*price = 30045 [08:17:01]sum+1 = 30047 [08:17:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 29 17.02.2025 08:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186442 ФПД: 211017067593241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186442&fm=211017067593241&tin=02508201610067®Number=0000000000091857&sum=30000 [08:17:02]StoreToDocumentArchive [08:17:02]shift 644 fd 186442 [08:17:02]save to /storage/0644/doc_00186442 [08:17:02]save last doc name /storage/0644/doc_00186442 to /storage/kkm_last_doc_name [08:17:02]save OK [08:17:02]Clear old archive folders... [08:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:02]tlvbuf is B6F60C80 [08:17:02]SAM_PROTO_ClearQueue [08:17:02]wFMCommunicate request_size=4 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 09 00 00 [08:17:02]Write to MH i2c: E2 08 00 C9 16 80 09 00 00 00 00 00 00 51 [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:02]Read from MH i2c: E2 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 C9 16 00 90 00 53 [08:17:02]RAPDU: 90 00 [08:17:02]wFMCommunicate OK [08:17:02]SAM_PROTO_ClearQueue done [08:17:02]KKMCreateOFDPacket [08:17:02]OFDProtocolAddRootSTLVToBuf [08:17:02]FM_MakeSignedData [08:17:02]FM_MakeSignedData [08:17:02]SAM_PROTO_SignData [08:17:02]wFMCommunicate request_size=4 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 0D 01 02 [08:17:02]Write to MH i2c: E2 08 00 CA 16 80 0D 01 02 00 00 00 00 59 [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:02]Read from MH i2c: E2 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [08:17:02]RAPDU: 90 00 [08:17:02]wFMCommunicate OK [08:17:02]wFMCommunicate request_size=255 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D8 02 00 35 04 06 00 BF [08:17:02]Write to MH i2c: E2 02 01 CB 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D8 02 00 35 04 06 00 BF 00 00 A6 [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:02]Read from MH i2c: E2 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [08:17:02]RAPDU: 90 00 [08:17:02]wFMCommunicate OK [08:17:02]wFMCommunicate request_size=10 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 0D 02 02 05 EB 3D 5A FE 19 [08:17:02]Write to MH i2c: E2 0D 00 CC 16 80 0D 02 02 05 00 EB 3D 5A FE 19 00 00 FF [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:02]Read from MH i2c: E2 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [08:17:02]RAPDU: 90 00 [08:17:02]wFMCommunicate OK [08:17:02]wFMCommunicate request_size=4 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 0D 03 02 [08:17:02]Write to MH i2c: E2 08 00 CD 16 80 0D 03 02 00 00 00 00 5E [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:02]Read from MH i2c: E2 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 0B 00 [08:17:02]MH_I2C_Read... [08:17:02]Read from MH i2c: E2 0B 00 CD 16 00 88 8E 26 65 5E 67 70 13 90 00 48 [08:17:02]RAPDU: 88 8E 26 65 5E 67 70 13 90 00 [08:17:02]wFMCommunicate OK [08:17:02]SAM_PROTO_SignData done [08:17:02]FM_MakeSignedData done [08:17:02]CreateOFDProtocolMessage [08:17:02]wFMCommunicate request_size=4 [08:17:02]MH_SAM_APDU [08:17:02]CAPDU: 80 11 00 00 [08:17:02]Write to MH i2c: E2 08 00 CE 16 80 11 00 00 00 00 00 00 5E [08:17:02]Write i2c OK [08:17:02]MH_I2C_Read... [08:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:03]Read from MH i2c: E2 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: E2 17 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: E2 17 00 CE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B1 [08:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:17:03]wFMCommunicate OK [08:17:03]CreateOFDProtocolMessage done [08:17:03]OFDSenderStorePacket 186442 [08:17:03]StoreOFDPacket docnum=186442 [08:17:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BE A1 07 01 FD F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D8 02 00 35 04 06 00 BF EB 3D 5A FE 19 88 8E 26 65 5E 67 70 13 [08:17:03]CheckFolder [08:17:03]dirname=/storage/ofd_packets [08:17:03]CheckFolder done [08:17:03]ProducePacketName [08:17:03]name=ofd_packets/00186442 [08:17:03]NVStorageSaveData ofd_packets/00186442 [08:17:03]File name is /storage/ofd_packets/00186442 [08:17:03]Write 301 bytes [08:17:03]NVStorageSaveData done [08:17:03]OFDSenderStorePacket done [08:17:03]KKMCreateOFDPacket done [08:17:03]NVStorageSaveData kkm_last_timestamp [08:17:03]File name is /storage/kkm_last_timestamp [08:17:03]Write 4 bytes [08:17:03]NVStorageSaveData done [08:17:03]OFD Sender: Processing packet 186442 [packets to send 49, broken 48] [08:17:03]ProducePacketName [08:17:03]name=ofd_packets/00186442 [08:17:03]OFD Sender: To server: pG, [08:17:03]CommunicateWithHost lk.salyk.kg:30040 [08:17:03]ConnectInit lk.salyk.kg [08:17:03]ExternCall_PrintAddStr [08:17:03]wPrintStart [08:17:03]Write to MH i2c: 01 00 00 CF 16 E5 [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 CF 16 00 00 00 00 00 FF 0F FA [08:17:03]RasterBufferAndPrint [08:17:03]line Счет N : (1)411575 [08:17:03]line ИНН: 02508201610067 [08:17:03]line Контрольно-Кассовый Чек [08:17:03]line ПРОДАЖА [08:17:03]line ТРК (МРК, ГНК) : 12 [08:17:03]line Товар: 2710124130 [08:17:03]line Аи-92-К-2 [08:17:03]line 4.680 * 64.20 [08:17:03]line = 300.46 [08:17:03]line НДС 12% НСП 1% [08:17:03]line > о реализуемом товаре [08:17:03]line ОКРУГЛЕНИЕ: -0.46 [08:17:03]line ИТОГО: 300.00 [08:17:03]line Внесено: 300.00 [08:17:03]line СДАЧА: 0.00 [08:17:03]line НСП 1% : 2.66 [08:17:03]line НДС 12% : 31.91 [08:17:03]line Наличными: 300.00 [08:17:03]line Безнал.: 0.00 [08:17:03]line Место: АЗС № 92 "Партнер Нефть" [08:17:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:17:03]line СНО: Общий режим [08:17:03]line Чек 29 17.02.2025 08:17 [08:17:03]line Смена: 644 ФФД: 1.0 [08:17:03]line ЗНМ: 0300000118 [08:17:03]line РНМ: 0000000000091857 [08:17:03]line Версия ККМ: 001 [08:17:03]line ФМ: 0000000000871826 [08:17:03]line ФД: 186442 [08:17:03]line ФПД: 211017067593241 [08:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186442&fm=211017067593241&tin=02508201610067®Number=0000000000091857&sum=30000 [08:17:03]Connected sock=11 [08:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BE A1 07 01 FD F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 80 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D8 02 00 35 04 06 00 BF EB 3D 5A FE 19 88 8E 26 65 5E 67 70 13 [08:17:03]written 0, free lines is 4095 [08:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA DA 47 00 4B 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4A D8 02 00 F4 03 04 00 DB 96 B2 67 B6 04 01 00 00 2F 19 AC CD 68 4B 5B 00 [08:17:03]CommunicateWithHost err = 0 [08:17:03]CheckOFDResponse [08:17:03]1017 (14) - 77093643461234 [08:17:03]1041 (16) - 0000000000871826 [08:17:03]1040 (4) - 186442 [08:17:03]1012 (4) - 17.02.2025 01:54 [08:17:03]1206 (1) - 0 [08:17:03]OFD Sender: Remove packet 186442 [08:17:03]ProducePacketName [08:17:03]name=ofd_packets/00186442 [08:17:03]NVStorageDeleteData [08:17:03]Write to MH i2c: 01 00 00 FA 16 10 [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: 01 07 00 FA 16 00 00 00 00 00 EC 0C 0F [08:17:03]RasterBufferAndPrint [08:17:03]line [08:17:03]line [08:17:03]line [08:17:03]line [08:17:03]line [08:17:03]written 0, free lines is 3315 [08:17:03]MH_Cut [08:17:03]Write to MH i2c: D1 01 00 01 17 01 EA [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: D1 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: D1 01 00 [08:17:03]MH_I2C_Read... [08:17:03]Read from MH i2c: D1 01 00 01 17 00 E9 [08:17:03]Write to MH i2c: 01 00 00 02 17 19 [08:17:03]Write i2c OK [08:17:03]MH_I2C_Read... [08:17:04]OFD Sender: No OFD packet to send [08:17:04]*** Cut start [08:17:04]*** Partial cut [08:17:04]*** CUTSNS_PIN = 1 [08:17:04]*** CUTSNS_PIN = 0 [08:17:04]*** Brake cut motor [08:17:05]Read from MH i2c: 01 [08:17:05]MH_I2C_Read... [08:17:05]*** Stop cut motor [08:17:05]*** Cut end [08:17:05]Read from MH i2c: 01 07 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 FF 0F 2E [08:17:05]process_action close_receipt done [08:17:05]requested_data is exist [08:17:05]produce_requested_data [08:17:05]requested_item fm.sn is exist - process it [08:17:05]wFMCommunicate request_size=4 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 11 00 00 [08:17:05]Write to MH i2c: E2 08 00 03 17 80 11 00 00 00 00 00 00 94 [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 17 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 17 00 03 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [08:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:17:05]wFMCommunicate OK [08:17:05]requested_item fd.num is exist - process it [08:17:05]SAM_PROTO_GetFieldsCounters [08:17:05]wFMCommunicate request_size=4 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 13 00 00 [08:17:05]Write to MH i2c: E2 08 00 04 17 80 13 00 00 00 00 00 00 97 [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 62 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 62 00 04 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [08:17:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:05]wFMCommunicate OK [08:17:05]SAM_PROTO_GetFieldsCounters done [08:17:05]requested_item shift.num is exist - process it [08:17:05]requested_item shift.opened is exist - process it [08:17:05]req_shift_opened [08:17:05]FM_GetShiftState [08:17:05]SAM_PROTO_GetShiftState [08:17:05]wFMCommunicate request_size=4 [08:17:05]MH_SAM_APDU [08:17:05]CAPDU: 80 13 01 00 [08:17:05]Write to MH i2c: E2 08 00 05 17 80 13 01 00 00 00 00 00 99 [08:17:05]Write i2c OK [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 [08:17:05]MH_I2C_Read... [08:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:05]Read from MH i2c: E2 0E 00 [08:17:05]MH_I2C_Read... [08:17:05]Read from MH i2c: E2 0E 00 05 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BD [08:17:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:17:05]wFMCommunicate OK [08:17:05]SAM_PROTO_GetShiftState done [08:17:05]FM_GetShiftState done [08:17:05]req_shift_opened done [08:17:05]requested_item shift.open_date is exist - process it [08:17:05]req_shift_open_date [08:17:05]req_shift_open_date done [08:17:05]produce_requested_data done [08:17:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186442,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:17:05]process_action_free close_receipt [08:17:05]json_value_free [08:17:05]json_value_free done [08:17:05]process_json_proto returns [08:17:05]Send response to host [08:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186442,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:17:05]free response buf [08:17:05]execute_script done [08:17:05]execute_script returns [08:17:05]free content buf [08:17:05]Sock 9.Close socket [08:17:05]Sock 9.Thread stoped [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:49]OFD Sender: No OFD packet to send [08:17:54]OFD Sender: No OFD packet to send [08:17:54]accept exits with 8 [08:17:54]New connection [08:17:54]New thread 3067501924 created [08:17:54]Thread 3067358564 joined [08:17:54]Waiting for new connection... [08:17:54] Sock 8.Parse request [08:17:54]Sock 8.Check first char [08:17:54]Sock 8.First char is OK [08:17:54]request: POST /json_proto HTTP/1.0 [08:17:54]Method: POST [08:17:54]URL: /json_proto [08:17:54]Method is POST - this is cgi request [08:17:54]url: /json_proto [08:17:54]query_string will be loaded in cgi processing [08:17:54]execute_cgi json_proto POST (null) [08:17:54]execute_cgi path=json_proto method=POST [08:17:54]POST find Content-Length [08:17:54]Host: 172.17.46.131:8080 [08:17:54]Content-Length: 682 [08:17:54]Content-Type: application/json [08:17:54] [08:17:54]POST finish read [08:17:54]Found Content-Length = 682 [08:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 22.120, "sum" : 1420.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1520.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:54]execute_script... [08:17:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 22.120, "sum" : 1420.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1520.00, "total" : 1420.00, "payments": [ { "type": 0, "sum" : 1420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:54]POST & json_proto [08:17:54]process_json_proto [08:17:54]json parsed OK: [08:17:54]protocol is kg_v1.0 [08:17:54]action value=close_receipt [08:17:54]process_action close_receipt [08:17:54]cmd_close_receipt [08:17:54]MH_GetDate [08:17:54]Write to MH i2c: F0 00 00 06 17 0C [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: F0 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: F0 09 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: F0 09 00 06 17 00 B6 F0 B2 67 7E 41 4F 65 47 [08:17:54]GetLastDocTimeStamp 1739780224 [08:17:54]current date 1739780278 [08:17:54]FM_GetShiftState [08:17:54]SAM_PROTO_GetShiftState [08:17:54]wFMCommunicate request_size=4 [08:17:54]MH_SAM_APDU [08:17:54]CAPDU: 80 13 01 00 [08:17:54]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [08:17:54]Write i2c OK [08:17:54]MH_I2C_Read... [08:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:54]Read from MH i2c: E2 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: E2 0E 00 [08:17:54]MH_I2C_Read... [08:17:54]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BF [08:17:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:17:54]wFMCommunicate OK [08:17:54]SAM_PROTO_GetShiftState done [08:17:54]FM_GetShiftState done [08:17:54]opened in 1739752571 [08:17:54]opened+sec_in_day 1739838971 [08:17:54]quantity*price = 142010 [08:17:54]sum+1 = 142011 [08:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1420.00 Внесено: 1520.00 СДАЧА: 100.00 НСП 1% : 12.57 НДС 12% : 150.81 Наличными: 1420.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 30 17.02.2025 08:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186443 ФПД: 100720431331878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186443&fm=100720431331878&tin=02508201610067®Number=0000000000091857&sum=142000 [08:17:55]StoreToDocumentArchive [08:17:55]shift 644 fd 186443 [08:17:55]save to /storage/0644/doc_00186443 [08:17:55]save last doc name /storage/0644/doc_00186443 to /storage/kkm_last_doc_name [08:17:55]save OK [08:17:55]Clear old archive folders... [08:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:17:55]tlvbuf is 01FFADC0 [08:17:55]SAM_PROTO_ClearQueue [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 09 00 00 [08:17:55]Write to MH i2c: E2 08 00 14 17 80 09 00 00 00 00 00 00 9D [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 03 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [08:17:55]RAPDU: 90 00 [08:17:55]wFMCommunicate OK [08:17:55]SAM_PROTO_ClearQueue done [08:17:55]KKMCreateOFDPacket [08:17:55]OFDProtocolAddRootSTLVToBuf [08:17:55]FM_MakeSignedData [08:17:55]FM_MakeSignedData [08:17:55]SAM_PROTO_SignData [08:17:55]wFMCommunicate request_size=4 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 0D 01 02 [08:17:55]Write to MH i2c: E2 08 00 15 17 80 0D 01 02 00 00 00 00 A5 [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:55]Read from MH i2c: E2 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 03 00 [08:17:55]MH_I2C_Read... [08:17:55]Read from MH i2c: E2 03 00 15 17 00 90 00 A0 [08:17:55]RAPDU: 90 00 [08:17:55]wFMCommunicate OK [08:17:55]wFMCommunicate request_size=255 [08:17:55]MH_SAM_APDU [08:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 BA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D8 02 00 35 04 06 00 5B [08:17:55]Write to MH i2c: E2 02 01 16 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 BA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D8 02 00 35 04 06 00 5B 00 00 2D [08:17:55]Write i2c OK [08:17:55]MH_I2C_Read... [08:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:56]Read from MH i2c: E2 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 03 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [08:17:56]RAPDU: 90 00 [08:17:56]wFMCommunicate OK [08:17:56]wFMCommunicate request_size=10 [08:17:56]MH_SAM_APDU [08:17:56]CAPDU: 80 0D 02 02 05 9A CD 87 FA 26 [08:17:56]Write to MH i2c: E2 0D 00 17 17 80 0D 02 02 05 00 9A CD 87 FA 26 00 00 C0 [08:17:56]Write i2c OK [08:17:56]MH_I2C_Read... [08:17:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:56]Read from MH i2c: E2 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 03 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [08:17:56]RAPDU: 90 00 [08:17:56]wFMCommunicate OK [08:17:56]wFMCommunicate request_size=4 [08:17:56]MH_SAM_APDU [08:17:56]CAPDU: 80 0D 03 02 [08:17:56]Write to MH i2c: E2 08 00 18 17 80 0D 03 02 00 00 00 00 AA [08:17:56]Write i2c OK [08:17:56]MH_I2C_Read... [08:17:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:56]Read from MH i2c: E2 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 0B 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 0B 00 18 17 00 5D F6 B6 B6 89 F5 54 F9 90 00 35 [08:17:56]RAPDU: 5D F6 B6 B6 89 F5 54 F9 90 00 [08:17:56]wFMCommunicate OK [08:17:56]SAM_PROTO_SignData done [08:17:56]FM_MakeSignedData done [08:17:56]CreateOFDProtocolMessage [08:17:56]wFMCommunicate request_size=4 [08:17:56]MH_SAM_APDU [08:17:56]CAPDU: 80 11 00 00 [08:17:56]Write to MH i2c: E2 08 00 19 17 80 11 00 00 00 00 00 00 AA [08:17:56]Write i2c OK [08:17:56]MH_I2C_Read... [08:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:56]Read from MH i2c: E2 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 17 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: E2 17 00 19 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [08:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:17:56]wFMCommunicate OK [08:17:56]CreateOFDProtocolMessage done [08:17:56]OFDSenderStorePacket 186443 [08:17:56]StoreOFDPacket docnum=186443 [08:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 6F 07 01 52 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 BA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D8 02 00 35 04 06 00 5B 9A CD 87 FA 26 5D F6 B6 B6 89 F5 54 F9 [08:17:56]CheckFolder [08:17:56]dirname=/storage/ofd_packets [08:17:56]CheckFolder done [08:17:56]ProducePacketName [08:17:56]name=ofd_packets/00186443 [08:17:56]NVStorageSaveData ofd_packets/00186443 [08:17:56]File name is /storage/ofd_packets/00186443 [08:17:56]Write 301 bytes [08:17:56]NVStorageSaveData done [08:17:56]OFDSenderStorePacket done [08:17:56]KKMCreateOFDPacket done [08:17:56]NVStorageSaveData kkm_last_timestamp [08:17:56]File name is /storage/kkm_last_timestamp [08:17:56]Write 4 bytes [08:17:56]NVStorageSaveData done [08:17:56]ExternCall_PrintAddStr [08:17:56]wPrintStart [08:17:56]Write to MH i2c: 01 00 00 1A 17 31 [08:17:56]Write i2c OK [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: 01 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: 01 07 00 [08:17:56]MH_I2C_Read... [08:17:56]Read from MH i2c: 01 07 00 1A 17 00 00 00 00 00 FF 0F 46 [08:17:56]RasterBufferAndPrint [08:17:56]line Счет N : (1)411574 [08:17:56]line ИНН: 02508201610067 [08:17:56]line Контрольно-Кассовый Чек [08:17:56]line ПРОДАЖА [08:17:56]line ТРК (МРК, ГНК) : 42 [08:17:56]line Товар: 2710124130 [08:17:56]line Аи-92-К-2 [08:17:56]line 22.120 * 64.20 [08:17:56]line = 1420.10 [08:17:56]line НДС 12% НСП 1% [08:17:56]line > о реализуемом товаре [08:17:56]line ОКРУГЛЕНИЕ: -0.10 [08:17:56]line ИТОГО: 1420.00 [08:17:56]line Внесено: 1520.00 [08:17:56]line СДАЧА: 100.00 [08:17:56]line НСП 1% : 12.57 [08:17:56]line НДС 12% : 150.81 [08:17:56]line Наличными: 1420.00 [08:17:56]line Безнал.: 0.00 [08:17:56]line Место: АЗС № 92 "Партнер Нефть" [08:17:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:17:56]line СНО: Общий режим [08:17:56]line Чек 30 17.02.2025 08:17 [08:17:56]line Смена: 644 ФФД: 1.0 [08:17:56]line ЗНМ: 0300000118 [08:17:56]line РНМ: 0000000000091857 [08:17:56]line Версия ККМ: 001 [08:17:56]line ФМ: 0000000000871826 [08:17:56]line ФД: 186443 [08:17:56]line ФПД: 100720431331878 [08:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T081758&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186443&fm=100720431331878&tin=02508201610067®Number=0000000000091857&sum=142000 [08:17:56]OFD Sender: Processing packet 186443 [packets to send 49, broken 48] [08:17:56]ProducePacketName [08:17:56]name=ofd_packets/00186443 [08:17:56]OFD Sender: To server: pG, [08:17:56]CommunicateWithHost lk.salyk.kg:30040 [08:17:56]ConnectInit lk.salyk.kg [08:17:56]written 0, free lines is 4095 [08:17:56]Connected sock=10 [08:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 6F 07 01 52 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 68 56 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 BA 2A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 2A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 3A 00 00 00 00 07 04 06 00 B0 2A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 B6 F0 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D8 02 00 35 04 06 00 5B 9A CD 87 FA 26 5D F6 B6 B6 89 F5 54 F9 [08:17:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D FE 47 00 75 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4B D8 02 00 F4 03 04 00 11 97 B2 67 B6 04 01 00 00 12 D6 45 D7 EE 85 F3 1D [08:17:57]CommunicateWithHost err = 0 [08:17:57]CheckOFDResponse [08:17:57]1017 (14) - 77093643461234 [08:17:57]1041 (16) - 0000000000871826 [08:17:57]1040 (4) - 186443 [08:17:57]1012 (4) - 17.02.2025 01:55 [08:17:57]1206 (1) - 0 [08:17:57]OFD Sender: Remove packet 186443 [08:17:57]ProducePacketName [08:17:57]name=ofd_packets/00186443 [08:17:57]NVStorageDeleteData [08:17:57]Write to MH i2c: 01 00 00 45 17 5C [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 07 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: 01 07 00 45 17 00 00 00 00 00 F7 0C 66 [08:17:57]RasterBufferAndPrint [08:17:57]line [08:17:57]line [08:17:57]line [08:17:57]line [08:17:57]line [08:17:57]written 0, free lines is 3326 [08:17:57]MH_Cut [08:17:57]Write to MH i2c: D1 01 00 4C 17 01 35 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: D1 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: D1 01 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: D1 01 00 4C 17 00 34 [08:17:57]Write to MH i2c: 01 00 00 4D 17 64 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]OFD Sender: No OFD packet to send [08:17:57]*** Cut start [08:17:57]*** Partial cut [08:17:57]*** CUTSNS_PIN = 1 [08:17:57]*** CUTSNS_PIN = 0 [08:17:58]*** Brake cut motor [08:17:58]Read from MH i2c: 01 [08:17:58]MH_I2C_Read... [08:17:58]*** Stop cut motor [08:17:58]*** Cut end [08:17:58]Read from MH i2c: 01 07 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 07 00 4D 17 00 00 00 00 00 FF 0F 79 [08:17:58]process_action close_receipt done [08:17:58]requested_data is exist [08:17:58]produce_requested_data [08:17:58]requested_item fm.sn is exist - process it [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 11 00 00 [08:17:58]Write to MH i2c: E2 08 00 4E 17 80 11 00 00 00 00 00 00 DF [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 17 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 17 00 4E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [08:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:17:58]wFMCommunicate OK [08:17:58]requested_item fd.num is exist - process it [08:17:58]SAM_PROTO_GetFieldsCounters [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 13 00 00 [08:17:58]Write to MH i2c: E2 08 00 4F 17 80 13 00 00 00 00 00 00 E2 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 62 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 62 00 4F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [08:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:58]wFMCommunicate OK [08:17:58]SAM_PROTO_GetFieldsCounters done [08:17:58]requested_item shift.num is exist - process it [08:17:58]requested_item shift.opened is exist - process it [08:17:58]req_shift_opened [08:17:58]FM_GetShiftState [08:17:58]SAM_PROTO_GetShiftState [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 13 01 00 [08:17:58]Write to MH i2c: E2 08 00 50 17 80 13 01 00 00 00 00 00 E4 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0E 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0E 00 50 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 08 [08:17:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:17:58]wFMCommunicate OK [08:17:58]SAM_PROTO_GetShiftState done [08:17:58]FM_GetShiftState done [08:17:58]req_shift_opened done [08:17:58]requested_item shift.open_date is exist - process it [08:17:58]req_shift_open_date [08:17:58]req_shift_open_date done [08:17:58]produce_requested_data done [08:17:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186443,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:17:58]process_action_free close_receipt [08:17:58]json_value_free [08:17:58]json_value_free done [08:17:58]process_json_proto returns [08:17:58]Send response to host [08:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186443,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:17:58]free response buf [08:17:58]execute_script done [08:17:58]execute_script returns [08:17:58]free content buf [08:17:58]Sock 8.Close socket [08:17:58]Sock 8.Thread stoped [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:17]accept exits with 9 [08:25:17]New connection [08:25:17]New thread 3067358564 created [08:25:17]Thread 3067501924 joined [08:25:17]Waiting for new connection... [08:25:17] Sock 9.Parse request [08:25:17]Sock 9.Check first char [08:25:17]Sock 9.First char is OK [08:25:17]request: POST /json_proto HTTP/1.0 [08:25:17]Method: POST [08:25:17]URL: /json_proto [08:25:17]Method is POST - this is cgi request [08:25:17]url: /json_proto [08:25:17]query_string will be loaded in cgi processing [08:25:17]execute_cgi json_proto POST (null) [08:25:17]execute_cgi path=json_proto method=POST [08:25:17]POST find Content-Length [08:25:17]Host: 172.17.46.131:8080 [08:25:17]Content-Length: 682 [08:25:17]Content-Type: application/json [08:25:17] [08:25:17]POST finish read [08:25:17]Found Content-Length = 682 [08:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]execute_script... [08:25:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:17]POST & json_proto [08:25:17]process_json_proto [08:25:17]json parsed OK: [08:25:17]protocol is kg_v1.0 [08:25:17]action value=close_receipt [08:25:17]process_action close_receipt [08:25:17]cmd_close_receipt [08:25:17]MH_GetDate [08:25:17]Write to MH i2c: F0 00 00 51 17 57 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: F0 09 00 51 17 00 71 F2 B2 67 7E 41 4F 65 4F [08:25:17]GetLastDocTimeStamp 1739780278 [08:25:17]current date 1739780721 [08:25:17]FM_GetShiftState [08:25:17]SAM_PROTO_GetShiftState [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 13 01 00 [08:25:17]Write to MH i2c: E2 08 00 52 17 80 13 01 00 00 00 00 00 E6 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 52 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0A [08:25:17]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetShiftState done [08:25:17]FM_GetShiftState done [08:25:17]opened in 1739752571 [08:25:17]opened+sec_in_day 1739838971 [08:25:17]quantity*price = 100023 [08:25:17]sum+1 = 100025 [08:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 31 17.02.2025 08:25 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186444 ФПД: 179586688624481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T082521&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186444&fm=179586688624481&tin=02508201610067®Number=0000000000091857&sum=100000 [08:25:18]StoreToDocumentArchive [08:25:18]shift 644 fd 186444 [08:25:18]save to /storage/0644/doc_00186444 [08:25:18]save last doc name /storage/0644/doc_00186444 to /storage/kkm_last_doc_name [08:25:18]save OK [08:25:18]Clear old archive folders... [08:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:18]tlvbuf is B6F2E3A0 [08:25:18]SAM_PROTO_ClearQueue [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 09 00 00 [08:25:18]Write to MH i2c: E2 08 00 5F 17 80 09 00 00 00 00 00 00 E8 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 5F 17 00 90 00 EA [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]SAM_PROTO_ClearQueue done [08:25:18]KKMCreateOFDPacket [08:25:18]OFDProtocolAddRootSTLVToBuf [08:25:18]FM_MakeSignedData [08:25:18]FM_MakeSignedData [08:25:18]SAM_PROTO_SignData [08:25:18]wFMCommunicate request_size=4 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 01 02 [08:25:18]Write to MH i2c: E2 08 00 60 17 80 0D 01 02 00 00 00 00 F0 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:18]Read from MH i2c: E2 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 [08:25:18]MH_I2C_Read... [08:25:18]Read from MH i2c: E2 03 00 60 17 00 90 00 EB [08:25:18]RAPDU: 90 00 [08:25:18]wFMCommunicate OK [08:25:18]wFMCommunicate request_size=255 [08:25:18]MH_SAM_APDU [08:25:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 F2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D8 02 00 35 04 06 00 A3 [08:25:18]Write to MH i2c: E2 02 01 61 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 F2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D8 02 00 35 04 06 00 A3 00 00 D7 [08:25:18]Write i2c OK [08:25:18]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=10 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 02 02 05 55 48 C8 27 61 [08:25:19]Write to MH i2c: E2 0D 00 62 17 80 0D 02 02 05 00 55 48 C8 27 61 00 00 EA [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [08:25:19]RAPDU: 90 00 [08:25:19]wFMCommunicate OK [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 0D 03 02 [08:25:19]Write to MH i2c: E2 08 00 63 17 80 0D 03 02 00 00 00 00 F5 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 0B 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 0B 00 63 17 00 6D 41 16 FA 32 F1 72 03 90 00 4C [08:25:19]RAPDU: 6D 41 16 FA 32 F1 72 03 90 00 [08:25:19]wFMCommunicate OK [08:25:19]SAM_PROTO_SignData done [08:25:19]FM_MakeSignedData done [08:25:19]CreateOFDProtocolMessage [08:25:19]wFMCommunicate request_size=4 [08:25:19]MH_SAM_APDU [08:25:19]CAPDU: 80 11 00 00 [08:25:19]Write to MH i2c: E2 08 00 64 17 80 11 00 00 00 00 00 00 F5 [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:19]Read from MH i2c: E2 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: E2 17 00 64 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [08:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:19]wFMCommunicate OK [08:25:19]CreateOFDProtocolMessage done [08:25:19]OFDSenderStorePacket 186444 [08:25:19]StoreOFDPacket docnum=186444 [08:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C B0 07 01 AC F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 F2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D8 02 00 35 04 06 00 A3 55 48 C8 27 61 6D 41 16 FA 32 F1 72 03 [08:25:19]CheckFolder [08:25:19]dirname=/storage/ofd_packets [08:25:19]CheckFolder done [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00186444 [08:25:19]NVStorageSaveData ofd_packets/00186444 [08:25:19]File name is /storage/ofd_packets/00186444 [08:25:19]Write 301 bytes [08:25:19]NVStorageSaveData done [08:25:19]OFDSenderStorePacket done [08:25:19]KKMCreateOFDPacket done [08:25:19]NVStorageSaveData kkm_last_timestamp [08:25:19]File name is /storage/kkm_last_timestamp [08:25:19]Write 4 bytes [08:25:19]NVStorageSaveData done [08:25:19]ExternCall_PrintAddStr [08:25:19]wPrintStart [08:25:19]Write to MH i2c: 01 00 00 65 17 7C [08:25:19]Write i2c OK [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 [08:25:19]MH_I2C_Read... [08:25:19]Read from MH i2c: 01 07 00 65 17 00 00 00 00 00 FF 0F 91 [08:25:19]RasterBufferAndPrint [08:25:19]line Счет N : (1)411576 [08:25:19]line ИНН: 02508201610067 [08:25:19]line Контрольно-Кассовый Чек [08:25:19]line ПРОДАЖА [08:25:19]line ТРК (МРК, ГНК) : 32 [08:25:19]line Товар: 2710124130 [08:25:19]line Аи-92-К-2 [08:25:19]line 15.580 * 64.20 [08:25:19]line = 1000.24 [08:25:19]line НДС 12% НСП 1% [08:25:19]line > о реализуемом товаре [08:25:19]line ОКРУГЛЕНИЕ: -0.24 [08:25:19]line ИТОГО: 1000.00 [08:25:19]line Внесено: 1000.00 [08:25:19]line СДАЧА: 0.00 [08:25:19]line НСП 1% : 8.85 [08:25:19]line НДС 12% : 106.22 [08:25:19]line Наличными: 1000.00 [08:25:19]line Безнал.: 0.00 [08:25:19]line Место: АЗС № 92 "Партнер Нефть" [08:25:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:25:19]line СНО: Общий режим [08:25:19]line Чек 31 17.02.2025 08:25 [08:25:19]line Смена: 644 ФФД: 1.0 [08:25:19]line ЗНМ: 0300000118 [08:25:19]line РНМ: 0000000000091857 [08:25:19]line Версия ККМ: 001 [08:25:19]line ФМ: 0000000000871826 [08:25:19]line ФД: 186444 [08:25:19]line ФПД: 179586688624481 [08:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T082521&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186444&fm=179586688624481&tin=02508201610067®Number=0000000000091857&sum=100000 [08:25:19]OFD Sender: Processing packet 186444 [packets to send 49, broken 48] [08:25:19]ProducePacketName [08:25:19]name=ofd_packets/00186444 [08:25:19]OFD Sender: To server: pG, [08:25:19]CommunicateWithHost lk.salyk.kg:30040 [08:25:19]ConnectInit lk.salyk.kg [08:25:19]written 0, free lines is 4095 [08:25:19]Connected sock=10 [08:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C B0 07 01 AC F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 71 F2 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D8 02 00 35 04 06 00 A3 55 48 C8 27 61 6D 41 16 FA 32 F1 72 03 [08:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 20 47 00 1E 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4C D8 02 00 F4 03 04 00 CB 98 B2 67 B6 04 01 00 00 8A FB 0C AE 5C 5F 4B 0A [08:25:19]CommunicateWithHost err = 0 [08:25:19]CheckOFDResponse [08:25:19]1017 (14) - 77093643461234 [08:25:19]1041 (16) - 0000000000871826 [08:25:19]1040 (4) - 186444 [08:25:19]1012 (4) - 17.02.2025 02:02 [08:25:19]1206 (1) - 0 [08:25:20]OFD Sender: Remove packet 186444 [08:25:20]ProducePacketName [08:25:20]name=ofd_packets/00186444 [08:25:20]NVStorageDeleteData [08:25:20]Write to MH i2c: 01 00 00 90 17 A7 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 FF 0C B9 [08:25:20]RasterBufferAndPrint [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]line [08:25:20]written 0, free lines is 3333 [08:25:20]MH_Cut [08:25:20]Write to MH i2c: D1 01 00 97 17 01 80 [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 [08:25:20]MH_I2C_Read... [08:25:20]Read from MH i2c: D1 01 00 97 17 00 7F [08:25:20]Write to MH i2c: 01 00 00 98 17 AF [08:25:20]Write i2c OK [08:25:20]MH_I2C_Read... [08:25:20]OFD Sender: No OFD packet to send [08:25:20]*** Cut start [08:25:20]*** Partial cut [08:25:20]*** CUTSNS_PIN = 1 [08:25:20]*** CUTSNS_PIN = 0 [08:25:21]*** Brake cut motor [08:25:21]Read from MH i2c: 01 [08:25:21]MH_I2C_Read... [08:25:21]*** Stop cut motor [08:25:21]*** Cut end [08:25:21]Read from MH i2c: 01 07 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: 01 07 00 98 17 00 00 00 00 00 FF 0F C4 [08:25:21]process_action close_receipt done [08:25:21]requested_data is exist [08:25:21]produce_requested_data [08:25:21]requested_item fm.sn is exist - process it [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 11 00 00 [08:25:21]Write to MH i2c: E2 08 00 99 17 80 11 00 00 00 00 00 00 2A [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 17 00 99 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [08:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:25:21]wFMCommunicate OK [08:25:21]requested_item fd.num is exist - process it [08:25:21]SAM_PROTO_GetFieldsCounters [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 00 00 [08:25:21]Write to MH i2c: E2 08 00 9A 17 80 13 00 00 00 00 00 00 2D [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 62 00 9A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [08:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetFieldsCounters done [08:25:21]requested_item shift.num is exist - process it [08:25:21]requested_item shift.opened is exist - process it [08:25:21]req_shift_opened [08:25:21]FM_GetShiftState [08:25:21]SAM_PROTO_GetShiftState [08:25:21]wFMCommunicate request_size=4 [08:25:21]MH_SAM_APDU [08:25:21]CAPDU: 80 13 01 00 [08:25:21]Write to MH i2c: E2 08 00 9B 17 80 13 01 00 00 00 00 00 2F [08:25:21]Write i2c OK [08:25:21]MH_I2C_Read... [08:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:21]Read from MH i2c: E2 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 [08:25:21]MH_I2C_Read... [08:25:21]Read from MH i2c: E2 0E 00 9B 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 53 [08:25:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:25:21]wFMCommunicate OK [08:25:21]SAM_PROTO_GetShiftState done [08:25:21]FM_GetShiftState done [08:25:21]req_shift_opened done [08:25:21]requested_item shift.open_date is exist - process it [08:25:21]req_shift_open_date [08:25:21]req_shift_open_date done [08:25:21]produce_requested_data done [08:25:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186444,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:25:21]process_action_free close_receipt [08:25:21]json_value_free [08:25:21]json_value_free done [08:25:21]process_json_proto returns [08:25:21]Send response to host [08:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186444,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:25:21]free response buf [08:25:21]execute_script done [08:25:21]execute_script returns [08:25:21]free content buf [08:25:21]Sock 9.Close socket [08:25:21]Sock 9.Thread stoped [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:14]accept exits with 8 [08:30:14]New connection [08:30:14]New thread 3067501924 created [08:30:14]Thread 3067358564 joined [08:30:14]Waiting for new connection... [08:30:14] Sock 8.Parse request [08:30:14]Sock 8.Check first char [08:30:14]Sock 8.First char is OK [08:30:14]request: POST /json_proto HTTP/1.0 [08:30:14]Method: POST [08:30:14]URL: /json_proto [08:30:14]Method is POST - this is cgi request [08:30:14]url: /json_proto [08:30:14]query_string will be loaded in cgi processing [08:30:14]execute_cgi json_proto POST (null) [08:30:14]execute_cgi path=json_proto method=POST [08:30:14]POST find Content-Length [08:30:14]Host: 172.17.46.131:8080 [08:30:14]Content-Length: 677 [08:30:14]Content-Type: application/json [08:30:14] [08:30:14]POST finish read [08:30:14]Found Content-Length = 677 [08:30:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:14]execute_script... [08:30:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:14]POST & json_proto [08:30:14]process_json_proto [08:30:14]json parsed OK: [08:30:14]protocol is kg_v1.0 [08:30:14]action value=close_receipt [08:30:14]process_action close_receipt [08:30:14]cmd_close_receipt [08:30:14]MH_GetDate [08:30:14]Write to MH i2c: F0 00 00 9C 17 A2 [08:30:14]Write i2c OK [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: F0 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: F0 09 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: F0 09 00 9C 17 00 99 F3 B2 67 7E 41 4F 65 C3 [08:30:14]GetLastDocTimeStamp 1739780721 [08:30:14]current date 1739781017 [08:30:14]FM_GetShiftState [08:30:14]SAM_PROTO_GetShiftState [08:30:14]wFMCommunicate request_size=4 [08:30:14]MH_SAM_APDU [08:30:14]CAPDU: 80 13 01 00 [08:30:14]Write to MH i2c: E2 08 00 9D 17 80 13 01 00 00 00 00 00 31 [08:30:14]Write i2c OK [08:30:14]MH_I2C_Read... [08:30:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:14]Read from MH i2c: E2 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 0E 00 [08:30:14]MH_I2C_Read... [08:30:14]Read from MH i2c: E2 0E 00 9D 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 55 [08:30:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:30:14]wFMCommunicate OK [08:30:14]SAM_PROTO_GetShiftState done [08:30:14]FM_GetShiftState done [08:30:14]opened in 1739752571 [08:30:14]opened+sec_in_day 1739838971 [08:30:14]quantity*price = 40060 [08:30:14]sum+1 = 40062 [08:30:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 32 17.02.2025 08:30 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186445 ФПД: 48927842326030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083017&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186445&fm=48927842326030&tin=02508201610067®Number=0000000000091857&sum=40000 [08:30:15]StoreToDocumentArchive [08:30:15]shift 644 fd 186445 [08:30:15]save to /storage/0644/doc_00186445 [08:30:15]save last doc name /storage/0644/doc_00186445 to /storage/kkm_last_doc_name [08:30:15]save OK [08:30:15]Clear old archive folders... [08:30:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:15]tlvbuf is B6F2E1C0 [08:30:15]SAM_PROTO_ClearQueue [08:30:15]wFMCommunicate request_size=4 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 09 00 00 [08:30:15]Write to MH i2c: E2 08 00 AA 17 80 09 00 00 00 00 00 00 33 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 AA 17 00 90 00 35 [08:30:15]RAPDU: 90 00 [08:30:15]wFMCommunicate OK [08:30:15]SAM_PROTO_ClearQueue done [08:30:15]KKMCreateOFDPacket [08:30:15]OFDProtocolAddRootSTLVToBuf [08:30:15]FM_MakeSignedData [08:30:15]FM_MakeSignedData [08:30:15]SAM_PROTO_SignData [08:30:15]wFMCommunicate request_size=4 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 0D 01 02 [08:30:15]Write to MH i2c: E2 08 00 AB 17 80 0D 01 02 00 00 00 00 3B [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 AB 17 00 90 00 36 [08:30:15]RAPDU: 90 00 [08:30:15]wFMCommunicate OK [08:30:15]wFMCommunicate request_size=255 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D8 02 00 35 04 06 00 2C [08:30:15]Write to MH i2c: E2 02 01 AC 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D8 02 00 35 04 06 00 2C 00 00 6C [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [08:30:15]RAPDU: 90 00 [08:30:15]wFMCommunicate OK [08:30:15]wFMCommunicate request_size=10 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 0D 02 02 05 7F E6 A9 56 0E [08:30:15]Write to MH i2c: E2 0D 00 AD 17 80 0D 02 02 05 00 7F E6 A9 56 0E 00 00 BA [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]OFD Sender: No OFD packet to send [08:30:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [08:30:15]RAPDU: 90 00 [08:30:15]wFMCommunicate OK [08:30:15]wFMCommunicate request_size=4 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 0D 03 02 [08:30:15]Write to MH i2c: E2 08 00 AE 17 80 0D 03 02 00 00 00 00 40 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 0B 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 0B 00 AE 17 00 40 60 D4 6A C6 C3 CF B8 90 00 2F [08:30:15]RAPDU: 40 60 D4 6A C6 C3 CF B8 90 00 [08:30:15]wFMCommunicate OK [08:30:15]SAM_PROTO_SignData done [08:30:15]FM_MakeSignedData done [08:30:15]CreateOFDProtocolMessage [08:30:15]wFMCommunicate request_size=4 [08:30:15]MH_SAM_APDU [08:30:15]CAPDU: 80 11 00 00 [08:30:15]Write to MH i2c: E2 08 00 AF 17 80 11 00 00 00 00 00 00 40 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:15]Read from MH i2c: E2 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 17 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: E2 17 00 AF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [08:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:15]wFMCommunicate OK [08:30:15]CreateOFDProtocolMessage done [08:30:15]OFDSenderStorePacket 186445 [08:30:15]StoreOFDPacket docnum=186445 [08:30:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E5 EB 07 01 A5 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D8 02 00 35 04 06 00 2C 7F E6 A9 56 0E 40 60 D4 6A C6 C3 CF B8 [08:30:15]CheckFolder [08:30:15]dirname=/storage/ofd_packets [08:30:15]CheckFolder done [08:30:15]ProducePacketName [08:30:15]name=ofd_packets/00186445 [08:30:15]NVStorageSaveData ofd_packets/00186445 [08:30:15]File name is /storage/ofd_packets/00186445 [08:30:15]Write 301 bytes [08:30:15]NVStorageSaveData done [08:30:15]OFDSenderStorePacket done [08:30:15]KKMCreateOFDPacket done [08:30:15]NVStorageSaveData kkm_last_timestamp [08:30:15]File name is /storage/kkm_last_timestamp [08:30:15]Write 4 bytes [08:30:15]NVStorageSaveData done [08:30:15]ExternCall_PrintAddStr [08:30:15]wPrintStart [08:30:15]Write to MH i2c: 01 00 00 B0 17 C7 [08:30:15]Write i2c OK [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: 01 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: 01 07 00 [08:30:15]MH_I2C_Read... [08:30:15]Read from MH i2c: 01 07 00 B0 17 00 00 00 00 00 FF 0F DC [08:30:15]RasterBufferAndPrint [08:30:15]line Счет N : (1)411577 [08:30:15]line ИНН: 02508201610067 [08:30:15]line Контрольно-Кассовый Чек [08:30:15]line ПРОДАЖА [08:30:15]line ТРК (МРК, ГНК) : 12 [08:30:15]line Товар: 2710124130 [08:30:15]line Аи-92-К-2 [08:30:15]line 6.240 * 64.20 [08:30:15]line = 400.61 [08:30:15]line НДС 12% НСП 1% [08:30:15]line > о реализуемом товаре [08:30:15]line ОКРУГЛЕНИЕ: -0.61 [08:30:15]line ИТОГО: 400.00 [08:30:15]line Внесено: 400.00 [08:30:15]line СДАЧА: 0.00 [08:30:15]line НСП 1% : 3.54 [08:30:15]line НДС 12% : 42.54 [08:30:15]line Наличными: 400.00 [08:30:15]line Безнал.: 0.00 [08:30:15]line Место: АЗС № 92 "Партнер Нефть" [08:30:15]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:30:15]line СНО: Общий режим [08:30:15]line Чек 32 17.02.2025 08:30 [08:30:15]line Смена: 644 ФФД: 1.0 [08:30:15]line ЗНМ: 0300000118 [08:30:15]line РНМ: 0000000000091857 [08:30:15]line Версия ККМ: 001 [08:30:15]line ФМ: 0000000000871826 [08:30:15]line ФД: 186445 [08:30:15]line ФПД: 48927842326030 [08:30:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083017&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186445&fm=48927842326030&tin=02508201610067®Number=0000000000091857&sum=40000 [08:30:16]OFD Sender: Processing packet 186445 [packets to send 49, broken 48] [08:30:16]ProducePacketName [08:30:16]name=ofd_packets/00186445 [08:30:16]OFD Sender: To server: pG, [08:30:16]CommunicateWithHost lk.salyk.kg:30040 [08:30:16]ConnectInit lk.salyk.kg [08:30:16]written 0, free lines is 4095 [08:30:16]Connected sock=10 [08:30:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E5 EB 07 01 A5 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 99 F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D8 02 00 35 04 06 00 2C 7F E6 A9 56 0E 40 60 D4 6A C6 C3 CF B8 [08:30:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 98 DE 47 00 1B 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4D D8 02 00 F4 03 04 00 F4 99 B2 67 B6 04 01 00 00 1F CA D4 94 F8 BF 33 50 [08:30:16]CommunicateWithHost err = 0 [08:30:16]CheckOFDResponse [08:30:16]1017 (14) - 77093643461234 [08:30:16]1041 (16) - 0000000000871826 [08:30:16]1040 (4) - 186445 [08:30:16]1012 (4) - 17.02.2025 02:07 [08:30:16]1206 (1) - 0 [08:30:16]OFD Sender: Remove packet 186445 [08:30:16]ProducePacketName [08:30:16]name=ofd_packets/00186445 [08:30:16]NVStorageDeleteData [08:30:16]Write to MH i2c: 01 00 00 DB 17 F2 [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 07 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: 01 07 00 DB 17 00 00 00 00 00 F6 0C FB [08:30:16]RasterBufferAndPrint [08:30:16]line [08:30:16]line [08:30:16]line [08:30:16]line [08:30:16]line [08:30:16]written 0, free lines is 3324 [08:30:16]MH_Cut [08:30:16]Write to MH i2c: D1 01 00 E2 17 01 CB [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: D1 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: D1 01 00 [08:30:16]MH_I2C_Read... [08:30:16]Read from MH i2c: D1 01 00 E2 17 00 CA [08:30:16]Write to MH i2c: 01 00 00 E3 17 FA [08:30:16]Write i2c OK [08:30:16]MH_I2C_Read... [08:30:17]OFD Sender: No OFD packet to send [08:30:17]*** Cut start [08:30:17]*** Partial cut [08:30:17]*** CUTSNS_PIN = 1 [08:30:17]*** CUTSNS_PIN = 0 [08:30:17]*** Brake cut motor [08:30:18]Read from MH i2c: 01 [08:30:18]MH_I2C_Read... [08:30:18]*** Stop cut motor [08:30:18]*** Cut end [08:30:18]Read from MH i2c: 01 07 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 FF 0F 0F [08:30:18]process_action close_receipt done [08:30:18]requested_data is exist [08:30:18]produce_requested_data [08:30:18]requested_item fm.sn is exist - process it [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 11 00 00 [08:30:18]Write to MH i2c: E2 08 00 E4 17 80 11 00 00 00 00 00 00 75 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 17 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 17 00 E4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [08:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:30:18]wFMCommunicate OK [08:30:18]requested_item fd.num is exist - process it [08:30:18]SAM_PROTO_GetFieldsCounters [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 13 00 00 [08:30:18]Write to MH i2c: E2 08 00 E5 17 80 13 00 00 00 00 00 00 78 [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 62 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 62 00 E5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [08:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:18]wFMCommunicate OK [08:30:18]SAM_PROTO_GetFieldsCounters done [08:30:18]requested_item shift.num is exist - process it [08:30:18]requested_item shift.opened is exist - process it [08:30:18]req_shift_opened [08:30:18]FM_GetShiftState [08:30:18]SAM_PROTO_GetShiftState [08:30:18]wFMCommunicate request_size=4 [08:30:18]MH_SAM_APDU [08:30:18]CAPDU: 80 13 01 00 [08:30:18]Write to MH i2c: E2 08 00 E6 17 80 13 01 00 00 00 00 00 7A [08:30:18]Write i2c OK [08:30:18]MH_I2C_Read... [08:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:18]Read from MH i2c: E2 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 0E 00 [08:30:18]MH_I2C_Read... [08:30:18]Read from MH i2c: E2 0E 00 E6 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9E [08:30:18]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:30:18]wFMCommunicate OK [08:30:18]SAM_PROTO_GetShiftState done [08:30:18]FM_GetShiftState done [08:30:18]req_shift_opened done [08:30:18]requested_item shift.open_date is exist - process it [08:30:18]req_shift_open_date [08:30:18]req_shift_open_date done [08:30:18]produce_requested_data done [08:30:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186445,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:30:18]process_action_free close_receipt [08:30:18]json_value_free [08:30:18]json_value_free done [08:30:18]process_json_proto returns [08:30:18]Send response to host [08:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186445,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:30:18]free response buf [08:30:18]execute_script done [08:30:18]execute_script returns [08:30:18]free content buf [08:30:18]Sock 8.Close socket [08:30:18]Sock 8.Thread stoped [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:36]accept exits with 9 [08:31:36]New connection [08:31:36]New thread 3067358564 created [08:31:36]Thread 3067501924 joined [08:31:36]Waiting for new connection... [08:31:36] Sock 9.Parse request [08:31:36]Sock 9.Check first char [08:31:36]Sock 9.First char is OK [08:31:36]request: POST /json_proto HTTP/1.0 [08:31:36]Method: POST [08:31:36]URL: /json_proto [08:31:36]Method is POST - this is cgi request [08:31:36]url: /json_proto [08:31:36]query_string will be loaded in cgi processing [08:31:36]execute_cgi json_proto POST (null) [08:31:36]execute_cgi path=json_proto method=POST [08:31:36]POST find Content-Length [08:31:36]Host: 172.17.46.131:8080 [08:31:36]Content-Length: 677 [08:31:36]Content-Type: application/json [08:31:36] [08:31:36]POST finish read [08:31:36]Found Content-Length = 677 [08:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:36]execute_script... [08:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:36]POST & json_proto [08:31:36]process_json_proto [08:31:36]json parsed OK: [08:31:36]protocol is kg_v1.0 [08:31:36]action value=close_receipt [08:31:36]process_action close_receipt [08:31:36]cmd_close_receipt [08:31:36]MH_GetDate [08:31:36]Write to MH i2c: F0 00 00 E7 17 ED [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: F0 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: F0 09 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: F0 09 00 E7 17 00 EC F3 B2 67 7E 41 4F 65 61 [08:31:36]GetLastDocTimeStamp 1739781017 [08:31:36]current date 1739781100 [08:31:36]FM_GetShiftState [08:31:36]SAM_PROTO_GetShiftState [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 13 01 00 [08:31:36]Write to MH i2c: E2 08 00 E8 17 80 13 01 00 00 00 00 00 7C [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 E8 17 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A0 [08:31:36]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_GetShiftState done [08:31:36]FM_GetShiftState done [08:31:36]opened in 1739752571 [08:31:36]opened+sec_in_day 1739838971 [08:31:36]quantity*price = 50011 [08:31:36]sum+1 = 50013 [08:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 33 17.02.2025 08:31 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186446 ФПД: 41076953714594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083140&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186446&fm=41076953714594&tin=02508201610067®Number=0000000000091857&sum=50000 [08:31:37]StoreToDocumentArchive [08:31:37]shift 644 fd 186446 [08:31:37]save to /storage/0644/doc_00186446 [08:31:37]save last doc name /storage/0644/doc_00186446 to /storage/kkm_last_doc_name [08:31:37]save OK [08:31:37]Clear old archive folders... [08:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:37]tlvbuf is B6F47A40 [08:31:37]SAM_PROTO_ClearQueue [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 09 00 00 [08:31:37]Write to MH i2c: E2 08 00 F5 17 80 09 00 00 00 00 00 00 7E [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 03 00 F5 17 00 90 00 80 [08:31:37]RAPDU: 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_ClearQueue done [08:31:37]KKMCreateOFDPacket [08:31:37]OFDProtocolAddRootSTLVToBuf [08:31:37]FM_MakeSignedData [08:31:37]FM_MakeSignedData [08:31:37]SAM_PROTO_SignData [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 0D 01 02 [08:31:37]Write to MH i2c: E2 08 00 F6 17 80 0D 01 02 00 00 00 00 86 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=255 [08:31:38]MH_SAM_APDU [08:31: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EC F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D8 02 00 35 04 06 00 25 [08:31:38]Write to MH i2c: E2 02 01 F7 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EC F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D8 02 00 35 04 06 00 25 00 00 0B [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=10 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 0D 02 02 05 5B F9 3C 0F A2 [08:31:38]Write to MH i2c: E2 0D 00 F8 17 80 0D 02 02 05 00 5B F9 3C 0F A2 00 00 D4 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [08:31:38]RAPDU: 90 00 [08:31:38]wFMCommunicate OK [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 0D 03 02 [08:31:38]Write to MH i2c: E2 08 00 F9 17 80 0D 03 02 00 00 00 00 8B [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 0B 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 0B 00 F9 17 00 56 B8 6F 43 B2 26 73 C1 90 00 58 [08:31:38]RAPDU: 56 B8 6F 43 B2 26 73 C1 90 00 [08:31:38]wFMCommunicate OK [08:31:38]SAM_PROTO_SignData done [08:31:38]FM_MakeSignedData done [08:31:38]CreateOFDProtocolMessage [08:31:38]wFMCommunicate request_size=4 [08:31:38]MH_SAM_APDU [08:31:38]CAPDU: 80 11 00 00 [08:31:38]Write to MH i2c: E2 08 00 FA 17 80 11 00 00 00 00 00 00 8B [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:38]Read from MH i2c: E2 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 17 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: E2 17 00 FA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DE [08:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:38]wFMCommunicate OK [08:31:38]CreateOFDProtocolMessage done [08:31:38]OFDSenderStorePacket 186446 [08:31:38]StoreOFDPacket docnum=186446 [08:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 95 07 01 57 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EC F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D8 02 00 35 04 06 00 25 5B F9 3C 0F A2 56 B8 6F 43 B2 26 73 C1 [08:31:38]CheckFolder [08:31:38]dirname=/storage/ofd_packets [08:31:38]CheckFolder done [08:31:38]ProducePacketName [08:31:38]name=ofd_packets/00186446 [08:31:38]NVStorageSaveData ofd_packets/00186446 [08:31:38]File name is /storage/ofd_packets/00186446 [08:31:38]Write 301 bytes [08:31:38]NVStorageSaveData done [08:31:38]OFDSenderStorePacket done [08:31:38]KKMCreateOFDPacket done [08:31:38]NVStorageSaveData kkm_last_timestamp [08:31:38]File name is /storage/kkm_last_timestamp [08:31:38]Write 4 bytes [08:31:38]NVStorageSaveData done [08:31:38]ExternCall_PrintAddStr [08:31:38]wPrintStart [08:31:38]Write to MH i2c: 01 00 00 FB 17 12 [08:31:38]Write i2c OK [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 [08:31:38]MH_I2C_Read... [08:31:38]Read from MH i2c: 01 07 00 FB 17 00 00 00 00 00 FF 0F 27 [08:31:38]RasterBufferAndPrint [08:31:38]line Счет N : (1)411578 [08:31:38]line ИНН: 02508201610067 [08:31:38]line Контрольно-Кассовый Чек [08:31:38]line ПРОДАЖА [08:31:38]line ТРК (МРК, ГНК) : 42 [08:31:38]line Товар: 2710124130 [08:31:38]line Аи-92-К-2 [08:31:38]line 7.790 * 64.20 [08:31:38]line = 500.12 [08:31:38]line НДС 12% НСП 1% [08:31:38]line > о реализуемом товаре [08:31:38]line ОКРУГЛЕНИЕ: -0.12 [08:31:38]line ИТОГО: 500.00 [08:31:38]line Внесено: 500.00 [08:31:38]line СДАЧА: 0.00 [08:31:38]line НСП 1% : 4.43 [08:31:38]line НДС 12% : 53.11 [08:31:38]line Наличными: 500.00 [08:31:38]line Безнал.: 0.00 [08:31:38]line Место: АЗС № 92 "Партнер Нефть" [08:31:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:31:38]line СНО: Общий режим [08:31:38]line Чек 33 17.02.2025 08:31 [08:31:38]line Смена: 644 ФФД: 1.0 [08:31:38]line ЗНМ: 0300000118 [08:31:38]line РНМ: 0000000000091857 [08:31:38]line Версия ККМ: 001 [08:31:38]line ФМ: 0000000000871826 [08:31:38]line ФД: 186446 [08:31:38]line ФПД: 41076953714594 [08:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083140&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186446&fm=41076953714594&tin=02508201610067®Number=0000000000091857&sum=50000 [08:31:38]written 0, free lines is 4095 [08:31:38]OFD Sender: Processing packet 186446 [packets to send 49, broken 48] [08:31:38]ProducePacketName [08:31:38]name=ofd_packets/00186446 [08:31:38]OFD Sender: To server: pG, [08:31:38]CommunicateWithHost lk.salyk.kg:30040 [08:31:38]ConnectInit lk.salyk.kg [08:31:38]Connected sock=10 [08:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 95 07 01 57 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 EC F3 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D8 02 00 35 04 06 00 25 5B F9 3C 0F A2 56 B8 6F 43 B2 26 73 C1 [08:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 60 38 47 00 55 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4E D8 02 00 F4 03 04 00 47 9A B2 67 B6 04 01 00 00 7A D4 29 7D AE 27 32 BD [08:31:39]CommunicateWithHost err = 0 [08:31:39]CheckOFDResponse [08:31:39]1017 (14) - 77093643461234 [08:31:39]1041 (16) - 0000000000871826 [08:31:39]1040 (4) - 186446 [08:31:39]1012 (4) - 17.02.2025 02:09 [08:31:39]1206 (1) - 0 [08:31:39]OFD Sender: Remove packet 186446 [08:31:39]ProducePacketName [08:31:39]name=ofd_packets/00186446 [08:31:39]NVStorageDeleteData [08:31:39]Write to MH i2c: 01 00 00 26 18 3E [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: 01 07 00 26 18 00 00 00 00 00 F7 0C 48 [08:31:39]RasterBufferAndPrint [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]line [08:31:39]written 0, free lines is 3326 [08:31:39]MH_Cut [08:31:39]Write to MH i2c: D1 01 00 2D 18 01 17 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 01 00 [08:31:39]MH_I2C_Read... [08:31:39]Read from MH i2c: D1 01 00 2D 18 00 16 [08:31:39]Write to MH i2c: 01 00 00 2E 18 46 [08:31:39]Write i2c OK [08:31:39]MH_I2C_Read... [08:31:39]OFD Sender: No OFD packet to send [08:31:39]*** Cut start [08:31:39]*** Partial cut [08:31:39]*** CUTSNS_PIN = 1 [08:31:39]*** CUTSNS_PIN = 0 [08:31:40]*** Brake cut motor [08:31:40]Read from MH i2c: 01 [08:31:40]MH_I2C_Read... [08:31:40]*** Stop cut motor [08:31:40]*** Cut end [08:31:40]Read from MH i2c: 01 07 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: 01 07 00 2E 18 00 00 00 00 00 FF 0F 5B [08:31:40]process_action close_receipt done [08:31:40]requested_data is exist [08:31:40]produce_requested_data [08:31:40]requested_item fm.sn is exist - process it [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 11 00 00 [08:31:40]Write to MH i2c: E2 08 00 2F 18 80 11 00 00 00 00 00 00 C1 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 17 00 2F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 14 [08:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:31:40]wFMCommunicate OK [08:31:40]requested_item fd.num is exist - process it [08:31:40]SAM_PROTO_GetFieldsCounters [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 13 00 00 [08:31:40]Write to MH i2c: E2 08 00 30 18 80 13 00 00 00 00 00 00 C4 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 62 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 62 00 30 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [08:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetFieldsCounters done [08:31:40]requested_item shift.num is exist - process it [08:31:40]requested_item shift.opened is exist - process it [08:31:40]req_shift_opened [08:31:40]FM_GetShiftState [08:31:40]SAM_PROTO_GetShiftState [08:31:40]wFMCommunicate request_size=4 [08:31:40]MH_SAM_APDU [08:31:40]CAPDU: 80 13 01 00 [08:31:40]Write to MH i2c: E2 08 00 31 18 80 13 01 00 00 00 00 00 C6 [08:31:40]Write i2c OK [08:31:40]MH_I2C_Read... [08:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:40]Read from MH i2c: E2 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0E 00 [08:31:40]MH_I2C_Read... [08:31:40]Read from MH i2c: E2 0E 00 31 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EA [08:31:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:31:40]wFMCommunicate OK [08:31:40]SAM_PROTO_GetShiftState done [08:31:40]FM_GetShiftState done [08:31:40]req_shift_opened done [08:31:40]requested_item shift.open_date is exist - process it [08:31:40]req_shift_open_date [08:31:40]req_shift_open_date done [08:31:40]produce_requested_data done [08:31:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186446,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:31:40]process_action_free close_receipt [08:31:40]json_value_free [08:31:40]json_value_free done [08:31:40]process_json_proto returns [08:31:40]Send response to host [08:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186446,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:31:40]free response buf [08:31:40]execute_script done [08:31:40]execute_script returns [08:31:40]free content buf [08:31:40]Sock 9.Close socket [08:31:40]Sock 9.Thread stoped [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:33]accept exits with 8 [08:32:33]New connection [08:32:33]New thread 3067501924 created [08:32:33]Thread 3067358564 joined [08:32:33]Waiting for new connection... [08:32:33] Sock 8.Parse request [08:32:33]Sock 8.Check first char [08:32:33]Sock 8.First char is OK [08:32:33]request: POST /json_proto HTTP/1.0 [08:32:33]Method: POST [08:32:33]URL: /json_proto [08:32:33]Method is POST - this is cgi request [08:32:33]url: /json_proto [08:32:33]query_string will be loaded in cgi processing [08:32:33]execute_cgi json_proto POST (null) [08:32:33]execute_cgi path=json_proto method=POST [08:32:33]POST find Content-Length [08:32:33]Host: 172.17.46.131:8080 [08:32:33]Content-Length: 803 [08:32:33]Content-Type: application/json [08:32:33] [08:32:33]POST finish read [08:32:33]Found Content-Length = 803 [08:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:33]execute_script... [08:32:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:33]POST & json_proto [08:32:33]process_json_proto [08:32:33]json parsed OK: [08:32:33]protocol is kg_v1.0 [08:32:33]action value=close_receipt [08:32:33]process_action close_receipt [08:32:33]cmd_close_receipt [08:32:33]MH_GetDate [08:32:33]Write to MH i2c: F0 00 00 32 18 39 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: F0 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: F0 09 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: F0 09 00 32 18 00 25 F4 B2 67 7E 41 4F 65 E7 [08:32:33]GetLastDocTimeStamp 1739781100 [08:32:33]current date 1739781157 [08:32:33]FM_GetShiftState [08:32:33]SAM_PROTO_GetShiftState [08:32:33]wFMCommunicate request_size=4 [08:32:33]MH_SAM_APDU [08:32:33]CAPDU: 80 13 01 00 [08:32:33]Write to MH i2c: E2 08 00 33 18 80 13 01 00 00 00 00 00 C8 [08:32:33]Write i2c OK [08:32:33]MH_I2C_Read... [08:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:33]Read from MH i2c: E2 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 [08:32:33]MH_I2C_Read... [08:32:33]Read from MH i2c: E2 0E 00 33 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EC [08:32:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:32:33]wFMCommunicate OK [08:32:33]SAM_PROTO_GetShiftState done [08:32:33]FM_GetShiftState done [08:32:33]opened in 1739752571 [08:32:33]opened+sec_in_day 1739838971 [08:32:33]quantity*price = 100012 [08:32:33]sum+1 = 100014 [08:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 34 17.02.2025 08:32 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186447 ФПД: 186897444719049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186447&fm=186897444719049&tin=02508201610067®Number=0000000000091857&sum=100013 [08:32:34]StoreToDocumentArchive [08:32:34]shift 644 fd 186447 [08:32:34]save to /storage/0644/doc_00186447 [08:32:34]save last doc name /storage/0644/doc_00186447 to /storage/kkm_last_doc_name [08:32:34]save OK [08:32:34]Clear old archive folders... [08:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:34]tlvbuf is 01FB6400 [08:32:34]SAM_PROTO_ClearQueue [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 09 00 00 [08:32:34]Write to MH i2c: E2 08 00 40 18 80 09 00 00 00 00 00 00 CA [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 03 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 03 00 40 18 00 90 00 CC [08:32:34]RAPDU: 90 00 [08:32:34]wFMCommunicate OK [08:32:34]SAM_PROTO_ClearQueue done [08:32:34]KKMCreateOFDPacket [08:32:34]OFDProtocolAddRootSTLVToBuf [08:32:34]FM_MakeSignedData [08:32:34]FM_MakeSignedData [08:32:34]SAM_PROTO_SignData [08:32:34]wFMCommunicate request_size=4 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 0D 01 02 [08:32:34]Write to MH i2c: E2 08 00 41 18 80 0D 01 02 00 00 00 00 D2 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:34]Read from MH i2c: E2 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 03 00 [08:32:34]MH_I2C_Read... [08:32:34]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [08:32:34]RAPDU: 90 00 [08:32:34]wFMCommunicate OK [08:32:34]wFMCommunicate request_size=255 [08:32:34]MH_SAM_APDU [08:32:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 25 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D8 02 00 35 04 06 00 A9 [08:32:34]Write to MH i2c: E2 02 01 42 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 25 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D8 02 00 35 04 06 00 A9 00 00 09 [08:32:34]Write i2c OK [08:32:34]MH_I2C_Read... [08:32:34]OFD Sender: No OFD packet to send [08:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [08:32:35]RAPDU: 90 00 [08:32:35]wFMCommunicate OK [08:32:35]wFMCommunicate request_size=10 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 0D 02 02 05 FB 73 CD 49 C9 [08:32:35]Write to MH i2c: E2 0D 00 43 18 80 0D 02 02 05 00 FB 73 CD 49 C9 00 00 2C [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [08:32:35]RAPDU: 90 00 [08:32:35]wFMCommunicate OK [08:32:35]wFMCommunicate request_size=4 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 0D 03 02 [08:32:35]Write to MH i2c: E2 08 00 44 18 80 0D 03 02 00 00 00 00 D7 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 0B 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 0B 00 44 18 00 A3 9B 49 2F 3D 35 80 7B 90 00 FB [08:32:35]RAPDU: A3 9B 49 2F 3D 35 80 7B 90 00 [08:32:35]wFMCommunicate OK [08:32:35]SAM_PROTO_SignData done [08:32:35]FM_MakeSignedData done [08:32:35]CreateOFDProtocolMessage [08:32:35]wFMCommunicate request_size=4 [08:32:35]MH_SAM_APDU [08:32:35]CAPDU: 80 11 00 00 [08:32:35]Write to MH i2c: E2 08 00 45 18 80 11 00 00 00 00 00 00 D7 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:35]Read from MH i2c: E2 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 17 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: E2 17 00 45 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [08:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:35]wFMCommunicate OK [08:32:35]CreateOFDProtocolMessage done [08:32:35]OFDSenderStorePacket 186447 [08:32:35]StoreOFDPacket docnum=186447 [08:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 6E 07 01 F1 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 25 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D8 02 00 35 04 06 00 A9 FB 73 CD 49 C9 A3 9B 49 2F 3D 35 80 7B [08:32:35]CheckFolder [08:32:35]dirname=/storage/ofd_packets [08:32:35]CheckFolder done [08:32:35]ProducePacketName [08:32:35]name=ofd_packets/00186447 [08:32:35]NVStorageSaveData ofd_packets/00186447 [08:32:35]File name is /storage/ofd_packets/00186447 [08:32:35]Write 301 bytes [08:32:35]NVStorageSaveData done [08:32:35]OFDSenderStorePacket done [08:32:35]KKMCreateOFDPacket done [08:32:35]NVStorageSaveData kkm_last_timestamp [08:32:35]File name is /storage/kkm_last_timestamp [08:32:35]Write 4 bytes [08:32:35]NVStorageSaveData done [08:32:35]ExternCall_PrintAddStr [08:32:35]wPrintStart [08:32:35]Write to MH i2c: 01 00 00 46 18 5E [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 07 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 07 00 46 18 00 00 00 00 00 FF 0F 73 [08:32:35]RasterBufferAndPrint [08:32:35]line Счет N : (1)411579 [08:32:35]line ИНН: 02508201610067 [08:32:35]line Контрольно-Кассовый Чек [08:32:35]line ПРОДАЖА [08:32:35]line ТРК (МРК, ГНК) : 23 [08:32:35]line Товар: 2710124500 [08:32:35]line Аи-95-К-5 [08:32:35]line 13.910 * 71.90 [08:32:35]line = 1000.13 [08:32:35]line НДС 12% НСП 1% [08:32:35]line > о реализуемом товаре [08:32:35]line ИТОГО: 1000.13 [08:32:35]line НСП 1% : 8.85 [08:32:35]line НДС 12% : 106.21 [08:32:35]line Наличными: 0.00 [08:32:35]line Безнал.: 1000.13 [08:32:35]line Место: АЗС № 92 "Партнер Нефть" [08:32:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:32:35]line СНО: Общий режим [08:32:35]line Чек 34 17.02.2025 08:32 [08:32:35]line Смена: 644 ФФД: 1.0 [08:32:35]line ЗНМ: 0300000118 [08:32:35]line РНМ: 0000000000091857 [08:32:35]line Версия ККМ: 001 [08:32:35]line Платежная система: O! деньги [08:32:35]line ФМ: 0000000000871826 [08:32:35]line ФД: 186447 [08:32:35]line ФПД: 186897444719049 [08:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186447&fm=186897444719049&tin=02508201610067®Number=0000000000091857&sum=100013 [08:32:35]OFD Sender: Processing packet 186447 [packets to send 49, broken 48] [08:32:35]ProducePacketName [08:32:35]name=ofd_packets/00186447 [08:32:35]OFD Sender: To server: pG, [08:32:35]CommunicateWithHost lk.salyk.kg:30040 [08:32:35]ConnectInit lk.salyk.kg [08:32:35]written 0, free lines is 4095 [08:32:35]Connected sock=9 [08:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AC 6E 07 01 F1 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 25 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D8 02 00 35 04 06 00 A9 FB 73 CD 49 C9 A3 9B 49 2F 3D 35 80 7B [08:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 17 47 00 C3 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 4F D8 02 00 F4 03 04 00 7F 9A B2 67 B6 04 01 00 00 0A CE 8F 6F 94 57 1A 0B [08:32:35]CommunicateWithHost err = 0 [08:32:35]CheckOFDResponse [08:32:35]1017 (14) - 77093643461234 [08:32:35]1041 (16) - 0000000000871826 [08:32:35]1040 (4) - 186447 [08:32:35]1012 (4) - 17.02.2025 02:10 [08:32:35]1206 (1) - 0 [08:32:35]OFD Sender: Remove packet 186447 [08:32:35]ProducePacketName [08:32:35]name=ofd_packets/00186447 [08:32:35]NVStorageDeleteData [08:32:35]Write to MH i2c: 01 00 00 70 18 88 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 07 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 0E 0D AA [08:32:35]RasterBufferAndPrint [08:32:35]line [08:32:35]line [08:32:35]line [08:32:35]line [08:32:35]line [08:32:35]written 0, free lines is 3349 [08:32:35]MH_Cut [08:32:35]Write to MH i2c: D1 01 00 77 18 01 61 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: D1 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: D1 01 00 [08:32:35]MH_I2C_Read... [08:32:35]Read from MH i2c: D1 01 00 77 18 00 60 [08:32:35]Write to MH i2c: 01 00 00 78 18 90 [08:32:35]Write i2c OK [08:32:35]MH_I2C_Read... [08:32:36]OFD Sender: No OFD packet to send [08:32:36]*** Cut start [08:32:36]*** Partial cut [08:32:36]*** CUTSNS_PIN = 1 [08:32:36]*** CUTSNS_PIN = 0 [08:32:36]*** Brake cut motor [08:32:37]Read from MH i2c: 01 [08:32:37]MH_I2C_Read... [08:32:37]*** Stop cut motor [08:32:37]*** Cut end [08:32:37]Read from MH i2c: 01 07 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [08:32:37]process_action close_receipt done [08:32:37]requested_data is exist [08:32:37]produce_requested_data [08:32:37]requested_item fm.sn is exist - process it [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 11 00 00 [08:32:37]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 17 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [08:32:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:32:37]wFMCommunicate OK [08:32:37]requested_item fd.num is exist - process it [08:32:37]SAM_PROTO_GetFieldsCounters [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 13 00 00 [08:32:37]Write to MH i2c: E2 08 00 7A 18 80 13 00 00 00 00 00 00 0E [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 62 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 62 00 7A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [08:32:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 4F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:37]wFMCommunicate OK [08:32:37]SAM_PROTO_GetFieldsCounters done [08:32:37]requested_item shift.num is exist - process it [08:32:37]requested_item shift.opened is exist - process it [08:32:37]req_shift_opened [08:32:37]FM_GetShiftState [08:32:37]SAM_PROTO_GetShiftState [08:32:37]wFMCommunicate request_size=4 [08:32:37]MH_SAM_APDU [08:32:37]CAPDU: 80 13 01 00 [08:32:37]Write to MH i2c: E2 08 00 7B 18 80 13 01 00 00 00 00 00 10 [08:32:37]Write i2c OK [08:32:37]MH_I2C_Read... [08:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:37]Read from MH i2c: E2 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 0E 00 [08:32:37]MH_I2C_Read... [08:32:37]Read from MH i2c: E2 0E 00 7B 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 34 [08:32:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:32:37]wFMCommunicate OK [08:32:37]SAM_PROTO_GetShiftState done [08:32:37]FM_GetShiftState done [08:32:37]req_shift_opened done [08:32:37]requested_item shift.open_date is exist - process it [08:32:37]req_shift_open_date [08:32:37]req_shift_open_date done [08:32:37]produce_requested_data done [08:32:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186447,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:32:37]process_action_free close_receipt [08:32:37]json_value_free [08:32:37]json_value_free done [08:32:37]process_json_proto returns [08:32:37]Send response to host [08:32:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186447,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:32:37]free response buf [08:32:37]execute_script done [08:32:37]execute_script returns [08:32:37]free content buf [08:32:37]Sock 8.Close socket [08:32:37]Sock 8.Thread stoped [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:20]accept exits with 10 [08:33:20]New connection [08:33:20]New thread 3067358564 created [08:33:20]Thread 3067501924 joined [08:33:20]Waiting for new connection... [08:33:20] Sock 10.Parse request [08:33:20]Sock 10.Check first char [08:33:20]Sock 10.First char is OK [08:33:20]request: POST /json_proto HTTP/1.0 [08:33:20]Method: POST [08:33:20]URL: /json_proto [08:33:20]Method is POST - this is cgi request [08:33:20]url: /json_proto [08:33:20]query_string will be loaded in cgi processing [08:33:20]execute_cgi json_proto POST (null) [08:33:20]execute_cgi path=json_proto method=POST [08:33:20]POST find Content-Length [08:33:20]Host: 172.17.46.131:8080 [08:33:20]Content-Length: 677 [08:33:20]Content-Type: application/json [08:33:20] [08:33:20]POST finish read [08:33:20]Found Content-Length = 677 [08:33:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:20]execute_script... [08:33: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)411580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:20]POST & json_proto [08:33:20]process_json_proto [08:33:20]json parsed OK: [08:33:20]protocol is kg_v1.0 [08:33:20]action value=close_receipt [08:33:20]process_action close_receipt [08:33:20]cmd_close_receipt [08:33:20]MH_GetDate [08:33:20]Write to MH i2c: F0 00 00 7C 18 83 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 09 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: F0 09 00 7C 18 00 54 F4 B2 67 7E 41 4F 65 60 [08:33:20]GetLastDocTimeStamp 1739781157 [08:33:20]current date 1739781204 [08:33:20]FM_GetShiftState [08:33:20]SAM_PROTO_GetShiftState [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 13 01 00 [08:33:20]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 36 [08:33:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_GetShiftState done [08:33:20]FM_GetShiftState done [08:33:20]opened in 1739752571 [08:33:20]opened+sec_in_day 1739838971 [08:33:20]quantity*price = 50011 [08:33:20]sum+1 = 50013 [08:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 35 17.02.2025 08:33 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186448 ФПД: 103323223073910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083324&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186448&fm=103323223073910&tin=02508201610067®Number=0000000000091857&sum=50000 [08:33:21]StoreToDocumentArchive [08:33:21]shift 644 fd 186448 [08:33:21]save to /storage/0644/doc_00186448 [08:33:21]save last doc name /storage/0644/doc_00186448 to /storage/kkm_last_doc_name [08:33:21]save OK [08:33:21]Clear old archive folders... [08:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:21]tlvbuf is 01FA18E0 [08:33:21]SAM_PROTO_ClearQueue [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 09 00 00 [08:33:21]Write to MH i2c: E2 08 00 8A 18 80 09 00 00 00 00 00 00 14 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]SAM_PROTO_ClearQueue done [08:33:21]KKMCreateOFDPacket [08:33:21]OFDProtocolAddRootSTLVToBuf [08:33:21]FM_MakeSignedData [08:33:21]FM_MakeSignedData [08:33:21]SAM_PROTO_SignData [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 01 02 [08:33:21]Write to MH i2c: E2 08 00 8B 18 80 0D 01 02 00 00 00 00 1C [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=255 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 54 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D8 02 00 35 04 06 00 5D [08:33:21]Write to MH i2c: E2 02 01 8C 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 54 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D8 02 00 35 04 06 00 5D 00 00 46 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [08:33:22]RAPDU: 90 00 [08:33:22]wFMCommunicate OK [08:33:22]wFMCommunicate request_size=10 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 0D 02 02 05 F8 D0 02 24 76 [08:33:22]Write to MH i2c: E2 0D 00 8D 18 80 0D 02 02 05 00 F8 D0 02 24 76 00 00 8D [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [08:33:22]RAPDU: 90 00 [08:33:22]wFMCommunicate OK [08:33:22]wFMCommunicate request_size=4 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 0D 03 02 [08:33:22]Write to MH i2c: E2 08 00 8E 18 80 0D 03 02 00 00 00 00 21 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 0B 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 0B 00 8E 18 00 5D C3 51 23 69 4C E1 39 90 00 85 [08:33:22]RAPDU: 5D C3 51 23 69 4C E1 39 90 00 [08:33:22]wFMCommunicate OK [08:33:22]SAM_PROTO_SignData done [08:33:22]FM_MakeSignedData done [08:33:22]CreateOFDProtocolMessage [08:33:22]wFMCommunicate request_size=4 [08:33:22]MH_SAM_APDU [08:33:22]CAPDU: 80 11 00 00 [08:33:22]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:22]Read from MH i2c: E2 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 17 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [08:33:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:22]wFMCommunicate OK [08:33:22]CreateOFDProtocolMessage done [08:33:22]OFDSenderStorePacket 186448 [08:33:22]StoreOFDPacket docnum=186448 [08:33:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 91 69 07 01 48 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 54 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D8 02 00 35 04 06 00 5D F8 D0 02 24 76 5D C3 51 23 69 4C E1 39 [08:33:22]CheckFolder [08:33:22]dirname=/storage/ofd_packets [08:33:22]CheckFolder done [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00186448 [08:33:22]NVStorageSaveData ofd_packets/00186448 [08:33:22]File name is /storage/ofd_packets/00186448 [08:33:22]Write 301 bytes [08:33:22]NVStorageSaveData done [08:33:22]OFDSenderStorePacket done [08:33:22]KKMCreateOFDPacket done [08:33:22]NVStorageSaveData kkm_last_timestamp [08:33:22]File name is /storage/kkm_last_timestamp [08:33:22]Write 4 bytes [08:33:22]NVStorageSaveData done [08:33:22]ExternCall_PrintAddStr [08:33:22]wPrintStart [08:33:22]Write to MH i2c: 01 00 00 90 18 A8 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 FF 0F BD [08:33:22]RasterBufferAndPrint [08:33:22]line Счет N : (1)411580 [08:33:22]line ИНН: 02508201610067 [08:33:22]line Контрольно-Кассовый Чек [08:33:22]line ПРОДАЖА [08:33:22]line ТРК (МРК, ГНК) : 12 [08:33:22]line Товар: 2710124130 [08:33:22]line Аи-92-К-2 [08:33:22]line 7.790 * 64.20 [08:33:22]line = 500.12 [08:33:22]line НДС 12% НСП 1% [08:33:22]line > о реализуемом товаре [08:33:22]line ОКРУГЛЕНИЕ: -0.12 [08:33:22]line ИТОГО: 500.00 [08:33:22]line Внесено: 500.00 [08:33:22]line СДАЧА: 0.00 [08:33:22]line НСП 1% : 4.43 [08:33:22]line НДС 12% : 53.11 [08:33:22]line Наличными: 500.00 [08:33:22]line Безнал.: 0.00 [08:33:22]line Место: АЗС № 92 "Партнер Нефть" [08:33:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:33:22]line СНО: Общий режим [08:33:22]line Чек 35 17.02.2025 08:33 [08:33:22]line Смена: 644 ФФД: 1.0 [08:33:22]line ЗНМ: 0300000118 [08:33:22]line РНМ: 0000000000091857 [08:33:22]line Версия ККМ: 001 [08:33:22]line ФМ: 0000000000871826 [08:33:22]line ФД: 186448 [08:33:22]line ФПД: 103323223073910 [08:33:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083324&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186448&fm=103323223073910&tin=02508201610067®Number=0000000000091857&sum=50000 [08:33:22]written 0, free lines is 4095 [08:33:22]OFD Sender: Processing packet 186448 [packets to send 49, broken 48] [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00186448 [08:33:22]OFD Sender: To server: pG, [08:33:22]CommunicateWithHost lk.salyk.kg:30040 [08:33:22]ConnectInit lk.salyk.kg [08:33:22]Connected sock=9 [08:33:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 91 69 07 01 48 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 54 F4 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D8 02 00 35 04 06 00 5D F8 D0 02 24 76 5D C3 51 23 69 4C E1 39 [08:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 38 39 47 00 9E 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 50 D8 02 00 F4 03 04 00 AE 9A B2 67 B6 04 01 00 00 6A 9F 45 B9 15 E7 CE 7E [08:33:22]CommunicateWithHost err = 0 [08:33:22]CheckOFDResponse [08:33:22]1017 (14) - 77093643461234 [08:33:22]1041 (16) - 0000000000871826 [08:33:22]1040 (4) - 186448 [08:33:22]1012 (4) - 17.02.2025 02:10 [08:33:22]1206 (1) - 0 [08:33:22]OFD Sender: Remove packet 186448 [08:33:22]ProducePacketName [08:33:22]name=ofd_packets/00186448 [08:33:22]NVStorageDeleteData [08:33:22]Write to MH i2c: 01 00 00 BB 18 D3 [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 F3 0C D9 [08:33:22]RasterBufferAndPrint [08:33:22]line [08:33:22]line [08:33:22]line [08:33:22]line [08:33:22]line [08:33:22]written 0, free lines is 3321 [08:33:22]MH_Cut [08:33:22]Write to MH i2c: D1 01 00 C2 18 01 AC [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: D1 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: D1 01 00 [08:33:22]MH_I2C_Read... [08:33:22]Read from MH i2c: D1 01 00 C2 18 00 AB [08:33:22]Write to MH i2c: 01 00 00 C3 18 DB [08:33:22]Write i2c OK [08:33:22]MH_I2C_Read... [08:33:23]OFD Sender: No OFD packet to send [08:33:23]*** Cut start [08:33:23]*** Partial cut [08:33:23]*** CUTSNS_PIN = 1 [08:33:23]*** CUTSNS_PIN = 0 [08:33:24]*** Brake cut motor [08:33:24]Read from MH i2c: 01 [08:33:24]MH_I2C_Read... [08:33:24]*** Stop cut motor [08:33:24]*** Cut end [08:33:24]Read from MH i2c: 01 07 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 FF 0F F0 [08:33:24]process_action close_receipt done [08:33:24]requested_data is exist [08:33:24]produce_requested_data [08:33:24]requested_item fm.sn is exist - process it [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 11 00 00 [08:33:24]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [08:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:33:24]wFMCommunicate OK [08:33:24]requested_item fd.num is exist - process it [08:33:24]SAM_PROTO_GetFieldsCounters [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 00 00 [08:33:24]Write to MH i2c: E2 08 00 C5 18 80 13 00 00 00 00 00 00 59 [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 62 00 C5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [08:33:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 50 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetFieldsCounters done [08:33:24]requested_item shift.num is exist - process it [08:33:24]requested_item shift.opened is exist - process it [08:33:24]req_shift_opened [08:33:24]FM_GetShiftState [08:33:24]SAM_PROTO_GetShiftState [08:33:24]wFMCommunicate request_size=4 [08:33:24]MH_SAM_APDU [08:33:24]CAPDU: 80 13 01 00 [08:33:24]Write to MH i2c: E2 08 00 C6 18 80 13 01 00 00 00 00 00 5B [08:33:24]Write i2c OK [08:33:24]MH_I2C_Read... [08:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:24]Read from MH i2c: E2 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 [08:33:24]MH_I2C_Read... [08:33:24]Read from MH i2c: E2 0E 00 C6 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7F [08:33:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:33:24]wFMCommunicate OK [08:33:24]SAM_PROTO_GetShiftState done [08:33:24]FM_GetShiftState done [08:33:24]req_shift_opened done [08:33:24]requested_item shift.open_date is exist - process it [08:33:24]req_shift_open_date [08:33:24]req_shift_open_date done [08:33:24]produce_requested_data done [08:33:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186448,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:33:24]process_action_free close_receipt [08:33:24]json_value_free [08:33:24]json_value_free done [08:33:24]process_json_proto returns [08:33:24]Send response to host [08:33:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186448,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:33:24]free response buf [08:33:24]execute_script done [08:33:24]execute_script returns [08:33:24]free content buf [08:33:24]Sock 10.Close socket [08:33:24]Sock 10.Thread stoped [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]OFD Sender: No OFD packet to send [08:37:23]OFD Sender: No OFD packet to send [08:37:28]OFD Sender: No OFD packet to send [08:37:33]OFD Sender: No OFD packet to send [08:37:38]OFD Sender: No OFD packet to send [08:37:43]OFD Sender: No OFD packet to send [08:37:48]OFD Sender: No OFD packet to send [08:37:53]OFD Sender: No OFD packet to send [08:37:58]OFD Sender: No OFD packet to send [08:38:03]OFD Sender: No OFD packet to send [08:38:08]OFD Sender: No OFD packet to send [08:38:13]OFD Sender: No OFD packet to send [08:38:18]OFD Sender: No OFD packet to send [08:38:23]OFD Sender: No OFD packet to send [08:38:28]OFD Sender: No OFD packet to send [08:38:33]OFD Sender: No OFD packet to send [08:38:38]OFD Sender: No OFD packet to send [08:38:43]OFD Sender: No OFD packet to send [08:38:48]OFD Sender: No OFD packet to send [08:38:53]OFD Sender: No OFD packet to send [08:38:56]accept exits with 8 [08:38:56]New connection [08:38:56]New thread 3067501924 created [08:38:56]Thread 3067358564 joined [08:38:56]Waiting for new connection... [08:38:56] Sock 8.Parse request [08:38:56]Sock 8.Check first char [08:38:56]Sock 8.First char is OK [08:38:56]request: POST /json_proto HTTP/1.0 [08:38:56]Method: POST [08:38:56]URL: /json_proto [08:38:56]Method is POST - this is cgi request [08:38:56]url: /json_proto [08:38:56]query_string will be loaded in cgi processing [08:38:56]execute_cgi json_proto POST (null) [08:38:56]execute_cgi path=json_proto method=POST [08:38:56]POST find Content-Length [08:38:56]Host: 172.17.46.131:8080 [08:38:56]Content-Length: 673 [08:38:56]Content-Type: application/json [08:38:56] [08:38:56]POST finish read [08:38:56]Found Content-Length = 673 [08:38:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:56]execute_script... [08:38: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)411581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:56]POST & json_proto [08:38:56]process_json_proto [08:38:56]json parsed OK: [08:38:56]protocol is kg_v1.0 [08:38:56]action value=close_receipt [08:38:56]process_action close_receipt [08:38:56]cmd_close_receipt [08:38:56]MH_GetDate [08:38:56]Write to MH i2c: F0 00 00 C7 18 CE [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: F0 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: F0 09 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: F0 09 00 C7 18 00 A4 F5 B2 67 7E 41 4F 65 FC [08:38:56]GetLastDocTimeStamp 1739781204 [08:38:56]current date 1739781540 [08:38:56]FM_GetShiftState [08:38:56]SAM_PROTO_GetShiftState [08:38:56]wFMCommunicate request_size=4 [08:38:56]MH_SAM_APDU [08:38:56]CAPDU: 80 13 01 00 [08:38:56]Write to MH i2c: E2 08 00 C8 18 80 13 01 00 00 00 00 00 5D [08:38:56]Write i2c OK [08:38:56]MH_I2C_Read... [08:38:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:56]Read from MH i2c: E2 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 0E 00 [08:38:56]MH_I2C_Read... [08:38:56]Read from MH i2c: E2 0E 00 C8 18 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 81 [08:38:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:38:56]wFMCommunicate OK [08:38:56]SAM_PROTO_GetShiftState done [08:38:56]FM_GetShiftState done [08:38:56]opened in 1739752571 [08:38:56]opened+sec_in_day 1739838971 [08:38:56]quantity*price = 50021 [08:38:56]sum+1 = 50022 [08:38:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 36 17.02.2025 08:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186449 ФПД: 89018592491668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083900&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186449&fm=89018592491668&tin=02508201610067®Number=0000000000091857&sum=50000 [08:38:57]StoreToDocumentArchive [08:38:57]shift 644 fd 186449 [08:38:57]save to /storage/0644/doc_00186449 [08:38:57]save last doc name /storage/0644/doc_00186449 to /storage/kkm_last_doc_name [08:38:57]save OK [08:38:57]Clear old archive folders... [08:38:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:38:57]tlvbuf is 0201EB40 [08:38:57]SAM_PROTO_ClearQueue [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 09 00 00 [08:38:57]Write to MH i2c: E2 08 00 D5 18 80 09 00 00 00 00 00 00 5F [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [08:38:57]RAPDU: 90 00 [08:38:57]wFMCommunicate OK [08:38:57]SAM_PROTO_ClearQueue done [08:38:57]KKMCreateOFDPacket [08:38:57]OFDProtocolAddRootSTLVToBuf [08:38:57]FM_MakeSignedData [08:38:57]FM_MakeSignedData [08:38:57]SAM_PROTO_SignData [08:38:57]wFMCommunicate request_size=4 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 0D 01 02 [08:38:57]Write to MH i2c: E2 08 00 D6 18 80 0D 01 02 00 00 00 00 67 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:57]Read from MH i2c: E2 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 [08:38:57]MH_I2C_Read... [08:38:57]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [08:38:57]RAPDU: 90 00 [08:38:57]wFMCommunicate OK [08:38:57]wFMCommunicate request_size=255 [08:38:57]MH_SAM_APDU [08:38:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 F5 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D8 02 00 35 04 06 00 50 F6 41 95 [08:38:57]Write to MH i2c: E2 02 01 D7 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 F5 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D8 02 00 35 04 06 00 50 F6 41 95 00 00 C6 [08:38:57]Write i2c OK [08:38:57]MH_I2C_Read... [08:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:58]Read from MH i2c: E2 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 03 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [08:38:58]RAPDU: 90 00 [08:38:58]wFMCommunicate OK [08:38:58]wFMCommunicate request_size=7 [08:38:58]MH_SAM_APDU [08:38:58]CAPDU: 80 0D 02 02 02 78 94 [08:38:58]Write to MH i2c: E2 0A 00 D8 18 80 0D 02 02 02 00 78 94 00 00 7A [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:58]Read from MH i2c: E2 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 03 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 03 00 D8 18 00 90 00 64 [08:38:58]RAPDU: 90 00 [08:38:58]wFMCommunicate OK [08:38:58]wFMCommunicate request_size=4 [08:38:58]MH_SAM_APDU [08:38:58]CAPDU: 80 0D 03 02 [08:38:58]Write to MH i2c: E2 08 00 D9 18 80 0D 03 02 00 00 00 00 6C [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:58]Read from MH i2c: E2 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 0B 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 0B 00 D9 18 00 7F 84 69 CA 63 95 28 FF 90 00 C2 [08:38:58]RAPDU: 7F 84 69 CA 63 95 28 FF 90 00 [08:38:58]wFMCommunicate OK [08:38:58]SAM_PROTO_SignData done [08:38:58]FM_MakeSignedData done [08:38:58]CreateOFDProtocolMessage [08:38:58]wFMCommunicate request_size=4 [08:38:58]MH_SAM_APDU [08:38:58]CAPDU: 80 11 00 00 [08:38:58]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:58]Read from MH i2c: E2 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 17 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [08:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:38:58]wFMCommunicate OK [08:38:58]CreateOFDProtocolMessage done [08:38:58]OFDSenderStorePacket 186449 [08:38:58]StoreOFDPacket docnum=186449 [08:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B6 50 04 01 7E 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 F5 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D8 02 00 35 04 06 00 50 F6 41 95 78 94 7F 84 69 CA 63 95 28 FF [08:38:58]CheckFolder [08:38:58]dirname=/storage/ofd_packets [08:38:58]CheckFolder done [08:38:58]ProducePacketName [08:38:58]name=ofd_packets/00186449 [08:38:58]NVStorageSaveData ofd_packets/00186449 [08:38:58]File name is /storage/ofd_packets/00186449 [08:38:58]Write 298 bytes [08:38:58]NVStorageSaveData done [08:38:58]OFDSenderStorePacket done [08:38:58]KKMCreateOFDPacket done [08:38:58]NVStorageSaveData kkm_last_timestamp [08:38:58]File name is /storage/kkm_last_timestamp [08:38:58]Write 4 bytes [08:38:58]NVStorageSaveData done [08:38:58]ExternCall_PrintAddStr [08:38:58]wPrintStart [08:38:58]Write to MH i2c: 01 00 00 DB 18 F3 [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 07 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 FF 0F 08 [08:38:58]RasterBufferAndPrint [08:38:58]line Счет N : (1)411581 [08:38:58]line ИНН: 02508201610067 [08:38:58]line Контрольно-Кассовый Чек [08:38:58]line ПРОДАЖА [08:38:58]line ТРК (МРК, ГНК) : 6 [08:38:58]line Товар: 2710194210 [08:38:58]line ДТ-К-5 [08:38:58]line 6.890 * 72.60 [08:38:58]line = 500.21 [08:38:58]line НДС 12% НСП 1% [08:38:58]line > о реализуемом товаре [08:38:58]line ОКРУГЛЕНИЕ: -0.21 [08:38:58]line ИТОГО: 500.00 [08:38:58]line Внесено: 500.00 [08:38:58]line СДАЧА: 0.00 [08:38:58]line НСП 1% : 4.43 [08:38:58]line НДС 12% : 53.12 [08:38:58]line Наличными: 500.00 [08:38:58]line Безнал.: 0.00 [08:38:58]line Место: АЗС № 92 "Партнер Нефть" [08:38:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:38:58]line СНО: Общий режим [08:38:58]line Чек 36 17.02.2025 08:39 [08:38:58]line Смена: 644 ФФД: 1.0 [08:38:58]line ЗНМ: 0300000118 [08:38:58]line РНМ: 0000000000091857 [08:38:58]line Версия ККМ: 001 [08:38:58]line ФМ: 0000000000871826 [08:38:58]line ФД: 186449 [08:38:58]line ФПД: 89018592491668 [08:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T083900&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186449&fm=89018592491668&tin=02508201610067®Number=0000000000091857&sum=50000 [08:38:58]written 0, free lines is 4095 [08:38:58]OFD Sender: Processing packet 186449 [packets to send 49, broken 48] [08:38:58]ProducePacketName [08:38:58]name=ofd_packets/00186449 [08:38:58]OFD Sender: To server: pG, [08:38:58]CommunicateWithHost lk.salyk.kg:30040 [08:38:58]ConnectInit lk.salyk.kg [08:38:58]Connected sock=10 [08:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B6 50 04 01 7E 0D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 A4 F5 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D8 02 00 35 04 06 00 50 F6 41 95 78 94 7F 84 69 CA 63 95 28 FF [08:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 01 ED 47 00 20 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 51 D8 02 00 F4 03 04 00 FE 9B B2 67 B6 04 01 00 00 89 01 A5 44 84 41 30 D4 [08:38:58]CommunicateWithHost err = 0 [08:38:58]CheckOFDResponse [08:38:58]1017 (14) - 77093643461234 [08:38:58]1041 (16) - 0000000000871826 [08:38:58]1040 (4) - 186449 [08:38:58]1012 (4) - 17.02.2025 02:16 [08:38:58]1206 (1) - 0 [08:38:58]OFD Sender: Remove packet 186449 [08:38:58]ProducePacketName [08:38:58]name=ofd_packets/00186449 [08:38:58]NVStorageDeleteData [08:38:58]Write to MH i2c: 01 00 00 06 19 1F [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 07 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 09 0D 3C [08:38:58]RasterBufferAndPrint [08:38:58]line [08:38:58]line [08:38:58]line [08:38:58]line [08:38:58]line [08:38:58]written 0, free lines is 3344 [08:38:58]MH_Cut [08:38:58]Write to MH i2c: D1 01 00 0D 19 01 F8 [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: D1 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: D1 01 00 [08:38:58]MH_I2C_Read... [08:38:58]Read from MH i2c: D1 01 00 0D 19 00 F7 [08:38:58]Write to MH i2c: 01 00 00 0E 19 27 [08:38:58]Write i2c OK [08:38:58]MH_I2C_Read... [08:38:59]OFD Sender: No OFD packet to send [08:38:59]*** Cut start [08:38:59]*** Partial cut [08:38:59]*** CUTSNS_PIN = 1 [08:38:59]*** CUTSNS_PIN = 0 [08:38:59]*** Brake cut motor [08:38:59]Read from MH i2c: 01 [08:39:00]MH_I2C_Read... [08:39:00]*** Stop cut motor [08:39:00]*** Cut end [08:39:00]Read from MH i2c: 01 07 00 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 FF 0F 3C [08:39:00]process_action close_receipt done [08:39:00]requested_data is exist [08:39:00]produce_requested_data [08:39:00]requested_item fm.sn is exist - process it [08:39:00]wFMCommunicate request_size=4 [08:39:00]MH_SAM_APDU [08:39:00]CAPDU: 80 11 00 00 [08:39:00]Write to MH i2c: E2 08 00 0F 19 80 11 00 00 00 00 00 00 A2 [08:39:00]Write i2c OK [08:39:00]MH_I2C_Read... [08:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:39:00]Read from MH i2c: E2 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 17 00 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 17 00 0F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [08:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:39:00]wFMCommunicate OK [08:39:00]requested_item fd.num is exist - process it [08:39:00]SAM_PROTO_GetFieldsCounters [08:39:00]wFMCommunicate request_size=4 [08:39:00]MH_SAM_APDU [08:39:00]CAPDU: 80 13 00 00 [08:39:00]Write to MH i2c: E2 08 00 10 19 80 13 00 00 00 00 00 00 A5 [08:39:00]Write i2c OK [08:39:00]MH_I2C_Read... [08:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:39:00]Read from MH i2c: E2 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 62 00 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 62 00 10 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [08:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 51 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:39:00]wFMCommunicate OK [08:39:00]SAM_PROTO_GetFieldsCounters done [08:39:00]requested_item shift.num is exist - process it [08:39:00]requested_item shift.opened is exist - process it [08:39:00]req_shift_opened [08:39:00]FM_GetShiftState [08:39:00]SAM_PROTO_GetShiftState [08:39:00]wFMCommunicate request_size=4 [08:39:00]MH_SAM_APDU [08:39:00]CAPDU: 80 13 01 00 [08:39:00]Write to MH i2c: E2 08 00 11 19 80 13 01 00 00 00 00 00 A7 [08:39:00]Write i2c OK [08:39:00]MH_I2C_Read... [08:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:39:00]Read from MH i2c: E2 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 0E 00 [08:39:00]MH_I2C_Read... [08:39:00]Read from MH i2c: E2 0E 00 11 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CB [08:39:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:39:00]wFMCommunicate OK [08:39:00]SAM_PROTO_GetShiftState done [08:39:00]FM_GetShiftState done [08:39:00]req_shift_opened done [08:39:00]requested_item shift.open_date is exist - process it [08:39:00]req_shift_open_date [08:39:00]req_shift_open_date done [08:39:00]produce_requested_data done [08:39:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186449,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:39:00]process_action_free close_receipt [08:39:00]json_value_free [08:39:00]json_value_free done [08:39:00]process_json_proto returns [08:39:00]Send response to host [08:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186449,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:39:00]free response buf [08:39:00]execute_script done [08:39:00]execute_script returns [08:39:00]free content buf [08:39:00]Sock 8.Close socket [08:39:00]Sock 8.Thread stoped [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:56]accept exits with 9 [08:40:56]New connection [08:40:56]New thread 3067358564 created [08:40:56]Thread 3067501924 joined [08:40:56]Waiting for new connection... [08:40:56] Sock 9.Parse request [08:40:56]Sock 9.Check first char [08:40:56]Sock 9.First char is OK [08:40:56]request: POST /json_proto HTTP/1.0 [08:40:56]Method: POST [08:40:56]URL: /json_proto [08:40:56]Method is POST - this is cgi request [08:40:56]url: /json_proto [08:40:56]query_string will be loaded in cgi processing [08:40:56]execute_cgi json_proto POST (null) [08:40:56]execute_cgi path=json_proto method=POST [08:40:56]POST find Content-Length [08:40:56]Host: 172.17.46.131:8080 [08:40:56]Content-Length: 678 [08:40:56]Content-Type: application/json [08:40:56] [08:40:56]POST finish read [08:40:56]Found Content-Length = 678 [08:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:56]execute_script... [08:40: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)411582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:56]POST & json_proto [08:40:56]process_json_proto [08:40:56]json parsed OK: [08:40:56]protocol is kg_v1.0 [08:40:56]action value=close_receipt [08:40:56]process_action close_receipt [08:40:56]cmd_close_receipt [08:40:56]MH_GetDate [08:40:56]Write to MH i2c: F0 00 00 12 19 1A [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 09 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: F0 09 00 12 19 00 1C F6 B2 67 7E 41 4F 65 C1 [08:40:56]GetLastDocTimeStamp 1739781540 [08:40:56]current date 1739781660 [08:40:56]FM_GetShiftState [08:40:56]SAM_PROTO_GetShiftState [08:40:56]wFMCommunicate request_size=4 [08:40:56]MH_SAM_APDU [08:40:56]CAPDU: 80 13 01 00 [08:40:56]Write to MH i2c: E2 08 00 13 19 80 13 01 00 00 00 00 00 A9 [08:40:56]Write i2c OK [08:40:56]MH_I2C_Read... [08:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:56]Read from MH i2c: E2 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 [08:40:56]MH_I2C_Read... [08:40:56]Read from MH i2c: E2 0E 00 13 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CD [08:40:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:40:56]wFMCommunicate OK [08:40:56]SAM_PROTO_GetShiftState done [08:40:56]FM_GetShiftState done [08:40:56]opened in 1739752571 [08:40:56]opened+sec_in_day 1739838971 [08:40:56]quantity*price = 150064 [08:40:56]sum+1 = 150065 [08:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 37 17.02.2025 08:41 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186450 ФПД: 120084394671651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186450&fm=120084394671651&tin=02508201610067®Number=0000000000091857&sum=150000 [08:40:57]StoreToDocumentArchive [08:40:57]shift 644 fd 186450 [08:40:57]save to /storage/0644/doc_00186450 [08:40:57]save last doc name /storage/0644/doc_00186450 to /storage/kkm_last_doc_name [08:40:57]save OK [08:40:57]Clear old archive folders... [08:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:57]tlvbuf is B6F470E0 [08:40:57]SAM_PROTO_ClearQueue [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 09 00 00 [08:40:57]Write to MH i2c: E2 08 00 20 19 80 09 00 00 00 00 00 00 AB [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [08:40:57]RAPDU: 90 00 [08:40:57]wFMCommunicate OK [08:40:57]SAM_PROTO_ClearQueue done [08:40:57]KKMCreateOFDPacket [08:40:57]OFDProtocolAddRootSTLVToBuf [08:40:57]FM_MakeSignedData [08:40:57]FM_MakeSignedData [08:40:57]SAM_PROTO_SignData [08:40:57]wFMCommunicate request_size=4 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 0D 01 02 [08:40:57]Write to MH i2c: E2 08 00 21 19 80 0D 01 02 00 00 00 00 B3 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:57]Read from MH i2c: E2 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 [08:40:57]MH_I2C_Read... [08:40:57]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [08:40:57]RAPDU: 90 00 [08:40:57]wFMCommunicate OK [08:40:57]wFMCommunicate request_size=255 [08:40:57]MH_SAM_APDU [08:40:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1C F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D8 02 00 35 04 06 00 6D 37 53 AF [08:40:57]Write to MH i2c: E2 02 01 22 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1C F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D8 02 00 35 04 06 00 6D 37 53 AF 00 00 E8 [08:40:57]Write i2c OK [08:40:57]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=7 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 02 02 02 FE 23 [08:40:58]Write to MH i2c: E2 0A 00 23 19 80 0D 02 02 02 00 FE 23 00 00 DB [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 03 00 23 19 00 90 00 B0 [08:40:58]RAPDU: 90 00 [08:40:58]wFMCommunicate OK [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 0D 03 02 [08:40:58]Write to MH i2c: E2 08 00 24 19 80 0D 03 02 00 00 00 00 B8 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 0B 00 24 19 00 C9 E4 DA D8 0B 74 D2 95 90 00 FE [08:40:58]RAPDU: C9 E4 DA D8 0B 74 D2 95 90 00 [08:40:58]wFMCommunicate OK [08:40:58]SAM_PROTO_SignData done [08:40:58]FM_MakeSignedData done [08:40:58]CreateOFDProtocolMessage [08:40:58]wFMCommunicate request_size=4 [08:40:58]MH_SAM_APDU [08:40:58]CAPDU: 80 11 00 00 [08:40:58]Write to MH i2c: E2 08 00 25 19 80 11 00 00 00 00 00 00 B8 [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:58]Read from MH i2c: E2 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: E2 17 00 25 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [08:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:40:58]wFMCommunicate OK [08:40:58]CreateOFDProtocolMessage done [08:40:58]OFDSenderStorePacket 186450 [08:40:58]StoreOFDPacket docnum=186450 [08:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E3 DE 04 01 21 DA 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1C F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D8 02 00 35 04 06 00 6D 37 53 AF FE 23 C9 E4 DA D8 0B 74 D2 95 [08:40:58]CheckFolder [08:40:58]dirname=/storage/ofd_packets [08:40:58]CheckFolder done [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00186450 [08:40:58]NVStorageSaveData ofd_packets/00186450 [08:40:58]File name is /storage/ofd_packets/00186450 [08:40:58]Write 298 bytes [08:40:58]NVStorageSaveData done [08:40:58]OFDSenderStorePacket done [08:40:58]KKMCreateOFDPacket done [08:40:58]NVStorageSaveData kkm_last_timestamp [08:40:58]File name is /storage/kkm_last_timestamp [08:40:58]Write 4 bytes [08:40:58]NVStorageSaveData done [08:40:58]ExternCall_PrintAddStr [08:40:58]wPrintStart [08:40:58]Write to MH i2c: 01 00 00 26 19 3F [08:40:58]Write i2c OK [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 [08:40:58]MH_I2C_Read... [08:40:58]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 FF 0F 54 [08:40:58]RasterBufferAndPrint [08:40:58]line Счет N : (1)411582 [08:40:58]line ИНН: 02508201610067 [08:40:58]line Контрольно-Кассовый Чек [08:40:58]line ПРОДАЖА [08:40:58]line ТРК (МРК, ГНК) : 5 [08:40:58]line Товар: 2710194210 [08:40:58]line ДТ-К-5 [08:40:58]line 20.670 * 72.60 [08:40:58]line = 1500.64 [08:40:58]line НДС 12% НСП 1% [08:40:58]line > о реализуемом товаре [08:40:58]line ОКРУГЛЕНИЕ: -0.64 [08:40:58]line ИТОГО: 1500.00 [08:40:58]line Внесено: 1500.00 [08:40:58]line СДАЧА: 0.00 [08:40:58]line НСП 1% : 13.28 [08:40:58]line НДС 12% : 159.36 [08:40:58]line Наличными: 1500.00 [08:40:58]line Безнал.: 0.00 [08:40:58]line Место: АЗС № 92 "Партнер Нефть" [08:40:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:40:58]line СНО: Общий режим [08:40:58]line Чек 37 17.02.2025 08:41 [08:40:58]line Смена: 644 ФФД: 1.0 [08:40:58]line ЗНМ: 0300000118 [08:40:58]line РНМ: 0000000000091857 [08:40:58]line Версия ККМ: 001 [08:40:58]line ФМ: 0000000000871826 [08:40:58]line ФД: 186450 [08:40:58]line ФПД: 120084394671651 [08:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084100&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186450&fm=120084394671651&tin=02508201610067®Number=0000000000091857&sum=150000 [08:40:58]OFD Sender: Processing packet 186450 [packets to send 49, broken 48] [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00186450 [08:40:58]OFD Sender: To server: pG, [08:40:58]CommunicateWithHost lk.salyk.kg:30040 [08:40:58]ConnectInit lk.salyk.kg [08:40:58]written 0, free lines is 4095 [08:40:58]Connected sock=10 [08:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E3 DE 04 01 21 DA 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 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 1C F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D8 02 00 35 04 06 00 6D 37 53 AF FE 23 C9 E4 DA D8 0B 74 D2 95 [08:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 3B 47 00 F0 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 52 D8 02 00 F4 03 04 00 76 9C B2 67 B6 04 01 00 00 11 83 8D 35 A2 CC 6F AD [08:40:58]CommunicateWithHost err = 0 [08:40:58]CheckOFDResponse [08:40:58]1017 (14) - 77093643461234 [08:40:58]1041 (16) - 0000000000871826 [08:40:58]1040 (4) - 186450 [08:40:58]1012 (4) - 17.02.2025 02:18 [08:40:58]1206 (1) - 0 [08:40:58]OFD Sender: Remove packet 186450 [08:40:58]ProducePacketName [08:40:58]name=ofd_packets/00186450 [08:40:58]NVStorageDeleteData [08:40:59]Write to MH i2c: 01 00 00 51 19 6A [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 F4 0C 71 [08:40:59]RasterBufferAndPrint [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]line [08:40:59]written 0, free lines is 3322 [08:40:59]MH_Cut [08:40:59]Write to MH i2c: D1 01 00 58 19 01 43 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 01 00 [08:40:59]MH_I2C_Read... [08:40:59]Read from MH i2c: D1 01 00 58 19 00 42 [08:40:59]Write to MH i2c: 01 00 00 59 19 72 [08:40:59]Write i2c OK [08:40:59]MH_I2C_Read... [08:40:59]OFD Sender: No OFD packet to send [08:40:59]*** Cut start [08:40:59]*** Partial cut [08:40:59]*** CUTSNS_PIN = 1 [08:40:59]*** CUTSNS_PIN = 0 [08:41:00]*** Brake cut motor [08:41:00]Read from MH i2c: 01 [08:41:00]MH_I2C_Read... [08:41:00]*** Stop cut motor [08:41:00]*** Cut end [08:41:00]Read from MH i2c: 01 07 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [08:41:00]process_action close_receipt done [08:41:00]requested_data is exist [08:41:00]produce_requested_data [08:41:00]requested_item fm.sn is exist - process it [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 11 00 00 [08:41:00]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 17 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [08:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:41:00]wFMCommunicate OK [08:41:00]requested_item fd.num is exist - process it [08:41:00]SAM_PROTO_GetFieldsCounters [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 13 00 00 [08:41:00]Write to MH i2c: E2 08 00 5B 19 80 13 00 00 00 00 00 00 F0 [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 62 00 5B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [08:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 52 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetFieldsCounters done [08:41:00]requested_item shift.num is exist - process it [08:41:00]requested_item shift.opened is exist - process it [08:41:00]req_shift_opened [08:41:00]FM_GetShiftState [08:41:00]SAM_PROTO_GetShiftState [08:41:00]wFMCommunicate request_size=4 [08:41:00]MH_SAM_APDU [08:41:00]CAPDU: 80 13 01 00 [08:41:00]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [08:41:00]Write i2c OK [08:41:00]MH_I2C_Read... [08:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:00]Read from MH i2c: E2 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 [08:41:00]MH_I2C_Read... [08:41:00]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 16 [08:41:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:41:00]wFMCommunicate OK [08:41:00]SAM_PROTO_GetShiftState done [08:41:00]FM_GetShiftState done [08:41:00]req_shift_opened done [08:41:00]requested_item shift.open_date is exist - process it [08:41:00]req_shift_open_date [08:41:00]req_shift_open_date done [08:41:00]produce_requested_data done [08:41:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186450,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:41:00]process_action_free close_receipt [08:41:00]json_value_free [08:41:00]json_value_free done [08:41:00]process_json_proto returns [08:41:00]Send response to host [08:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186450,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:41:00]free response buf [08:41:00]execute_script done [08:41:00]execute_script returns [08:41:00]free content buf [08:41:00]Sock 9.Close socket [08:41:00]Sock 9.Thread stoped [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:25]accept exits with 8 [08:44:25]New connection [08:44:25]New thread 3067501924 created [08:44:25]Thread 3067358564 joined [08:44:25]Waiting for new connection... [08:44:25] Sock 8.Parse request [08:44:25]Sock 8.Check first char [08:44:25]Sock 8.First char is OK [08:44:25]request: POST /json_proto HTTP/1.0 [08:44:25]Method: POST [08:44:25]URL: /json_proto [08:44:25]Method is POST - this is cgi request [08:44:25]url: /json_proto [08:44:25]query_string will be loaded in cgi processing [08:44:25]execute_cgi json_proto POST (null) [08:44:25]execute_cgi path=json_proto method=POST [08:44:25]POST find Content-Length [08:44:25]Host: 172.17.46.131:8080 [08:44:25]Content-Length: 678 [08:44:25]Content-Type: application/json [08:44:25] [08:44:25]POST finish read [08:44:25]Found Content-Length = 678 [08:44:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:25]execute_script... [08:44:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:25]POST & json_proto [08:44:25]process_json_proto [08:44:25]json parsed OK: [08:44:25]protocol is kg_v1.0 [08:44:25]action value=close_receipt [08:44:25]process_action close_receipt [08:44:25]cmd_close_receipt [08:44:25]MH_GetDate [08:44:25]Write to MH i2c: F0 00 00 5D 19 65 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: F0 09 00 5D 19 00 EC F6 B2 67 7E 41 4F 65 DC [08:44:25]GetLastDocTimeStamp 1739781660 [08:44:25]current date 1739781868 [08:44:25]FM_GetShiftState [08:44:25]SAM_PROTO_GetShiftState [08:44:25]wFMCommunicate request_size=4 [08:44:25]MH_SAM_APDU [08:44:25]CAPDU: 80 13 01 00 [08:44:25]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [08:44:25]Write i2c OK [08:44:25]MH_I2C_Read... [08:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:25]Read from MH i2c: E2 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 [08:44:25]MH_I2C_Read... [08:44:25]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 18 [08:44:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:44:25]wFMCommunicate OK [08:44:25]SAM_PROTO_GetShiftState done [08:44:25]FM_GetShiftState done [08:44:25]opened in 1739752571 [08:44:25]opened+sec_in_day 1739838971 [08:44:25]quantity*price = 200013 [08:44:25]sum+1 = 200014 [08:44:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 38 17.02.2025 08:44 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186451 ФПД: 113696076426640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186451&fm=113696076426640&tin=02508201610067®Number=0000000000091857&sum=200000 [08:44:26]StoreToDocumentArchive [08:44:26]shift 644 fd 186451 [08:44:26]save to /storage/0644/doc_00186451 [08:44:26]save last doc name /storage/0644/doc_00186451 to /storage/kkm_last_doc_name [08:44:26]save OK [08:44:26]Clear old archive folders... [08:44:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:44:26]tlvbuf is 02027160 [08:44:26]SAM_PROTO_ClearQueue [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 09 00 00 [08:44:26]Write to MH i2c: E2 08 00 6B 19 80 09 00 00 00 00 00 00 F6 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_ClearQueue done [08:44:26]KKMCreateOFDPacket [08:44:26]OFDProtocolAddRootSTLVToBuf [08:44:26]FM_MakeSignedData [08:44:26]FM_MakeSignedData [08:44:26]SAM_PROTO_SignData [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 01 02 [08:44:26]Write to MH i2c: E2 08 00 6C 19 80 0D 01 02 00 00 00 00 FE [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=255 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EC F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D8 02 00 35 04 06 00 67 67 EE 3F [08:44:26]Write to MH i2c: E2 02 01 6D 19 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EC F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D8 02 00 35 04 06 00 67 67 EE 3F 00 00 E7 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=7 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 02 02 02 6D 90 [08:44:26]Write to MH i2c: E2 0A 00 6E 19 80 0D 02 02 02 00 6D 90 00 00 02 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [08:44:26]RAPDU: 90 00 [08:44:26]wFMCommunicate OK [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 0D 03 02 [08:44:26]Write to MH i2c: E2 08 00 6F 19 80 0D 03 02 00 00 00 00 03 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0B 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 0B 00 6F 19 00 38 90 78 88 61 D3 BC 58 90 00 14 [08:44:26]RAPDU: 38 90 78 88 61 D3 BC 58 90 00 [08:44:26]wFMCommunicate OK [08:44:26]SAM_PROTO_SignData done [08:44:26]FM_MakeSignedData done [08:44:26]CreateOFDProtocolMessage [08:44:26]wFMCommunicate request_size=4 [08:44:26]MH_SAM_APDU [08:44:26]CAPDU: 80 11 00 00 [08:44:26]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:26]Read from MH i2c: E2 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 17 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: E2 17 00 70 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [08:44:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:44:26]wFMCommunicate OK [08:44:26]CreateOFDProtocolMessage done [08:44:26]OFDSenderStorePacket 186451 [08:44:26]StoreOFDPacket docnum=186451 [08:44:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9A 8A 04 01 02 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EC F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D8 02 00 35 04 06 00 67 67 EE 3F 6D 90 38 90 78 88 61 D3 BC 58 [08:44:26]CheckFolder [08:44:26]dirname=/storage/ofd_packets [08:44:26]CheckFolder done [08:44:26]ProducePacketName [08:44:26]name=ofd_packets/00186451 [08:44:26]NVStorageSaveData ofd_packets/00186451 [08:44:26]File name is /storage/ofd_packets/00186451 [08:44:26]Write 298 bytes [08:44:26]NVStorageSaveData done [08:44:26]OFDSenderStorePacket done [08:44:26]KKMCreateOFDPacket done [08:44:26]NVStorageSaveData kkm_last_timestamp [08:44:26]File name is /storage/kkm_last_timestamp [08:44:26]Write 4 bytes [08:44:26]NVStorageSaveData done [08:44:26]ExternCall_PrintAddStr [08:44:26]wPrintStart [08:44:26]Write to MH i2c: 01 00 00 71 19 8A [08:44:26]Write i2c OK [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 07 00 [08:44:26]MH_I2C_Read... [08:44:26]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 FF 0F 9F [08:44:26]RasterBufferAndPrint [08:44:26]line Счет N : (1)411583 [08:44:26]line ИНН: 02508201610067 [08:44:26]line Контрольно-Кассовый Чек [08:44:26]line ПРОДАЖА [08:44:26]line ТРК (МРК, ГНК) : 5 [08:44:26]line Товар: 2710194210 [08:44:26]line ДТ-К-5 [08:44:26]line 27.550 * 72.60 [08:44:26]line = 2000.13 [08:44:26]line НДС 12% НСП 1% [08:44:26]line > о реализуемом товаре [08:44:26]line ОКРУГЛЕНИЕ: -0.13 [08:44:26]line ИТОГО: 2000.00 [08:44:26]line Внесено: 2000.00 [08:44:26]line СДАЧА: 0.00 [08:44:26]line НСП 1% : 17.70 [08:44:26]line НДС 12% : 212.40 [08:44:26]line Наличными: 2000.00 [08:44:26]line Безнал.: 0.00 [08:44:26]line Место: АЗС № 92 "Партнер Нефть" [08:44:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:44:26]line СНО: Общий режим [08:44:26]line Чек 38 17.02.2025 08:44 [08:44:26]line Смена: 644 ФФД: 1.0 [08:44:26]line ЗНМ: 0300000118 [08:44:26]line РНМ: 0000000000091857 [08:44:26]line Версия ККМ: 001 [08:44:26]line ФМ: 0000000000871826 [08:44:26]line ФД: 186451 [08:44:26]line ФПД: 113696076426640 [08:44:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084428&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186451&fm=113696076426640&tin=02508201610067®Number=0000000000091857&sum=200000 [08:44:27]OFD Sender: Processing packet 186451 [packets to send 49, broken 48] [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00186451 [08:44:27]OFD Sender: To server: pG, [08:44:27]CommunicateWithHost lk.salyk.kg:30040 [08:44:27]ConnectInit lk.salyk.kg [08:44:27]written 0, free lines is 4095 [08:44:27]Connected sock=10 [08:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 9A 8A 04 01 02 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 EC F6 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D8 02 00 35 04 06 00 67 67 EE 3F 6D 90 38 90 78 88 61 D3 BC 58 [08:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 08 47 00 AD 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 53 D8 02 00 F4 03 04 00 47 9D B2 67 B6 04 01 00 00 F0 84 9C 2D A1 2B 93 AD [08:44:27]CommunicateWithHost err = 0 [08:44:27]CheckOFDResponse [08:44:27]1017 (14) - 77093643461234 [08:44:27]1041 (16) - 0000000000871826 [08:44:27]1040 (4) - 186451 [08:44:27]1012 (4) - 17.02.2025 02:21 [08:44:27]1206 (1) - 0 [08:44:27]OFD Sender: Remove packet 186451 [08:44:27]ProducePacketName [08:44:27]name=ofd_packets/00186451 [08:44:27]NVStorageDeleteData [08:44:27]Write to MH i2c: 01 00 00 9C 19 B5 [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 E6 0C AE [08:44:27]RasterBufferAndPrint [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]line [08:44:27]written 0, free lines is 3308 [08:44:27]MH_Cut [08:44:27]Write to MH i2c: D1 01 00 A3 19 01 8E [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 01 00 [08:44:27]MH_I2C_Read... [08:44:27]Read from MH i2c: D1 01 00 A3 19 00 8D [08:44:27]Write to MH i2c: 01 00 00 A4 19 BD [08:44:27]Write i2c OK [08:44:27]MH_I2C_Read... [08:44:28]OFD Sender: No OFD packet to send [08:44:28]*** Cut start [08:44:28]*** Partial cut [08:44:28]*** CUTSNS_PIN = 1 [08:44:28]*** CUTSNS_PIN = 0 [08:44:28]*** Brake cut motor [08:44:28]Read from MH i2c: 01 [08:44:28]MH_I2C_Read... [08:44:28]*** Stop cut motor [08:44:28]*** Cut end [08:44:28]Read from MH i2c: 01 07 00 [08:44:28]MH_I2C_Read... [08:44:28]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 FF 0F D2 [08:44:28]process_action close_receipt done [08:44:28]requested_data is exist [08:44:28]produce_requested_data [08:44:28]requested_item fm.sn is exist - process it [08:44:28]wFMCommunicate request_size=4 [08:44:28]MH_SAM_APDU [08:44:28]CAPDU: 80 11 00 00 [08:44:28]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [08:44:28]Write i2c OK [08:44:28]MH_I2C_Read... [08:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [08:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:44:29]wFMCommunicate OK [08:44:29]requested_item fd.num is exist - process it [08:44:29]SAM_PROTO_GetFieldsCounters [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 00 00 [08:44:29]Write to MH i2c: E2 08 00 A6 19 80 13 00 00 00 00 00 00 3B [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 62 00 A6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [08:44:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 53 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetFieldsCounters done [08:44:29]requested_item shift.num is exist - process it [08:44:29]requested_item shift.opened is exist - process it [08:44:29]req_shift_opened [08:44:29]FM_GetShiftState [08:44:29]SAM_PROTO_GetShiftState [08:44:29]wFMCommunicate request_size=4 [08:44:29]MH_SAM_APDU [08:44:29]CAPDU: 80 13 01 00 [08:44:29]Write to MH i2c: E2 08 00 A7 19 80 13 01 00 00 00 00 00 3D [08:44:29]Write i2c OK [08:44:29]MH_I2C_Read... [08:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:29]Read from MH i2c: E2 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 [08:44:29]MH_I2C_Read... [08:44:29]Read from MH i2c: E2 0E 00 A7 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 61 [08:44:29]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:44:29]wFMCommunicate OK [08:44:29]SAM_PROTO_GetShiftState done [08:44:29]FM_GetShiftState done [08:44:29]req_shift_opened done [08:44:29]requested_item shift.open_date is exist - process it [08:44:29]req_shift_open_date [08:44:29]req_shift_open_date done [08:44:29]produce_requested_data done [08:44:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186451,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:44:29]process_action_free close_receipt [08:44:29]json_value_free [08:44:29]json_value_free done [08:44:29]process_json_proto returns [08:44:29]Send response to host [08:44:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186451,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:44:29]free response buf [08:44:29]execute_script done [08:44:29]execute_script returns [08:44:29]free content buf [08:44:29]Sock 8.Close socket [08:44:29]Sock 8.Thread stoped [08:44:33]OFD Sender: No OFD packet to send [08:44:38]OFD Sender: No OFD packet to send [08:44:43]OFD Sender: No OFD packet to send [08:44:48]OFD Sender: No OFD packet to send [08:44:53]OFD Sender: No OFD packet to send [08:44:58]OFD Sender: No OFD packet to send [08:45:03]OFD Sender: No OFD packet to send [08:45:08]OFD Sender: No OFD packet to send [08:45:13]OFD Sender: No OFD packet to send [08:45:18]OFD Sender: No OFD packet to send [08:45:23]OFD Sender: No OFD packet to send [08:45:28]OFD Sender: No OFD packet to send [08:45:33]OFD Sender: No OFD packet to send [08:45:38]OFD Sender: No OFD packet to send [08:45:43]OFD Sender: No OFD packet to send [08:45:48]OFD Sender: No OFD packet to send [08:45:53]OFD Sender: No OFD packet to send [08:45:58]OFD Sender: No OFD packet to send [08:46:03]OFD Sender: No OFD packet to send [08:46:08]OFD Sender: No OFD packet to send [08:46:13]OFD Sender: No OFD packet to send [08:46:18]OFD Sender: No OFD packet to send [08:46:23]OFD Sender: No OFD packet to send [08:46:28]OFD Sender: No OFD packet to send [08:46:33]OFD Sender: No OFD packet to send [08:46:38]OFD Sender: No OFD packet to send [08:46:43]accept exits with 9 [08:46:43]New connection [08:46:43]New thread 3067358564 created [08:46:43]Thread 3067501924 joined [08:46:43]Waiting for new connection... [08:46:43] Sock 9.Parse request [08:46:43]Sock 9.Check first char [08:46:43]Sock 9.First char is OK [08:46:43]request: POST /json_proto HTTP/1.0 [08:46:43]Method: POST [08:46:43]URL: /json_proto [08:46:43]Method is POST - this is cgi request [08:46:43]url: /json_proto [08:46:43]query_string will be loaded in cgi processing [08:46:43]execute_cgi json_proto POST (null) [08:46:43]execute_cgi path=json_proto method=POST [08:46:43]POST find Content-Length [08:46:43]Host: 172.17.46.131:8080 [08:46:43]Content-Length: 677 [08:46:43]Content-Type: application/json [08:46:43] [08:46:43]POST finish read [08:46:43]Found Content-Length = 677 [08:46:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:43]execute_script... [08:46:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:43]POST & json_proto [08:46:43]process_json_proto [08:46:43]json parsed OK: [08:46:43]protocol is kg_v1.0 [08:46:43]action value=close_receipt [08:46:43]process_action close_receipt [08:46:43]cmd_close_receipt [08:46:43]MH_GetDate [08:46:43]Write to MH i2c: F0 00 00 A8 19 B0 [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: F0 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: F0 09 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: F0 09 00 A8 19 00 76 F7 B2 67 7E 41 4F 65 B2 [08:46:43]GetLastDocTimeStamp 1739781868 [08:46:43]current date 1739782006 [08:46:43]FM_GetShiftState [08:46:43]SAM_PROTO_GetShiftState [08:46:43]wFMCommunicate request_size=4 [08:46:43]MH_SAM_APDU [08:46:43]CAPDU: 80 13 01 00 [08:46:43]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [08:46:43]Write i2c OK [08:46:43]MH_I2C_Read... [08:46:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:43]Read from MH i2c: E2 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 0E 00 [08:46:43]MH_I2C_Read... [08:46:43]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 63 [08:46:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:46:43]wFMCommunicate OK [08:46:43]SAM_PROTO_GetShiftState done [08:46:43]FM_GetShiftState done [08:46:43]opened in 1739752571 [08:46:43]opened+sec_in_day 1739838971 [08:46:43]quantity*price = 50011 [08:46:43]sum+1 = 50013 [08:46:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 39 17.02.2025 08:46 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186452 ФПД: 279418835142444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084646&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186452&fm=279418835142444&tin=02508201610067®Number=0000000000091857&sum=50000 [08:46:44]StoreToDocumentArchive [08:46:44]shift 644 fd 186452 [08:46:44]save to /storage/0644/doc_00186452 [08:46:44]save last doc name /storage/0644/doc_00186452 to /storage/kkm_last_doc_name [08:46:44]save OK [08:46:44]Clear old archive folders... [08:46:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:44]tlvbuf is 020210A0 [08:46:44]SAM_PROTO_ClearQueue [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 09 00 00 [08:46:44]Write to MH i2c: E2 08 00 B6 19 80 09 00 00 00 00 00 00 41 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_ClearQueue done [08:46:44]KKMCreateOFDPacket [08:46:44]OFDProtocolAddRootSTLVToBuf [08:46:44]FM_MakeSignedData [08:46:44]FM_MakeSignedData [08:46:44]SAM_PROTO_SignData [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 01 02 [08:46:44]Write to MH i2c: E2 08 00 B7 19 80 0D 01 02 00 00 00 00 49 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=255 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 76 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D8 02 00 35 04 06 00 FE [08:46:44]Write to MH i2c: E2 02 01 B8 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 76 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D8 02 00 35 04 06 00 FE 00 00 41 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=10 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 02 02 05 21 44 69 87 2C [08:46:44]Write to MH i2c: E2 0D 00 B9 19 80 0D 02 02 05 00 21 44 69 87 2C 00 00 D7 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [08:46:44]RAPDU: 90 00 [08:46:44]wFMCommunicate OK [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 0D 03 02 [08:46:44]Write to MH i2c: E2 08 00 BA 19 80 0D 03 02 00 00 00 00 4E [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0B 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 0B 00 BA 19 00 B3 EE 1F CA A3 61 84 2D 90 00 8E [08:46:44]RAPDU: B3 EE 1F CA A3 61 84 2D 90 00 [08:46:44]wFMCommunicate OK [08:46:44]SAM_PROTO_SignData done [08:46:44]FM_MakeSignedData done [08:46:44]CreateOFDProtocolMessage [08:46:44]wFMCommunicate request_size=4 [08:46:44]MH_SAM_APDU [08:46:44]CAPDU: 80 11 00 00 [08:46:44]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:44]Read from MH i2c: E2 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [08:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:46:44]wFMCommunicate OK [08:46:44]CreateOFDProtocolMessage done [08:46:44]OFDSenderStorePacket 186452 [08:46:44]StoreOFDPacket docnum=186452 [08:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F2 12 07 01 E4 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 76 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D8 02 00 35 04 06 00 FE 21 44 69 87 2C B3 EE 1F CA A3 61 84 2D [08:46:44]CheckFolder [08:46:44]dirname=/storage/ofd_packets [08:46:44]CheckFolder done [08:46:44]ProducePacketName [08:46:44]name=ofd_packets/00186452 [08:46:44]NVStorageSaveData ofd_packets/00186452 [08:46:44]File name is /storage/ofd_packets/00186452 [08:46:44]Write 301 bytes [08:46:44]NVStorageSaveData done [08:46:44]OFDSenderStorePacket done [08:46:44]KKMCreateOFDPacket done [08:46:44]NVStorageSaveData kkm_last_timestamp [08:46:44]File name is /storage/kkm_last_timestamp [08:46:44]Write 4 bytes [08:46:44]NVStorageSaveData done [08:46:44]ExternCall_PrintAddStr [08:46:44]wPrintStart [08:46:44]Write to MH i2c: 01 00 00 BC 19 D5 [08:46:44]Write i2c OK [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 [08:46:44]MH_I2C_Read... [08:46:44]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [08:46:44]RasterBufferAndPrint [08:46:44]line Счет N : (1)411584 [08:46:44]line ИНН: 02508201610067 [08:46:44]line Контрольно-Кассовый Чек [08:46:44]line ПРОДАЖА [08:46:44]line ТРК (МРК, ГНК) : 22 [08:46:44]line Товар: 2710124130 [08:46:44]line Аи-92-К-2 [08:46:44]line 7.790 * 64.20 [08:46:44]line = 500.12 [08:46:44]line НДС 12% НСП 1% [08:46:44]line > о реализуемом товаре [08:46:44]line ОКРУГЛЕНИЕ: -0.12 [08:46:44]line ИТОГО: 500.00 [08:46:44]line Внесено: 500.00 [08:46:44]line СДАЧА: 0.00 [08:46:44]line НСП 1% : 4.43 [08:46:44]line НДС 12% : 53.11 [08:46:44]line Наличными: 500.00 [08:46:44]line Безнал.: 0.00 [08:46:44]line Место: АЗС № 92 "Партнер Нефть" [08:46:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:46:44]line СНО: Общий режим [08:46:44]line Чек 39 17.02.2025 08:46 [08:46:44]line Смена: 644 ФФД: 1.0 [08:46:44]line ЗНМ: 0300000118 [08:46:44]line РНМ: 0000000000091857 [08:46:44]line Версия ККМ: 001 [08:46:44]line ФМ: 0000000000871826 [08:46:44]line ФД: 186452 [08:46:44]line ФПД: 279418835142444 [08:46:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084646&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186452&fm=279418835142444&tin=02508201610067®Number=0000000000091857&sum=50000 [08:46:45]OFD Sender: Processing packet 186452 [packets to send 49, broken 48] [08:46:45]ProducePacketName [08:46:45]name=ofd_packets/00186452 [08:46:45]OFD Sender: To server: pG, [08:46:45]CommunicateWithHost lk.salyk.kg:30040 [08:46:45]ConnectInit lk.salyk.kg [08:46:45]written 0, free lines is 4095 [08:46:45]Connected sock=11 [08:46:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F2 12 07 01 E4 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 76 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D8 02 00 35 04 06 00 FE 21 44 69 87 2C B3 EE 1F CA A3 61 84 2D [08:46:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1F 1E 47 00 8A 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 54 D8 02 00 F4 03 04 00 D1 9D B2 67 B6 04 01 00 00 6B 22 1D CB EF 86 87 A7 [08:46:45]CommunicateWithHost err = 0 [08:46:45]CheckOFDResponse [08:46:45]1017 (14) - 77093643461234 [08:46:45]1041 (16) - 0000000000871826 [08:46:45]1040 (4) - 186452 [08:46:45]1012 (4) - 17.02.2025 02:24 [08:46:45]1206 (1) - 0 [08:46:45]OFD Sender: Remove packet 186452 [08:46:45]ProducePacketName [08:46:45]name=ofd_packets/00186452 [08:46:45]NVStorageDeleteData [08:46:45]Write to MH i2c: 01 00 00 E7 19 00 [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 07 00 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: 01 07 00 E7 19 00 00 00 00 00 ED 0C 00 [08:46:45]RasterBufferAndPrint [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]line [08:46:45]written 0, free lines is 3315 [08:46:45]MH_Cut [08:46:45]Write to MH i2c: D1 01 00 EE 19 01 D9 [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 01 00 [08:46:45]MH_I2C_Read... [08:46:45]Read from MH i2c: D1 01 00 EE 19 00 D8 [08:46:45]Write to MH i2c: 01 00 00 EF 19 08 [08:46:45]Write i2c OK [08:46:45]MH_I2C_Read... [08:46:45]OFD Sender: No OFD packet to send [08:46:46]*** Cut start [08:46:46]*** Partial cut [08:46:46]*** CUTSNS_PIN = 1 [08:46:46]*** CUTSNS_PIN = 0 [08:46:46]*** Brake cut motor [08:46:46]Read from MH i2c: 01 [08:46:46]MH_I2C_Read... [08:46:46]*** Stop cut motor [08:46:46]*** Cut end [08:46:46]Read from MH i2c: 01 07 00 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: 01 07 00 EF 19 00 00 00 00 00 FF 0F 1D [08:46:46]process_action close_receipt done [08:46:46]requested_data is exist [08:46:46]produce_requested_data [08:46:46]requested_item fm.sn is exist - process it [08:46:46]wFMCommunicate request_size=4 [08:46:46]MH_SAM_APDU [08:46:46]CAPDU: 80 11 00 00 [08:46:46]Write to MH i2c: E2 08 00 F0 19 80 11 00 00 00 00 00 00 83 [08:46:46]Write i2c OK [08:46:46]MH_I2C_Read... [08:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:46]Read from MH i2c: E2 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 17 00 [08:46:46]MH_I2C_Read... [08:46:46]Read from MH i2c: E2 17 00 F0 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D6 [08:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:46:46]wFMCommunicate OK [08:46:46]requested_item fd.num is exist - process it [08:46:46]SAM_PROTO_GetFieldsCounters [08:46:46]wFMCommunicate request_size=4 [08:46:46]MH_SAM_APDU [08:46:46]CAPDU: 80 13 00 00 [08:46:46]Write to MH i2c: E2 08 00 F1 19 80 13 00 00 00 00 00 00 86 [08:46:46]Write i2c OK [08:46:46]MH_I2C_Read... [08:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:47]Read from MH i2c: E2 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 62 00 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 62 00 F1 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 54 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:47]wFMCommunicate OK [08:46:47]SAM_PROTO_GetFieldsCounters done [08:46:47]requested_item shift.num is exist - process it [08:46:47]requested_item shift.opened is exist - process it [08:46:47]req_shift_opened [08:46:47]FM_GetShiftState [08:46:47]SAM_PROTO_GetShiftState [08:46:47]wFMCommunicate request_size=4 [08:46:47]MH_SAM_APDU [08:46:47]CAPDU: 80 13 01 00 [08:46:47]Write to MH i2c: E2 08 00 F2 19 80 13 01 00 00 00 00 00 88 [08:46:47]Write i2c OK [08:46:47]MH_I2C_Read... [08:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:47]Read from MH i2c: E2 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 [08:46:47]MH_I2C_Read... [08:46:47]Read from MH i2c: E2 0E 00 F2 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AC [08:46:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:46:47]wFMCommunicate OK [08:46:47]SAM_PROTO_GetShiftState done [08:46:47]FM_GetShiftState done [08:46:47]req_shift_opened done [08:46:47]requested_item shift.open_date is exist - process it [08:46:47]req_shift_open_date [08:46:47]req_shift_open_date done [08:46:47]produce_requested_data done [08:46:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186452,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:46:47]process_action_free close_receipt [08:46:47]json_value_free [08:46:47]json_value_free done [08:46:47]process_json_proto returns [08:46:47]Send response to host [08:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186452,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:46:47]free response buf [08:46:47]execute_script done [08:46:47]execute_script returns [08:46:47]free content buf [08:46:47]Sock 9.Close socket [08:46:47]Sock 9.Thread stoped [08:46:50]OFD Sender: No OFD packet to send [08:46:55]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:45]accept exits with 8 [08:47:45]New connection [08:47:45]New thread 3067501924 created [08:47:45]Thread 3067358564 joined [08:47:45]Waiting for new connection... [08:47:45] Sock 8.Parse request [08:47:45]Sock 8.Check first char [08:47:45]Sock 8.First char is OK [08:47:45]request: POST /json_proto HTTP/1.0 [08:47:45]Method: POST [08:47:45]URL: /json_proto [08:47:45]Method is POST - this is cgi request [08:47:45]url: /json_proto [08:47:45]query_string will be loaded in cgi processing [08:47:45]execute_cgi json_proto POST (null) [08:47:45]execute_cgi path=json_proto method=POST [08:47:45]POST find Content-Length [08:47:45]Host: 172.17.46.131:8080 [08:47:45]Content-Length: 682 [08:47:45]Content-Type: application/json [08:47:45] [08:47:45]POST finish read [08:47:45]Found Content-Length = 682 [08:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:45]execute_script... [08:47:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:45]POST & json_proto [08:47:45]process_json_proto [08:47:45]json parsed OK: [08:47:45]protocol is kg_v1.0 [08:47:45]action value=close_receipt [08:47:45]process_action close_receipt [08:47:45]cmd_close_receipt [08:47:45]MH_GetDate [08:47:45]Write to MH i2c: F0 00 00 F3 19 FB [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: F0 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: F0 09 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: F0 09 00 F3 19 00 B5 F7 B2 67 7E 41 4F 65 3C [08:47:45]GetLastDocTimeStamp 1739782006 [08:47:45]current date 1739782069 [08:47:45]FM_GetShiftState [08:47:45]SAM_PROTO_GetShiftState [08:47:45]wFMCommunicate request_size=4 [08:47:45]MH_SAM_APDU [08:47:45]CAPDU: 80 13 01 00 [08:47:45]Write to MH i2c: E2 08 00 F4 19 80 13 01 00 00 00 00 00 8A [08:47:45]Write i2c OK [08:47:45]MH_I2C_Read... [08:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:45]Read from MH i2c: E2 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 0E 00 [08:47:45]MH_I2C_Read... [08:47:45]Read from MH i2c: E2 0E 00 F4 19 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AE [08:47:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:47:45]wFMCommunicate OK [08:47:45]SAM_PROTO_GetShiftState done [08:47:45]FM_GetShiftState done [08:47:45]opened in 1739752571 [08:47:45]opened+sec_in_day 1739838971 [08:47:45]quantity*price = 100023 [08:47:45]sum+1 = 100025 [08:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 40 17.02.2025 08:47 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186453 ФПД: 216666160220270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186453&fm=216666160220270&tin=02508201610067®Number=0000000000091857&sum=100000 [08:47:46]StoreToDocumentArchive [08:47:46]shift 644 fd 186453 [08:47:46]save to /storage/0644/doc_00186453 [08:47:46]save last doc name /storage/0644/doc_00186453 to /storage/kkm_last_doc_name [08:47:46]save OK [08:47:46]Clear old archive folders... [08:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:46]tlvbuf is 02026EE0 [08:47:46]SAM_PROTO_ClearQueue [08:47:46]wFMCommunicate request_size=4 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 09 00 00 [08:47:46]Write to MH i2c: E2 08 00 01 1A 80 09 00 00 00 00 00 00 8D [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [08:47:46]RAPDU: 90 00 [08:47:46]wFMCommunicate OK [08:47:46]SAM_PROTO_ClearQueue done [08:47:46]KKMCreateOFDPacket [08:47:46]OFDProtocolAddRootSTLVToBuf [08:47:46]FM_MakeSignedData [08:47:46]FM_MakeSignedData [08:47:46]SAM_PROTO_SignData [08:47:46]wFMCommunicate request_size=4 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 0D 01 02 [08:47:46]Write to MH i2c: E2 08 00 02 1A 80 0D 01 02 00 00 00 00 95 [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [08:47:46]RAPDU: 90 00 [08:47:46]wFMCommunicate OK [08:47:46]wFMCommunicate request_size=255 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B5 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D8 02 00 35 04 06 00 C5 [08:47:46]Write to MH i2c: E2 02 01 03 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B5 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D8 02 00 35 04 06 00 C5 00 00 F9 [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [08:47:46]RAPDU: 90 00 [08:47:46]wFMCommunicate OK [08:47:46]wFMCommunicate request_size=10 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 0D 02 02 05 0E 85 83 C8 6E [08:47:46]Write to MH i2c: E2 0D 00 04 1A 80 0D 02 02 05 00 0E 85 83 C8 6E 00 00 EE [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:46]Read from MH i2c: E2 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 [08:47:46]MH_I2C_Read... [08:47:46]Read from MH i2c: E2 03 00 04 1A 00 90 00 92 [08:47:46]RAPDU: 90 00 [08:47:46]wFMCommunicate OK [08:47:46]wFMCommunicate request_size=4 [08:47:46]MH_SAM_APDU [08:47:46]CAPDU: 80 0D 03 02 [08:47:46]Write to MH i2c: E2 08 00 05 1A 80 0D 03 02 00 00 00 00 9A [08:47:46]Write i2c OK [08:47:46]MH_I2C_Read... [08:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:47]Read from MH i2c: E2 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: E2 0B 00 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: E2 0B 00 05 1A 00 4F E3 60 C5 CE 38 A7 06 90 00 A5 [08:47:47]RAPDU: 4F E3 60 C5 CE 38 A7 06 90 00 [08:47:47]wFMCommunicate OK [08:47:47]SAM_PROTO_SignData done [08:47:47]FM_MakeSignedData done [08:47:47]CreateOFDProtocolMessage [08:47:47]wFMCommunicate request_size=4 [08:47:47]MH_SAM_APDU [08:47:47]CAPDU: 80 11 00 00 [08:47:47]Write to MH i2c: E2 08 00 06 1A 80 11 00 00 00 00 00 00 9A [08:47:47]Write i2c OK [08:47:47]MH_I2C_Read... [08:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:47]Read from MH i2c: E2 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: E2 17 00 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: E2 17 00 06 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [08:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:47:47]wFMCommunicate OK [08:47:47]CreateOFDProtocolMessage done [08:47:47]OFDSenderStorePacket 186453 [08:47:47]StoreOFDPacket docnum=186453 [08:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F5 20 07 01 4A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B5 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D8 02 00 35 04 06 00 C5 0E 85 83 C8 6E 4F E3 60 C5 CE 38 A7 06 [08:47:47]CheckFolder [08:47:47]dirname=/storage/ofd_packets [08:47:47]CheckFolder done [08:47:47]ProducePacketName [08:47:47]name=ofd_packets/00186453 [08:47:47]NVStorageSaveData ofd_packets/00186453 [08:47:47]File name is /storage/ofd_packets/00186453 [08:47:47]Write 301 bytes [08:47:47]NVStorageSaveData done [08:47:47]OFDSenderStorePacket done [08:47:47]KKMCreateOFDPacket done [08:47:47]NVStorageSaveData kkm_last_timestamp [08:47:47]File name is /storage/kkm_last_timestamp [08:47:47]Write 4 bytes [08:47:47]NVStorageSaveData done [08:47:47]OFD Sender: Processing packet 186453 [packets to send 49, broken 48] [08:47:47]ProducePacketName [08:47:47]name=ofd_packets/00186453 [08:47:47]OFD Sender: To server: pG, [08:47:47]CommunicateWithHost lk.salyk.kg:30040 [08:47:47]ConnectInit lk.salyk.kg [08:47:47]ExternCall_PrintAddStr [08:47:47]wPrintStart [08:47:47]Write to MH i2c: 01 00 00 07 1A 21 [08:47:47]Write i2c OK [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 07 00 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 FF 0F 36 [08:47:47]RasterBufferAndPrint [08:47:47]line Счет N : (1)411585 [08:47:47]line ИНН: 02508201610067 [08:47:47]line Контрольно-Кассовый Чек [08:47:47]line ПРОДАЖА [08:47:47]line ТРК (МРК, ГНК) : 42 [08:47:47]line Товар: 2710124130 [08:47:47]line Аи-92-К-2 [08:47:47]line 15.580 * 64.20 [08:47:47]line = 1000.24 [08:47:47]line НДС 12% НСП 1% [08:47:47]line > о реализуемом товаре [08:47:47]line ОКРУГЛЕНИЕ: -0.24 [08:47:47]line ИТОГО: 1000.00 [08:47:47]line Внесено: 1000.00 [08:47:47]line СДАЧА: 0.00 [08:47:47]line НСП 1% : 8.85 [08:47:47]line НДС 12% : 106.22 [08:47:47]line Наличными: 1000.00 [08:47:47]line Безнал.: 0.00 [08:47:47]line Место: АЗС № 92 "Партнер Нефть" [08:47:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:47:47]line СНО: Общий режим [08:47:47]line Чек 40 17.02.2025 08:47 [08:47:47]line Смена: 644 ФФД: 1.0 [08:47:47]line ЗНМ: 0300000118 [08:47:47]line РНМ: 0000000000091857 [08:47:47]line Версия ККМ: 001 [08:47:47]line ФМ: 0000000000871826 [08:47:47]line ФД: 186453 [08:47:47]line ФПД: 216666160220270 [08:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084749&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186453&fm=216666160220270&tin=02508201610067®Number=0000000000091857&sum=100000 [08:47:47]Connected sock=11 [08:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F5 20 07 01 4A 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 B5 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D8 02 00 35 04 06 00 C5 0E 85 83 C8 6E 4F E3 60 C5 CE 38 A7 06 [08:47:47]written 0, free lines is 4095 [08:47:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DD 68 47 00 22 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 55 D8 02 00 F4 03 04 00 0F 9E B2 67 B6 04 01 00 00 4B FC A2 E8 C3 B7 0C EF [08:47:47]CommunicateWithHost err = 0 [08:47:47]CheckOFDResponse [08:47:47]1017 (14) - 77093643461234 [08:47:47]1041 (16) - 0000000000871826 [08:47:47]1040 (4) - 186453 [08:47:47]1012 (4) - 17.02.2025 02:25 [08:47:47]1206 (1) - 0 [08:47:47]OFD Sender: Remove packet 186453 [08:47:47]ProducePacketName [08:47:47]name=ofd_packets/00186453 [08:47:47]NVStorageDeleteData [08:47:47]Write to MH i2c: 01 00 00 32 1A 4C [08:47:47]Write i2c OK [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 07 00 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: 01 07 00 32 1A 00 00 00 00 00 F7 0C 56 [08:47:47]RasterBufferAndPrint [08:47:47]line [08:47:47]line [08:47:47]line [08:47:47]line [08:47:47]line [08:47:47]written 0, free lines is 3326 [08:47:47]MH_Cut [08:47:47]Write to MH i2c: D1 01 00 39 1A 01 25 [08:47:47]Write i2c OK [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: D1 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: D1 01 00 [08:47:47]MH_I2C_Read... [08:47:47]Read from MH i2c: D1 01 00 39 1A 00 24 [08:47:47]Write to MH i2c: 01 00 00 3A 1A 54 [08:47:47]Write i2c OK [08:47:47]MH_I2C_Read... [08:47:48]OFD Sender: No OFD packet to send [08:47:48]*** Cut start [08:47:48]*** Partial cut [08:47:48]*** CUTSNS_PIN = 1 [08:47:48]*** CUTSNS_PIN = 0 [08:47:48]*** Brake cut motor [08:47:49]Read from MH i2c: 01 [08:47:49]MH_I2C_Read... [08:47:49]*** Stop cut motor [08:47:49]*** Cut end [08:47:49]Read from MH i2c: 01 07 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: 01 07 00 3A 1A 00 00 00 00 00 FF 0F 69 [08:47:49]process_action close_receipt done [08:47:49]requested_data is exist [08:47:49]produce_requested_data [08:47:49]requested_item fm.sn is exist - process it [08:47:49]wFMCommunicate request_size=4 [08:47:49]MH_SAM_APDU [08:47:49]CAPDU: 80 11 00 00 [08:47:49]Write to MH i2c: E2 08 00 3B 1A 80 11 00 00 00 00 00 00 CF [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:49]Read from MH i2c: E2 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 17 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 17 00 3B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [08:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:47:49]wFMCommunicate OK [08:47:49]requested_item fd.num is exist - process it [08:47:49]SAM_PROTO_GetFieldsCounters [08:47:49]wFMCommunicate request_size=4 [08:47:49]MH_SAM_APDU [08:47:49]CAPDU: 80 13 00 00 [08:47:49]Write to MH i2c: E2 08 00 3C 1A 80 13 00 00 00 00 00 00 D2 [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:49]Read from MH i2c: E2 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 62 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 62 00 3C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [08:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 55 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:49]wFMCommunicate OK [08:47:49]SAM_PROTO_GetFieldsCounters done [08:47:49]requested_item shift.num is exist - process it [08:47:49]requested_item shift.opened is exist - process it [08:47:49]req_shift_opened [08:47:49]FM_GetShiftState [08:47:49]SAM_PROTO_GetShiftState [08:47:49]wFMCommunicate request_size=4 [08:47:49]MH_SAM_APDU [08:47:49]CAPDU: 80 13 01 00 [08:47:49]Write to MH i2c: E2 08 00 3D 1A 80 13 01 00 00 00 00 00 D4 [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:49]Read from MH i2c: E2 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 0E 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 0E 00 3D 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F8 [08:47:49]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:47:49]wFMCommunicate OK [08:47:49]SAM_PROTO_GetShiftState done [08:47:49]FM_GetShiftState done [08:47:49]req_shift_opened done [08:47:49]requested_item shift.open_date is exist - process it [08:47:49]req_shift_open_date [08:47:49]req_shift_open_date done [08:47:49]produce_requested_data done [08:47:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186453,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:47:49]process_action_free close_receipt [08:47:49]json_value_free [08:47:49]json_value_free done [08:47:49]process_json_proto returns [08:47:49]Send response to host [08:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186453,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:47:49]free response buf [08:47:49]execute_script done [08:47:49]execute_script returns [08:47:49]free content buf [08:47:49]Sock 8.Close socket [08:47:49]Sock 8.Thread stoped [08:47:53]OFD Sender: No OFD packet to send [08:47:57]accept exits with 9 [08:47:57]New connection [08:47:57]New thread 3067358564 created [08:47:57]Thread 3067501924 joined [08:47:57]Waiting for new connection... [08:47:57] Sock 9.Parse request [08:47:57]Sock 9.Check first char [08:47:57]Sock 9.First char is OK [08:47:57]request: POST /json_proto HTTP/1.0 [08:47:57]Method: POST [08:47:57]URL: /json_proto [08:47:57]Method is POST - this is cgi request [08:47:57]url: /json_proto [08:47:57]query_string will be loaded in cgi processing [08:47:57]execute_cgi json_proto POST (null) [08:47:57]execute_cgi path=json_proto method=POST [08:47:57]POST find Content-Length [08:47:57]Host: 172.17.46.131:8080 [08:47:57]Content-Length: 678 [08:47:57]Content-Type: application/json [08:47:57] [08:47:57]POST finish read [08:47:57]Found Content-Length = 678 [08:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:57]execute_script... [08:47:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 12.520, "sum" : 900.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:57]POST & json_proto [08:47:57]process_json_proto [08:47:57]json parsed OK: [08:47:57]protocol is kg_v1.0 [08:47:57]action value=close_receipt [08:47:57]process_action close_receipt [08:47:57]cmd_close_receipt [08:47:57]MH_GetDate [08:47:57]Write to MH i2c: F0 00 00 3E 1A 47 [08:47:57]Write i2c OK [08:47:57]MH_I2C_Read... [08:47:57]Read from MH i2c: F0 [08:47:57]MH_I2C_Read... [08:47:57]Read from MH i2c: F0 09 00 [08:47:57]MH_I2C_Read... [08:47:57]Read from MH i2c: F0 09 00 3E 1A 00 C0 F7 B2 67 7E 41 4F 65 93 [08:47:57]GetLastDocTimeStamp 1739782069 [08:47:57]current date 1739782080 [08:47:57]FM_GetShiftState [08:47:57]SAM_PROTO_GetShiftState [08:47:57]wFMCommunicate request_size=4 [08:47:57]MH_SAM_APDU [08:47:57]CAPDU: 80 13 01 00 [08:47:57]Write to MH i2c: E2 08 00 3F 1A 80 13 01 00 00 00 00 00 D6 [08:47:57]Write i2c OK [08:47:57]MH_I2C_Read... [08:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:57]Read from MH i2c: E2 [08:47:57]MH_I2C_Read... [08:47:57]Read from MH i2c: E2 0E 00 [08:47:57]MH_I2C_Read... [08:47:57]Read from MH i2c: E2 0E 00 3F 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FA [08:47:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:47:57]wFMCommunicate OK [08:47:57]SAM_PROTO_GetShiftState done [08:47:57]FM_GetShiftState done [08:47:57]opened in 1739752571 [08:47:57]opened+sec_in_day 1739838971 [08:47:57]quantity*price = 90018 [08:47:57]sum+1 = 90020 [08:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.59 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 41 17.02.2025 08:48 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186454 ФПД: 116914377939133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084801&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186454&fm=116914377939133&tin=02508201610067®Number=0000000000091857&sum=90000 [08:47:58]StoreToDocumentArchive [08:47:58]shift 644 fd 186454 [08:47:58]save to /storage/0644/doc_00186454 [08:47:58]save last doc name /storage/0644/doc_00186454 to /storage/kkm_last_doc_name [08:47:58]save OK [08:47:58]Clear old archive folders... [08:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:58]tlvbuf is 02026E70 [08:47:58]SAM_PROTO_ClearQueue [08:47:58]wFMCommunicate request_size=4 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 09 00 00 [08:47:58]Write to MH i2c: E2 08 00 4C 1A 80 09 00 00 00 00 00 00 D8 [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:58]Read from MH i2c: E2 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [08:47:58]RAPDU: 90 00 [08:47:58]wFMCommunicate OK [08:47:58]SAM_PROTO_ClearQueue done [08:47:58]KKMCreateOFDPacket [08:47:58]OFDProtocolAddRootSTLVToBuf [08:47:58]FM_MakeSignedData [08:47:58]FM_MakeSignedData [08:47:58]SAM_PROTO_SignData [08:47:58]wFMCommunicate request_size=4 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 0D 01 02 [08:47:58]Write to MH i2c: E2 08 00 4D 1A 80 0D 01 02 00 00 00 00 E0 [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:58]Read from MH i2c: E2 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [08:47:58]RAPDU: 90 00 [08:47:58]wFMCommunicate OK [08:47:58]wFMCommunicate request_size=255 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C1 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D8 02 00 35 04 06 00 6A [08:47:58]Write to MH i2c: E2 02 01 4E 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C1 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D8 02 00 35 04 06 00 6A 00 00 D6 [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:58]Read from MH i2c: E2 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [08:47:58]RAPDU: 90 00 [08:47:58]wFMCommunicate OK [08:47:58]wFMCommunicate request_size=10 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 0D 02 02 05 55 3F F7 58 BD [08:47:58]Write to MH i2c: E2 0D 00 4F 1A 80 0D 02 02 05 00 55 3F F7 58 BD 00 00 8D [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:58]Read from MH i2c: E2 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 [08:47:58]MH_I2C_Read... [08:47:58]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [08:47:58]RAPDU: 90 00 [08:47:58]wFMCommunicate OK [08:47:58]wFMCommunicate request_size=4 [08:47:58]MH_SAM_APDU [08:47:58]CAPDU: 80 0D 03 02 [08:47:58]Write to MH i2c: E2 08 00 50 1A 80 0D 03 02 00 00 00 00 E5 [08:47:58]Write i2c OK [08:47:58]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0B 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 0B 00 50 1A 00 4D 70 95 4A 7D C8 66 86 90 00 B3 [08:47:59]RAPDU: 4D 70 95 4A 7D C8 66 86 90 00 [08:47:59]wFMCommunicate OK [08:47:59]SAM_PROTO_SignData done [08:47:59]FM_MakeSignedData done [08:47:59]CreateOFDProtocolMessage [08:47:59]wFMCommunicate request_size=4 [08:47:59]MH_SAM_APDU [08:47:59]CAPDU: 80 11 00 00 [08:47:59]Write to MH i2c: E2 08 00 51 1A 80 11 00 00 00 00 00 00 E5 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:59]Read from MH i2c: E2 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 17 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: E2 17 00 51 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [08:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:47:59]wFMCommunicate OK [08:47:59]CreateOFDProtocolMessage done [08:47:59]OFDSenderStorePacket 186454 [08:47:59]StoreOFDPacket docnum=186454 [08:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D 34 07 01 3F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C1 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D8 02 00 35 04 06 00 6A 55 3F F7 58 BD 4D 70 95 4A 7D C8 66 86 [08:47:59]CheckFolder [08:47:59]dirname=/storage/ofd_packets [08:47:59]CheckFolder done [08:47:59]ProducePacketName [08:47:59]name=ofd_packets/00186454 [08:47:59]NVStorageSaveData ofd_packets/00186454 [08:47:59]File name is /storage/ofd_packets/00186454 [08:47:59]Write 301 bytes [08:47:59]NVStorageSaveData done [08:47:59]OFDSenderStorePacket done [08:47:59]KKMCreateOFDPacket done [08:47:59]NVStorageSaveData kkm_last_timestamp [08:47:59]File name is /storage/kkm_last_timestamp [08:47:59]Write 4 bytes [08:47:59]NVStorageSaveData done [08:47:59]ExternCall_PrintAddStr [08:47:59]wPrintStart [08:47:59]Write to MH i2c: 01 00 00 52 1A 6C [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 FF 0F 81 [08:47:59]RasterBufferAndPrint [08:47:59]line Счет N : (1)411586 [08:47:59]line ИНН: 02508201610067 [08:47:59]line Контрольно-Кассовый Чек [08:47:59]line ПРОДАЖА [08:47:59]line ТРК (МРК, ГНК) : 33 [08:47:59]line Товар: 2710124500 [08:47:59]line Аи-95-К-5 [08:47:59]line 12.520 * 71.90 [08:47:59]line = 900.19 [08:47:59]line НДС 12% НСП 1% [08:47:59]line > о реализуемом товаре [08:47:59]line ОКРУГЛЕНИЕ: -0.19 [08:47:59]line ИТОГО: 900.00 [08:47:59]line Внесено: 900.00 [08:47:59]line СДАЧА: 0.00 [08:47:59]line НСП 1% : 7.97 [08:47:59]line НДС 12% : 95.59 [08:47:59]line Наличными: 900.00 [08:47:59]line Безнал.: 0.00 [08:47:59]line Место: АЗС № 92 "Партнер Нефть" [08:47:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:47:59]line СНО: Общий режим [08:47:59]line Чек 41 17.02.2025 08:48 [08:47:59]line Смена: 644 ФФД: 1.0 [08:47:59]line ЗНМ: 0300000118 [08:47:59]line РНМ: 0000000000091857 [08:47:59]line Версия ККМ: 001 [08:47:59]line ФМ: 0000000000871826 [08:47:59]line ФД: 186454 [08:47:59]line ФПД: 116914377939133 [08:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T084801&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186454&fm=116914377939133&tin=02508201610067®Number=0000000000091857&sum=90000 [08:47:59]written 0, free lines is 4095 [08:47:59]OFD Sender: Processing packet 186454 [packets to send 49, broken 48] [08:47:59]ProducePacketName [08:47:59]name=ofd_packets/00186454 [08:47:59]OFD Sender: To server: pG, [08:47:59]CommunicateWithHost lk.salyk.kg:30040 [08:47:59]ConnectInit lk.salyk.kg [08:47:59]Connected sock=10 [08:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4D 34 07 01 3F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 30 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 A3 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 C1 F7 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D8 02 00 35 04 06 00 6A 55 3F F7 58 BD 4D 70 95 4A 7D C8 66 86 [08:47:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 77 3E 47 00 61 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 56 D8 02 00 F4 03 04 00 1B 9E B2 67 B6 04 01 00 00 0E C9 89 CE 3E CB F7 BA [08:47:59]CommunicateWithHost err = 0 [08:47:59]CheckOFDResponse [08:47:59]1017 (14) - 77093643461234 [08:47:59]1041 (16) - 0000000000871826 [08:47:59]1040 (4) - 186454 [08:47:59]1012 (4) - 17.02.2025 02:25 [08:47:59]1206 (1) - 0 [08:47:59]OFD Sender: Remove packet 186454 [08:47:59]ProducePacketName [08:47:59]name=ofd_packets/00186454 [08:47:59]NVStorageDeleteData [08:47:59]Write to MH i2c: 01 00 00 7D 1A 97 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: 01 07 00 7D 1A 00 00 00 00 00 FC 0C A6 [08:47:59]RasterBufferAndPrint [08:47:59]line [08:47:59]line [08:47:59]line [08:47:59]line [08:47:59]line [08:47:59]written 0, free lines is 3333 [08:47:59]MH_Cut [08:47:59]Write to MH i2c: D1 01 00 84 1A 01 70 [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: D1 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: D1 01 00 [08:47:59]MH_I2C_Read... [08:47:59]Read from MH i2c: D1 01 00 84 1A 00 6F [08:47:59]Write to MH i2c: 01 00 00 85 1A 9F [08:47:59]Write i2c OK [08:47:59]MH_I2C_Read... [08:48:00]OFD Sender: No OFD packet to send [08:48:00]*** Cut start [08:48:00]*** Partial cut [08:48:00]*** CUTSNS_PIN = 1 [08:48:00]*** CUTSNS_PIN = 0 [08:48:00]*** Brake cut motor [08:48:00]Read from MH i2c: 01 [08:48:00]MH_I2C_Read... [08:48:00]*** Stop cut motor [08:48:00]*** Cut end [08:48:00]Read from MH i2c: 01 07 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 FF 0F B4 [08:48:00]process_action close_receipt done [08:48:00]requested_data is exist [08:48:00]produce_requested_data [08:48:00]requested_item fm.sn is exist - process it [08:48:00]wFMCommunicate request_size=4 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 11 00 00 [08:48:00]Write to MH i2c: E2 08 00 86 1A 80 11 00 00 00 00 00 00 1A [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:00]Read from MH i2c: E2 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 17 00 [08:48:00]MH_I2C_Read... [08:48:00]Read from MH i2c: E2 17 00 86 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [08:48:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:48:00]wFMCommunicate OK [08:48:00]requested_item fd.num is exist - process it [08:48:00]SAM_PROTO_GetFieldsCounters [08:48:00]wFMCommunicate request_size=4 [08:48:00]MH_SAM_APDU [08:48:00]CAPDU: 80 13 00 00 [08:48:00]Write to MH i2c: E2 08 00 87 1A 80 13 00 00 00 00 00 00 1D [08:48:00]Write i2c OK [08:48:00]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 62 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 62 00 87 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [08:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 56 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:01]wFMCommunicate OK [08:48:01]SAM_PROTO_GetFieldsCounters done [08:48:01]requested_item shift.num is exist - process it [08:48:01]requested_item shift.opened is exist - process it [08:48:01]req_shift_opened [08:48:01]FM_GetShiftState [08:48:01]SAM_PROTO_GetShiftState [08:48:01]wFMCommunicate request_size=4 [08:48:01]MH_SAM_APDU [08:48:01]CAPDU: 80 13 01 00 [08:48:01]Write to MH i2c: E2 08 00 88 1A 80 13 01 00 00 00 00 00 1F [08:48:01]Write i2c OK [08:48:01]MH_I2C_Read... [08:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:01]Read from MH i2c: E2 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0E 00 [08:48:01]MH_I2C_Read... [08:48:01]Read from MH i2c: E2 0E 00 88 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 43 [08:48:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:48:01]wFMCommunicate OK [08:48:01]SAM_PROTO_GetShiftState done [08:48:01]FM_GetShiftState done [08:48:01]req_shift_opened done [08:48:01]requested_item shift.open_date is exist - process it [08:48:01]req_shift_open_date [08:48:01]req_shift_open_date done [08:48:01]produce_requested_data done [08:48:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186454,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:48:01]process_action_free close_receipt [08:48:01]json_value_free [08:48:01]json_value_free done [08:48:01]process_json_proto returns [08:48:01]Send response to host [08:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186454,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:48:01]free response buf [08:48:01]execute_script done [08:48:01]execute_script returns [08:48:01]free content buf [08:48:01]Sock 9.Close socket [08:48:01]Sock 9.Thread stoped [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:15]accept exits with 8 [08:50:15]New connection [08:50:15]New thread 3067501924 created [08:50:15]Thread 3067358564 joined [08:50:15]Waiting for new connection... [08:50:15] Sock 8.Parse request [08:50:15]Sock 8.Check first char [08:50:15]Sock 8.First char is OK [08:50:15]request: POST /json_proto HTTP/1.0 [08:50:15]Method: POST [08:50:15]URL: /json_proto [08:50:15]Method is POST - this is cgi request [08:50:15]url: /json_proto [08:50:15]query_string will be loaded in cgi processing [08:50:15]execute_cgi json_proto POST (null) [08:50:15]execute_cgi path=json_proto method=POST [08:50:15]POST find Content-Length [08:50:15]Host: 172.17.46.131:8080 [08:50:15]Content-Length: 677 [08:50:15]Content-Type: application/json [08:50:15] [08:50:15]POST finish read [08:50:15]Found Content-Length = 677 [08:50:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:15]execute_script... [08:50:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:15]POST & json_proto [08:50:15]process_json_proto [08:50:15]json parsed OK: [08:50:15]protocol is kg_v1.0 [08:50:15]action value=close_receipt [08:50:15]process_action close_receipt [08:50:15]cmd_close_receipt [08:50:15]MH_GetDate [08:50:15]Write to MH i2c: F0 00 00 89 1A 92 [08:50:15]Write i2c OK [08:50:15]MH_I2C_Read... [08:50:15]Read from MH i2c: F0 [08:50:15]MH_I2C_Read... [08:50:15]Read from MH i2c: F0 09 00 [08:50:15]MH_I2C_Read... [08:50:15]Read from MH i2c: F0 09 00 89 1A 00 4B F8 B2 67 7E 41 4F 65 6A [08:50:15]GetLastDocTimeStamp 1739782081 [08:50:15]current date 1739782219 [08:50:15]FM_GetShiftState [08:50:15]SAM_PROTO_GetShiftState [08:50:15]wFMCommunicate request_size=4 [08:50:15]MH_SAM_APDU [08:50:15]CAPDU: 80 13 01 00 [08:50:15]Write to MH i2c: E2 08 00 8A 1A 80 13 01 00 00 00 00 00 21 [08:50:15]Write i2c OK [08:50:15]MH_I2C_Read... [08:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:15]Read from MH i2c: E2 [08:50:15]MH_I2C_Read... [08:50:15]Read from MH i2c: E2 0E 00 [08:50:15]MH_I2C_Read... [08:50:15]Read from MH i2c: E2 0E 00 8A 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 45 [08:50:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:50:15]wFMCommunicate OK [08:50:15]SAM_PROTO_GetShiftState done [08:50:15]FM_GetShiftState done [08:50:15]opened in 1739752571 [08:50:15]opened+sec_in_day 1739838971 [08:50:15]quantity*price = 60027 [08:50:15]sum+1 = 60028 [08:50:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 42 17.02.2025 08:50 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186455 ФПД: 252302634236014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186455&fm=252302634236014&tin=02508201610067®Number=0000000000091857&sum=60000 [08:50:16]StoreToDocumentArchive [08:50:16]shift 644 fd 186455 [08:50:16]save to /storage/0644/doc_00186455 [08:50:16]save last doc name /storage/0644/doc_00186455 to /storage/kkm_last_doc_name [08:50:16]save OK [08:50:16]Clear old archive folders... [08:50:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:16]tlvbuf is B6FDEEE0 [08:50:16]SAM_PROTO_ClearQueue [08:50:16]wFMCommunicate request_size=4 [08:50:16]MH_SAM_APDU [08:50:16]CAPDU: 80 09 00 00 [08:50:16]Write to MH i2c: E2 08 00 97 1A 80 09 00 00 00 00 00 00 23 [08:50:16]Write i2c OK [08:50:16]MH_I2C_Read... [08:50:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:16]Read from MH i2c: E2 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 03 00 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [08:50:16]RAPDU: 90 00 [08:50:16]wFMCommunicate OK [08:50:16]SAM_PROTO_ClearQueue done [08:50:16]KKMCreateOFDPacket [08:50:16]OFDProtocolAddRootSTLVToBuf [08:50:16]FM_MakeSignedData [08:50:16]FM_MakeSignedData [08:50:16]SAM_PROTO_SignData [08:50:16]wFMCommunicate request_size=4 [08:50:16]MH_SAM_APDU [08:50:16]CAPDU: 80 0D 01 02 [08:50:16]Write to MH i2c: E2 08 00 98 1A 80 0D 01 02 00 00 00 00 2B [08:50:16]Write i2c OK [08:50:16]MH_I2C_Read... [08:50:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:16]Read from MH i2c: E2 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 03 00 [08:50:16]MH_I2C_Read... [08:50:16]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [08:50:16]RAPDU: 90 00 [08:50:16]wFMCommunicate OK [08:50:16]wFMCommunicate request_size=255 [08:50:16]MH_SAM_APDU [08:50:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4B F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D8 02 00 35 04 06 00 E5 [08:50:16]Write to MH i2c: E2 02 01 99 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4B F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D8 02 00 35 04 06 00 E5 00 00 3C [08:50:16]Write i2c OK [08:50:16]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [08:50:17]RAPDU: 90 00 [08:50:17]wFMCommunicate OK [08:50:17]wFMCommunicate request_size=10 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 0D 02 02 05 77 C8 E3 B8 6E [08:50:17]Write to MH i2c: E2 0D 00 9A 1A 80 0D 02 02 05 00 77 C8 E3 B8 6E 00 00 80 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [08:50:17]RAPDU: 90 00 [08:50:17]wFMCommunicate OK [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 0D 03 02 [08:50:17]Write to MH i2c: E2 08 00 9B 1A 80 0D 03 02 00 00 00 00 30 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0B 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0B 00 9B 1A 00 8F 02 02 1D D1 B6 38 E1 90 00 81 [08:50:17]RAPDU: 8F 02 02 1D D1 B6 38 E1 90 00 [08:50:17]wFMCommunicate OK [08:50:17]SAM_PROTO_SignData done [08:50:17]FM_MakeSignedData done [08:50:17]CreateOFDProtocolMessage [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 11 00 00 [08:50:17]Write to MH i2c: E2 08 00 9C 1A 80 11 00 00 00 00 00 00 30 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 17 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 17 00 9C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 83 [08:50:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:50:17]wFMCommunicate OK [08:50:17]CreateOFDProtocolMessage done [08:50:17]OFDSenderStorePacket 186455 [08:50:17]StoreOFDPacket docnum=186455 [08:50:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 95 07 01 C3 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4B F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D8 02 00 35 04 06 00 E5 77 C8 E3 B8 6E 8F 02 02 1D D1 B6 38 E1 [08:50:17]CheckFolder [08:50:17]dirname=/storage/ofd_packets [08:50:17]CheckFolder done [08:50:17]ProducePacketName [08:50:17]name=ofd_packets/00186455 [08:50:17]NVStorageSaveData ofd_packets/00186455 [08:50:17]File name is /storage/ofd_packets/00186455 [08:50:17]Write 301 bytes [08:50:17]NVStorageSaveData done [08:50:17]OFDSenderStorePacket done [08:50:17]KKMCreateOFDPacket done [08:50:17]NVStorageSaveData kkm_last_timestamp [08:50:17]File name is /storage/kkm_last_timestamp [08:50:17]Write 4 bytes [08:50:17]NVStorageSaveData done [08:50:17]OFD Sender: Processing packet 186455 [packets to send 49, broken 48] [08:50:17]ProducePacketName [08:50:17]name=ofd_packets/00186455 [08:50:17]OFD Sender: To server: pG, [08:50:17]CommunicateWithHost lk.salyk.kg:30040 [08:50:17]ConnectInit lk.salyk.kg [08:50:17]ExternCall_PrintAddStr [08:50:17]wPrintStart [08:50:17]Write to MH i2c: 01 00 00 9D 1A B7 [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: 01 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: 01 07 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [08:50:17]RasterBufferAndPrint [08:50:17]line Счет N : (1)411587 [08:50:17]line ИНН: 02508201610067 [08:50:17]line Контрольно-Кассовый Чек [08:50:17]line ПРОДАЖА [08:50:17]line ТРК (МРК, ГНК) : 22 [08:50:17]line Товар: 2710124130 [08:50:17]line Аи-92-К-2 [08:50:17]line 9.350 * 64.20 [08:50:17]line = 600.27 [08:50:17]line НДС 12% НСП 1% [08:50:17]line > о реализуемом товаре [08:50:17]line ОКРУГЛЕНИЕ: -0.27 [08:50:17]line ИТОГО: 600.00 [08:50:17]line Внесено: 600.00 [08:50:17]line СДАЧА: 0.00 [08:50:17]line НСП 1% : 5.31 [08:50:17]line НДС 12% : 63.74 [08:50:17]line Наличными: 600.00 [08:50:17]line Безнал.: 0.00 [08:50:17]line Место: АЗС № 92 "Партнер Нефть" [08:50:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:50:17]line СНО: Общий режим [08:50:17]line Чек 42 17.02.2025 08:50 [08:50:17]line Смена: 644 ФФД: 1.0 [08:50:17]line ЗНМ: 0300000118 [08:50:17]line РНМ: 0000000000091857 [08:50:17]line Версия ККМ: 001 [08:50:17]line ФМ: 0000000000871826 [08:50:17]line ФД: 186455 [08:50:17]line ФПД: 252302634236014 [08:50:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085019&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186455&fm=252302634236014&tin=02508201610067®Number=0000000000091857&sum=60000 [08:50:17]Connected sock=11 [08:50:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 75 95 07 01 C3 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 4B F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D8 02 00 35 04 06 00 E5 77 C8 E3 B8 6E 8F 02 02 1D D1 B6 38 E1 [08:50:17]written 0, free lines is 4095 [08:50:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 0F 47 00 D2 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 57 D8 02 00 F4 03 04 00 A5 9E B2 67 B6 04 01 00 00 2A 17 44 A0 10 E1 BC 00 [08:50:17]CommunicateWithHost err = 0 [08:50:17]CheckOFDResponse [08:50:17]1017 (14) - 77093643461234 [08:50:17]1041 (16) - 0000000000871826 [08:50:17]1040 (4) - 186455 [08:50:17]1012 (4) - 17.02.2025 02:27 [08:50:17]1206 (1) - 0 [08:50:17]OFD Sender: Remove packet 186455 [08:50:17]ProducePacketName [08:50:17]name=ofd_packets/00186455 [08:50:17]NVStorageDeleteData [08:50:18]Write to MH i2c: 01 00 00 C8 1A E2 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 C8 1A 00 00 00 00 00 E4 0C D9 [08:50:18]RasterBufferAndPrint [08:50:18]line [08:50:18]line [08:50:18]line [08:50:18]line [08:50:18]line [08:50:18]written 0, free lines is 3308 [08:50:18]MH_Cut [08:50:18]Write to MH i2c: D1 01 00 CF 1A 01 BB [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: D1 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: D1 01 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: D1 01 00 CF 1A 00 BA [08:50:18]Write to MH i2c: 01 00 00 D0 1A EA [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]OFD Sender: No OFD packet to send [08:50:18]*** Cut start [08:50:18]*** Partial cut [08:50:18]*** CUTSNS_PIN = 1 [08:50:18]*** CUTSNS_PIN = 0 [08:50:19]*** Brake cut motor [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]*** Stop cut motor [08:50:19]*** Cut end [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 D0 1A 00 00 00 00 00 FF 0F FF [08:50:19]process_action close_receipt done [08:50:19]requested_data is exist [08:50:19]produce_requested_data [08:50:19]requested_item fm.sn is exist - process it [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 11 00 00 [08:50:19]Write to MH i2c: E2 08 00 D1 1A 80 11 00 00 00 00 00 00 65 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 D1 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [08:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:50:19]wFMCommunicate OK [08:50:19]requested_item fd.num is exist - process it [08:50:19]SAM_PROTO_GetFieldsCounters [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 13 00 00 [08:50:19]Write to MH i2c: E2 08 00 D2 1A 80 13 00 00 00 00 00 00 68 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 62 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 62 00 D2 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [08:50:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 57 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:19]wFMCommunicate OK [08:50:19]SAM_PROTO_GetFieldsCounters done [08:50:19]requested_item shift.num is exist - process it [08:50:19]requested_item shift.opened is exist - process it [08:50:19]req_shift_opened [08:50:19]FM_GetShiftState [08:50:19]SAM_PROTO_GetShiftState [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 13 01 00 [08:50:19]Write to MH i2c: E2 08 00 D3 1A 80 13 01 00 00 00 00 00 6A [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0E 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0E 00 D3 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8E [08:50:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:50:19]wFMCommunicate OK [08:50:19]SAM_PROTO_GetShiftState done [08:50:19]FM_GetShiftState done [08:50:19]req_shift_opened done [08:50:19]requested_item shift.open_date is exist - process it [08:50:19]req_shift_open_date [08:50:19]req_shift_open_date done [08:50:19]produce_requested_data done [08:50:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186455,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:50:19]process_action_free close_receipt [08:50:19]json_value_free [08:50:19]json_value_free done [08:50:19]process_json_proto returns [08:50:19]Send response to host [08:50:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186455,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:50:19]free response buf [08:50:19]execute_script done [08:50:19]execute_script returns [08:50:19]free content buf [08:50:19]Sock 8.Close socket [08:50:19]Sock 8.Thread stoped [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:33]OFD Sender: No OFD packet to send [08:50:38]OFD Sender: No OFD packet to send [08:50:43]OFD Sender: No OFD packet to send [08:50:46]accept exits with 10 [08:50:46]New connection [08:50:46]New thread 3067358564 created [08:50:46]Thread 3067501924 joined [08:50:46]Waiting for new connection... [08:50:46] Sock 10.Parse request [08:50:46]Sock 10.Check first char [08:50:46]Sock 10.First char is OK [08:50:46]request: POST /json_proto HTTP/1.0 [08:50:46]Method: POST [08:50:46]URL: /json_proto [08:50:46]Method is POST - this is cgi request [08:50:46]url: /json_proto [08:50:46]query_string will be loaded in cgi processing [08:50:46]execute_cgi json_proto POST (null) [08:50:46]execute_cgi path=json_proto method=POST [08:50:46]POST find Content-Length [08:50:46]Host: 172.17.46.131:8080 [08:50:46]Content-Length: 673 [08:50:46]Content-Type: application/json [08:50:46] [08:50:46]POST finish read [08:50:46]Found Content-Length = 673 [08:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:46]execute_script... [08:50:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:46]POST & json_proto [08:50:46]process_json_proto [08:50:46]json parsed OK: [08:50:46]protocol is kg_v1.0 [08:50:46]action value=close_receipt [08:50:46]process_action close_receipt [08:50:46]cmd_close_receipt [08:50:46]MH_GetDate [08:50:46]Write to MH i2c: F0 00 00 D4 1A DD [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: F0 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: F0 09 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: F0 09 00 D4 1A 00 6A F8 B2 67 7E 41 4F 65 D4 [08:50:46]GetLastDocTimeStamp 1739782219 [08:50:46]current date 1739782250 [08:50:46]FM_GetShiftState [08:50:46]SAM_PROTO_GetShiftState [08:50:46]wFMCommunicate request_size=4 [08:50:46]MH_SAM_APDU [08:50:46]CAPDU: 80 13 01 00 [08:50:46]Write to MH i2c: E2 08 00 D5 1A 80 13 01 00 00 00 00 00 6C [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:46]Read from MH i2c: E2 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 0E 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 0E 00 D5 1A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 90 [08:50:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:50:46]wFMCommunicate OK [08:50:46]SAM_PROTO_GetShiftState done [08:50:46]FM_GetShiftState done [08:50:46]opened in 1739752571 [08:50:46]opened+sec_in_day 1739838971 [08:50:46]quantity*price = 50021 [08:50:46]sum+1 = 50022 [08:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 43 17.02.2025 08:50 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186456 ФПД: 40246263134411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186456&fm=40246263134411&tin=02508201610067®Number=0000000000091857&sum=50000 [08:50:47]StoreToDocumentArchive [08:50:47]shift 644 fd 186456 [08:50:47]save to /storage/0644/doc_00186456 [08:50:47]save last doc name /storage/0644/doc_00186456 to /storage/kkm_last_doc_name [08:50:47]save OK [08:50:47]Clear old archive folders... [08:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:50:47]tlvbuf is B6F60B80 [08:50:47]SAM_PROTO_ClearQueue [08:50:47]wFMCommunicate request_size=4 [08:50:47]MH_SAM_APDU [08:50:47]CAPDU: 80 09 00 00 [08:50:47]Write to MH i2c: E2 08 00 E2 1A 80 09 00 00 00 00 00 00 6E [08:50:47]Write i2c OK [08:50:47]MH_I2C_Read... [08:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:47]Read from MH i2c: E2 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 03 00 [08:50:47]MH_I2C_Read... [08:50:47]Read from MH i2c: E2 03 00 E2 1A 00 90 00 70 [08:50:47]RAPDU: 90 00 [08:50:47]wFMCommunicate OK [08:50:47]SAM_PROTO_ClearQueue done [08:50:47]KKMCreateOFDPacket [08:50:47]OFDProtocolAddRootSTLVToBuf [08:50:47]FM_MakeSignedData [08:50:47]FM_MakeSignedData [08:50:47]SAM_PROTO_SignData [08:50:47]wFMCommunicate request_size=4 [08:50:47]MH_SAM_APDU [08:50:47]CAPDU: 80 0D 01 02 [08:50:47]Write to MH i2c: E2 08 00 E3 1A 80 0D 01 02 00 00 00 00 76 [08:50:47]Write i2c OK [08:50:47]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 E3 1A 00 90 00 71 [08:50:48]RAPDU: 90 00 [08:50:48]wFMCommunicate OK [08:50:48]wFMCommunicate request_size=255 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6A F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D8 02 00 35 04 06 00 24 9A 90 37 [08:50:48]Write to MH i2c: E2 02 01 E4 1A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6A F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D8 02 00 35 04 06 00 24 9A 90 37 00 00 15 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 E4 1A 00 90 00 72 [08:50:48]RAPDU: 90 00 [08:50:48]wFMCommunicate OK [08:50:48]wFMCommunicate request_size=7 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 0D 02 02 02 B8 CB [08:50:48]Write to MH i2c: E2 0A 00 E5 1A 80 0D 02 02 02 00 B8 CB 00 00 00 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 03 00 E5 1A 00 90 00 73 [08:50:48]RAPDU: 90 00 [08:50:48]wFMCommunicate OK [08:50:48]wFMCommunicate request_size=4 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 0D 03 02 [08:50:48]Write to MH i2c: E2 08 00 E6 1A 80 0D 03 02 00 00 00 00 7B [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]OFD Sender: No OFD packet to send [08:50:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 0B 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 0B 00 E6 1A 00 08 B5 57 16 0C 15 99 F4 90 00 54 [08:50:48]RAPDU: 08 B5 57 16 0C 15 99 F4 90 00 [08:50:48]wFMCommunicate OK [08:50:48]SAM_PROTO_SignData done [08:50:48]FM_MakeSignedData done [08:50:48]CreateOFDProtocolMessage [08:50:48]wFMCommunicate request_size=4 [08:50:48]MH_SAM_APDU [08:50:48]CAPDU: 80 11 00 00 [08:50:48]Write to MH i2c: E2 08 00 E7 1A 80 11 00 00 00 00 00 00 7B [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:48]Read from MH i2c: E2 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 17 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: E2 17 00 E7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CE [08:50:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:50:48]wFMCommunicate OK [08:50:48]CreateOFDProtocolMessage done [08:50:48]OFDSenderStorePacket 186456 [08:50:48]StoreOFDPacket docnum=186456 [08:50:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E4 73 04 01 8B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6A F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D8 02 00 35 04 06 00 24 9A 90 37 B8 CB 08 B5 57 16 0C 15 99 F4 [08:50:48]CheckFolder [08:50:48]dirname=/storage/ofd_packets [08:50:48]CheckFolder done [08:50:48]ProducePacketName [08:50:48]name=ofd_packets/00186456 [08:50:48]NVStorageSaveData ofd_packets/00186456 [08:50:48]File name is /storage/ofd_packets/00186456 [08:50:48]Write 298 bytes [08:50:48]NVStorageSaveData done [08:50:48]OFDSenderStorePacket done [08:50:48]KKMCreateOFDPacket done [08:50:48]NVStorageSaveData kkm_last_timestamp [08:50:48]File name is /storage/kkm_last_timestamp [08:50:48]Write 4 bytes [08:50:48]NVStorageSaveData done [08:50:48]ExternCall_PrintAddStr [08:50:48]wPrintStart [08:50:48]Write to MH i2c: 01 00 00 E8 1A 02 [08:50:48]Write i2c OK [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: 01 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: 01 07 00 [08:50:48]MH_I2C_Read... [08:50:48]Read from MH i2c: 01 07 00 E8 1A 00 00 00 00 00 FF 0F 17 [08:50:48]RasterBufferAndPrint [08:50:48]line Счет N : (1)411588 [08:50:48]line ИНН: 02508201610067 [08:50:48]line Контрольно-Кассовый Чек [08:50:48]line ПРОДАЖА [08:50:48]line ТРК (МРК, ГНК) : 5 [08:50:48]line Товар: 2710194210 [08:50:48]line ДТ-К-5 [08:50:48]line 6.890 * 72.60 [08:50:48]line = 500.21 [08:50:48]line НДС 12% НСП 1% [08:50:48]line > о реализуемом товаре [08:50:48]line ОКРУГЛЕНИЕ: -0.21 [08:50:48]line ИТОГО: 500.00 [08:50:48]line Внесено: 500.00 [08:50:48]line СДАЧА: 0.00 [08:50:48]line НСП 1% : 4.43 [08:50:48]line НДС 12% : 53.12 [08:50:48]line Наличными: 500.00 [08:50:48]line Безнал.: 0.00 [08:50:48]line Место: АЗС № 92 "Партнер Нефть" [08:50:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:50:48]line СНО: Общий режим [08:50:48]line Чек 43 17.02.2025 08:50 [08:50:48]line Смена: 644 ФФД: 1.0 [08:50:48]line ЗНМ: 0300000118 [08:50:48]line РНМ: 0000000000091857 [08:50:48]line Версия ККМ: 001 [08:50:48]line ФМ: 0000000000871826 [08:50:48]line ФД: 186456 [08:50:48]line ФПД: 40246263134411 [08:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085050&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186456&fm=40246263134411&tin=02508201610067®Number=0000000000091857&sum=50000 [08:50:48]OFD Sender: Processing packet 186456 [packets to send 49, broken 48] [08:50:48]ProducePacketName [08:50:48]name=ofd_packets/00186456 [08:50:48]OFD Sender: To server: pG, [08:50:48]CommunicateWithHost lk.salyk.kg:30040 [08:50:48]ConnectInit lk.salyk.kg [08:50:48]written 0, free lines is 4095 [08:50:48]Connected sock=9 [08:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E4 73 04 01 8B F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 6A F8 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D8 02 00 35 04 06 00 24 9A 90 37 B8 CB 08 B5 57 16 0C 15 99 F4 [08:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 A5 47 00 32 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 58 D8 02 00 F4 03 04 00 C5 9E B2 67 B6 04 01 00 00 C8 BA BD 1D 32 85 7C 77 [08:50:49]CommunicateWithHost err = 0 [08:50:49]CheckOFDResponse [08:50:49]1017 (14) - 77093643461234 [08:50:49]1041 (16) - 0000000000871826 [08:50:49]1040 (4) - 186456 [08:50:49]1012 (4) - 17.02.2025 02:28 [08:50:49]1206 (1) - 0 [08:50:49]OFD Sender: Remove packet 186456 [08:50:49]ProducePacketName [08:50:49]name=ofd_packets/00186456 [08:50:49]NVStorageDeleteData [08:50:49]Write to MH i2c: 01 00 00 13 1B 2E [08:50:49]Write i2c OK [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: 01 [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: 01 07 00 [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: 01 07 00 13 1B 00 00 00 00 00 E3 0C 24 [08:50:49]RasterBufferAndPrint [08:50:49]line [08:50:49]line [08:50:49]line [08:50:49]line [08:50:49]line [08:50:49]written 0, free lines is 3305 [08:50:49]MH_Cut [08:50:49]Write to MH i2c: D1 01 00 1A 1B 01 07 [08:50:49]Write i2c OK [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: D1 [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: D1 01 00 [08:50:49]MH_I2C_Read... [08:50:49]Read from MH i2c: D1 01 00 1A 1B 00 06 [08:50:49]Write to MH i2c: 01 00 00 1B 1B 36 [08:50:49]Write i2c OK [08:50:49]MH_I2C_Read... [08:50:49]OFD Sender: No OFD packet to send [08:50:49]*** Cut start [08:50:49]*** Partial cut [08:50:49]*** CUTSNS_PIN = 1 [08:50:49]*** CUTSNS_PIN = 0 [08:50:50]*** Brake cut motor [08:50:50]Read from MH i2c: 01 [08:50:50]MH_I2C_Read... [08:50:50]*** Stop cut motor [08:50:50]*** Cut end [08:50:50]Read from MH i2c: 01 07 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: 01 07 00 1B 1B 00 00 00 00 00 FF 0F 4B [08:50:50]process_action close_receipt done [08:50:50]requested_data is exist [08:50:50]produce_requested_data [08:50:50]requested_item fm.sn is exist - process it [08:50:50]wFMCommunicate request_size=4 [08:50:50]MH_SAM_APDU [08:50:50]CAPDU: 80 11 00 00 [08:50:50]Write to MH i2c: E2 08 00 1C 1B 80 11 00 00 00 00 00 00 B1 [08:50:50]Write i2c OK [08:50:50]MH_I2C_Read... [08:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:50]Read from MH i2c: E2 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 17 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 17 00 1C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 04 [08:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:50:50]wFMCommunicate OK [08:50:50]requested_item fd.num is exist - process it [08:50:50]SAM_PROTO_GetFieldsCounters [08:50:50]wFMCommunicate request_size=4 [08:50:50]MH_SAM_APDU [08:50:50]CAPDU: 80 13 00 00 [08:50:50]Write to MH i2c: E2 08 00 1D 1B 80 13 00 00 00 00 00 00 B4 [08:50:50]Write i2c OK [08:50:50]MH_I2C_Read... [08:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:50]Read from MH i2c: E2 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 62 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 62 00 1D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [08:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 58 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:50]wFMCommunicate OK [08:50:50]SAM_PROTO_GetFieldsCounters done [08:50:50]requested_item shift.num is exist - process it [08:50:50]requested_item shift.opened is exist - process it [08:50:50]req_shift_opened [08:50:50]FM_GetShiftState [08:50:50]SAM_PROTO_GetShiftState [08:50:50]wFMCommunicate request_size=4 [08:50:50]MH_SAM_APDU [08:50:50]CAPDU: 80 13 01 00 [08:50:50]Write to MH i2c: E2 08 00 1E 1B 80 13 01 00 00 00 00 00 B6 [08:50:50]Write i2c OK [08:50:50]MH_I2C_Read... [08:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:50]Read from MH i2c: E2 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 0E 00 [08:50:50]MH_I2C_Read... [08:50:50]Read from MH i2c: E2 0E 00 1E 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DA [08:50:50]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:50:50]wFMCommunicate OK [08:50:50]SAM_PROTO_GetShiftState done [08:50:50]FM_GetShiftState done [08:50:50]req_shift_opened done [08:50:50]requested_item shift.open_date is exist - process it [08:50:50]req_shift_open_date [08:50:50]req_shift_open_date done [08:50:50]produce_requested_data done [08:50:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186456,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:50:50]process_action_free close_receipt [08:50:50]json_value_free [08:50:50]json_value_free done [08:50:50]process_json_proto returns [08:50:50]Send response to host [08:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186456,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:50:50]free response buf [08:50:50]execute_script done [08:50:50]execute_script returns [08:50:50]free content buf [08:50:50]Sock 10.Close socket [08:50:50]Sock 10.Thread stoped [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:36]accept exits with 8 [08:53:36]New connection [08:53:36]New thread 3067501924 created [08:53:36]Thread 3067358564 joined [08:53:36]Waiting for new connection... [08:53:36] Sock 8.Parse request [08:53:36]Sock 8.Check first char [08:53:36]Sock 8.First char is OK [08:53:36]request: POST /json_proto HTTP/1.0 [08:53:36]Method: POST [08:53:36]URL: /json_proto [08:53:36]Method is POST - this is cgi request [08:53:36]url: /json_proto [08:53:36]query_string will be loaded in cgi processing [08:53:36]execute_cgi json_proto POST (null) [08:53:36]execute_cgi path=json_proto method=POST [08:53:36]POST find Content-Length [08:53:36]Host: 172.17.46.131:8080 [08:53:36]Content-Length: 678 [08:53:36]Content-Type: application/json [08:53:36] [08:53:36]POST finish read [08:53:36]Found Content-Length = 678 [08:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:36]execute_script... [08:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:36]POST & json_proto [08:53:36]process_json_proto [08:53:36]json parsed OK: [08:53:36]protocol is kg_v1.0 [08:53:36]action value=close_receipt [08:53:36]process_action close_receipt [08:53:36]cmd_close_receipt [08:53:36]MH_GetDate [08:53:36]Write to MH i2c: F0 00 00 1F 1B 29 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 09 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: F0 09 00 1F 1B 00 13 F9 B2 67 7E 41 4F 65 CA [08:53:36]GetLastDocTimeStamp 1739782250 [08:53:36]current date 1739782419 [08:53:36]FM_GetShiftState [08:53:36]SAM_PROTO_GetShiftState [08:53:36]wFMCommunicate request_size=4 [08:53:36]MH_SAM_APDU [08:53:36]CAPDU: 80 13 01 00 [08:53:36]Write to MH i2c: E2 08 00 20 1B 80 13 01 00 00 00 00 00 B8 [08:53:36]Write i2c OK [08:53:36]MH_I2C_Read... [08:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:36]Read from MH i2c: E2 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 [08:53:36]MH_I2C_Read... [08:53:36]Read from MH i2c: E2 0E 00 20 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DC [08:53:36]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:53:36]wFMCommunicate OK [08:53:36]SAM_PROTO_GetShiftState done [08:53:36]FM_GetShiftState done [08:53:36]opened in 1739752571 [08:53:36]opened+sec_in_day 1739838971 [08:53:36]quantity*price = 100042 [08:53:36]sum+1 = 100044 [08:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 44 17.02.2025 08:53 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186457 ФПД: 281280391758932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186457&fm=281280391758932&tin=02508201610067®Number=0000000000091857&sum=100000 [08:53:37]StoreToDocumentArchive [08:53:37]shift 644 fd 186457 [08:53:37]save to /storage/0644/doc_00186457 [08:53:37]save last doc name /storage/0644/doc_00186457 to /storage/kkm_last_doc_name [08:53:37]save OK [08:53:37]Clear old archive folders... [08:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:53:37]tlvbuf is B6FDE7B0 [08:53:37]SAM_PROTO_ClearQueue [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 09 00 00 [08:53:37]Write to MH i2c: E2 08 00 2D 1B 80 09 00 00 00 00 00 00 BA [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 2D 1B 00 90 00 BC [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]SAM_PROTO_ClearQueue done [08:53:37]KKMCreateOFDPacket [08:53:37]OFDProtocolAddRootSTLVToBuf [08:53:37]FM_MakeSignedData [08:53:37]FM_MakeSignedData [08:53:37]SAM_PROTO_SignData [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 01 02 [08:53:37]Write to MH i2c: E2 08 00 2E 1B 80 0D 01 02 00 00 00 00 C2 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 2E 1B 00 90 00 BD [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=255 [08:53:37]MH_SAM_APDU [08:53:37]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 13 F9 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D8 02 00 35 04 06 00 FF D2 B1 D5 [08:53:37]Write to MH i2c: E2 02 01 2F 1B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 13 F9 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D8 02 00 35 04 06 00 FF D2 B1 D5 00 00 C7 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 2F 1B 00 90 00 BE [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=7 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 02 02 02 44 54 [08:53:37]Write to MH i2c: E2 0A 00 30 1B 80 0D 02 02 02 00 44 54 00 00 61 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 03 00 30 1B 00 90 00 BF [08:53:37]RAPDU: 90 00 [08:53:37]wFMCommunicate OK [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 0D 03 02 [08:53:37]Write to MH i2c: E2 08 00 31 1B 80 0D 03 02 00 00 00 00 C7 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0B 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 0B 00 31 1B 00 7D B3 A0 79 01 5E 69 D4 90 00 AD [08:53:37]RAPDU: 7D B3 A0 79 01 5E 69 D4 90 00 [08:53:37]wFMCommunicate OK [08:53:37]SAM_PROTO_SignData done [08:53:37]FM_MakeSignedData done [08:53:37]CreateOFDProtocolMessage [08:53:37]wFMCommunicate request_size=4 [08:53:37]MH_SAM_APDU [08:53:37]CAPDU: 80 11 00 00 [08:53:37]Write to MH i2c: E2 08 00 32 1B 80 11 00 00 00 00 00 00 C7 [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:37]Read from MH i2c: E2 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 17 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: E2 17 00 32 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1A [08:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:37]wFMCommunicate OK [08:53:37]CreateOFDProtocolMessage done [08:53:37]OFDSenderStorePacket 186457 [08:53:37]StoreOFDPacket docnum=186457 [08:53:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 6C 04 01 95 66 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 13 F9 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D8 02 00 35 04 06 00 FF D2 B1 D5 44 54 7D B3 A0 79 01 5E 69 D4 [08:53:37]CheckFolder [08:53:37]dirname=/storage/ofd_packets [08:53:37]CheckFolder done [08:53:37]ProducePacketName [08:53:37]name=ofd_packets/00186457 [08:53:37]NVStorageSaveData ofd_packets/00186457 [08:53:37]File name is /storage/ofd_packets/00186457 [08:53:37]Write 298 bytes [08:53:37]NVStorageSaveData done [08:53:37]OFDSenderStorePacket done [08:53:37]KKMCreateOFDPacket done [08:53:37]NVStorageSaveData kkm_last_timestamp [08:53:37]File name is /storage/kkm_last_timestamp [08:53:37]Write 4 bytes [08:53:37]NVStorageSaveData done [08:53:37]ExternCall_PrintAddStr [08:53:37]wPrintStart [08:53:37]Write to MH i2c: 01 00 00 33 1B 4E [08:53:37]Write i2c OK [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 07 00 [08:53:37]MH_I2C_Read... [08:53:37]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [08:53:37]RasterBufferAndPrint [08:53:37]line Счет N : (1)411589 [08:53:37]line ИНН: 02508201610067 [08:53:37]line Контрольно-Кассовый Чек [08:53:37]line ПРОДАЖА [08:53:37]line ТРК (МРК, ГНК) : 5 [08:53:37]line Товар: 2710194210 [08:53:37]line ДТ-К-5 [08:53:37]line 13.780 * 72.60 [08:53:37]line = 1000.43 [08:53:37]line НДС 12% НСП 1% [08:53:37]line > о реализуемом товаре [08:53:37]line ОКРУГЛЕНИЕ: -0.43 [08:53:37]line ИТОГО: 1000.00 [08:53:37]line Внесено: 1000.00 [08:53:37]line СДАЧА: 0.00 [08:53:37]line НСП 1% : 8.85 [08:53:37]line НДС 12% : 106.24 [08:53:37]line Наличными: 1000.00 [08:53:37]line Безнал.: 0.00 [08:53:37]line Место: АЗС № 92 "Партнер Нефть" [08:53:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [08:53:37]line СНО: Общий режим [08:53:37]line Чек 44 17.02.2025 08:53 [08:53:37]line Смена: 644 ФФД: 1.0 [08:53:37]line ЗНМ: 0300000118 [08:53:37]line РНМ: 0000000000091857 [08:53:37]line Версия ККМ: 001 [08:53:37]line ФМ: 0000000000871826 [08:53:37]line ФД: 186457 [08:53:37]line ФПД: 281280391758932 [08:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T085339&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186457&fm=281280391758932&tin=02508201610067®Number=0000000000091857&sum=100000 [08:53:38]OFD Sender: Processing packet 186457 [packets to send 49, broken 48] [08:53:38]ProducePacketName [08:53:38]name=ofd_packets/00186457 [08:53:38]OFD Sender: To server: pG, [08:53:38]CommunicateWithHost lk.salyk.kg:30040 [08:53:38]ConnectInit lk.salyk.kg [08:53:38]written 0, free lines is 4095 [08:53:38]Connected sock=10 [08:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F1 6C 04 01 95 66 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 13 F9 B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D8 02 00 35 04 06 00 FF D2 B1 D5 44 54 7D B3 A0 79 01 5E 69 D4 [08:53:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AF BC 47 00 32 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 59 D8 02 00 F4 03 04 00 6E 9F B2 67 B6 04 01 00 00 1F FC C4 F3 F0 D3 57 0C [08:53:38]CommunicateWithHost err = 0 [08:53:38]CheckOFDResponse [08:53:38]1017 (14) - 77093643461234 [08:53:38]1041 (16) - 0000000000871826 [08:53:38]1040 (4) - 186457 [08:53:38]1012 (4) - 17.02.2025 02:31 [08:53:38]1206 (1) - 0 [08:53:38]OFD Sender: Remove packet 186457 [08:53:38]ProducePacketName [08:53:38]name=ofd_packets/00186457 [08:53:38]NVStorageDeleteData [08:53:38]Write to MH i2c: 01 00 00 5E 1B 79 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 07 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: 01 07 00 5E 1B 00 00 00 00 00 0B 0D 98 [08:53:38]RasterBufferAndPrint [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]line [08:53:38]written 0, free lines is 3345 [08:53:38]MH_Cut [08:53:38]Write to MH i2c: D1 01 00 65 1B 01 52 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 01 00 [08:53:38]MH_I2C_Read... [08:53:38]Read from MH i2c: D1 01 00 65 1B 00 51 [08:53:38]Write to MH i2c: 01 00 00 66 1B 81 [08:53:38]Write i2c OK [08:53:38]MH_I2C_Read... [08:53:39]OFD Sender: No OFD packet to send [08:53:39]*** Cut start [08:53:39]*** Partial cut [08:53:39]*** CUTSNS_PIN = 1 [08:53:39]*** CUTSNS_PIN = 0 [08:53:39]*** Brake cut motor [08:53:40]Read from MH i2c: 01 [08:53:40]MH_I2C_Read... [08:53:40]*** Stop cut motor [08:53:40]*** Cut end [08:53:40]Read from MH i2c: 01 07 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: 01 07 00 66 1B 00 00 00 00 00 FF 0F 96 [08:53:40]process_action close_receipt done [08:53:40]requested_data is exist [08:53:40]produce_requested_data [08:53:40]requested_item fm.sn is exist - process it [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 11 00 00 [08:53:40]Write to MH i2c: E2 08 00 67 1B 80 11 00 00 00 00 00 00 FC [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 17 00 67 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4F [08:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [08:53:40]wFMCommunicate OK [08:53:40]requested_item fd.num is exist - process it [08:53:40]SAM_PROTO_GetFieldsCounters [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 00 00 [08:53:40]Write to MH i2c: E2 08 00 68 1B 80 13 00 00 00 00 00 00 FF [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 62 00 68 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [08:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 59 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetFieldsCounters done [08:53:40]requested_item shift.num is exist - process it [08:53:40]requested_item shift.opened is exist - process it [08:53:40]req_shift_opened [08:53:40]FM_GetShiftState [08:53:40]SAM_PROTO_GetShiftState [08:53:40]wFMCommunicate request_size=4 [08:53:40]MH_SAM_APDU [08:53:40]CAPDU: 80 13 01 00 [08:53:40]Write to MH i2c: E2 08 00 69 1B 80 13 01 00 00 00 00 00 01 [08:53:40]Write i2c OK [08:53:40]MH_I2C_Read... [08:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:40]Read from MH i2c: E2 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 [08:53:40]MH_I2C_Read... [08:53:40]Read from MH i2c: E2 0E 00 69 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 25 [08:53:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [08:53:40]wFMCommunicate OK [08:53:40]SAM_PROTO_GetShiftState done [08:53:40]FM_GetShiftState done [08:53:40]req_shift_opened done [08:53:40]requested_item shift.open_date is exist - process it [08:53:40]req_shift_open_date [08:53:40]req_shift_open_date done [08:53:40]produce_requested_data done [08:53:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186457,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [08:53:40]process_action_free close_receipt [08:53:40]json_value_free [08:53:40]json_value_free done [08:53:40]process_json_proto returns [08:53:40]Send response to host [08:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186457,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [08:53:40]free response buf [08:53:40]execute_script done [08:53:40]execute_script returns [08:53:40]free content buf [08:53:40]Sock 8.Close socket [08:53:40]Sock 8.Thread stoped [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]accept exits with 9 [09:00:09]New connection [09:00:09]New thread 3067358564 created [09:00:09]Thread 3067501924 joined [09:00:09]Waiting for new connection... [09:00:09] Sock 9.Parse request [09:00:09]Sock 9.Check first char [09:00:09]Sock 9.First char is OK [09:00:09]request: POST /json_proto HTTP/1.0 [09:00:09]Method: POST [09:00:09]URL: /json_proto [09:00:09]Method is POST - this is cgi request [09:00:09]url: /json_proto [09:00:09]query_string will be loaded in cgi processing [09:00:09]execute_cgi json_proto POST (null) [09:00:09]execute_cgi path=json_proto method=POST [09:00:09]POST find Content-Length [09:00:09]Host: 172.17.46.131:8080 [09:00:09]Content-Length: 800 [09:00:09]Content-Type: application/json [09:00:09] [09:00:09]POST finish read [09:00:09]Found Content-Length = 800 [09:00:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:09]execute_script... [09:00:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.27 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:09]POST & json_proto [09:00:09]process_json_proto [09:00:09]json parsed OK: [09:00:09]protocol is kg_v1.0 [09:00:09]action value=close_receipt [09:00:09]process_action close_receipt [09:00:09]cmd_close_receipt [09:00:09]MH_GetDate [09:00:09]Write to MH i2c: F0 00 00 6A 1B 74 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: F0 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: F0 09 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: F0 09 00 6A 1B 00 9D FA B2 67 7E 41 4F 65 A0 [09:00:09]GetLastDocTimeStamp 1739782419 [09:00:09]current date 1739782813 [09:00:09]FM_GetShiftState [09:00:09]SAM_PROTO_GetShiftState [09:00:09]wFMCommunicate request_size=4 [09:00:09]MH_SAM_APDU [09:00:09]CAPDU: 80 13 01 00 [09:00:09]Write to MH i2c: E2 08 00 6B 1B 80 13 01 00 00 00 00 00 03 [09:00:09]Write i2c OK [09:00:09]MH_I2C_Read... [09:00:09]OFD Sender: No OFD packet to send [09:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:09]Read from MH i2c: E2 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 0E 00 [09:00:09]MH_I2C_Read... [09:00:09]Read from MH i2c: E2 0E 00 6B 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 27 [09:00:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:00:09]wFMCommunicate OK [09:00:09]SAM_PROTO_GetShiftState done [09:00:09]FM_GetShiftState done [09:00:09]opened in 1739752571 [09:00:09]opened+sec_in_day 1739838971 [09:00:09]quantity*price = 60027 [09:00:09]sum+1 = 60028 [09:00:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.27 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.27 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 45 17.02.2025 09:00 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186458 ФПД: 64575799014455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090013&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186458&fm=64575799014455&tin=02508201610067®Number=0000000000091857&sum=60027 [09:00:10]StoreToDocumentArchive [09:00:10]shift 644 fd 186458 [09:00:10]save to /storage/0644/doc_00186458 [09:00:10]save last doc name /storage/0644/doc_00186458 to /storage/kkm_last_doc_name [09:00:10]save OK [09:00:10]Clear old archive folders... [09:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:00:10]tlvbuf is 02012510 [09:00:10]SAM_PROTO_ClearQueue [09:00:10]wFMCommunicate request_size=4 [09:00:10]MH_SAM_APDU [09:00:10]CAPDU: 80 09 00 00 [09:00:10]Write to MH i2c: E2 08 00 78 1B 80 09 00 00 00 00 00 00 05 [09:00:10]Write i2c OK [09:00:10]MH_I2C_Read... [09:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:10]Read from MH i2c: E2 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 03 00 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 03 00 78 1B 00 90 00 07 [09:00:10]RAPDU: 90 00 [09:00:10]wFMCommunicate OK [09:00:10]SAM_PROTO_ClearQueue done [09:00:10]KKMCreateOFDPacket [09:00:10]OFDProtocolAddRootSTLVToBuf [09:00:10]FM_MakeSignedData [09:00:10]FM_MakeSignedData [09:00:10]SAM_PROTO_SignData [09:00:10]wFMCommunicate request_size=4 [09:00:10]MH_SAM_APDU [09:00:10]CAPDU: 80 0D 01 02 [09:00:10]Write to MH i2c: E2 08 00 79 1B 80 0D 01 02 00 00 00 00 0D [09:00:10]Write i2c OK [09:00:10]MH_I2C_Read... [09:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:10]Read from MH i2c: E2 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 03 00 [09:00:10]MH_I2C_Read... [09:00:10]Read from MH i2c: E2 03 00 79 1B 00 90 00 08 [09:00:10]RAPDU: 90 00 [09:00:10]wFMCommunicate OK [09:00:10]wFMCommunicate request_size=255 [09:00:10]MH_SAM_APDU [09:00:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9D FA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D8 02 00 35 04 06 00 3A [09:00:10]Write to MH i2c: E2 02 01 7A 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9D FA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D8 02 00 35 04 06 00 3A 00 00 03 [09:00:10]Write i2c OK [09:00:10]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 03 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 03 00 7A 1B 00 90 00 09 [09:00:11]RAPDU: 90 00 [09:00:11]wFMCommunicate OK [09:00:11]wFMCommunicate request_size=10 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 0D 02 02 05 BB 39 8F B4 37 [09:00:11]Write to MH i2c: E2 0D 00 7B 1B 80 0D 02 02 05 00 BB 39 8F B4 37 00 00 88 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 03 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [09:00:11]RAPDU: 90 00 [09:00:11]wFMCommunicate OK [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 0D 03 02 [09:00:11]Write to MH i2c: E2 08 00 7C 1B 80 0D 03 02 00 00 00 00 12 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0B 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 0B 00 7C 1B 00 0E 33 8A 82 12 04 72 1B 90 00 03 [09:00:11]RAPDU: 0E 33 8A 82 12 04 72 1B 90 00 [09:00:11]wFMCommunicate OK [09:00:11]SAM_PROTO_SignData done [09:00:11]FM_MakeSignedData done [09:00:11]CreateOFDProtocolMessage [09:00:11]wFMCommunicate request_size=4 [09:00:11]MH_SAM_APDU [09:00:11]CAPDU: 80 11 00 00 [09:00:11]Write to MH i2c: E2 08 00 7D 1B 80 11 00 00 00 00 00 00 12 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:11]Read from MH i2c: E2 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 17 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: E2 17 00 7D 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 65 [09:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:11]wFMCommunicate OK [09:00:11]CreateOFDProtocolMessage done [09:00:11]OFDSenderStorePacket 186458 [09:00:11]StoreOFDPacket docnum=186458 [09:00:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 B1 07 01 8F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9D FA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D8 02 00 35 04 06 00 3A BB 39 8F B4 37 0E 33 8A 82 12 04 72 1B [09:00:11]CheckFolder [09:00:11]dirname=/storage/ofd_packets [09:00:11]CheckFolder done [09:00:11]ProducePacketName [09:00:11]name=ofd_packets/00186458 [09:00:11]NVStorageSaveData ofd_packets/00186458 [09:00:11]File name is /storage/ofd_packets/00186458 [09:00:11]Write 301 bytes [09:00:11]NVStorageSaveData done [09:00:11]OFDSenderStorePacket done [09:00:11]KKMCreateOFDPacket done [09:00:11]NVStorageSaveData kkm_last_timestamp [09:00:11]File name is /storage/kkm_last_timestamp [09:00:11]Write 4 bytes [09:00:11]NVStorageSaveData done [09:00:11]ExternCall_PrintAddStr [09:00:11]wPrintStart [09:00:11]Write to MH i2c: 01 00 00 7E 1B 99 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 7E 1B 00 00 00 00 00 FF 0F AE [09:00:11]RasterBufferAndPrint [09:00:11]line Счет N : (1)411590 [09:00:11]line ИНН: 02508201610067 [09:00:11]line Контрольно-Кассовый Чек [09:00:11]line ПРОДАЖА [09:00:11]line ТРК (МРК, ГНК) : 22 [09:00:11]line Товар: 2710124130 [09:00:11]line Аи-92-К-2 [09:00:11]line 9.350 * 64.20 [09:00:11]line = 600.27 [09:00:11]line НДС 12% НСП 1% [09:00:11]line > о реализуемом товаре [09:00:11]line ИТОГО: 600.27 [09:00:11]line НСП 1% : 5.31 [09:00:11]line НДС 12% : 63.74 [09:00:11]line Наличными: 0.00 [09:00:11]line Безнал.: 600.27 [09:00:11]line Место: АЗС № 92 "Партнер Нефть" [09:00:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:00:11]line СНО: Общий режим [09:00:11]line Чек 45 17.02.2025 09:00 [09:00:11]line Смена: 644 ФФД: 1.0 [09:00:11]line ЗНМ: 0300000118 [09:00:11]line РНМ: 0000000000091857 [09:00:11]line Версия ККМ: 001 [09:00:11]line Платежная система: O! деньги [09:00:11]line ФМ: 0000000000871826 [09:00:11]line ФД: 186458 [09:00:11]line ФПД: 64575799014455 [09:00:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090013&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186458&fm=64575799014455&tin=02508201610067®Number=0000000000091857&sum=60027 [09:00:11]written 0, free lines is 4095 [09:00:11]OFD Sender: Processing packet 186458 [packets to send 49, broken 48] [09:00:11]ProducePacketName [09:00:11]name=ofd_packets/00186458 [09:00:11]OFD Sender: To server: pG, [09:00:11]CommunicateWithHost lk.salyk.kg:30040 [09:00:11]ConnectInit lk.salyk.kg [09:00:11]Connected sock=10 [09:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E3 B1 07 01 8F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 9D FA B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D8 02 00 35 04 06 00 3A BB 39 8F B4 37 0E 33 8A 82 12 04 72 1B [09:00:11]Write to MH i2c: 01 00 00 A8 1B C3 [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0C D5 [09:00:11]RasterBufferAndPrint [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]line [09:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 41 31 47 00 DE 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5A D8 02 00 F4 03 04 00 F7 A0 B2 67 B6 04 01 00 00 DA 3A A6 A6 E9 44 71 91 [09:00:11]CommunicateWithHost err = 0 [09:00:11]CheckOFDResponse [09:00:11]1017 (14) - 77093643461234 [09:00:11]1041 (16) - 0000000000871826 [09:00:11]1040 (4) - 186458 [09:00:11]1012 (4) - 17.02.2025 02:37 [09:00:11]1206 (1) - 0 [09:00:11]OFD Sender: Remove packet 186458 [09:00:11]ProducePacketName [09:00:11]name=ofd_packets/00186458 [09:00:11]NVStorageDeleteData [09:00:11]written 0, free lines is 3352 [09:00:11]MH_Cut [09:00:11]Write to MH i2c: D1 01 00 AF 1B 01 9C [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 01 00 [09:00:11]MH_I2C_Read... [09:00:11]Read from MH i2c: D1 01 00 AF 1B 00 9B [09:00:11]Write to MH i2c: 01 00 00 B0 1B CB [09:00:11]Write i2c OK [09:00:11]MH_I2C_Read... [09:00:12]OFD Sender: No OFD packet to send [09:00:12]*** Cut start [09:00:12]*** Partial cut [09:00:12]*** CUTSNS_PIN = 1 [09:00:12]*** CUTSNS_PIN = 0 [09:00:12]*** Brake cut motor [09:00:13]Read from MH i2c: 01 [09:00:13]MH_I2C_Read... [09:00:13]*** Stop cut motor [09:00:13]*** Cut end [09:00:13]Read from MH i2c: 01 07 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: 01 07 00 B0 1B 00 00 00 00 00 FF 0F E0 [09:00:13]process_action close_receipt done [09:00:13]requested_data is exist [09:00:13]produce_requested_data [09:00:13]requested_item fm.sn is exist - process it [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 11 00 00 [09:00:13]Write to MH i2c: E2 08 00 B1 1B 80 11 00 00 00 00 00 00 46 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 17 00 B1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 99 [09:00:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:00:13]wFMCommunicate OK [09:00:13]requested_item fd.num is exist - process it [09:00:13]SAM_PROTO_GetFieldsCounters [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 13 00 00 [09:00:13]Write to MH i2c: E2 08 00 B2 1B 80 13 00 00 00 00 00 00 49 [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 62 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 62 00 B2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [09:00:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:13]wFMCommunicate OK [09:00:13]SAM_PROTO_GetFieldsCounters done [09:00:13]requested_item shift.num is exist - process it [09:00:13]requested_item shift.opened is exist - process it [09:00:13]req_shift_opened [09:00:13]FM_GetShiftState [09:00:13]SAM_PROTO_GetShiftState [09:00:13]wFMCommunicate request_size=4 [09:00:13]MH_SAM_APDU [09:00:13]CAPDU: 80 13 01 00 [09:00:13]Write to MH i2c: E2 08 00 B3 1B 80 13 01 00 00 00 00 00 4B [09:00:13]Write i2c OK [09:00:13]MH_I2C_Read... [09:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:13]Read from MH i2c: E2 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 0E 00 [09:00:13]MH_I2C_Read... [09:00:13]Read from MH i2c: E2 0E 00 B3 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6F [09:00:13]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:00:13]wFMCommunicate OK [09:00:13]SAM_PROTO_GetShiftState done [09:00:13]FM_GetShiftState done [09:00:13]req_shift_opened done [09:00:13]requested_item shift.open_date is exist - process it [09:00:13]req_shift_open_date [09:00:13]req_shift_open_date done [09:00:13]produce_requested_data done [09:00:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186458,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:00:13]process_action_free close_receipt [09:00:13]json_value_free [09:00:13]json_value_free done [09:00:13]process_json_proto returns [09:00:13]Send response to host [09:00:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186458,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:00:13]free response buf [09:00:13]execute_script done [09:00:13]execute_script returns [09:00:13]free content buf [09:00:13]Sock 9.Close socket [09:00:13]Sock 9.Thread stoped [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:45]accept exits with 8 [09:08:45]New connection [09:08:45]New thread 3067501924 created [09:08:45]Thread 3067358564 joined [09:08:45]Waiting for new connection... [09:08:45] Sock 8.Parse request [09:08:45]Sock 8.Check first char [09:08:45]Sock 8.First char is OK [09:08:45]request: POST /json_proto HTTP/1.0 [09:08:45]Method: POST [09:08:45]URL: /json_proto [09:08:45]Method is POST - this is cgi request [09:08:45]url: /json_proto [09:08:45]query_string will be loaded in cgi processing [09:08:45]execute_cgi json_proto POST (null) [09:08:45]execute_cgi path=json_proto method=POST [09:08:45]POST find Content-Length [09:08:45]Host: 172.17.46.131:8080 [09:08:45]Content-Length: 800 [09:08:45]Content-Type: application/json [09:08:45] [09:08:45]POST finish read [09:08:45]Found Content-Length = 800 [09:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:45]execute_script... [09:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:45]POST & json_proto [09:08:45]process_json_proto [09:08:45]json parsed OK: [09:08:45]protocol is kg_v1.0 [09:08:45]action value=close_receipt [09:08:45]process_action close_receipt [09:08:45]cmd_close_receipt [09:08:45]MH_GetDate [09:08:45]Write to MH i2c: F0 00 00 B4 1B BE [09:08:45]Write i2c OK [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 09 00 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: F0 09 00 B4 1B 00 A1 FC B2 67 7E 41 4F 65 F0 [09:08:45]GetLastDocTimeStamp 1739782813 [09:08:45]current date 1739783329 [09:08:45]FM_GetShiftState [09:08:45]SAM_PROTO_GetShiftState [09:08:45]wFMCommunicate request_size=4 [09:08:45]MH_SAM_APDU [09:08:45]CAPDU: 80 13 01 00 [09:08:45]Write to MH i2c: E2 08 00 B5 1B 80 13 01 00 00 00 00 00 4D [09:08:45]Write i2c OK [09:08:45]MH_I2C_Read... [09:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:45]Read from MH i2c: E2 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: E2 0E 00 [09:08:45]MH_I2C_Read... [09:08:45]Read from MH i2c: E2 0E 00 B5 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 71 [09:08:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:08:45]wFMCommunicate OK [09:08:45]SAM_PROTO_GetShiftState done [09:08:45]FM_GetShiftState done [09:08:45]opened in 1739752571 [09:08:45]opened+sec_in_day 1739838971 [09:08:45]quantity*price = 50011 [09:08:45]sum+1 = 50013 [09:08:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 46 17.02.2025 09:08 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186459 ФПД: 272907436546269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186459&fm=272907436546269&tin=02508201610067®Number=0000000000091857&sum=50012 [09:08:46]StoreToDocumentArchive [09:08:46]shift 644 fd 186459 [09:08:46]save to /storage/0644/doc_00186459 [09:08:46]save last doc name /storage/0644/doc_00186459 to /storage/kkm_last_doc_name [09:08:46]save OK [09:08:46]Clear old archive folders... [09:08:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:46]tlvbuf is 02027290 [09:08:46]SAM_PROTO_ClearQueue [09:08:46]wFMCommunicate request_size=4 [09:08:46]MH_SAM_APDU [09:08:46]CAPDU: 80 09 00 00 [09:08:46]Write to MH i2c: E2 08 00 C2 1B 80 09 00 00 00 00 00 00 4F [09:08:46]Write i2c OK [09:08:46]MH_I2C_Read... [09:08:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:46]Read from MH i2c: E2 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 03 00 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 03 00 C2 1B 00 90 00 51 [09:08:46]RAPDU: 90 00 [09:08:46]wFMCommunicate OK [09:08:46]SAM_PROTO_ClearQueue done [09:08:46]KKMCreateOFDPacket [09:08:46]OFDProtocolAddRootSTLVToBuf [09:08:46]FM_MakeSignedData [09:08:46]FM_MakeSignedData [09:08:46]SAM_PROTO_SignData [09:08:46]wFMCommunicate request_size=4 [09:08:46]MH_SAM_APDU [09:08:46]CAPDU: 80 0D 01 02 [09:08:46]Write to MH i2c: E2 08 00 C3 1B 80 0D 01 02 00 00 00 00 57 [09:08:46]Write i2c OK [09:08:46]MH_I2C_Read... [09:08:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:46]Read from MH i2c: E2 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 03 00 [09:08:46]MH_I2C_Read... [09:08:46]Read from MH i2c: E2 03 00 C3 1B 00 90 00 52 [09:08:46]RAPDU: 90 00 [09:08:46]wFMCommunicate OK [09:08:46]wFMCommunicate request_size=255 [09:08:46]MH_SAM_APDU [09:08:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D8 02 00 35 04 06 00 F8 [09:08:46]Write to MH i2c: E2 02 01 C4 1B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D8 02 00 35 04 06 00 F8 00 00 9F [09:08:46]Write i2c OK [09:08:46]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 C4 1B 00 90 00 53 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=10 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 02 02 05 35 36 CF D8 DD [09:08:47]Write to MH i2c: E2 0D 00 C5 1B 80 0D 02 02 05 00 35 36 CF D8 DD 00 00 53 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [09:08:47]RAPDU: 90 00 [09:08:47]wFMCommunicate OK [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 0D 03 02 [09:08:47]Write to MH i2c: E2 08 00 C6 1B 80 0D 03 02 00 00 00 00 5C [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 0B 00 C6 1B 00 78 77 05 99 6F 07 0E 8E 90 00 FC [09:08:47]RAPDU: 78 77 05 99 6F 07 0E 8E 90 00 [09:08:47]wFMCommunicate OK [09:08:47]SAM_PROTO_SignData done [09:08:47]FM_MakeSignedData done [09:08:47]CreateOFDProtocolMessage [09:08:47]wFMCommunicate request_size=4 [09:08:47]MH_SAM_APDU [09:08:47]CAPDU: 80 11 00 00 [09:08:47]Write to MH i2c: E2 08 00 C7 1B 80 11 00 00 00 00 00 00 5C [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:47]Read from MH i2c: E2 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: E2 17 00 C7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [09:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:08:47]wFMCommunicate OK [09:08:47]CreateOFDProtocolMessage done [09:08:47]OFDSenderStorePacket 186459 [09:08:47]StoreOFDPacket docnum=186459 [09:08:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 87 07 01 4A 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D8 02 00 35 04 06 00 F8 35 36 CF D8 DD 78 77 05 99 6F 07 0E 8E [09:08:47]CheckFolder [09:08:47]dirname=/storage/ofd_packets [09:08:47]CheckFolder done [09:08:47]ProducePacketName [09:08:47]name=ofd_packets/00186459 [09:08:47]NVStorageSaveData ofd_packets/00186459 [09:08:47]File name is /storage/ofd_packets/00186459 [09:08:47]Write 301 bytes [09:08:47]NVStorageSaveData done [09:08:47]OFDSenderStorePacket done [09:08:47]KKMCreateOFDPacket done [09:08:47]NVStorageSaveData kkm_last_timestamp [09:08:47]File name is /storage/kkm_last_timestamp [09:08:47]Write 4 bytes [09:08:47]NVStorageSaveData done [09:08:47]ExternCall_PrintAddStr [09:08:47]wPrintStart [09:08:47]Write to MH i2c: 01 00 00 C8 1B E3 [09:08:47]Write i2c OK [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 [09:08:47]MH_I2C_Read... [09:08:47]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [09:08:47]RasterBufferAndPrint [09:08:47]line Счет N : (1)411592 [09:08:47]line ИНН: 02508201610067 [09:08:47]line Контрольно-Кассовый Чек [09:08:47]line ПРОДАЖА [09:08:47]line ТРК (МРК, ГНК) : 12 [09:08:47]line Товар: 2710124130 [09:08:47]line Аи-92-К-2 [09:08:47]line 7.790 * 64.20 [09:08:47]line = 500.12 [09:08:47]line НДС 12% НСП 1% [09:08:47]line > о реализуемом товаре [09:08:47]line ИТОГО: 500.12 [09:08:47]line НСП 1% : 4.43 [09:08:47]line НДС 12% : 53.11 [09:08:47]line Наличными: 0.00 [09:08:47]line Безнал.: 500.12 [09:08:47]line Место: АЗС № 92 "Партнер Нефть" [09:08:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:08:47]line СНО: Общий режим [09:08:47]line Чек 46 17.02.2025 09:08 [09:08:47]line Смена: 644 ФФД: 1.0 [09:08:47]line ЗНМ: 0300000118 [09:08:47]line РНМ: 0000000000091857 [09:08:47]line Версия ККМ: 001 [09:08:47]line Платежная система: O! деньги [09:08:47]line ФМ: 0000000000871826 [09:08:47]line ФД: 186459 [09:08:47]line ФПД: 272907436546269 [09:08:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090849&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186459&fm=272907436546269&tin=02508201610067®Number=0000000000091857&sum=50012 [09:08:47]OFD Sender: Processing packet 186459 [packets to send 49, broken 48] [09:08:47]ProducePacketName [09:08:47]name=ofd_packets/00186459 [09:08:47]OFD Sender: To server: pG, [09:08:47]CommunicateWithHost lk.salyk.kg:30040 [09:08:47]ConnectInit lk.salyk.kg [09:08:47]written 0, free lines is 4095 [09:08:47]Connected sock=10 [09:08:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 87 07 01 4A 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 A1 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D8 02 00 35 04 06 00 F8 35 36 CF D8 DD 78 77 05 99 6F 07 0E 8E [09:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4F 71 47 00 5E EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5B D8 02 00 F4 03 04 00 FC A2 B2 67 B6 04 01 00 00 01 C9 5F 25 7F A1 4D CC [09:08:48]CommunicateWithHost err = 0 [09:08:48]CheckOFDResponse [09:08:48]1017 (14) - 77093643461234 [09:08:48]1041 (16) - 0000000000871826 [09:08:48]1040 (4) - 186459 [09:08:48]1012 (4) - 17.02.2025 02:46 [09:08:48]1206 (1) - 0 [09:08:48]OFD Sender: Remove packet 186459 [09:08:48]ProducePacketName [09:08:48]name=ofd_packets/00186459 [09:08:48]NVStorageDeleteData [09:08:48]Write to MH i2c: 01 00 00 F2 1B 0D [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 F2 1B 00 00 00 00 00 09 0D 2A [09:08:48]RasterBufferAndPrint [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]written 0, free lines is 3343 [09:08:48]MH_Cut [09:08:48]Write to MH i2c: D1 01 00 F9 1B 01 E6 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 F9 1B 00 E5 [09:08:48]Write to MH i2c: 01 00 00 FA 1B 15 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]OFD Sender: No OFD packet to send [09:08:48]*** Cut start [09:08:48]*** Partial cut [09:08:48]*** CUTSNS_PIN = 1 [09:08:48]*** CUTSNS_PIN = 0 [09:08:49]*** Brake cut motor [09:08:49]Read from MH i2c: 01 [09:08:49]MH_I2C_Read... [09:08:49]*** Stop cut motor [09:08:49]*** Cut end [09:08:49]Read from MH i2c: 01 07 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 07 00 FA 1B 00 00 00 00 00 FF 0F 2A [09:08:49]process_action close_receipt done [09:08:49]requested_data is exist [09:08:49]produce_requested_data [09:08:49]requested_item fm.sn is exist - process it [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 11 00 00 [09:08:49]Write to MH i2c: E2 08 00 FB 1B 80 11 00 00 00 00 00 00 90 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 FB 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [09:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:08:49]wFMCommunicate OK [09:08:49]requested_item fd.num is exist - process it [09:08:49]SAM_PROTO_GetFieldsCounters [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 00 00 [09:08:49]Write to MH i2c: E2 08 00 FC 1B 80 13 00 00 00 00 00 00 93 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 FC 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [09:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetFieldsCounters done [09:08:49]requested_item shift.num is exist - process it [09:08:49]requested_item shift.opened is exist - process it [09:08:49]req_shift_opened [09:08:49]FM_GetShiftState [09:08:49]SAM_PROTO_GetShiftState [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 01 00 [09:08:49]Write to MH i2c: E2 08 00 FD 1B 80 13 01 00 00 00 00 00 95 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 FD 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B9 [09:08:49]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetShiftState done [09:08:49]FM_GetShiftState done [09:08:49]req_shift_opened done [09:08:49]requested_item shift.open_date is exist - process it [09:08:49]req_shift_open_date [09:08:49]req_shift_open_date done [09:08:49]produce_requested_data done [09:08:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186459,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:08:49]process_action_free close_receipt [09:08:49]json_value_free [09:08:49]json_value_free done [09:08:49]process_json_proto returns [09:08:49]Send response to host [09:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186459,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:08:49]free response buf [09:08:49]execute_script done [09:08:49]execute_script returns [09:08:49]free content buf [09:08:49]Sock 8.Close socket [09:08:49]Sock 8.Thread stoped [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]accept exits with 9 [09:09:23]New connection [09:09:23]New thread 3067358564 created [09:09:23]Thread 3067501924 joined [09:09:23]Waiting for new connection... [09:09:23] Sock 9.Parse request [09:09:23]Sock 9.Check first char [09:09:23]Sock 9.First char is OK [09:09:23]request: POST /json_proto HTTP/1.0 [09:09:23]Method: POST [09:09:23]URL: /json_proto [09:09:23]Method is POST - this is cgi request [09:09:23]url: /json_proto [09:09:23]query_string will be loaded in cgi processing [09:09:23]execute_cgi json_proto POST (null) [09:09:23]execute_cgi path=json_proto method=POST [09:09:23]POST find Content-Length [09:09:23]Host: 172.17.46.131:8080 [09:09:23]Content-Length: 682 [09:09:23]Content-Type: application/json [09:09:23] [09:09:23]POST finish read [09:09:23]Found Content-Length = 682 [09:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 24.930, "sum" : 1600.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:23]execute_script... [09:09:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 24.930, "sum" : 1600.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:23]POST & json_proto [09:09:23]process_json_proto [09:09:23]json parsed OK: [09:09:23]protocol is kg_v1.0 [09:09:23]action value=close_receipt [09:09:23]process_action close_receipt [09:09:23]cmd_close_receipt [09:09:23]MH_GetDate [09:09:23]Write to MH i2c: F0 00 00 FE 1B 08 [09:09:23]Write i2c OK [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 09 00 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: F0 09 00 FE 1B 00 C6 FC B2 67 7E 41 4F 65 5F [09:09:23]GetLastDocTimeStamp 1739783329 [09:09:23]current date 1739783366 [09:09:23]FM_GetShiftState [09:09:23]SAM_PROTO_GetShiftState [09:09:23]wFMCommunicate request_size=4 [09:09:23]MH_SAM_APDU [09:09:23]CAPDU: 80 13 01 00 [09:09:23]Write to MH i2c: E2 08 00 FF 1B 80 13 01 00 00 00 00 00 97 [09:09:23]Write i2c OK [09:09:23]MH_I2C_Read... [09:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:23]Read from MH i2c: E2 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: E2 0E 00 [09:09:23]MH_I2C_Read... [09:09:23]Read from MH i2c: E2 0E 00 FF 1B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BB [09:09:23]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:09:23]wFMCommunicate OK [09:09:23]SAM_PROTO_GetShiftState done [09:09:23]FM_GetShiftState done [09:09:23]opened in 1739752571 [09:09:23]opened+sec_in_day 1739838971 [09:09:23]quantity*price = 160050 [09:09:23]sum+1 = 160052 [09:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.97 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 47 17.02.2025 09:09 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186460 ФПД: 241676590513630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186460&fm=241676590513630&tin=02508201610067®Number=0000000000091857&sum=160000 [09:09:24]StoreToDocumentArchive [09:09:24]shift 644 fd 186460 [09:09:24]save to /storage/0644/doc_00186460 [09:09:24]save last doc name /storage/0644/doc_00186460 to /storage/kkm_last_doc_name [09:09:24]save OK [09:09:24]Clear old archive folders... [09:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:24]tlvbuf is B6E2E2E0 [09:09:24]SAM_PROTO_ClearQueue [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 09 00 00 [09:09:24]Write to MH i2c: E2 08 00 0C 1C 80 09 00 00 00 00 00 00 9A [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [09:09:24]RAPDU: 90 00 [09:09:24]wFMCommunicate OK [09:09:24]SAM_PROTO_ClearQueue done [09:09:24]KKMCreateOFDPacket [09:09:24]OFDProtocolAddRootSTLVToBuf [09:09:24]FM_MakeSignedData [09:09:24]FM_MakeSignedData [09:09:24]SAM_PROTO_SignData [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 0D 01 02 [09:09:24]Write to MH i2c: E2 08 00 0D 1C 80 0D 01 02 00 00 00 00 A2 [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [09:09:24]RAPDU: 90 00 [09:09:24]wFMCommunicate OK [09:09:24]wFMCommunicate request_size=255 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C6 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D8 02 00 35 04 06 00 DB [09:09:24]Write to MH i2c: E2 02 01 0E 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C6 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D8 02 00 35 04 06 00 DB 00 00 FF [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [09:09:24]RAPDU: 90 00 [09:09:24]wFMCommunicate OK [09:09:24]wFMCommunicate request_size=10 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 0D 02 02 05 CD B7 53 FD DE [09:09:24]Write to MH i2c: E2 0D 00 0F 1C 80 0D 02 02 05 00 CD B7 53 FD DE 00 00 61 [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 03 00 0F 1C 00 90 00 9F [09:09:24]RAPDU: 90 00 [09:09:24]wFMCommunicate OK [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 0D 03 02 [09:09:24]Write to MH i2c: E2 08 00 10 1C 80 0D 03 02 00 00 00 00 A7 [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0B 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 0B 00 10 1C 00 28 28 DD 4B D6 D5 B2 7A 90 00 F7 [09:09:24]RAPDU: 28 28 DD 4B D6 D5 B2 7A 90 00 [09:09:24]wFMCommunicate OK [09:09:24]SAM_PROTO_SignData done [09:09:24]FM_MakeSignedData done [09:09:24]CreateOFDProtocolMessage [09:09:24]wFMCommunicate request_size=4 [09:09:24]MH_SAM_APDU [09:09:24]CAPDU: 80 11 00 00 [09:09:24]Write to MH i2c: E2 08 00 11 1C 80 11 00 00 00 00 00 00 A7 [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:24]Read from MH i2c: E2 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 17 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: E2 17 00 11 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [09:09:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:24]wFMCommunicate OK [09:09:24]CreateOFDProtocolMessage done [09:09:24]OFDSenderStorePacket 186460 [09:09:24]StoreOFDPacket docnum=186460 [09:09:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 12 7F 07 01 5E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C6 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D8 02 00 35 04 06 00 DB CD B7 53 FD DE 28 28 DD 4B D6 D5 B2 7A [09:09:24]CheckFolder [09:09:24]dirname=/storage/ofd_packets [09:09:24]CheckFolder done [09:09:24]ProducePacketName [09:09:24]name=ofd_packets/00186460 [09:09:24]NVStorageSaveData ofd_packets/00186460 [09:09:24]File name is /storage/ofd_packets/00186460 [09:09:24]Write 301 bytes [09:09:24]NVStorageSaveData done [09:09:24]OFDSenderStorePacket done [09:09:24]KKMCreateOFDPacket done [09:09:24]NVStorageSaveData kkm_last_timestamp [09:09:24]File name is /storage/kkm_last_timestamp [09:09:24]Write 4 bytes [09:09:24]NVStorageSaveData done [09:09:24]ExternCall_PrintAddStr [09:09:24]wPrintStart [09:09:24]Write to MH i2c: 01 00 00 12 1C 2E [09:09:24]Write i2c OK [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: 01 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: 01 07 00 [09:09:24]MH_I2C_Read... [09:09:24]Read from MH i2c: 01 07 00 12 1C 00 00 00 00 00 FF 0F 43 [09:09:24]RasterBufferAndPrint [09:09:24]line Счет N : (1)411591 [09:09:24]line ИНН: 02508201610067 [09:09:24]line Контрольно-Кассовый Чек [09:09:24]line ПРОДАЖА [09:09:24]line ТРК (МРК, ГНК) : 32 [09:09:24]line Товар: 2710124130 [09:09:24]line Аи-92-К-2 [09:09:24]line 24.930 * 64.20 [09:09:24]line = 1600.51 [09:09:24]line НДС 12% НСП 1% [09:09:24]line > о реализуемом товаре [09:09:24]line ОКРУГЛЕНИЕ: -0.51 [09:09:24]line ИТОГО: 1600.00 [09:09:24]line Внесено: 1600.00 [09:09:24]line СДАЧА: 0.00 [09:09:24]line НСП 1% : 14.16 [09:09:24]line НДС 12% : 169.97 [09:09:24]line Наличными: 1600.00 [09:09:24]line Безнал.: 0.00 [09:09:24]line Место: АЗС № 92 "Партнер Нефть" [09:09:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:09:24]line СНО: Общий режим [09:09:24]line Чек 47 17.02.2025 09:09 [09:09:24]line Смена: 644 ФФД: 1.0 [09:09:24]line ЗНМ: 0300000118 [09:09:24]line РНМ: 0000000000091857 [09:09:24]line Версия ККМ: 001 [09:09:24]line ФМ: 0000000000871826 [09:09:24]line ФД: 186460 [09:09:24]line ФПД: 241676590513630 [09:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T090926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186460&fm=241676590513630&tin=02508201610067®Number=0000000000091857&sum=160000 [09:09:25]OFD Sender: Processing packet 186460 [packets to send 49, broken 48] [09:09:25]ProducePacketName [09:09:25]name=ofd_packets/00186460 [09:09:25]OFD Sender: To server: pG, [09:09:25]CommunicateWithHost lk.salyk.kg:30040 [09:09:25]ConnectInit lk.salyk.kg [09:09:25]written 0, free lines is 4095 [09:09:25]Connected sock=10 [09:09:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 12 7F 07 01 5E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 C6 FC B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D8 02 00 35 04 06 00 DB CD B7 53 FD DE 28 28 DD 4B D6 D5 B2 7A [09:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F8 22 47 00 27 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5C D8 02 00 F4 03 04 00 21 A3 B2 67 B6 04 01 00 00 58 99 1A 0F 88 14 59 2C [09:09:25]CommunicateWithHost err = 0 [09:09:25]CheckOFDResponse [09:09:25]1017 (14) - 77093643461234 [09:09:25]1041 (16) - 0000000000871826 [09:09:25]1040 (4) - 186460 [09:09:25]1012 (4) - 17.02.2025 02:46 [09:09:25]1206 (1) - 0 [09:09:25]OFD Sender: Remove packet 186460 [09:09:25]ProducePacketName [09:09:25]name=ofd_packets/00186460 [09:09:25]NVStorageDeleteData [09:09:25]Write to MH i2c: 01 00 00 3D 1C 59 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 07 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: 01 07 00 3D 1C 00 00 00 00 00 F0 0C 5C [09:09:25]RasterBufferAndPrint [09:09:25]line [09:09:25]line [09:09:25]line [09:09:25]line [09:09:25]line [09:09:25]written 0, free lines is 3319 [09:09:25]MH_Cut [09:09:25]Write to MH i2c: D1 01 00 44 1C 01 32 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: D1 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: D1 01 00 [09:09:25]MH_I2C_Read... [09:09:25]Read from MH i2c: D1 01 00 44 1C 00 31 [09:09:25]Write to MH i2c: 01 00 00 45 1C 61 [09:09:25]Write i2c OK [09:09:25]MH_I2C_Read... [09:09:26]OFD Sender: No OFD packet to send [09:09:26]*** Cut start [09:09:26]*** Partial cut [09:09:26]*** CUTSNS_PIN = 1 [09:09:26]*** CUTSNS_PIN = 0 [09:09:26]*** Brake cut motor [09:09:26]Read from MH i2c: 01 [09:09:26]MH_I2C_Read... [09:09:26]*** Stop cut motor [09:09:26]*** Cut end [09:09:26]Read from MH i2c: 01 07 00 [09:09:26]MH_I2C_Read... [09:09:26]Read from MH i2c: 01 07 00 45 1C 00 00 00 00 00 FF 0F 76 [09:09:26]process_action close_receipt done [09:09:26]requested_data is exist [09:09:26]produce_requested_data [09:09:26]requested_item fm.sn is exist - process it [09:09:26]wFMCommunicate request_size=4 [09:09:26]MH_SAM_APDU [09:09:26]CAPDU: 80 11 00 00 [09:09:26]Write to MH i2c: E2 08 00 46 1C 80 11 00 00 00 00 00 00 DC [09:09:26]Write i2c OK [09:09:26]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 17 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 17 00 46 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [09:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:09:27]wFMCommunicate OK [09:09:27]requested_item fd.num is exist - process it [09:09:27]SAM_PROTO_GetFieldsCounters [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 13 00 00 [09:09:27]Write to MH i2c: E2 08 00 47 1C 80 13 00 00 00 00 00 00 DF [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 62 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 62 00 47 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [09:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:27]wFMCommunicate OK [09:09:27]SAM_PROTO_GetFieldsCounters done [09:09:27]requested_item shift.num is exist - process it [09:09:27]requested_item shift.opened is exist - process it [09:09:27]req_shift_opened [09:09:27]FM_GetShiftState [09:09:27]SAM_PROTO_GetShiftState [09:09:27]wFMCommunicate request_size=4 [09:09:27]MH_SAM_APDU [09:09:27]CAPDU: 80 13 01 00 [09:09:27]Write to MH i2c: E2 08 00 48 1C 80 13 01 00 00 00 00 00 E1 [09:09:27]Write i2c OK [09:09:27]MH_I2C_Read... [09:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:27]Read from MH i2c: E2 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 [09:09:27]MH_I2C_Read... [09:09:27]Read from MH i2c: E2 0E 00 48 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 05 [09:09:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:09:27]wFMCommunicate OK [09:09:27]SAM_PROTO_GetShiftState done [09:09:27]FM_GetShiftState done [09:09:27]req_shift_opened done [09:09:27]requested_item shift.open_date is exist - process it [09:09:27]req_shift_open_date [09:09:27]req_shift_open_date done [09:09:27]produce_requested_data done [09:09:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186460,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:09:27]process_action_free close_receipt [09:09:27]json_value_free [09:09:27]json_value_free done [09:09:27]process_json_proto returns [09:09:27]Send response to host [09:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186460,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:09:27]free response buf [09:09:27]execute_script done [09:09:27]execute_script returns [09:09:27]free content buf [09:09:27]Sock 9.Close socket [09:09:27]Sock 9.Thread stoped [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:27]accept exits with 8 [09:10:27]New connection [09:10:27]New thread 3067501924 created [09:10:27]Thread 3067358564 joined [09:10:27]Waiting for new connection... [09:10:27] Sock 8.Parse request [09:10:27]Sock 8.Check first char [09:10:27]Sock 8.First char is OK [09:10:27]request: POST /json_proto HTTP/1.0 [09:10:27]Method: POST [09:10:27]URL: /json_proto [09:10:27]Method is POST - this is cgi request [09:10:27]url: /json_proto [09:10:27]query_string will be loaded in cgi processing [09:10:27]execute_cgi json_proto POST (null) [09:10:27]execute_cgi path=json_proto method=POST [09:10:27]POST find Content-Length [09:10:27]Host: 172.17.46.131:8080 [09:10:27]Content-Length: 678 [09:10:27]Content-Type: application/json [09:10:27] [09:10:27]POST finish read [09:10:27]Found Content-Length = 678 [09:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:27]execute_script... [09:10:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:27]POST & json_proto [09:10:27]process_json_proto [09:10:27]json parsed OK: [09:10:27]protocol is kg_v1.0 [09:10:27]action value=close_receipt [09:10:27]process_action close_receipt [09:10:27]cmd_close_receipt [09:10:27]MH_GetDate [09:10:27]Write to MH i2c: F0 00 00 49 1C 54 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: F0 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: F0 09 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: F0 09 00 49 1C 00 07 FD B2 67 7E 41 4F 65 ED [09:10:27]GetLastDocTimeStamp 1739783366 [09:10:27]current date 1739783431 [09:10:27]FM_GetShiftState [09:10:27]SAM_PROTO_GetShiftState [09:10:27]wFMCommunicate request_size=4 [09:10:27]MH_SAM_APDU [09:10:27]CAPDU: 80 13 01 00 [09:10:27]Write to MH i2c: E2 08 00 4A 1C 80 13 01 00 00 00 00 00 E3 [09:10:27]Write i2c OK [09:10:27]MH_I2C_Read... [09:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:27]Read from MH i2c: E2 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0E 00 [09:10:27]MH_I2C_Read... [09:10:27]Read from MH i2c: E2 0E 00 4A 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 07 [09:10:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:10:27]wFMCommunicate OK [09:10:27]SAM_PROTO_GetShiftState done [09:10:27]FM_GetShiftState done [09:10:27]opened in 1739752571 [09:10:27]opened+sec_in_day 1739838971 [09:10:27]quantity*price = 100042 [09:10:27]sum+1 = 100044 [09:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 48 17.02.2025 09:10 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186461 ФПД: 66908770079515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186461&fm=66908770079515&tin=02508201610067®Number=0000000000091857&sum=100000 [09:10:28]StoreToDocumentArchive [09:10:28]shift 644 fd 186461 [09:10:28]save to /storage/0644/doc_00186461 [09:10:28]save last doc name /storage/0644/doc_00186461 to /storage/kkm_last_doc_name [09:10:28]save OK [09:10:28]Clear old archive folders... [09:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:10:28]tlvbuf is 0201EBD0 [09:10:28]SAM_PROTO_ClearQueue [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 09 00 00 [09:10:28]Write to MH i2c: E2 08 00 57 1C 80 09 00 00 00 00 00 00 E5 [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [09:10:28]RAPDU: 90 00 [09:10:28]wFMCommunicate OK [09:10:28]SAM_PROTO_ClearQueue done [09:10:28]KKMCreateOFDPacket [09:10:28]OFDProtocolAddRootSTLVToBuf [09:10:28]FM_MakeSignedData [09:10:28]FM_MakeSignedData [09:10:28]SAM_PROTO_SignData [09:10:28]wFMCommunicate request_size=4 [09:10:28]MH_SAM_APDU [09:10:28]CAPDU: 80 0D 01 02 [09:10:28]Write to MH i2c: E2 08 00 58 1C 80 0D 01 02 00 00 00 00 ED [09:10:28]Write i2c OK [09:10:28]MH_I2C_Read... [09:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:28]Read from MH i2c: E2 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 [09:10:28]MH_I2C_Read... [09:10:28]Read from MH i2c: E2 03 00 58 1C 00 90 00 E8 [09:10:28]RAPDU: 90 00 [09:10:28]wFMCommunicate OK [09:10:28]wFMCommunicate request_size=255 [09:10:28]MH_SAM_APDU [09:10:28]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 07 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D8 02 00 35 04 06 00 3C DA 69 79 [09:10:28]Write to MH i2c: E2 02 01 59 1C 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 07 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D8 02 00 35 04 06 00 3C DA 69 79 00 00 93 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 03 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 03 00 59 1C 00 90 00 E9 [09:10:29]RAPDU: 90 00 [09:10:29]wFMCommunicate OK [09:10:29]wFMCommunicate request_size=7 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 0D 02 02 02 13 1B [09:10:29]Write to MH i2c: E2 0A 00 5A 1C 80 0D 02 02 02 00 13 1B 00 00 22 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 03 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 03 00 5A 1C 00 90 00 EA [09:10:29]RAPDU: 90 00 [09:10:29]wFMCommunicate OK [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 0D 03 02 [09:10:29]Write to MH i2c: E2 08 00 5B 1C 80 0D 03 02 00 00 00 00 F2 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 0B 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 0B 00 5B 1C 00 D1 89 4D 56 F9 25 25 7E 90 00 B1 [09:10:29]RAPDU: D1 89 4D 56 F9 25 25 7E 90 00 [09:10:29]wFMCommunicate OK [09:10:29]SAM_PROTO_SignData done [09:10:29]FM_MakeSignedData done [09:10:29]CreateOFDProtocolMessage [09:10:29]wFMCommunicate request_size=4 [09:10:29]MH_SAM_APDU [09:10:29]CAPDU: 80 11 00 00 [09:10:29]Write to MH i2c: E2 08 00 5C 1C 80 11 00 00 00 00 00 00 F2 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:29]Read from MH i2c: E2 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 17 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: E2 17 00 5C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [09:10:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:10:29]wFMCommunicate OK [09:10:29]CreateOFDProtocolMessage done [09:10:29]OFDSenderStorePacket 186461 [09:10:29]StoreOFDPacket docnum=186461 [09:10:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 9D 04 01 4D FB 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 07 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D8 02 00 35 04 06 00 3C DA 69 79 13 1B D1 89 4D 56 F9 25 25 7E [09:10:29]CheckFolder [09:10:29]dirname=/storage/ofd_packets [09:10:29]CheckFolder done [09:10:29]ProducePacketName [09:10:29]name=ofd_packets/00186461 [09:10:29]NVStorageSaveData ofd_packets/00186461 [09:10:29]File name is /storage/ofd_packets/00186461 [09:10:29]Write 298 bytes [09:10:29]NVStorageSaveData done [09:10:29]OFDSenderStorePacket done [09:10:29]KKMCreateOFDPacket done [09:10:29]NVStorageSaveData kkm_last_timestamp [09:10:29]File name is /storage/kkm_last_timestamp [09:10:29]Write 4 bytes [09:10:29]NVStorageSaveData done [09:10:29]ExternCall_PrintAddStr [09:10:29]wPrintStart [09:10:29]Write to MH i2c: 01 00 00 5D 1C 79 [09:10:29]Write i2c OK [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: 01 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: 01 07 00 [09:10:29]MH_I2C_Read... [09:10:29]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [09:10:29]RasterBufferAndPrint [09:10:29]line Счет N : (1)411593 [09:10:29]line ИНН: 02508201610067 [09:10:29]line Контрольно-Кассовый Чек [09:10:29]line ПРОДАЖА [09:10:29]line ТРК (МРК, ГНК) : 5 [09:10:29]line Товар: 2710194210 [09:10:29]line ДТ-К-5 [09:10:29]line 13.780 * 72.60 [09:10:29]line = 1000.43 [09:10:29]line НДС 12% НСП 1% [09:10:29]line > о реализуемом товаре [09:10:29]line ОКРУГЛЕНИЕ: -0.43 [09:10:29]line ИТОГО: 1000.00 [09:10:29]line Внесено: 1000.00 [09:10:29]line СДАЧА: 0.00 [09:10:29]line НСП 1% : 8.85 [09:10:29]line НДС 12% : 106.24 [09:10:29]line Наличными: 1000.00 [09:10:29]line Безнал.: 0.00 [09:10:29]line Место: АЗС № 92 "Партнер Нефть" [09:10:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:10:29]line СНО: Общий режим [09:10:29]line Чек 48 17.02.2025 09:10 [09:10:29]line Смена: 644 ФФД: 1.0 [09:10:29]line ЗНМ: 0300000118 [09:10:29]line РНМ: 0000000000091857 [09:10:29]line Версия ККМ: 001 [09:10:29]line ФМ: 0000000000871826 [09:10:29]line ФД: 186461 [09:10:29]line ФПД: 66908770079515 [09:10:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186461&fm=66908770079515&tin=02508201610067®Number=0000000000091857&sum=100000 [09:10:29]OFD Sender: Processing packet 186461 [packets to send 49, broken 48] [09:10:29]ProducePacketName [09:10:29]name=ofd_packets/00186461 [09:10:29]OFD Sender: To server: pG, [09:10:29]CommunicateWithHost lk.salyk.kg:30040 [09:10:29]ConnectInit lk.salyk.kg [09:10:29]written 0, free lines is 4095 [09:10:29]Connected sock=10 [09:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C6 9D 04 01 4D FB 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 07 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D8 02 00 35 04 06 00 3C DA 69 79 13 1B D1 89 4D 56 F9 25 25 7E [09:10:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D1 C8 47 00 F8 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5D D8 02 00 F4 03 04 00 62 A3 B2 67 B6 04 01 00 00 7C 67 81 67 5C 10 6B 88 [09:10:30]CommunicateWithHost err = 0 [09:10:30]CheckOFDResponse [09:10:30]1017 (14) - 77093643461234 [09:10:30]1041 (16) - 0000000000871826 [09:10:30]1040 (4) - 186461 [09:10:30]1012 (4) - 17.02.2025 02:48 [09:10:30]1206 (1) - 0 [09:10:30]OFD Sender: Remove packet 186461 [09:10:30]ProducePacketName [09:10:30]name=ofd_packets/00186461 [09:10:30]NVStorageDeleteData [09:10:30]Write to MH i2c: 01 00 00 88 1C A4 [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 07 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: 01 07 00 88 1C 00 00 00 00 00 F4 0C AB [09:10:30]RasterBufferAndPrint [09:10:30]line [09:10:30]line [09:10:30]line [09:10:30]line [09:10:30]line [09:10:30]written 0, free lines is 3322 [09:10:30]MH_Cut [09:10:30]Write to MH i2c: D1 01 00 8F 1C 01 7D [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: D1 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: D1 01 00 [09:10:30]MH_I2C_Read... [09:10:30]Read from MH i2c: D1 01 00 8F 1C 00 7C [09:10:30]Write to MH i2c: 01 00 00 90 1C AC [09:10:30]Write i2c OK [09:10:30]MH_I2C_Read... [09:10:30]OFD Sender: No OFD packet to send [09:10:30]*** Cut start [09:10:30]*** Partial cut [09:10:30]*** CUTSNS_PIN = 1 [09:10:30]*** CUTSNS_PIN = 0 [09:10:31]*** Brake cut motor [09:10:31]Read from MH i2c: 01 [09:10:31]MH_I2C_Read... [09:10:31]*** Stop cut motor [09:10:31]*** Cut end [09:10:31]Read from MH i2c: 01 07 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: 01 07 00 90 1C 00 00 00 00 00 FF 0F C1 [09:10:31]process_action close_receipt done [09:10:31]requested_data is exist [09:10:31]produce_requested_data [09:10:31]requested_item fm.sn is exist - process it [09:10:31]wFMCommunicate request_size=4 [09:10:31]MH_SAM_APDU [09:10:31]CAPDU: 80 11 00 00 [09:10:31]Write to MH i2c: E2 08 00 91 1C 80 11 00 00 00 00 00 00 27 [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:31]Read from MH i2c: E2 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 17 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 17 00 91 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [09:10:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:10:31]wFMCommunicate OK [09:10:31]requested_item fd.num is exist - process it [09:10:31]SAM_PROTO_GetFieldsCounters [09:10:31]wFMCommunicate request_size=4 [09:10:31]MH_SAM_APDU [09:10:31]CAPDU: 80 13 00 00 [09:10:31]Write to MH i2c: E2 08 00 92 1C 80 13 00 00 00 00 00 00 2A [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:31]Read from MH i2c: E2 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 62 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 62 00 92 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [09:10:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:31]wFMCommunicate OK [09:10:31]SAM_PROTO_GetFieldsCounters done [09:10:31]requested_item shift.num is exist - process it [09:10:31]requested_item shift.opened is exist - process it [09:10:31]req_shift_opened [09:10:31]FM_GetShiftState [09:10:31]SAM_PROTO_GetShiftState [09:10:31]wFMCommunicate request_size=4 [09:10:31]MH_SAM_APDU [09:10:31]CAPDU: 80 13 01 00 [09:10:31]Write to MH i2c: E2 08 00 93 1C 80 13 01 00 00 00 00 00 2C [09:10:31]Write i2c OK [09:10:31]MH_I2C_Read... [09:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:31]Read from MH i2c: E2 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 0E 00 [09:10:31]MH_I2C_Read... [09:10:31]Read from MH i2c: E2 0E 00 93 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 50 [09:10:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:10:31]wFMCommunicate OK [09:10:31]SAM_PROTO_GetShiftState done [09:10:31]FM_GetShiftState done [09:10:31]req_shift_opened done [09:10:31]requested_item shift.open_date is exist - process it [09:10:31]req_shift_open_date [09:10:31]req_shift_open_date done [09:10:31]produce_requested_data done [09:10:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186461,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:10:31]process_action_free close_receipt [09:10:31]json_value_free [09:10:31]json_value_free done [09:10:31]process_json_proto returns [09:10:31]Send response to host [09:10:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186461,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:10:31]free response buf [09:10:31]execute_script done [09:10:31]execute_script returns [09:10:31]free content buf [09:10:31]Sock 8.Close socket [09:10:31]Sock 8.Thread stoped [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]accept exits with 9 [09:13:10]New connection [09:13:10]New thread 3067358564 created [09:13:10]Thread 3067501924 joined [09:13:10]Waiting for new connection... [09:13:10] Sock 9.Parse request [09:13:10]Sock 9.Check first char [09:13:10]Sock 9.First char is OK [09:13:10]request: POST /json_proto HTTP/1.0 [09:13:10]Method: POST [09:13:10]URL: /json_proto [09:13:10]Method is POST - this is cgi request [09:13:10]url: /json_proto [09:13:10]query_string will be loaded in cgi processing [09:13:10]execute_cgi json_proto POST (null) [09:13:10]execute_cgi path=json_proto method=POST [09:13:10]POST find Content-Length [09:13:10]Host: 172.17.46.131:8080 [09:13:10]Content-Length: 673 [09:13:10]Content-Type: application/json [09:13:10] [09:13:10]POST finish read [09:13:10]Found Content-Length = 673 [09:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:10]execute_script... [09:13:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:10]POST & json_proto [09:13:10]process_json_proto [09:13:10]json parsed OK: [09:13:10]protocol is kg_v1.0 [09:13:10]action value=close_receipt [09:13:10]process_action close_receipt [09:13:10]cmd_close_receipt [09:13:10]MH_GetDate [09:13:10]Write to MH i2c: F0 00 00 94 1C 9F [09:13:10]Write i2c OK [09:13:10]MH_I2C_Read... [09:13:10]Read from MH i2c: F0 [09:13:10]MH_I2C_Read... [09:13:10]Read from MH i2c: F0 09 00 [09:13:10]MH_I2C_Read... [09:13:10]Read from MH i2c: F0 09 00 94 1C 00 AA FD B2 67 7E 41 4F 65 DB [09:13:10]GetLastDocTimeStamp 1739783431 [09:13:10]current date 1739783594 [09:13:10]FM_GetShiftState [09:13:10]SAM_PROTO_GetShiftState [09:13:10]wFMCommunicate request_size=4 [09:13:10]MH_SAM_APDU [09:13:10]CAPDU: 80 13 01 00 [09:13:10]Write to MH i2c: E2 08 00 95 1C 80 13 01 00 00 00 00 00 2E [09:13:10]Write i2c OK [09:13:10]MH_I2C_Read... [09:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:10]Read from MH i2c: E2 [09:13:10]MH_I2C_Read... [09:13:10]Read from MH i2c: E2 0E 00 [09:13:10]MH_I2C_Read... [09:13:10]Read from MH i2c: E2 0E 00 95 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 52 [09:13:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:13:10]wFMCommunicate OK [09:13:10]SAM_PROTO_GetShiftState done [09:13:10]FM_GetShiftState done [09:13:10]opened in 1739752571 [09:13:10]opened+sec_in_day 1739838971 [09:13:10]quantity*price = 50021 [09:13:10]sum+1 = 50022 [09:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 49 17.02.2025 09:13 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186462 ФПД: 137308165539914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091314&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186462&fm=137308165539914&tin=02508201610067®Number=0000000000091857&sum=50000 [09:13:11]StoreToDocumentArchive [09:13:11]shift 644 fd 186462 [09:13:11]save to /storage/0644/doc_00186462 [09:13:11]save last doc name /storage/0644/doc_00186462 to /storage/kkm_last_doc_name [09:13:11]save OK [09:13:11]Clear old archive folders... [09:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:13:11]tlvbuf is B6F476E0 [09:13:11]SAM_PROTO_ClearQueue [09:13:11]wFMCommunicate request_size=4 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 09 00 00 [09:13:11]Write to MH i2c: E2 08 00 A2 1C 80 09 00 00 00 00 00 00 30 [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:11]Read from MH i2c: E2 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 03 00 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [09:13:11]RAPDU: 90 00 [09:13:11]wFMCommunicate OK [09:13:11]SAM_PROTO_ClearQueue done [09:13:11]KKMCreateOFDPacket [09:13:11]OFDProtocolAddRootSTLVToBuf [09:13:11]FM_MakeSignedData [09:13:11]FM_MakeSignedData [09:13:11]SAM_PROTO_SignData [09:13:11]wFMCommunicate request_size=4 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 0D 01 02 [09:13:11]Write to MH i2c: E2 08 00 A3 1C 80 0D 01 02 00 00 00 00 38 [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:11]Read from MH i2c: E2 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 03 00 [09:13:11]MH_I2C_Read... [09:13:11]Read from MH i2c: E2 03 00 A3 1C 00 90 00 33 [09:13:11]RAPDU: 90 00 [09:13:11]wFMCommunicate OK [09:13:11]wFMCommunicate request_size=255 [09:13:11]MH_SAM_APDU [09:13:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AA FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D8 02 00 35 04 06 00 7C E1 8C 6E [09:13:11]Write to MH i2c: E2 02 01 A4 1C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AA FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D8 02 00 35 04 06 00 7C E1 8C 6E 00 00 FA [09:13:11]Write i2c OK [09:13:11]MH_I2C_Read... [09:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:12]Read from MH i2c: E2 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 03 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 03 00 A4 1C 00 90 00 34 [09:13:12]RAPDU: 90 00 [09:13:12]wFMCommunicate OK [09:13:12]wFMCommunicate request_size=7 [09:13:12]MH_SAM_APDU [09:13:12]CAPDU: 80 0D 02 02 02 88 4A [09:13:12]Write to MH i2c: E2 0A 00 A5 1C 80 0D 02 02 02 00 88 4A 00 00 11 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:12]Read from MH i2c: E2 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 03 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 03 00 A5 1C 00 90 00 35 [09:13:12]RAPDU: 90 00 [09:13:12]wFMCommunicate OK [09:13:12]wFMCommunicate request_size=4 [09:13:12]MH_SAM_APDU [09:13:12]CAPDU: 80 0D 03 02 [09:13:12]Write to MH i2c: E2 08 00 A6 1C 80 0D 03 02 00 00 00 00 3D [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:12]Read from MH i2c: E2 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 0B 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 0B 00 A6 1C 00 F5 63 4B 33 D2 26 23 21 90 00 50 [09:13:12]RAPDU: F5 63 4B 33 D2 26 23 21 90 00 [09:13:12]wFMCommunicate OK [09:13:12]SAM_PROTO_SignData done [09:13:12]FM_MakeSignedData done [09:13:12]CreateOFDProtocolMessage [09:13:12]wFMCommunicate request_size=4 [09:13:12]MH_SAM_APDU [09:13:12]CAPDU: 80 11 00 00 [09:13:12]Write to MH i2c: E2 08 00 A7 1C 80 11 00 00 00 00 00 00 3D [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:12]Read from MH i2c: E2 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 17 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: E2 17 00 A7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [09:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:12]wFMCommunicate OK [09:13:12]CreateOFDProtocolMessage done [09:13:12]OFDSenderStorePacket 186462 [09:13:12]StoreOFDPacket docnum=186462 [09:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4A 66 04 01 18 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AA FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D8 02 00 35 04 06 00 7C E1 8C 6E 88 4A F5 63 4B 33 D2 26 23 21 [09:13:12]CheckFolder [09:13:12]dirname=/storage/ofd_packets [09:13:12]CheckFolder done [09:13:12]ProducePacketName [09:13:12]name=ofd_packets/00186462 [09:13:12]NVStorageSaveData ofd_packets/00186462 [09:13:12]File name is /storage/ofd_packets/00186462 [09:13:12]Write 298 bytes [09:13:12]NVStorageSaveData done [09:13:12]OFDSenderStorePacket done [09:13:12]KKMCreateOFDPacket done [09:13:12]NVStorageSaveData kkm_last_timestamp [09:13:12]File name is /storage/kkm_last_timestamp [09:13:12]Write 4 bytes [09:13:12]NVStorageSaveData done [09:13:12]ExternCall_PrintAddStr [09:13:12]wPrintStart [09:13:12]Write to MH i2c: 01 00 00 A8 1C C4 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 FF 0F D9 [09:13:12]RasterBufferAndPrint [09:13:12]line Счет N : (1)411594 [09:13:12]line ИНН: 02508201610067 [09:13:12]line Контрольно-Кассовый Чек [09:13:12]line ПРОДАЖА [09:13:12]line ТРК (МРК, ГНК) : 5 [09:13:12]line Товар: 2710194210 [09:13:12]line ДТ-К-5 [09:13:12]line 6.890 * 72.60 [09:13:12]line = 500.21 [09:13:12]line НДС 12% НСП 1% [09:13:12]line > о реализуемом товаре [09:13:12]line ОКРУГЛЕНИЕ: -0.21 [09:13:12]line ИТОГО: 500.00 [09:13:12]line Внесено: 500.00 [09:13:12]line СДАЧА: 0.00 [09:13:12]line НСП 1% : 4.43 [09:13:12]line НДС 12% : 53.12 [09:13:12]line Наличными: 500.00 [09:13:12]line Безнал.: 0.00 [09:13:12]line Место: АЗС № 92 "Партнер Нефть" [09:13:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:13:12]line СНО: Общий режим [09:13:12]line Чек 49 17.02.2025 09:13 [09:13:12]line Смена: 644 ФФД: 1.0 [09:13:12]line ЗНМ: 0300000118 [09:13:12]line РНМ: 0000000000091857 [09:13:12]line Версия ККМ: 001 [09:13:12]line ФМ: 0000000000871826 [09:13:12]line ФД: 186462 [09:13:12]line ФПД: 137308165539914 [09:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091314&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186462&fm=137308165539914&tin=02508201610067®Number=0000000000091857&sum=50000 [09:13:12]OFD Sender: Processing packet 186462 [packets to send 49, broken 48] [09:13:12]ProducePacketName [09:13:12]name=ofd_packets/00186462 [09:13:12]OFD Sender: To server: pG, [09:13:12]CommunicateWithHost lk.salyk.kg:30040 [09:13:12]ConnectInit lk.salyk.kg [09:13:12]written 0, free lines is 4095 [09:13:12]Connected sock=10 [09:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 4A 66 04 01 18 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 AA FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D8 02 00 35 04 06 00 7C E1 8C 6E 88 4A F5 63 4B 33 D2 26 23 21 [09:13:12]Write to MH i2c: 01 00 00 D3 1C EF [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: 01 07 00 D3 1C 00 00 00 00 00 E4 0C E6 [09:13:12]RasterBufferAndPrint [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]line [09:13:12]written 0, free lines is 3306 [09:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 42 F8 47 00 A8 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5E D8 02 00 F4 03 04 00 04 A4 B2 67 B6 04 01 00 00 BD 2D 2C B9 FA 8A F3 2F [09:13:12]CommunicateWithHost err = 0 [09:13:12]CheckOFDResponse [09:13:12]1017 (14) - 77093643461234 [09:13:12]1041 (16) - 0000000000871826 [09:13:12]1040 (4) - 186462 [09:13:12]1012 (4) - 17.02.2025 02:50 [09:13:12]1206 (1) - 0 [09:13:12]OFD Sender: Remove packet 186462 [09:13:12]ProducePacketName [09:13:12]name=ofd_packets/00186462 [09:13:12]NVStorageDeleteData [09:13:12]MH_Cut [09:13:12]Write to MH i2c: D1 01 00 DA 1C 01 C8 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 01 00 [09:13:12]MH_I2C_Read... [09:13:12]Read from MH i2c: D1 01 00 DA 1C 00 C7 [09:13:12]Write to MH i2c: 01 00 00 DB 1C F7 [09:13:12]Write i2c OK [09:13:12]MH_I2C_Read... [09:13:13]OFD Sender: No OFD packet to send [09:13:13]*** Cut start [09:13:13]*** Partial cut [09:13:13]*** CUTSNS_PIN = 1 [09:13:13]*** CUTSNS_PIN = 0 [09:13:14]*** Brake cut motor [09:13:14]Read from MH i2c: 01 [09:13:14]MH_I2C_Read... [09:13:14]*** Stop cut motor [09:13:14]*** Cut end [09:13:14]Read from MH i2c: 01 07 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: 01 07 00 DB 1C 00 00 00 00 00 FF 0F 0C [09:13:14]process_action close_receipt done [09:13:14]requested_data is exist [09:13:14]produce_requested_data [09:13:14]requested_item fm.sn is exist - process it [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 11 00 00 [09:13:14]Write to MH i2c: E2 08 00 DC 1C 80 11 00 00 00 00 00 00 72 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 17 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 17 00 DC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C5 [09:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:14]wFMCommunicate OK [09:13:14]requested_item fd.num is exist - process it [09:13:14]SAM_PROTO_GetFieldsCounters [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 13 00 00 [09:13:14]Write to MH i2c: E2 08 00 DD 1C 80 13 00 00 00 00 00 00 75 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 62 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 62 00 DD 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [09:13:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:14]wFMCommunicate OK [09:13:14]SAM_PROTO_GetFieldsCounters done [09:13:14]requested_item shift.num is exist - process it [09:13:14]requested_item shift.opened is exist - process it [09:13:14]req_shift_opened [09:13:14]FM_GetShiftState [09:13:14]SAM_PROTO_GetShiftState [09:13:14]wFMCommunicate request_size=4 [09:13:14]MH_SAM_APDU [09:13:14]CAPDU: 80 13 01 00 [09:13:14]Write to MH i2c: E2 08 00 DE 1C 80 13 01 00 00 00 00 00 77 [09:13:14]Write i2c OK [09:13:14]MH_I2C_Read... [09:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:14]Read from MH i2c: E2 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 0E 00 [09:13:14]MH_I2C_Read... [09:13:14]Read from MH i2c: E2 0E 00 DE 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9B [09:13:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:13:14]wFMCommunicate OK [09:13:14]SAM_PROTO_GetShiftState done [09:13:14]FM_GetShiftState done [09:13:14]req_shift_opened done [09:13:14]requested_item shift.open_date is exist - process it [09:13:14]req_shift_open_date [09:13:14]req_shift_open_date done [09:13:14]produce_requested_data done [09:13:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186462,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:13:14]process_action_free close_receipt [09:13:14]json_value_free [09:13:14]json_value_free done [09:13:14]process_json_proto returns [09:13:14]Send response to host [09:13:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186462,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:13:14]free response buf [09:13:14]execute_script done [09:13:14]execute_script returns [09:13:14]free content buf [09:13:14]Sock 9.Close socket [09:13:14]Sock 9.Thread stoped [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:38]OFD Sender: No OFD packet to send [09:13:43]OFD Sender: No OFD packet to send [09:13:48]OFD Sender: No OFD packet to send [09:13:51]accept exits with 8 [09:13:51]New connection [09:13:51]New thread 3067501924 created [09:13:51]Thread 3067358564 joined [09:13:51]Waiting for new connection... [09:13:51] Sock 8.Parse request [09:13:51]Sock 8.Check first char [09:13:51]Sock 8.First char is OK [09:13:51]request: POST /json_proto HTTP/1.0 [09:13:51]Method: POST [09:13:51]URL: /json_proto [09:13:51]Method is POST - this is cgi request [09:13:51]url: /json_proto [09:13:51]query_string will be loaded in cgi processing [09:13:51]execute_cgi json_proto POST (null) [09:13:51]execute_cgi path=json_proto method=POST [09:13:51]POST find Content-Length [09:13:51]Host: 172.17.46.131:8080 [09:13:51]Content-Length: 678 [09:13:51]Content-Type: application/json [09:13:51] [09:13:51]POST finish read [09:13:51]Found Content-Length = 678 [09:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:51]execute_script... [09:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:51]POST & json_proto [09:13:51]process_json_proto [09:13:51]json parsed OK: [09:13:51]protocol is kg_v1.0 [09:13:51]action value=close_receipt [09:13:51]process_action close_receipt [09:13:51]cmd_close_receipt [09:13:51]MH_GetDate [09:13:51]Write to MH i2c: F0 00 00 DF 1C EA [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: F0 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: F0 09 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: F0 09 00 DF 1C 00 D3 FD B2 67 7E 41 4F 65 4F [09:13:51]GetLastDocTimeStamp 1739783594 [09:13:51]current date 1739783635 [09:13:51]FM_GetShiftState [09:13:51]SAM_PROTO_GetShiftState [09:13:51]wFMCommunicate request_size=4 [09:13:51]MH_SAM_APDU [09:13:51]CAPDU: 80 13 01 00 [09:13:51]Write to MH i2c: E2 08 00 E0 1C 80 13 01 00 00 00 00 00 79 [09:13:51]Write i2c OK [09:13:51]MH_I2C_Read... [09:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:51]Read from MH i2c: E2 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 0E 00 [09:13:51]MH_I2C_Read... [09:13:51]Read from MH i2c: E2 0E 00 E0 1C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9D [09:13:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:13:51]wFMCommunicate OK [09:13:51]SAM_PROTO_GetShiftState done [09:13:51]FM_GetShiftState done [09:13:51]opened in 1739752571 [09:13:51]opened+sec_in_day 1739838971 [09:13:51]quantity*price = 80057 [09:13:51]sum+1 = 80058 [09:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 50 17.02.2025 09:13 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186463 ФПД: 109673005310300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091355&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186463&fm=109673005310300&tin=02508201610067®Number=0000000000091857&sum=80000 [09:13:52]StoreToDocumentArchive [09:13:52]shift 644 fd 186463 [09:13:52]save to /storage/0644/doc_00186463 [09:13:52]save last doc name /storage/0644/doc_00186463 to /storage/kkm_last_doc_name [09:13:52]save OK [09:13:52]Clear old archive folders... [09:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:52]tlvbuf is B6F2E680 [09:13:52]SAM_PROTO_ClearQueue [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 09 00 00 [09:13:52]Write to MH i2c: E2 08 00 ED 1C 80 09 00 00 00 00 00 00 7B [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [09:13:52]RAPDU: 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_ClearQueue done [09:13:52]KKMCreateOFDPacket [09:13:52]OFDProtocolAddRootSTLVToBuf [09:13:52]FM_MakeSignedData [09:13:52]FM_MakeSignedData [09:13:52]SAM_PROTO_SignData [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 0D 01 02 [09:13:52]Write to MH i2c: E2 08 00 EE 1C 80 0D 01 02 00 00 00 00 83 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 EE 1C 00 90 00 7E [09:13:52]RAPDU: 90 00 [09:13:52]wFMCommunicate OK [09:13:52]wFMCommunicate request_size=255 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D3 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D8 02 00 35 04 06 00 63 [09:13:52]Write to MH i2c: E2 02 01 EF 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D3 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D8 02 00 35 04 06 00 63 00 00 60 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 03 00 EF 1C 00 90 00 7F [09:13:52]RAPDU: 90 00 [09:13:52]wFMCommunicate OK [09:13:52]wFMCommunicate request_size=10 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 0D 02 02 05 BF 3C 85 E1 5C [09:13:52]Write to MH i2c: E2 0D 00 F0 1C 80 0D 02 02 05 00 BF 3C 85 E1 5C 00 00 4D [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 03 00 F0 1C 00 90 00 80 [09:13:53]RAPDU: 90 00 [09:13:53]wFMCommunicate OK [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 0D 03 02 [09:13:53]Write to MH i2c: E2 08 00 F1 1C 80 0D 03 02 00 00 00 00 88 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0B 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 0B 00 F1 1C 00 5F 6E BE 6A 3A 70 03 30 90 00 5B [09:13:53]RAPDU: 5F 6E BE 6A 3A 70 03 30 90 00 [09:13:53]wFMCommunicate OK [09:13:53]SAM_PROTO_SignData done [09:13:53]FM_MakeSignedData done [09:13:53]CreateOFDProtocolMessage [09:13:53]wFMCommunicate request_size=4 [09:13:53]MH_SAM_APDU [09:13:53]CAPDU: 80 11 00 00 [09:13:53]Write to MH i2c: E2 08 00 F2 1C 80 11 00 00 00 00 00 00 88 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:53]Read from MH i2c: E2 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: E2 17 00 F2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [09:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:53]wFMCommunicate OK [09:13:53]CreateOFDProtocolMessage done [09:13:53]OFDSenderStorePacket 186463 [09:13:53]StoreOFDPacket docnum=186463 [09:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD 38 07 01 D6 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D3 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D8 02 00 35 04 06 00 63 BF 3C 85 E1 5C 5F 6E BE 6A 3A 70 03 30 [09:13:53]CheckFolder [09:13:53]dirname=/storage/ofd_packets [09:13:53]CheckFolder done [09:13:53]ProducePacketName [09:13:53]name=ofd_packets/00186463 [09:13:53]NVStorageSaveData ofd_packets/00186463 [09:13:53]File name is /storage/ofd_packets/00186463 [09:13:53]Write 301 bytes [09:13:53]NVStorageSaveData done [09:13:53]OFDSenderStorePacket done [09:13:53]KKMCreateOFDPacket done [09:13:53]NVStorageSaveData kkm_last_timestamp [09:13:53]File name is /storage/kkm_last_timestamp [09:13:53]Write 4 bytes [09:13:53]NVStorageSaveData done [09:13:53]OFD Sender: Processing packet 186463 [packets to send 49, broken 48] [09:13:53]ProducePacketName [09:13:53]name=ofd_packets/00186463 [09:13:53]OFD Sender: To server: pG, [09:13:53]CommunicateWithHost lk.salyk.kg:30040 [09:13:53]ConnectInit lk.salyk.kg [09:13:53]ExternCall_PrintAddStr [09:13:53]wPrintStart [09:13:53]Write to MH i2c: 01 00 00 F3 1C 0F [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 F3 1C 00 00 00 00 00 FF 0F 24 [09:13:53]RasterBufferAndPrint [09:13:53]line Счет N : (1)411595 [09:13:53]line ИНН: 02508201610067 [09:13:53]line Контрольно-Кассовый Чек [09:13:53]line ПРОДАЖА [09:13:53]line ТРК (МРК, ГНК) : 32 [09:13:53]line Товар: 2710124130 [09:13:53]line Аи-92-К-2 [09:13:53]line 12.470 * 64.20 [09:13:53]line = 800.57 [09:13:53]line НДС 12% НСП 1% [09:13:53]line > о реализуемом товаре [09:13:53]line ОКРУГЛЕНИЕ: -0.57 [09:13:53]line ИТОГО: 800.00 [09:13:53]line Внесено: 800.00 [09:13:53]line СДАЧА: 0.00 [09:13:53]line НСП 1% : 7.08 [09:13:53]line НДС 12% : 85.02 [09:13:53]line Наличными: 800.00 [09:13:53]line Безнал.: 0.00 [09:13:53]line Место: АЗС № 92 "Партнер Нефть" [09:13:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:13:53]line СНО: Общий режим [09:13:53]line Чек 50 17.02.2025 09:13 [09:13:53]line Смена: 644 ФФД: 1.0 [09:13:53]line ЗНМ: 0300000118 [09:13:53]line РНМ: 0000000000091857 [09:13:53]line Версия ККМ: 001 [09:13:53]line ФМ: 0000000000871826 [09:13:53]line ФД: 186463 [09:13:53]line ФПД: 109673005310300 [09:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091355&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186463&fm=109673005310300&tin=02508201610067®Number=0000000000091857&sum=80000 [09:13:53]Connected sock=11 [09:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DD 38 07 01 D6 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 D3 FD B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D8 02 00 35 04 06 00 63 BF 3C 85 E1 5C 5F 6E BE 6A 3A 70 03 30 [09:13:53]written 0, free lines is 4095 [09:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DE 40 47 00 B9 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 5F D8 02 00 F4 03 04 00 2D A4 B2 67 B6 04 01 00 00 AD 2C 85 75 16 F5 3D 2C [09:13:53]CommunicateWithHost err = 0 [09:13:53]CheckOFDResponse [09:13:53]1017 (14) - 77093643461234 [09:13:53]1041 (16) - 0000000000871826 [09:13:53]1040 (4) - 186463 [09:13:53]1012 (4) - 17.02.2025 02:51 [09:13:53]1206 (1) - 0 [09:13:53]OFD Sender: Remove packet 186463 [09:13:53]ProducePacketName [09:13:53]name=ofd_packets/00186463 [09:13:53]NVStorageDeleteData [09:13:53]Write to MH i2c: 01 00 00 1E 1D 3B [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: 01 07 00 1E 1D 00 00 00 00 00 EF 0C 3D [09:13:53]RasterBufferAndPrint [09:13:53]line [09:13:53]line [09:13:53]line [09:13:53]line [09:13:53]line [09:13:53]written 0, free lines is 3317 [09:13:53]MH_Cut [09:13:53]Write to MH i2c: D1 01 00 25 1D 01 14 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: D1 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: D1 01 00 [09:13:53]MH_I2C_Read... [09:13:53]Read from MH i2c: D1 01 00 25 1D 00 13 [09:13:53]Write to MH i2c: 01 00 00 26 1D 43 [09:13:53]Write i2c OK [09:13:53]MH_I2C_Read... [09:13:54]OFD Sender: No OFD packet to send [09:13:54]*** Cut start [09:13:54]*** Partial cut [09:13:54]*** CUTSNS_PIN = 1 [09:13:54]*** CUTSNS_PIN = 0 [09:13:55]*** Brake cut motor [09:13:55]Read from MH i2c: 01 [09:13:55]MH_I2C_Read... [09:13:55]*** Stop cut motor [09:13:55]*** Cut end [09:13:55]Read from MH i2c: 01 07 00 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: 01 07 00 26 1D 00 00 00 00 00 FF 0F 58 [09:13:55]process_action close_receipt done [09:13:55]requested_data is exist [09:13:55]produce_requested_data [09:13:55]requested_item fm.sn is exist - process it [09:13:55]wFMCommunicate request_size=4 [09:13:55]MH_SAM_APDU [09:13:55]CAPDU: 80 11 00 00 [09:13:55]Write to MH i2c: E2 08 00 27 1D 80 11 00 00 00 00 00 00 BE [09:13:55]Write i2c OK [09:13:55]MH_I2C_Read... [09:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:55]Read from MH i2c: E2 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 17 00 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 17 00 27 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [09:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:13:55]wFMCommunicate OK [09:13:55]requested_item fd.num is exist - process it [09:13:55]SAM_PROTO_GetFieldsCounters [09:13:55]wFMCommunicate request_size=4 [09:13:55]MH_SAM_APDU [09:13:55]CAPDU: 80 13 00 00 [09:13:55]Write to MH i2c: E2 08 00 28 1D 80 13 00 00 00 00 00 00 C1 [09:13:55]Write i2c OK [09:13:55]MH_I2C_Read... [09:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:55]Read from MH i2c: E2 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 62 00 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 62 00 28 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 5F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:55]wFMCommunicate OK [09:13:55]SAM_PROTO_GetFieldsCounters done [09:13:55]requested_item shift.num is exist - process it [09:13:55]requested_item shift.opened is exist - process it [09:13:55]req_shift_opened [09:13:55]FM_GetShiftState [09:13:55]SAM_PROTO_GetShiftState [09:13:55]wFMCommunicate request_size=4 [09:13:55]MH_SAM_APDU [09:13:55]CAPDU: 80 13 01 00 [09:13:55]Write to MH i2c: E2 08 00 29 1D 80 13 01 00 00 00 00 00 C3 [09:13:55]Write i2c OK [09:13:55]MH_I2C_Read... [09:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:55]Read from MH i2c: E2 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 0E 00 [09:13:55]MH_I2C_Read... [09:13:55]Read from MH i2c: E2 0E 00 29 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E7 [09:13:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:13:55]wFMCommunicate OK [09:13:55]SAM_PROTO_GetShiftState done [09:13:55]FM_GetShiftState done [09:13:55]req_shift_opened done [09:13:55]requested_item shift.open_date is exist - process it [09:13:55]req_shift_open_date [09:13:55]req_shift_open_date done [09:13:55]produce_requested_data done [09:13:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186463,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:13:55]process_action_free close_receipt [09:13:55]json_value_free [09:13:55]json_value_free done [09:13:55]process_json_proto returns [09:13:55]Send response to host [09:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186463,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:13:55]free response buf [09:13:55]execute_script done [09:13:55]execute_script returns [09:13:55]free content buf [09:13:55]Sock 8.Close socket [09:13:55]Sock 8.Thread stoped [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:06]accept exits with 10 [09:19:06]New connection [09:19:06]New thread 3067358564 created [09:19:06]Thread 3067501924 joined [09:19:06]Waiting for new connection... [09:19:06] Sock 10.Parse request [09:19:06]Sock 10.Check first char [09:19:06]Sock 10.First char is OK [09:19:06]request: POST /json_proto HTTP/1.0 [09:19:06]Method: POST [09:19:06]URL: /json_proto [09:19:06]Method is POST - this is cgi request [09:19:06]url: /json_proto [09:19:06]query_string will be loaded in cgi processing [09:19:06]execute_cgi json_proto POST (null) [09:19:06]execute_cgi path=json_proto method=POST [09:19:06]POST find Content-Length [09:19:06]Host: 172.17.46.131:8080 [09:19:06]Content-Length: 677 [09:19:06]Content-Type: application/json [09:19:06] [09:19:06]POST finish read [09:19:06]Found Content-Length = 677 [09:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:06]execute_script... [09:19:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:06]POST & json_proto [09:19:06]process_json_proto [09:19:06]json parsed OK: [09:19:06]protocol is kg_v1.0 [09:19:06]action value=close_receipt [09:19:06]process_action close_receipt [09:19:06]cmd_close_receipt [09:19:06]MH_GetDate [09:19:06]Write to MH i2c: F0 00 00 2A 1D 36 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: F0 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: F0 09 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: F0 09 00 2A 1D 00 0D FF B2 67 7E 41 4F 65 D7 [09:19:06]GetLastDocTimeStamp 1739783635 [09:19:06]current date 1739783949 [09:19:06]FM_GetShiftState [09:19:06]SAM_PROTO_GetShiftState [09:19:06]wFMCommunicate request_size=4 [09:19:06]MH_SAM_APDU [09:19:06]CAPDU: 80 13 01 00 [09:19:06]Write to MH i2c: E2 08 00 2B 1D 80 13 01 00 00 00 00 00 C5 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:06]Read from MH i2c: E2 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 0E 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: E2 0E 00 2B 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E9 [09:19:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:19:06]wFMCommunicate OK [09:19:06]SAM_PROTO_GetShiftState done [09:19:06]FM_GetShiftState done [09:19:06]opened in 1739752571 [09:19:06]opened+sec_in_day 1739838971 [09:19:06]quantity*price = 50011 [09:19:06]sum+1 = 50013 [09:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 51 17.02.2025 09:19 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186464 ФПД: 213080725867125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186464&fm=213080725867125&tin=02508201610067®Number=0000000000091857&sum=50000 [09:19:07]StoreToDocumentArchive [09:19:07]shift 644 fd 186464 [09:19:07]save to /storage/0644/doc_00186464 [09:19:07]save last doc name /storage/0644/doc_00186464 to /storage/kkm_last_doc_name [09:19:07]save OK [09:19:07]Clear old archive folders... [09:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:07]tlvbuf is B6FDB2D0 [09:19:07]SAM_PROTO_ClearQueue [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 09 00 00 [09:19:07]Write to MH i2c: E2 08 00 38 1D 80 09 00 00 00 00 00 00 C7 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 38 1D 00 90 00 C9 [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_ClearQueue done [09:19:07]KKMCreateOFDPacket [09:19:07]OFDProtocolAddRootSTLVToBuf [09:19:07]FM_MakeSignedData [09:19:07]FM_MakeSignedData [09:19:07]SAM_PROTO_SignData [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 01 02 [09:19:07]Write to MH i2c: E2 08 00 39 1D 80 0D 01 02 00 00 00 00 CF [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 39 1D 00 90 00 CA [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=255 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0E FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D8 02 00 35 04 06 00 C1 [09:19:07]Write to MH i2c: E2 02 01 3A 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0E FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D8 02 00 35 04 06 00 C1 00 00 42 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 3A 1D 00 90 00 CB [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=10 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 02 02 05 CB B8 F9 4A 75 [09:19:07]Write to MH i2c: E2 0D 00 3B 1D 80 0D 02 02 05 00 CB B8 F9 4A 75 00 00 17 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 03 00 3B 1D 00 90 00 CC [09:19:07]RAPDU: 90 00 [09:19:07]wFMCommunicate OK [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 0D 03 02 [09:19:07]Write to MH i2c: E2 08 00 3C 1D 80 0D 03 02 00 00 00 00 D4 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 0B 00 3C 1D 00 3F 3A 79 C9 CA 2F B8 E0 90 00 21 [09:19:07]RAPDU: 3F 3A 79 C9 CA 2F B8 E0 90 00 [09:19:07]wFMCommunicate OK [09:19:07]SAM_PROTO_SignData done [09:19:07]FM_MakeSignedData done [09:19:07]CreateOFDProtocolMessage [09:19:07]wFMCommunicate request_size=4 [09:19:07]MH_SAM_APDU [09:19:07]CAPDU: 80 11 00 00 [09:19:07]Write to MH i2c: E2 08 00 3D 1D 80 11 00 00 00 00 00 00 D4 [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:07]Read from MH i2c: E2 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: E2 17 00 3D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [09:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:07]wFMCommunicate OK [09:19:07]CreateOFDProtocolMessage done [09:19:07]OFDSenderStorePacket 186464 [09:19:07]StoreOFDPacket docnum=186464 [09:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 F2 07 01 9B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0E FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D8 02 00 35 04 06 00 C1 CB B8 F9 4A 75 3F 3A 79 C9 CA 2F B8 E0 [09:19:07]CheckFolder [09:19:07]dirname=/storage/ofd_packets [09:19:07]CheckFolder done [09:19:07]ProducePacketName [09:19:07]name=ofd_packets/00186464 [09:19:07]NVStorageSaveData ofd_packets/00186464 [09:19:07]File name is /storage/ofd_packets/00186464 [09:19:07]Write 301 bytes [09:19:07]NVStorageSaveData done [09:19:07]OFDSenderStorePacket done [09:19:07]KKMCreateOFDPacket done [09:19:07]NVStorageSaveData kkm_last_timestamp [09:19:07]File name is /storage/kkm_last_timestamp [09:19:07]Write 4 bytes [09:19:07]NVStorageSaveData done [09:19:07]ExternCall_PrintAddStr [09:19:07]wPrintStart [09:19:07]Write to MH i2c: 01 00 00 3E 1D 5B [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 3E 1D 00 00 00 00 00 FF 0F 70 [09:19:07]RasterBufferAndPrint [09:19:07]line Счет N : (1)411596 [09:19:07]line ИНН: 02508201610067 [09:19:07]line Контрольно-Кассовый Чек [09:19:07]line ПРОДАЖА [09:19:07]line ТРК (МРК, ГНК) : 22 [09:19:07]line Товар: 2710124130 [09:19:07]line Аи-92-К-2 [09:19:07]line 7.790 * 64.20 [09:19:07]line = 500.12 [09:19:07]line НДС 12% НСП 1% [09:19:07]line > о реализуемом товаре [09:19:07]line ОКРУГЛЕНИЕ: -0.12 [09:19:07]line ИТОГО: 500.00 [09:19:07]line Внесено: 500.00 [09:19:07]line СДАЧА: 0.00 [09:19:07]line НСП 1% : 4.43 [09:19:07]line НДС 12% : 53.11 [09:19:07]line Наличными: 500.00 [09:19:07]line Безнал.: 0.00 [09:19:07]line Место: АЗС № 92 "Партнер Нефть" [09:19:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:19:07]line СНО: Общий режим [09:19:07]line Чек 51 17.02.2025 09:19 [09:19:07]line Смена: 644 ФФД: 1.0 [09:19:07]line ЗНМ: 0300000118 [09:19:07]line РНМ: 0000000000091857 [09:19:07]line Версия ККМ: 001 [09:19:07]line ФМ: 0000000000871826 [09:19:07]line ФД: 186464 [09:19:07]line ФПД: 213080725867125 [09:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T091910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186464&fm=213080725867125&tin=02508201610067®Number=0000000000091857&sum=50000 [09:19:08]OFD Sender: Processing packet 186464 [packets to send 49, broken 48] [09:19:08]ProducePacketName [09:19:08]name=ofd_packets/00186464 [09:19:08]OFD Sender: To server: pG, [09:19:08]CommunicateWithHost lk.salyk.kg:30040 [09:19:08]ConnectInit lk.salyk.kg [09:19:08]written 0, free lines is 4095 [09:19:08]Connected sock=9 [09:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 F2 07 01 9B 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 0E FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D8 02 00 35 04 06 00 C1 CB B8 F9 4A 75 3F 3A 79 C9 CA 2F B8 E0 [09:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 12 B0 47 00 C9 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 60 D8 02 00 F4 03 04 00 68 A5 B2 67 B6 04 01 00 00 7D EE 5D 25 95 2F 23 E3 [09:19:08]CommunicateWithHost err = 0 [09:19:08]CheckOFDResponse [09:19:08]1017 (14) - 77093643461234 [09:19:08]1041 (16) - 0000000000871826 [09:19:08]1040 (4) - 186464 [09:19:08]1012 (4) - 17.02.2025 02:56 [09:19:08]1206 (1) - 0 [09:19:08]OFD Sender: Remove packet 186464 [09:19:08]ProducePacketName [09:19:08]name=ofd_packets/00186464 [09:19:08]NVStorageDeleteData [09:19:08]Write to MH i2c: 01 00 00 69 1D 86 [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 E0 0C 79 [09:19:08]RasterBufferAndPrint [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]line [09:19:08]written 0, free lines is 3302 [09:19:08]MH_Cut [09:19:08]Write to MH i2c: D1 01 00 70 1D 01 5F [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 [09:19:08]MH_I2C_Read... [09:19:08]Read from MH i2c: D1 01 00 70 1D 00 5E [09:19:08]Write to MH i2c: 01 00 00 71 1D 8E [09:19:08]Write i2c OK [09:19:08]MH_I2C_Read... [09:19:09]OFD Sender: No OFD packet to send [09:19:09]*** Cut start [09:19:09]*** Partial cut [09:19:09]*** CUTSNS_PIN = 1 [09:19:09]*** CUTSNS_PIN = 0 [09:19:09]*** Brake cut motor [09:19:10]Read from MH i2c: 01 [09:19:10]MH_I2C_Read... [09:19:10]*** Stop cut motor [09:19:10]*** Cut end [09:19:10]Read from MH i2c: 01 07 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: 01 07 00 71 1D 00 00 00 00 00 FF 0F A3 [09:19:10]process_action close_receipt done [09:19:10]requested_data is exist [09:19:10]produce_requested_data [09:19:10]requested_item fm.sn is exist - process it [09:19:10]wFMCommunicate request_size=4 [09:19:10]MH_SAM_APDU [09:19:10]CAPDU: 80 11 00 00 [09:19:10]Write to MH i2c: E2 08 00 72 1D 80 11 00 00 00 00 00 00 09 [09:19:10]Write i2c OK [09:19:10]MH_I2C_Read... [09:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:10]Read from MH i2c: E2 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 17 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 17 00 72 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [09:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:19:10]wFMCommunicate OK [09:19:10]requested_item fd.num is exist - process it [09:19:10]SAM_PROTO_GetFieldsCounters [09:19:10]wFMCommunicate request_size=4 [09:19:10]MH_SAM_APDU [09:19:10]CAPDU: 80 13 00 00 [09:19:10]Write to MH i2c: E2 08 00 73 1D 80 13 00 00 00 00 00 00 0C [09:19:10]Write i2c OK [09:19:10]MH_I2C_Read... [09:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:10]Read from MH i2c: E2 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 62 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 62 00 73 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 60 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:10]wFMCommunicate OK [09:19:10]SAM_PROTO_GetFieldsCounters done [09:19:10]requested_item shift.num is exist - process it [09:19:10]requested_item shift.opened is exist - process it [09:19:10]req_shift_opened [09:19:10]FM_GetShiftState [09:19:10]SAM_PROTO_GetShiftState [09:19:10]wFMCommunicate request_size=4 [09:19:10]MH_SAM_APDU [09:19:10]CAPDU: 80 13 01 00 [09:19:10]Write to MH i2c: E2 08 00 74 1D 80 13 01 00 00 00 00 00 0E [09:19:10]Write i2c OK [09:19:10]MH_I2C_Read... [09:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:10]Read from MH i2c: E2 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 0E 00 [09:19:10]MH_I2C_Read... [09:19:10]Read from MH i2c: E2 0E 00 74 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 32 [09:19:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:19:10]wFMCommunicate OK [09:19:10]SAM_PROTO_GetShiftState done [09:19:10]FM_GetShiftState done [09:19:10]req_shift_opened done [09:19:10]requested_item shift.open_date is exist - process it [09:19:10]req_shift_open_date [09:19:10]req_shift_open_date done [09:19:10]produce_requested_data done [09:19:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186464,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:19:10]process_action_free close_receipt [09:19:10]json_value_free [09:19:10]json_value_free done [09:19:10]process_json_proto returns [09:19:10]Send response to host [09:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186464,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:19:10]free response buf [09:19:10]execute_script done [09:19:10]execute_script returns [09:19:10]free content buf [09:19:10]Sock 10.Close socket [09:19:10]Sock 10.Thread stoped [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:01]accept exits with 8 [09:20:01]New connection [09:20:01]New thread 3067501924 created [09:20:01]Thread 3067358564 joined [09:20:01]Waiting for new connection... [09:20:01] Sock 8.Parse request [09:20:01]Sock 8.Check first char [09:20:01]Sock 8.First char is OK [09:20:01]request: POST /json_proto HTTP/1.0 [09:20:01]Method: POST [09:20:01]URL: /json_proto [09:20:01]Method is POST - this is cgi request [09:20:01]url: /json_proto [09:20:01]query_string will be loaded in cgi processing [09:20:01]execute_cgi json_proto POST (null) [09:20:01]execute_cgi path=json_proto method=POST [09:20:01]POST find Content-Length [09:20:01]Host: 172.17.46.131:8080 [09:20:01]Content-Length: 682 [09:20:01]Content-Type: application/json [09:20:01] [09:20:01]POST finish read [09:20:01]Found Content-Length = 682 [09:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:01]execute_script... [09:20:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:20:01]POST & json_proto [09:20:01]process_json_proto [09:20:01]json parsed OK: [09:20:01]protocol is kg_v1.0 [09:20:01]action value=close_receipt [09:20:01]process_action close_receipt [09:20:01]cmd_close_receipt [09:20:01]MH_GetDate [09:20:01]Write to MH i2c: F0 00 00 75 1D 81 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 09 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: F0 09 00 75 1D 00 45 FF B2 67 7E 41 4F 65 5A [09:20:01]GetLastDocTimeStamp 1739783950 [09:20:01]current date 1739784005 [09:20:01]FM_GetShiftState [09:20:01]SAM_PROTO_GetShiftState [09:20:01]wFMCommunicate request_size=4 [09:20:01]MH_SAM_APDU [09:20:01]CAPDU: 80 13 01 00 [09:20:01]Write to MH i2c: E2 08 00 76 1D 80 13 01 00 00 00 00 00 10 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:01]Read from MH i2c: E2 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: E2 0E 00 76 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 34 [09:20:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:20:01]wFMCommunicate OK [09:20:01]SAM_PROTO_GetShiftState done [09:20:01]FM_GetShiftState done [09:20:01]opened in 1739752571 [09:20:01]opened+sec_in_day 1739838971 [09:20:01]quantity*price = 100012 [09:20:01]sum+1 = 100014 [09:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 52 17.02.2025 09:20 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186465 ФПД: 182025594897036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T092005&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186465&fm=182025594897036&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:02]StoreToDocumentArchive [09:20:02]shift 644 fd 186465 [09:20:02]save to /storage/0644/doc_00186465 [09:20:02]save last doc name /storage/0644/doc_00186465 to /storage/kkm_last_doc_name [09:20:02]save OK [09:20:02]Clear old archive folders... [09:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:02]tlvbuf is 020211D0 [09:20:02]SAM_PROTO_ClearQueue [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 09 00 00 [09:20:02]Write to MH i2c: E2 08 00 83 1D 80 09 00 00 00 00 00 00 12 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 83 1D 00 90 00 14 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]SAM_PROTO_ClearQueue done [09:20:02]KKMCreateOFDPacket [09:20:02]OFDProtocolAddRootSTLVToBuf [09:20:02]FM_MakeSignedData [09:20:02]FM_MakeSignedData [09:20:02]SAM_PROTO_SignData [09:20:02]wFMCommunicate request_size=4 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 0D 01 02 [09:20:02]Write to MH i2c: E2 08 00 84 1D 80 0D 01 02 00 00 00 00 1A [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:02]Read from MH i2c: E2 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: E2 03 00 84 1D 00 90 00 15 [09:20:02]RAPDU: 90 00 [09:20:02]wFMCommunicate OK [09:20:02]wFMCommunicate request_size=255 [09:20:02]MH_SAM_APDU [09:20:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D8 02 00 35 04 06 00 A5 [09:20:02]Write to MH i2c: E2 02 01 85 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D8 02 00 35 04 06 00 A5 00 00 82 [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:03]Read from MH i2c: E2 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 03 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 03 00 85 1D 00 90 00 16 [09:20:03]RAPDU: 90 00 [09:20:03]wFMCommunicate OK [09:20:03]wFMCommunicate request_size=10 [09:20:03]MH_SAM_APDU [09:20:03]CAPDU: 80 0D 02 02 05 8D 22 EC 82 8C [09:20:03]Write to MH i2c: E2 0D 00 86 1D 80 0D 02 02 05 00 8D 22 EC 82 8C 00 00 D0 [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:03]Read from MH i2c: E2 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 03 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 03 00 86 1D 00 90 00 17 [09:20:03]RAPDU: 90 00 [09:20:03]wFMCommunicate OK [09:20:03]wFMCommunicate request_size=4 [09:20:03]MH_SAM_APDU [09:20:03]CAPDU: 80 0D 03 02 [09:20:03]Write to MH i2c: E2 08 00 87 1D 80 0D 03 02 00 00 00 00 1F [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:03]Read from MH i2c: E2 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 0B 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 0B 00 87 1D 00 FD 30 70 C0 DB 21 D9 FE 90 00 50 [09:20:03]RAPDU: FD 30 70 C0 DB 21 D9 FE 90 00 [09:20:03]wFMCommunicate OK [09:20:03]SAM_PROTO_SignData done [09:20:03]FM_MakeSignedData done [09:20:03]CreateOFDProtocolMessage [09:20:03]wFMCommunicate request_size=4 [09:20:03]MH_SAM_APDU [09:20:03]CAPDU: 80 11 00 00 [09:20:03]Write to MH i2c: E2 08 00 88 1D 80 11 00 00 00 00 00 00 1F [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:03]Read from MH i2c: E2 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 17 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: E2 17 00 88 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [09:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:03]wFMCommunicate OK [09:20:03]CreateOFDProtocolMessage done [09:20:03]OFDSenderStorePacket 186465 [09:20:03]StoreOFDPacket docnum=186465 [09:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 70 07 01 E9 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D8 02 00 35 04 06 00 A5 8D 22 EC 82 8C FD 30 70 C0 DB 21 D9 FE [09:20:03]CheckFolder [09:20:03]dirname=/storage/ofd_packets [09:20:03]CheckFolder done [09:20:03]ProducePacketName [09:20:03]name=ofd_packets/00186465 [09:20:03]NVStorageSaveData ofd_packets/00186465 [09:20:03]File name is /storage/ofd_packets/00186465 [09:20:03]Write 301 bytes [09:20:03]NVStorageSaveData done [09:20:03]OFDSenderStorePacket done [09:20:03]KKMCreateOFDPacket done [09:20:03]NVStorageSaveData kkm_last_timestamp [09:20:03]File name is /storage/kkm_last_timestamp [09:20:03]Write 4 bytes [09:20:03]NVStorageSaveData done [09:20:03]ExternCall_PrintAddStr [09:20:03]wPrintStart [09:20:03]Write to MH i2c: 01 00 00 89 1D A6 [09:20:03]Write i2c OK [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 07 00 [09:20:03]MH_I2C_Read... [09:20:03]Read from MH i2c: 01 07 00 89 1D 00 00 00 00 00 FF 0F BB [09:20:03]RasterBufferAndPrint [09:20:03]line Счет N : (1)411597 [09:20:03]line ИНН: 02508201610067 [09:20:03]line Контрольно-Кассовый Чек [09:20:03]line ПРОДАЖА [09:20:03]line ТРК (МРК, ГНК) : 33 [09:20:03]line Товар: 2710124500 [09:20:03]line Аи-95-К-5 [09:20:03]line 13.910 * 71.90 [09:20:03]line = 1000.13 [09:20:03]line НДС 12% НСП 1% [09:20:03]line > о реализуемом товаре [09:20:03]line ОКРУГЛЕНИЕ: -0.13 [09:20:03]line ИТОГО: 1000.00 [09:20:03]line Внесено: 1000.00 [09:20:03]line СДАЧА: 0.00 [09:20:03]line НСП 1% : 8.85 [09:20:03]line НДС 12% : 106.21 [09:20:03]line Наличными: 1000.00 [09:20:03]line Безнал.: 0.00 [09:20:03]line Место: АЗС № 92 "Партнер Нефть" [09:20:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:20:03]line СНО: Общий режим [09:20:03]line Чек 52 17.02.2025 09:20 [09:20:03]line Смена: 644 ФФД: 1.0 [09:20:03]line ЗНМ: 0300000118 [09:20:03]line РНМ: 0000000000091857 [09:20:03]line Версия ККМ: 001 [09:20:03]line ФМ: 0000000000871826 [09:20:03]line ФД: 186465 [09:20:03]line ФПД: 182025594897036 [09:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T092005&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186465&fm=182025594897036&tin=02508201610067®Number=0000000000091857&sum=100000 [09:20:03]OFD Sender: Processing packet 186465 [packets to send 49, broken 48] [09:20:03]ProducePacketName [09:20:03]name=ofd_packets/00186465 [09:20:03]OFD Sender: To server: pG, [09:20:03]CommunicateWithHost lk.salyk.kg:30040 [09:20:03]ConnectInit lk.salyk.kg [09:20:03]written 0, free lines is 4095 [09:20:03]Connected sock=10 [09:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 70 07 01 E9 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 45 FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D8 02 00 35 04 06 00 A5 8D 22 EC 82 8C FD 30 70 C0 DB 21 D9 FE [09:20:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CD B8 47 00 07 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 61 D8 02 00 F4 03 04 00 A0 A5 B2 67 B6 04 01 00 00 E3 EA A5 2E 3F 36 57 39 [09:20:04]CommunicateWithHost err = 0 [09:20:04]CheckOFDResponse [09:20:04]1017 (14) - 77093643461234 [09:20:04]1041 (16) - 0000000000871826 [09:20:04]1040 (4) - 186465 [09:20:04]1012 (4) - 17.02.2025 02:57 [09:20:04]1206 (1) - 0 [09:20:04]OFD Sender: Remove packet 186465 [09:20:04]ProducePacketName [09:20:04]name=ofd_packets/00186465 [09:20:04]NVStorageDeleteData [09:20:04]Write to MH i2c: 01 00 00 B4 1D D1 [09:20:04]Write i2c OK [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: 01 [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: 01 07 00 [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: 01 07 00 B4 1D 00 00 00 00 00 FD 0C E1 [09:20:04]RasterBufferAndPrint [09:20:04]line [09:20:04]line [09:20:04]line [09:20:04]line [09:20:04]line [09:20:04]written 0, free lines is 3331 [09:20:04]MH_Cut [09:20:04]Write to MH i2c: D1 01 00 BB 1D 01 AA [09:20:04]Write i2c OK [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: D1 [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: D1 01 00 [09:20:04]MH_I2C_Read... [09:20:04]Read from MH i2c: D1 01 00 BB 1D 00 A9 [09:20:04]Write to MH i2c: 01 00 00 BC 1D D9 [09:20:04]Write i2c OK [09:20:04]MH_I2C_Read... [09:20:04]OFD Sender: No OFD packet to send [09:20:04]*** Cut start [09:20:04]*** Partial cut [09:20:04]*** CUTSNS_PIN = 1 [09:20:04]*** CUTSNS_PIN = 0 [09:20:05]*** Brake cut motor [09:20:05]Read from MH i2c: 01 [09:20:05]MH_I2C_Read... [09:20:05]*** Stop cut motor [09:20:05]*** Cut end [09:20:05]Read from MH i2c: 01 07 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: 01 07 00 BC 1D 00 00 00 00 00 FF 0F EE [09:20:05]process_action close_receipt done [09:20:05]requested_data is exist [09:20:05]produce_requested_data [09:20:05]requested_item fm.sn is exist - process it [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 11 00 00 [09:20:05]Write to MH i2c: E2 08 00 BD 1D 80 11 00 00 00 00 00 00 54 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 17 00 BD 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [09:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:20:05]wFMCommunicate OK [09:20:05]requested_item fd.num is exist - process it [09:20:05]SAM_PROTO_GetFieldsCounters [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 00 00 [09:20:05]Write to MH i2c: E2 08 00 BE 1D 80 13 00 00 00 00 00 00 57 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 62 00 BE 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 61 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetFieldsCounters done [09:20:05]requested_item shift.num is exist - process it [09:20:05]requested_item shift.opened is exist - process it [09:20:05]req_shift_opened [09:20:05]FM_GetShiftState [09:20:05]SAM_PROTO_GetShiftState [09:20:05]wFMCommunicate request_size=4 [09:20:05]MH_SAM_APDU [09:20:05]CAPDU: 80 13 01 00 [09:20:05]Write to MH i2c: E2 08 00 BF 1D 80 13 01 00 00 00 00 00 59 [09:20:05]Write i2c OK [09:20:05]MH_I2C_Read... [09:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:05]Read from MH i2c: E2 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 [09:20:05]MH_I2C_Read... [09:20:05]Read from MH i2c: E2 0E 00 BF 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7D [09:20:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:20:05]wFMCommunicate OK [09:20:05]SAM_PROTO_GetShiftState done [09:20:05]FM_GetShiftState done [09:20:05]req_shift_opened done [09:20:05]requested_item shift.open_date is exist - process it [09:20:05]req_shift_open_date [09:20:05]req_shift_open_date done [09:20:05]produce_requested_data done [09:20:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186465,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:20:05]process_action_free close_receipt [09:20:05]json_value_free [09:20:05]json_value_free done [09:20:05]process_json_proto returns [09:20:05]Send response to host [09:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186465,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:20:05]free response buf [09:20:05]execute_script done [09:20:05]execute_script returns [09:20:05]free content buf [09:20:05]Sock 8.Close socket [09:20:05]Sock 8.Thread stoped [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:05]accept exits with 9 [09:23:05]New connection [09:23:05]New thread 3067358564 created [09:23:05]Thread 3067501924 joined [09:23:05]Waiting for new connection... [09:23:05] Sock 9.Parse request [09:23:05]Sock 9.Check first char [09:23:05]Sock 9.First char is OK [09:23:05]request: POST /json_proto HTTP/1.0 [09:23:05]Method: POST [09:23:05]URL: /json_proto [09:23:05]Method is POST - this is cgi request [09:23:05]url: /json_proto [09:23:05]query_string will be loaded in cgi processing [09:23:05]execute_cgi json_proto POST (null) [09:23:05]execute_cgi path=json_proto method=POST [09:23:05]POST find Content-Length [09:23:05]Host: 172.17.46.131:8080 [09:23:05]Content-Length: 677 [09:23:05]Content-Type: application/json [09:23:05] [09:23:05]POST finish read [09:23:05]Found Content-Length = 677 [09:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:05]execute_script... [09:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:05]POST & json_proto [09:23:05]process_json_proto [09:23:05]json parsed OK: [09:23:05]protocol is kg_v1.0 [09:23:05]action value=close_receipt [09:23:05]process_action close_receipt [09:23:05]cmd_close_receipt [09:23:05]MH_GetDate [09:23:05]Write to MH i2c: F0 00 00 C0 1D CC [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: F0 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: F0 09 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: F0 09 00 C0 1D 00 FD FF B2 67 7E 41 4F 65 5D [09:23:05]GetLastDocTimeStamp 1739784005 [09:23:05]current date 1739784189 [09:23:05]FM_GetShiftState [09:23:05]SAM_PROTO_GetShiftState [09:23:05]wFMCommunicate request_size=4 [09:23:05]MH_SAM_APDU [09:23:05]CAPDU: 80 13 01 00 [09:23:05]Write to MH i2c: E2 08 00 C1 1D 80 13 01 00 00 00 00 00 5B [09:23:05]Write i2c OK [09:23:05]MH_I2C_Read... [09:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:05]Read from MH i2c: E2 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0E 00 [09:23:05]MH_I2C_Read... [09:23:05]Read from MH i2c: E2 0E 00 C1 1D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7F [09:23:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:23:05]wFMCommunicate OK [09:23:05]SAM_PROTO_GetShiftState done [09:23:05]FM_GetShiftState done [09:23:05]opened in 1739752571 [09:23:05]opened+sec_in_day 1739838971 [09:23:05]quantity*price = 50011 [09:23:05]sum+1 = 50013 [09:23:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 53 17.02.2025 09:23 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186466 ФПД: 205438104185879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T092309&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186466&fm=205438104185879&tin=02508201610067®Number=0000000000091857&sum=50000 [09:23:06]StoreToDocumentArchive [09:23:06]shift 644 fd 186466 [09:23:06]save to /storage/0644/doc_00186466 [09:23:06]save last doc name /storage/0644/doc_00186466 to /storage/kkm_last_doc_name [09:23:06]save OK [09:23:06]Clear old archive folders... [09:23:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:06]tlvbuf is B6FDE7A0 [09:23:06]SAM_PROTO_ClearQueue [09:23:06]wFMCommunicate request_size=4 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 09 00 00 [09:23:06]Write to MH i2c: E2 08 00 CE 1D 80 09 00 00 00 00 00 00 5D [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:06]Read from MH i2c: E2 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 CE 1D 00 90 00 5F [09:23:06]RAPDU: 90 00 [09:23:06]wFMCommunicate OK [09:23:06]SAM_PROTO_ClearQueue done [09:23:06]KKMCreateOFDPacket [09:23:06]OFDProtocolAddRootSTLVToBuf [09:23:06]FM_MakeSignedData [09:23:06]FM_MakeSignedData [09:23:06]SAM_PROTO_SignData [09:23:06]wFMCommunicate request_size=4 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 0D 01 02 [09:23:06]Write to MH i2c: E2 08 00 CF 1D 80 0D 01 02 00 00 00 00 65 [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:06]Read from MH i2c: E2 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 CF 1D 00 90 00 60 [09:23:06]RAPDU: 90 00 [09:23:06]wFMCommunicate OK [09:23:06]wFMCommunicate request_size=255 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FD FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D8 02 00 35 04 06 00 BA [09:23:06]Write to MH i2c: E2 02 01 D0 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FD FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D8 02 00 35 04 06 00 BA 00 00 C4 [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:06]Read from MH i2c: E2 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 D0 1D 00 90 00 61 [09:23:06]RAPDU: 90 00 [09:23:06]wFMCommunicate OK [09:23:06]wFMCommunicate request_size=10 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 0D 02 02 05 D8 49 39 2C 17 [09:23:06]Write to MH i2c: E2 0D 00 D1 1D 80 0D 02 02 05 00 D8 49 39 2C 17 00 00 0F [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:06]Read from MH i2c: E2 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 03 00 D1 1D 00 90 00 62 [09:23:06]RAPDU: 90 00 [09:23:06]wFMCommunicate OK [09:23:06]wFMCommunicate request_size=4 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 0D 03 02 [09:23:06]Write to MH i2c: E2 08 00 D2 1D 80 0D 03 02 00 00 00 00 6A [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:06]Read from MH i2c: E2 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 0B 00 [09:23:06]MH_I2C_Read... [09:23:06]Read from MH i2c: E2 0B 00 D2 1D 00 3D 9A 32 85 01 86 02 BC 90 00 3E [09:23:06]RAPDU: 3D 9A 32 85 01 86 02 BC 90 00 [09:23:06]wFMCommunicate OK [09:23:06]SAM_PROTO_SignData done [09:23:06]FM_MakeSignedData done [09:23:06]CreateOFDProtocolMessage [09:23:06]wFMCommunicate request_size=4 [09:23:06]MH_SAM_APDU [09:23:06]CAPDU: 80 11 00 00 [09:23:06]Write to MH i2c: E2 08 00 D3 1D 80 11 00 00 00 00 00 00 6A [09:23:06]Write i2c OK [09:23:06]MH_I2C_Read... [09:23:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:07]Read from MH i2c: E2 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: E2 17 00 D3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [09:23:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:23:07]wFMCommunicate OK [09:23:07]CreateOFDProtocolMessage done [09:23:07]OFDSenderStorePacket 186466 [09:23:07]StoreOFDPacket docnum=186466 [09:23:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A CB 07 01 C5 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FD FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D8 02 00 35 04 06 00 BA D8 49 39 2C 17 3D 9A 32 85 01 86 02 BC [09:23:07]CheckFolder [09:23:07]dirname=/storage/ofd_packets [09:23:07]CheckFolder done [09:23:07]ProducePacketName [09:23:07]name=ofd_packets/00186466 [09:23:07]NVStorageSaveData ofd_packets/00186466 [09:23:07]File name is /storage/ofd_packets/00186466 [09:23:07]Write 301 bytes [09:23:07]NVStorageSaveData done [09:23:07]OFDSenderStorePacket done [09:23:07]KKMCreateOFDPacket done [09:23:07]NVStorageSaveData kkm_last_timestamp [09:23:07]File name is /storage/kkm_last_timestamp [09:23:07]Write 4 bytes [09:23:07]NVStorageSaveData done [09:23:07]ExternCall_PrintAddStr [09:23:07]wPrintStart [09:23:07]Write to MH i2c: 01 00 00 D4 1D F1 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 D4 1D 00 00 00 00 00 FF 0F 06 [09:23:07]RasterBufferAndPrint [09:23:07]line Счет N : (1)411598 [09:23:07]line ИНН: 02508201610067 [09:23:07]line Контрольно-Кассовый Чек [09:23:07]line ПРОДАЖА [09:23:07]line ТРК (МРК, ГНК) : 22 [09:23:07]line Товар: 2710124130 [09:23:07]line Аи-92-К-2 [09:23:07]line 7.790 * 64.20 [09:23:07]line = 500.12 [09:23:07]line НДС 12% НСП 1% [09:23:07]line > о реализуемом товаре [09:23:07]line ОКРУГЛЕНИЕ: -0.12 [09:23:07]line ИТОГО: 500.00 [09:23:07]line Внесено: 500.00 [09:23:07]line СДАЧА: 0.00 [09:23:07]line НСП 1% : 4.43 [09:23:07]line НДС 12% : 53.11 [09:23:07]line Наличными: 500.00 [09:23:07]line Безнал.: 0.00 [09:23:07]line Место: АЗС № 92 "Партнер Нефть" [09:23:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:23:07]line СНО: Общий режим [09:23:07]line Чек 53 17.02.2025 09:23 [09:23:07]line Смена: 644 ФФД: 1.0 [09:23:07]line ЗНМ: 0300000118 [09:23:07]line РНМ: 0000000000091857 [09:23:07]line Версия ККМ: 001 [09:23:07]line ФМ: 0000000000871826 [09:23:07]line ФД: 186466 [09:23:07]line ФПД: 205438104185879 [09:23:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T092309&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186466&fm=205438104185879&tin=02508201610067®Number=0000000000091857&sum=50000 [09:23:07]OFD Sender: Processing packet 186466 [packets to send 49, broken 48] [09:23:07]ProducePacketName [09:23:07]name=ofd_packets/00186466 [09:23:07]OFD Sender: To server: pG, [09:23:07]CommunicateWithHost lk.salyk.kg:30040 [09:23:07]ConnectInit lk.salyk.kg [09:23:07]written 0, free lines is 4095 [09:23:07]Connected sock=10 [09:23:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A CB 07 01 C5 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 FD FF B2 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D8 02 00 35 04 06 00 BA D8 49 39 2C 17 3D 9A 32 85 01 86 02 BC [09:23:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CF 8A 47 00 0B AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 62 D8 02 00 F4 03 04 00 57 A6 B2 67 B6 04 01 00 00 F2 EC 97 29 C2 71 C6 33 [09:23:07]CommunicateWithHost err = 0 [09:23:07]CheckOFDResponse [09:23:07]1017 (14) - 77093643461234 [09:23:07]1041 (16) - 0000000000871826 [09:23:07]1040 (4) - 186466 [09:23:07]1012 (4) - 17.02.2025 03:00 [09:23:07]1206 (1) - 0 [09:23:07]OFD Sender: Remove packet 186466 [09:23:07]ProducePacketName [09:23:07]name=ofd_packets/00186466 [09:23:07]NVStorageDeleteData [09:23:07]Write to MH i2c: 01 00 00 FF 1D 1C [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 F1 0C 20 [09:23:07]RasterBufferAndPrint [09:23:07]line [09:23:07]line [09:23:07]line [09:23:07]line [09:23:07]line [09:23:07]written 0, free lines is 3319 [09:23:07]MH_Cut [09:23:07]Write to MH i2c: D1 01 00 06 1E 01 F6 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: D1 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: D1 01 00 [09:23:07]MH_I2C_Read... [09:23:07]Read from MH i2c: D1 01 00 06 1E 00 F5 [09:23:07]Write to MH i2c: 01 00 00 07 1E 25 [09:23:07]Write i2c OK [09:23:07]MH_I2C_Read... [09:23:08]OFD Sender: No OFD packet to send [09:23:08]*** Cut start [09:23:08]*** Partial cut [09:23:08]*** CUTSNS_PIN = 1 [09:23:08]*** CUTSNS_PIN = 0 [09:23:08]*** Brake cut motor [09:23:09]Read from MH i2c: 01 [09:23:09]MH_I2C_Read... [09:23:09]*** Stop cut motor [09:23:09]*** Cut end [09:23:09]Read from MH i2c: 01 07 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: 01 07 00 07 1E 00 00 00 00 00 FF 0F 3A [09:23:09]process_action close_receipt done [09:23:09]requested_data is exist [09:23:09]produce_requested_data [09:23:09]requested_item fm.sn is exist - process it [09:23:09]wFMCommunicate request_size=4 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 11 00 00 [09:23:09]Write to MH i2c: E2 08 00 08 1E 80 11 00 00 00 00 00 00 A0 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 17 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 17 00 08 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F3 [09:23:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:23:09]wFMCommunicate OK [09:23:09]requested_item fd.num is exist - process it [09:23:09]SAM_PROTO_GetFieldsCounters [09:23:09]wFMCommunicate request_size=4 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 13 00 00 [09:23:09]Write to MH i2c: E2 08 00 09 1E 80 13 00 00 00 00 00 00 A3 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 62 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 62 00 09 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:23:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 62 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:09]wFMCommunicate OK [09:23:09]SAM_PROTO_GetFieldsCounters done [09:23:09]requested_item shift.num is exist - process it [09:23:09]requested_item shift.opened is exist - process it [09:23:09]req_shift_opened [09:23:09]FM_GetShiftState [09:23:09]SAM_PROTO_GetShiftState [09:23:09]wFMCommunicate request_size=4 [09:23:09]MH_SAM_APDU [09:23:09]CAPDU: 80 13 01 00 [09:23:09]Write to MH i2c: E2 08 00 0A 1E 80 13 01 00 00 00 00 00 A5 [09:23:09]Write i2c OK [09:23:09]MH_I2C_Read... [09:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:09]Read from MH i2c: E2 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 0E 00 [09:23:09]MH_I2C_Read... [09:23:09]Read from MH i2c: E2 0E 00 0A 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C9 [09:23:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:23:09]wFMCommunicate OK [09:23:09]SAM_PROTO_GetShiftState done [09:23:09]FM_GetShiftState done [09:23:09]req_shift_opened done [09:23:09]requested_item shift.open_date is exist - process it [09:23:09]req_shift_open_date [09:23:09]req_shift_open_date done [09:23:09]produce_requested_data done [09:23:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186466,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:23:09]process_action_free close_receipt [09:23:09]json_value_free [09:23:09]json_value_free done [09:23:09]process_json_proto returns [09:23:09]Send response to host [09:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186466,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:23:09]free response buf [09:23:09]execute_script done [09:23:09]execute_script returns [09:23:09]free content buf [09:23:09]Sock 9.Close socket [09:23:09]Sock 9.Thread stoped [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:38]OFD Sender: No OFD packet to send [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:56]accept exits with 8 [09:34:56]New connection [09:34:56]New thread 3067501924 created [09:34:56]Thread 3067358564 joined [09:34:56]Waiting for new connection... [09:34:56] Sock 8.Parse request [09:34:56]Sock 8.Check first char [09:34:56]Sock 8.First char is OK [09:34:56]request: POST /json_proto HTTP/1.0 [09:34:56]Method: POST [09:34:56]URL: /json_proto [09:34:56]Method is POST - this is cgi request [09:34:56]url: /json_proto [09:34:56]query_string will be loaded in cgi processing [09:34:56]execute_cgi json_proto POST (null) [09:34:56]execute_cgi path=json_proto method=POST [09:34:56]POST find Content-Length [09:34:56]Host: 172.17.46.131:8080 [09:34:56]Content-Length: 682 [09:34:56]Content-Type: application/json [09:34:56] [09:34:56]POST finish read [09:34:56]Found Content-Length = 682 [09:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:56]execute_script... [09:34: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)411599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:56]POST & json_proto [09:34:56]process_json_proto [09:34:56]json parsed OK: [09:34:56]protocol is kg_v1.0 [09:34:56]action value=close_receipt [09:34:56]process_action close_receipt [09:34:56]cmd_close_receipt [09:34:56]MH_GetDate [09:34:56]Write to MH i2c: F0 00 00 0B 1E 18 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 09 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: F0 09 00 0B 1E 00 C4 02 B3 67 7E 41 4F 65 74 [09:34:56]GetLastDocTimeStamp 1739784189 [09:34:56]current date 1739784900 [09:34:56]FM_GetShiftState [09:34:56]SAM_PROTO_GetShiftState [09:34:56]wFMCommunicate request_size=4 [09:34:56]MH_SAM_APDU [09:34:56]CAPDU: 80 13 01 00 [09:34:56]Write to MH i2c: E2 08 00 0C 1E 80 13 01 00 00 00 00 00 A7 [09:34:56]Write i2c OK [09:34:56]MH_I2C_Read... [09:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:56]Read from MH i2c: E2 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 [09:34:56]MH_I2C_Read... [09:34:56]Read from MH i2c: E2 0E 00 0C 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CB [09:34:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:34:56]wFMCommunicate OK [09:34:56]SAM_PROTO_GetShiftState done [09:34:56]FM_GetShiftState done [09:34:56]opened in 1739752571 [09:34:56]opened+sec_in_day 1739838971 [09:34:56]quantity*price = 150035 [09:34:56]sum+1 = 150036 [09:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 54 17.02.2025 09:35 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186467 ФПД: 82777700919260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T093500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186467&fm=82777700919260&tin=02508201610067®Number=0000000000091857&sum=150000 [09:34:57]StoreToDocumentArchive [09:34:57]shift 644 fd 186467 [09:34:57]save to /storage/0644/doc_00186467 [09:34:57]save last doc name /storage/0644/doc_00186467 to /storage/kkm_last_doc_name [09:34:57]save OK [09:34:57]Clear old archive folders... [09:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:57]tlvbuf is 01FC3960 [09:34:57]SAM_PROTO_ClearQueue [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 09 00 00 [09:34:57]Write to MH i2c: E2 08 00 19 1E 80 09 00 00 00 00 00 00 A9 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 19 1E 00 90 00 AB [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_ClearQueue done [09:34:57]KKMCreateOFDPacket [09:34:57]OFDProtocolAddRootSTLVToBuf [09:34:57]FM_MakeSignedData [09:34:57]FM_MakeSignedData [09:34:57]SAM_PROTO_SignData [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 0D 01 02 [09:34:57]Write to MH i2c: E2 08 00 1A 1E 80 0D 01 02 00 00 00 00 B1 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 03 00 1A 1E 00 90 00 AC [09:34:57]RAPDU: 90 00 [09:34:57]wFMCommunicate OK [09:34:57]wFMCommunicate request_size=255 [09:34:57]MH_SAM_APDU [09:34: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 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C4 02 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D8 02 00 35 04 06 00 4B [09:34:57]Write to MH i2c: E2 02 01 1B 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C4 02 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D8 02 00 35 04 06 00 4B 00 00 38 [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 1B 1E 00 90 00 AD [09:34:58]RAPDU: 90 00 [09:34:58]wFMCommunicate OK [09:34:58]wFMCommunicate request_size=10 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 0D 02 02 05 49 2F 75 67 DC [09:34:58]Write to MH i2c: E2 0D 00 1C 1E 80 0D 02 02 05 00 49 2F 75 67 DC 00 00 EE [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [09:34:58]RAPDU: 90 00 [09:34:58]wFMCommunicate OK [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 0D 03 02 [09:34:58]Write to MH i2c: E2 08 00 1D 1E 80 0D 03 02 00 00 00 00 B6 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0B 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 0B 00 1D 1E 00 25 07 7B 14 41 A6 6E 47 90 00 0E [09:34:58]RAPDU: 25 07 7B 14 41 A6 6E 47 90 00 [09:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_SignData done [09:34:58]FM_MakeSignedData done [09:34:58]CreateOFDProtocolMessage [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 11 00 00 [09:34:58]Write to MH i2c: E2 08 00 1E 1E 80 11 00 00 00 00 00 00 B6 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 17 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 17 00 1E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [09:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:34:58]wFMCommunicate OK [09:34:58]CreateOFDProtocolMessage done [09:34:58]OFDSenderStorePacket 186467 [09:34:58]StoreOFDPacket docnum=186467 [09:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 94 07 01 DD 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C4 02 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D8 02 00 35 04 06 00 4B 49 2F 75 67 DC 25 07 7B 14 41 A6 6E 47 [09:34:58]CheckFolder [09:34:58]dirname=/storage/ofd_packets [09:34:58]CheckFolder done [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00186467 [09:34:58]NVStorageSaveData ofd_packets/00186467 [09:34:58]File name is /storage/ofd_packets/00186467 [09:34:58]Write 301 bytes [09:34:58]NVStorageSaveData done [09:34:58]OFDSenderStorePacket done [09:34:58]KKMCreateOFDPacket done [09:34:58]NVStorageSaveData kkm_last_timestamp [09:34:58]File name is /storage/kkm_last_timestamp [09:34:58]Write 4 bytes [09:34:58]NVStorageSaveData done [09:34:58]ExternCall_PrintAddStr [09:34:58]wPrintStart [09:34:58]Write to MH i2c: 01 00 00 1F 1E 3D [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 07 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: 01 07 00 1F 1E 00 00 00 00 00 FF 0F 52 [09:34:58]RasterBufferAndPrint [09:34:58]line Счет N : (1)411599 [09:34:58]line ИНН: 02508201610067 [09:34:58]line Контрольно-Кассовый Чек [09:34:58]line ПРОДАЖА [09:34:58]line ТРК (МРК, ГНК) : 22 [09:34:58]line Товар: 2710124130 [09:34:58]line Аи-92-К-2 [09:34:58]line 23.370 * 64.20 [09:34:58]line = 1500.35 [09:34:58]line НДС 12% НСП 1% [09:34:58]line > о реализуемом товаре [09:34:58]line ОКРУГЛЕНИЕ: -0.35 [09:34:58]line ИТОГО: 1500.00 [09:34:58]line Внесено: 1500.00 [09:34:58]line СДАЧА: 0.00 [09:34:58]line НСП 1% : 13.28 [09:34:58]line НДС 12% : 159.33 [09:34:58]line Наличными: 1500.00 [09:34:58]line Безнал.: 0.00 [09:34:58]line Место: АЗС № 92 "Партнер Нефть" [09:34:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:34:58]line СНО: Общий режим [09:34:58]line Чек 54 17.02.2025 09:35 [09:34:58]line Смена: 644 ФФД: 1.0 [09:34:58]line ЗНМ: 0300000118 [09:34:58]line РНМ: 0000000000091857 [09:34:58]line Версия ККМ: 001 [09:34:58]line ФМ: 0000000000871826 [09:34:58]line ФД: 186467 [09:34:58]line ФПД: 82777700919260 [09:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T093500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186467&fm=82777700919260&tin=02508201610067®Number=0000000000091857&sum=150000 [09:34:58]OFD Sender: Processing packet 186467 [packets to send 49, broken 48] [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00186467 [09:34:58]OFD Sender: To server: pG, [09:34:58]CommunicateWithHost lk.salyk.kg:30040 [09:34:58]ConnectInit lk.salyk.kg [09:34:58]written 0, free lines is 4095 [09:34:58]Connected sock=10 [09:34:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 94 07 01 DD 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C4 02 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D8 02 00 35 04 06 00 4B 49 2F 75 67 DC 25 07 7B 14 41 A6 6E 47 [09:34:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9B DE 47 00 BF 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 63 D8 02 00 F4 03 04 00 1F A9 B2 67 B6 04 01 00 00 F7 A0 C4 C2 C8 1A A9 05 [09:34:58]CommunicateWithHost err = 0 [09:34:58]CheckOFDResponse [09:34:58]1017 (14) - 77093643461234 [09:34:58]1041 (16) - 0000000000871826 [09:34:58]1040 (4) - 186467 [09:34:58]1012 (4) - 17.02.2025 03:12 [09:34:58]1206 (1) - 0 [09:34:58]OFD Sender: Remove packet 186467 [09:34:58]ProducePacketName [09:34:58]name=ofd_packets/00186467 [09:34:58]NVStorageDeleteData [09:34:59]Write to MH i2c: 01 00 00 4A 1E 68 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 F9 0C 74 [09:34:59]RasterBufferAndPrint [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]written 0, free lines is 3329 [09:34:59]MH_Cut [09:34:59]Write to MH i2c: D1 01 00 51 1E 01 41 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 01 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 01 00 51 1E 00 40 [09:34:59]Write to MH i2c: 01 00 00 52 1E 70 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]OFD Sender: No OFD packet to send [09:34:59]*** Cut start [09:34:59]*** Partial cut [09:34:59]*** CUTSNS_PIN = 1 [09:34:59]*** CUTSNS_PIN = 0 [09:35:00]*** Brake cut motor [09:35:00]Read from MH i2c: 01 [09:35:00]MH_I2C_Read... [09:35:00]*** Stop cut motor [09:35:00]Read from MH i2c: 01 07 00 [09:35:00]MH_I2C_Read... [09:35:00]*** Cut end [09:35:00]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 FF 0F 85 [09:35:00]process_action close_receipt done [09:35:00]requested_data is exist [09:35:00]produce_requested_data [09:35:00]requested_item fm.sn is exist - process it [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 11 00 00 [09:35:00]Write to MH i2c: E2 08 00 53 1E 80 11 00 00 00 00 00 00 EB [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 17 00 53 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [09:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:35:00]wFMCommunicate OK [09:35:00]requested_item fd.num is exist - process it [09:35:00]SAM_PROTO_GetFieldsCounters [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 13 00 00 [09:35:00]Write to MH i2c: E2 08 00 54 1E 80 13 00 00 00 00 00 00 EE [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 62 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 62 00 54 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [09:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 63 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_GetFieldsCounters done [09:35:00]requested_item shift.num is exist - process it [09:35:00]requested_item shift.opened is exist - process it [09:35:00]req_shift_opened [09:35:00]FM_GetShiftState [09:35:00]SAM_PROTO_GetShiftState [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 13 01 00 [09:35:00]Write to MH i2c: E2 08 00 55 1E 80 13 01 00 00 00 00 00 F0 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0E 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 0E 00 55 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 14 [09:35:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:35:00]wFMCommunicate OK [09:35:00]SAM_PROTO_GetShiftState done [09:35:00]FM_GetShiftState done [09:35:00]req_shift_opened done [09:35:00]requested_item shift.open_date is exist - process it [09:35:00]req_shift_open_date [09:35:00]req_shift_open_date done [09:35:00]produce_requested_data done [09:35:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186467,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:35:00]process_action_free close_receipt [09:35:00]json_value_free [09:35:00]json_value_free done [09:35:00]process_json_proto returns [09:35:00]Send response to host [09:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186467,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:35:00]free response buf [09:35:00]execute_script done [09:35:00]execute_script returns [09:35:00]free content buf [09:35:00]Sock 8.Close socket [09:35:00]Sock 8.Thread stoped [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:51]accept exits with 9 [09:38:51]New connection [09:38:51]New thread 3067358564 created [09:38:51]Thread 3067501924 joined [09:38:51]Waiting for new connection... [09:38:51] Sock 9.Parse request [09:38:51]Sock 9.Check first char [09:38:51]Sock 9.First char is OK [09:38:51]request: POST /json_proto HTTP/1.0 [09:38:51]Method: POST [09:38:51]URL: /json_proto [09:38:51]Method is POST - this is cgi request [09:38:51]url: /json_proto [09:38:51]query_string will be loaded in cgi processing [09:38:51]execute_cgi json_proto POST (null) [09:38:51]execute_cgi path=json_proto method=POST [09:38:51]POST find Content-Length [09:38:51]Host: 172.17.46.131:8080 [09:38:51]Content-Length: 678 [09:38:51]Content-Type: application/json [09:38:51] [09:38:51]POST finish read [09:38:51]Found Content-Length = 678 [09:38:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:51]execute_script... [09:38:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 12.470, "sum" : 800.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:51]POST & json_proto [09:38:51]process_json_proto [09:38:51]json parsed OK: [09:38:51]protocol is kg_v1.0 [09:38:51]action value=close_receipt [09:38:51]process_action close_receipt [09:38:51]cmd_close_receipt [09:38:51]MH_GetDate [09:38:51]Write to MH i2c: F0 00 00 56 1E 63 [09:38:51]Write i2c OK [09:38:51]MH_I2C_Read... [09:38:51]Read from MH i2c: F0 [09:38:51]MH_I2C_Read... [09:38:51]Read from MH i2c: F0 09 00 [09:38:51]MH_I2C_Read... [09:38:51]Read from MH i2c: F0 09 00 56 1E 00 AF 03 B3 67 7E 41 4F 65 AB [09:38:51]GetLastDocTimeStamp 1739784900 [09:38:51]current date 1739785135 [09:38:51]FM_GetShiftState [09:38:51]SAM_PROTO_GetShiftState [09:38:51]wFMCommunicate request_size=4 [09:38:51]MH_SAM_APDU [09:38:51]CAPDU: 80 13 01 00 [09:38:51]Write to MH i2c: E2 08 00 57 1E 80 13 01 00 00 00 00 00 F2 [09:38:51]Write i2c OK [09:38:51]MH_I2C_Read... [09:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:51]Read from MH i2c: E2 [09:38:51]MH_I2C_Read... [09:38:51]Read from MH i2c: E2 0E 00 [09:38:51]MH_I2C_Read... [09:38:51]Read from MH i2c: E2 0E 00 57 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 16 [09:38:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:38:51]wFMCommunicate OK [09:38:51]SAM_PROTO_GetShiftState done [09:38:51]FM_GetShiftState done [09:38:51]opened in 1739752571 [09:38:51]opened+sec_in_day 1739838971 [09:38:51]quantity*price = 80057 [09:38:51]sum+1 = 80058 [09:38:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 55 17.02.2025 09:38 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186468 ФПД: 229798038000703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T093855&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186468&fm=229798038000703&tin=02508201610067®Number=0000000000091857&sum=80000 [09:38:52]StoreToDocumentArchive [09:38:52]shift 644 fd 186468 [09:38:52]save to /storage/0644/doc_00186468 [09:38:52]save last doc name /storage/0644/doc_00186468 to /storage/kkm_last_doc_name [09:38:52]save OK [09:38:52]Clear old archive folders... [09:38:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:52]tlvbuf is 02005A00 [09:38:52]SAM_PROTO_ClearQueue [09:38:52]wFMCommunicate request_size=4 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 09 00 00 [09:38:52]Write to MH i2c: E2 08 00 64 1E 80 09 00 00 00 00 00 00 F4 [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [09:38:52]RAPDU: 90 00 [09:38:52]wFMCommunicate OK [09:38:52]SAM_PROTO_ClearQueue done [09:38:52]KKMCreateOFDPacket [09:38:52]OFDProtocolAddRootSTLVToBuf [09:38:52]FM_MakeSignedData [09:38:52]FM_MakeSignedData [09:38:52]SAM_PROTO_SignData [09:38:52]wFMCommunicate request_size=4 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 0D 01 02 [09:38:52]Write to MH i2c: E2 08 00 65 1E 80 0D 01 02 00 00 00 00 FC [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [09:38:52]RAPDU: 90 00 [09:38:52]wFMCommunicate OK [09:38:52]wFMCommunicate request_size=255 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 AF 03 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D8 02 00 35 04 06 00 D1 [09:38:52]Write to MH i2c: E2 02 01 66 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 AF 03 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D8 02 00 35 04 06 00 D1 00 00 34 [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [09:38:52]RAPDU: 90 00 [09:38:52]wFMCommunicate OK [09:38:52]wFMCommunicate request_size=10 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 0D 02 02 05 00 06 6C D4 3F [09:38:52]Write to MH i2c: E2 0D 00 67 1E 80 0D 02 02 05 00 00 06 6C D4 3F 00 00 8E [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [09:38:52]RAPDU: 90 00 [09:38:52]wFMCommunicate OK [09:38:52]wFMCommunicate request_size=4 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 0D 03 02 [09:38:52]Write to MH i2c: E2 08 00 68 1E 80 0D 03 02 00 00 00 00 01 [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 0B 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 0B 00 68 1E 00 43 01 78 28 90 76 73 EE 90 00 4D [09:38:52]RAPDU: 43 01 78 28 90 76 73 EE 90 00 [09:38:52]wFMCommunicate OK [09:38:52]SAM_PROTO_SignData done [09:38:52]FM_MakeSignedData done [09:38:52]CreateOFDProtocolMessage [09:38:52]wFMCommunicate request_size=4 [09:38:52]MH_SAM_APDU [09:38:52]CAPDU: 80 11 00 00 [09:38:52]Write to MH i2c: E2 08 00 69 1E 80 11 00 00 00 00 00 00 01 [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:52]Read from MH i2c: E2 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 17 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: E2 17 00 69 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [09:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:52]wFMCommunicate OK [09:38:52]CreateOFDProtocolMessage done [09:38:52]OFDSenderStorePacket 186468 [09:38:52]StoreOFDPacket docnum=186468 [09:38:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 F4 07 01 E3 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 AF 03 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D8 02 00 35 04 06 00 D1 00 06 6C D4 3F 43 01 78 28 90 76 73 EE [09:38:52]CheckFolder [09:38:52]dirname=/storage/ofd_packets [09:38:52]CheckFolder done [09:38:52]ProducePacketName [09:38:52]name=ofd_packets/00186468 [09:38:52]NVStorageSaveData ofd_packets/00186468 [09:38:52]File name is /storage/ofd_packets/00186468 [09:38:52]Write 301 bytes [09:38:52]NVStorageSaveData done [09:38:52]OFDSenderStorePacket done [09:38:52]KKMCreateOFDPacket done [09:38:52]NVStorageSaveData kkm_last_timestamp [09:38:52]File name is /storage/kkm_last_timestamp [09:38:52]Write 4 bytes [09:38:52]NVStorageSaveData done [09:38:52]ExternCall_PrintAddStr [09:38:52]wPrintStart [09:38:52]Write to MH i2c: 01 00 00 6A 1E 88 [09:38:52]Write i2c OK [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: 01 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: 01 07 00 [09:38:52]MH_I2C_Read... [09:38:52]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 FF 0F 9D [09:38:52]RasterBufferAndPrint [09:38:52]line Счет N : (1)411600 [09:38:52]line ИНН: 02508201610067 [09:38:52]line Контрольно-Кассовый Чек [09:38:52]line ПРОДАЖА [09:38:52]line ТРК (МРК, ГНК) : 32 [09:38:52]line Товар: 2710124130 [09:38:52]line Аи-92-К-2 [09:38:52]line 12.470 * 64.20 [09:38:52]line = 800.57 [09:38:52]line НДС 12% НСП 1% [09:38:52]line > о реализуемом товаре [09:38:52]line ОКРУГЛЕНИЕ: -0.57 [09:38:52]line ИТОГО: 800.00 [09:38:52]line Внесено: 800.00 [09:38:52]line СДАЧА: 0.00 [09:38:52]line НСП 1% : 7.08 [09:38:52]line НДС 12% : 85.02 [09:38:52]line Наличными: 800.00 [09:38:52]line Безнал.: 0.00 [09:38:52]line Место: АЗС № 92 "Партнер Нефть" [09:38:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:38:52]line СНО: Общий режим [09:38:52]line Чек 55 17.02.2025 09:38 [09:38:52]line Смена: 644 ФФД: 1.0 [09:38:52]line ЗНМ: 0300000118 [09:38:52]line РНМ: 0000000000091857 [09:38:52]line Версия ККМ: 001 [09:38:52]line ФМ: 0000000000871826 [09:38:52]line ФД: 186468 [09:38:52]line ФПД: 229798038000703 [09:38:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T093855&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186468&fm=229798038000703&tin=02508201610067®Number=0000000000091857&sum=80000 [09:38:53]OFD Sender: Processing packet 186468 [packets to send 49, broken 48] [09:38:53]ProducePacketName [09:38:53]name=ofd_packets/00186468 [09:38:53]OFD Sender: To server: pG, [09:38:53]CommunicateWithHost lk.salyk.kg:30040 [09:38:53]ConnectInit lk.salyk.kg [09:38:53]written 0, free lines is 4095 [09:38:53]Connected sock=10 [09:38:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 F4 07 01 E3 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 AF 03 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D8 02 00 35 04 06 00 D1 00 06 6C D4 3F 43 01 78 28 90 76 73 EE [09:38:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 1D 47 00 7A 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 64 D8 02 00 F4 03 04 00 09 AA B2 67 B6 04 01 00 00 DB A9 65 8F 48 BB DF 4B [09:38:53]CommunicateWithHost err = 0 [09:38:53]CheckOFDResponse [09:38:53]1017 (14) - 77093643461234 [09:38:53]1041 (16) - 0000000000871826 [09:38:53]1040 (4) - 186468 [09:38:53]1012 (4) - 17.02.2025 03:16 [09:38:53]1206 (1) - 0 [09:38:53]OFD Sender: Remove packet 186468 [09:38:53]ProducePacketName [09:38:53]name=ofd_packets/00186468 [09:38:53]NVStorageDeleteData [09:38:53]Write to MH i2c: 01 00 00 95 1E B3 [09:38:53]Write i2c OK [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: 01 [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: 01 07 00 [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 00 0D C7 [09:38:53]RasterBufferAndPrint [09:38:53]line [09:38:53]line [09:38:53]line [09:38:53]line [09:38:53]line [09:38:53]written 0, free lines is 3334 [09:38:53]MH_Cut [09:38:53]Write to MH i2c: D1 01 00 9C 1E 01 8C [09:38:53]Write i2c OK [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: D1 [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: D1 01 00 [09:38:53]MH_I2C_Read... [09:38:53]Read from MH i2c: D1 01 00 9C 1E 00 8B [09:38:53]Write to MH i2c: 01 00 00 9D 1E BB [09:38:53]Write i2c OK [09:38:53]MH_I2C_Read... [09:38:54]OFD Sender: No OFD packet to send [09:38:54]*** Cut start [09:38:54]*** Partial cut [09:38:54]*** CUTSNS_PIN = 1 [09:38:54]*** CUTSNS_PIN = 0 [09:38:54]*** Brake cut motor [09:38:55]Read from MH i2c: 01 [09:38:55]MH_I2C_Read... [09:38:55]*** Stop cut motor [09:38:55]*** Cut end [09:38:55]Read from MH i2c: 01 07 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: 01 07 00 9D 1E 00 00 00 00 00 FF 0F D0 [09:38:55]process_action close_receipt done [09:38:55]requested_data is exist [09:38:55]produce_requested_data [09:38:55]requested_item fm.sn is exist - process it [09:38:55]wFMCommunicate request_size=4 [09:38:55]MH_SAM_APDU [09:38:55]CAPDU: 80 11 00 00 [09:38:55]Write to MH i2c: E2 08 00 9E 1E 80 11 00 00 00 00 00 00 36 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:55]Read from MH i2c: E2 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 17 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 17 00 9E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [09:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:38:55]wFMCommunicate OK [09:38:55]requested_item fd.num is exist - process it [09:38:55]SAM_PROTO_GetFieldsCounters [09:38:55]wFMCommunicate request_size=4 [09:38:55]MH_SAM_APDU [09:38:55]CAPDU: 80 13 00 00 [09:38:55]Write to MH i2c: E2 08 00 9F 1E 80 13 00 00 00 00 00 00 39 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:55]Read from MH i2c: E2 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 62 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 62 00 9F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [09:38:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 64 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:55]wFMCommunicate OK [09:38:55]SAM_PROTO_GetFieldsCounters done [09:38:55]requested_item shift.num is exist - process it [09:38:55]requested_item shift.opened is exist - process it [09:38:55]req_shift_opened [09:38:55]FM_GetShiftState [09:38:55]SAM_PROTO_GetShiftState [09:38:55]wFMCommunicate request_size=4 [09:38:55]MH_SAM_APDU [09:38:55]CAPDU: 80 13 01 00 [09:38:55]Write to MH i2c: E2 08 00 A0 1E 80 13 01 00 00 00 00 00 3B [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:55]Read from MH i2c: E2 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 A0 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5F [09:38:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:38:55]wFMCommunicate OK [09:38:55]SAM_PROTO_GetShiftState done [09:38:55]FM_GetShiftState done [09:38:55]req_shift_opened done [09:38:55]requested_item shift.open_date is exist - process it [09:38:55]req_shift_open_date [09:38:55]req_shift_open_date done [09:38:55]produce_requested_data done [09:38:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186468,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:38:55]process_action_free close_receipt [09:38:55]json_value_free [09:38:55]json_value_free done [09:38:55]process_json_proto returns [09:38:55]Send response to host [09:38:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186468,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:38:55]free response buf [09:38:55]execute_script done [09:38:55]execute_script returns [09:38:55]free content buf [09:38:55]Sock 9.Close socket [09:38:55]Sock 9.Thread stoped [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:56]accept exits with 8 [09:44:56]New connection [09:44:56]New thread 3067501924 created [09:44:56]Thread 3067358564 joined [09:44:56]Waiting for new connection... [09:44:56] Sock 8.Parse request [09:44:56]Sock 8.Check first char [09:44:56]Sock 8.First char is OK [09:44:56]request: POST /json_proto HTTP/1.0 [09:44:56]Method: POST [09:44:56]URL: /json_proto [09:44:56]Method is POST - this is cgi request [09:44:56]url: /json_proto [09:44:56]query_string will be loaded in cgi processing [09:44:56]execute_cgi json_proto POST (null) [09:44:56]execute_cgi path=json_proto method=POST [09:44:56]POST find Content-Length [09:44:56]Host: 172.17.46.131:8080 [09:44:56]Content-Length: 677 [09:44:56]Content-Type: application/json [09:44:56] [09:44:56]POST finish read [09:44:56]Found Content-Length = 677 [09:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:56]execute_script... [09:44: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)411602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:56]POST & json_proto [09:44:56]process_json_proto [09:44:56]json parsed OK: [09:44:56]protocol is kg_v1.0 [09:44:56]action value=close_receipt [09:44:56]process_action close_receipt [09:44:56]cmd_close_receipt [09:44:56]MH_GetDate [09:44:56]Write to MH i2c: F0 00 00 A1 1E AE [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: F0 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: F0 09 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: F0 09 00 A1 1E 00 1C 05 B3 67 7E 41 4F 65 65 [09:44:56]GetLastDocTimeStamp 1739785135 [09:44:56]current date 1739785500 [09:44:56]FM_GetShiftState [09:44:56]SAM_PROTO_GetShiftState [09:44:56]wFMCommunicate request_size=4 [09:44:56]MH_SAM_APDU [09:44:56]CAPDU: 80 13 01 00 [09:44:56]Write to MH i2c: E2 08 00 A2 1E 80 13 01 00 00 00 00 00 3D [09:44:56]Write i2c OK [09:44:56]MH_I2C_Read... [09:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:56]Read from MH i2c: E2 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0E 00 [09:44:56]MH_I2C_Read... [09:44:56]Read from MH i2c: E2 0E 00 A2 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 61 [09:44:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:44:56]wFMCommunicate OK [09:44:56]SAM_PROTO_GetShiftState done [09:44:56]FM_GetShiftState done [09:44:56]opened in 1739752571 [09:44:56]opened+sec_in_day 1739838971 [09:44:56]quantity*price = 50011 [09:44:56]sum+1 = 50013 [09:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 56 17.02.2025 09:45 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186469 ФПД: 112723778892172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186469&fm=112723778892172&tin=02508201610067®Number=0000000000091857&sum=50000 [09:44:57]StoreToDocumentArchive [09:44:57]shift 644 fd 186469 [09:44:57]save to /storage/0644/doc_00186469 [09:44:57]save last doc name /storage/0644/doc_00186469 to /storage/kkm_last_doc_name [09:44:57]save OK [09:44:57]Clear old archive folders... [09:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:57]tlvbuf is B6F60510 [09:44:57]SAM_PROTO_ClearQueue [09:44:57]wFMCommunicate request_size=4 [09:44:57]MH_SAM_APDU [09:44:57]CAPDU: 80 09 00 00 [09:44:57]Write to MH i2c: E2 08 00 AF 1E 80 09 00 00 00 00 00 00 3F [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:57]Read from MH i2c: E2 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: E2 03 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [09:44:57]RAPDU: 90 00 [09:44:57]wFMCommunicate OK [09:44:57]SAM_PROTO_ClearQueue done [09:44:57]KKMCreateOFDPacket [09:44:57]OFDProtocolAddRootSTLVToBuf [09:44:57]FM_MakeSignedData [09:44:57]FM_MakeSignedData [09:44:57]SAM_PROTO_SignData [09:44:57]wFMCommunicate request_size=4 [09:44:57]MH_SAM_APDU [09:44:57]CAPDU: 80 0D 01 02 [09:44:57]Write to MH i2c: E2 08 00 B0 1E 80 0D 01 02 00 00 00 00 47 [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:57]Read from MH i2c: E2 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: E2 03 00 [09:44:57]MH_I2C_Read... [09:44:57]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [09:44:57]RAPDU: 90 00 [09:44:57]wFMCommunicate OK [09:44:57]wFMCommunicate request_size=255 [09:44:57]MH_SAM_APDU [09:44: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1C 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D8 02 00 35 04 06 00 66 [09:44:57]Write to MH i2c: E2 02 01 B1 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1C 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D8 02 00 35 04 06 00 66 00 00 7E [09:44:57]Write i2c OK [09:44:57]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 03 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 03 00 B1 1E 00 90 00 43 [09:44:58]RAPDU: 90 00 [09:44:58]wFMCommunicate OK [09:44:58]wFMCommunicate request_size=10 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 0D 02 02 05 85 8C CC 71 8C [09:44:58]Write to MH i2c: E2 0D 00 B2 1E 80 0D 02 02 05 00 85 8C CC 71 8C 00 00 2E [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 03 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 03 00 B2 1E 00 90 00 44 [09:44:58]RAPDU: 90 00 [09:44:58]wFMCommunicate OK [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 0D 03 02 [09:44:58]Write to MH i2c: E2 08 00 B3 1E 80 0D 03 02 00 00 00 00 4C [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0B 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 0B 00 B3 1E 00 07 97 70 80 43 98 45 61 90 00 5C [09:44:58]RAPDU: 07 97 70 80 43 98 45 61 90 00 [09:44:58]wFMCommunicate OK [09:44:58]SAM_PROTO_SignData done [09:44:58]FM_MakeSignedData done [09:44:58]CreateOFDProtocolMessage [09:44:58]wFMCommunicate request_size=4 [09:44:58]MH_SAM_APDU [09:44:58]CAPDU: 80 11 00 00 [09:44:58]Write to MH i2c: E2 08 00 B4 1E 80 11 00 00 00 00 00 00 4C [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:58]Read from MH i2c: E2 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: E2 17 00 B4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [09:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:44:58]wFMCommunicate OK [09:44:58]CreateOFDProtocolMessage done [09:44:58]OFDSenderStorePacket 186469 [09:44:58]StoreOFDPacket docnum=186469 [09:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 A3 07 01 F5 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1C 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D8 02 00 35 04 06 00 66 85 8C CC 71 8C 07 97 70 80 43 98 45 61 [09:44:58]CheckFolder [09:44:58]dirname=/storage/ofd_packets [09:44:58]CheckFolder done [09:44:58]ProducePacketName [09:44:58]name=ofd_packets/00186469 [09:44:58]NVStorageSaveData ofd_packets/00186469 [09:44:58]File name is /storage/ofd_packets/00186469 [09:44:58]Write 301 bytes [09:44:58]NVStorageSaveData done [09:44:58]OFDSenderStorePacket done [09:44:58]KKMCreateOFDPacket done [09:44:58]NVStorageSaveData kkm_last_timestamp [09:44:58]File name is /storage/kkm_last_timestamp [09:44:58]Write 4 bytes [09:44:58]NVStorageSaveData done [09:44:58]ExternCall_PrintAddStr [09:44:58]wPrintStart [09:44:58]Write to MH i2c: 01 00 00 B5 1E D3 [09:44:58]Write i2c OK [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: 01 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: 01 07 00 [09:44:58]MH_I2C_Read... [09:44:58]Read from MH i2c: 01 07 00 B5 1E 00 00 00 00 00 FF 0F E8 [09:44:58]RasterBufferAndPrint [09:44:58]line Счет N : (1)411602 [09:44:58]line ИНН: 02508201610067 [09:44:58]line Контрольно-Кассовый Чек [09:44:58]line ПРОДАЖА [09:44:58]line ТРК (МРК, ГНК) : 42 [09:44:58]line Товар: 2710124130 [09:44:58]line Аи-92-К-2 [09:44:58]line 7.790 * 64.20 [09:44:58]line = 500.12 [09:44:58]line НДС 12% НСП 1% [09:44:58]line > о реализуемом товаре [09:44:58]line ОКРУГЛЕНИЕ: -0.12 [09:44:58]line ИТОГО: 500.00 [09:44:58]line Внесено: 500.00 [09:44:58]line СДАЧА: 0.00 [09:44:58]line НСП 1% : 4.43 [09:44:58]line НДС 12% : 53.11 [09:44:58]line Наличными: 500.00 [09:44:58]line Безнал.: 0.00 [09:44:58]line Место: АЗС № 92 "Партнер Нефть" [09:44:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:44:58]line СНО: Общий режим [09:44:58]line Чек 56 17.02.2025 09:45 [09:44:58]line Смена: 644 ФФД: 1.0 [09:44:58]line ЗНМ: 0300000118 [09:44:58]line РНМ: 0000000000091857 [09:44:58]line Версия ККМ: 001 [09:44:58]line ФМ: 0000000000871826 [09:44:58]line ФД: 186469 [09:44:58]line ФПД: 112723778892172 [09:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094500&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186469&fm=112723778892172&tin=02508201610067®Number=0000000000091857&sum=50000 [09:44:58]written 0, free lines is 4095 [09:44:58]OFD Sender: Processing packet 186469 [packets to send 49, broken 48] [09:44:58]ProducePacketName [09:44:58]name=ofd_packets/00186469 [09:44:58]OFD Sender: To server: pG, [09:44:58]CommunicateWithHost lk.salyk.kg:30040 [09:44:58]ConnectInit lk.salyk.kg [09:44:58]Connected sock=11 [09:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 A3 07 01 F5 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1C 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D8 02 00 35 04 06 00 66 85 8C CC 71 8C 07 97 70 80 43 98 45 61 [09:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1F 0A 47 00 E1 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 65 D8 02 00 F4 03 04 00 77 AB B2 67 B6 04 01 00 00 4F 88 C8 E6 41 A3 22 B8 [09:44:59]CommunicateWithHost err = 0 [09:44:59]CheckOFDResponse [09:44:59]1017 (14) - 77093643461234 [09:44:59]1041 (16) - 0000000000871826 [09:44:59]1040 (4) - 186469 [09:44:59]1012 (4) - 17.02.2025 03:22 [09:44:59]1206 (1) - 0 [09:44:59]OFD Sender: Remove packet 186469 [09:44:59]ProducePacketName [09:44:59]name=ofd_packets/00186469 [09:44:59]NVStorageDeleteData [09:44:59]Write to MH i2c: 01 00 00 E0 1E FE [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 07 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: 01 07 00 E0 1E 00 00 00 00 00 EA 0C FB [09:44:59]RasterBufferAndPrint [09:44:59]line [09:44:59]line [09:44:59]line [09:44:59]line [09:44:59]line [09:44:59]written 0, free lines is 3313 [09:44:59]MH_Cut [09:44:59]Write to MH i2c: D1 01 00 E7 1E 01 D7 [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: D1 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: D1 01 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: D1 01 00 E7 1E 00 D6 [09:44:59]Write to MH i2c: 01 00 00 E8 1E 06 [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]OFD Sender: No OFD packet to send [09:44:59]*** Cut start [09:44:59]*** Partial cut [09:44:59]*** CUTSNS_PIN = 1 [09:44:59]*** CUTSNS_PIN = 0 [09:45:00]*** Brake cut motor [09:45:00]Read from MH i2c: 01 [09:45:00]MH_I2C_Read... [09:45:00]*** Stop cut motor [09:45:00]*** Cut end [09:45:00]Read from MH i2c: 01 07 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: 01 07 00 E8 1E 00 00 00 00 00 FF 0F 1B [09:45:00]process_action close_receipt done [09:45:00]requested_data is exist [09:45:00]produce_requested_data [09:45:00]requested_item fm.sn is exist - process it [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 11 00 00 [09:45:00]Write to MH i2c: E2 08 00 E9 1E 80 11 00 00 00 00 00 00 81 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 17 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 17 00 E9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [09:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:00]wFMCommunicate OK [09:45:00]requested_item fd.num is exist - process it [09:45:00]SAM_PROTO_GetFieldsCounters [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 13 00 00 [09:45:00]Write to MH i2c: E2 08 00 EA 1E 80 13 00 00 00 00 00 00 84 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 62 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 62 00 EA 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 65 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_GetFieldsCounters done [09:45:00]requested_item shift.num is exist - process it [09:45:00]requested_item shift.opened is exist - process it [09:45:00]req_shift_opened [09:45:00]FM_GetShiftState [09:45:00]SAM_PROTO_GetShiftState [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 13 01 00 [09:45:00]Write to MH i2c: E2 08 00 EB 1E 80 13 01 00 00 00 00 00 86 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0E 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 0E 00 EB 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AA [09:45:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_GetShiftState done [09:45:00]FM_GetShiftState done [09:45:00]req_shift_opened done [09:45:00]requested_item shift.open_date is exist - process it [09:45:00]req_shift_open_date [09:45:00]req_shift_open_date done [09:45:00]produce_requested_data done [09:45:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186469,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:45:00]process_action_free close_receipt [09:45:00]json_value_free [09:45:00]json_value_free done [09:45:00]process_json_proto returns [09:45:00]Send response to host [09:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186469,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:45:00]free response buf [09:45:00]execute_script done [09:45:00]execute_script returns [09:45:00]free content buf [09:45:00]Sock 8.Close socket [09:45:00]Sock 8.Thread stoped [09:45:03]accept exits with 9 [09:45:03]New connection [09:45:03]New thread 3067358564 created [09:45:03]Thread 3067501924 joined [09:45:03]Waiting for new connection... [09:45:03] Sock 9.Parse request [09:45:03]Sock 9.Check first char [09:45:03]Sock 9.First char is OK [09:45:03]request: POST /json_proto HTTP/1.0 [09:45:03]Method: POST [09:45:03]URL: /json_proto [09:45:03]Method is POST - this is cgi request [09:45:03]url: /json_proto [09:45:03]query_string will be loaded in cgi processing [09:45:03]execute_cgi json_proto POST (null) [09:45:03]execute_cgi path=json_proto method=POST [09:45:03]POST find Content-Length [09:45:03]Host: 172.17.46.131:8080 [09:45:03]Content-Length: 682 [09:45:03]Content-Type: application/json [09:45:03] [09:45:03]POST finish read [09:45:03]Found Content-Length = 682 [09:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:03]execute_script... [09:45:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:03]POST & json_proto [09:45:03]process_json_proto [09:45:03]json parsed OK: [09:45:03]protocol is kg_v1.0 [09:45:03]action value=close_receipt [09:45:03]process_action close_receipt [09:45:03]cmd_close_receipt [09:45:03]MH_GetDate [09:45:03]Write to MH i2c: F0 00 00 EC 1E F9 [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: F0 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: F0 09 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: F0 09 00 EC 1E 00 23 05 B3 67 7E 41 4F 65 B7 [09:45:03]GetLastDocTimeStamp 1739785500 [09:45:03]current date 1739785507 [09:45:03]FM_GetShiftState [09:45:03]SAM_PROTO_GetShiftState [09:45:03]wFMCommunicate request_size=4 [09:45:03]MH_SAM_APDU [09:45:03]CAPDU: 80 13 01 00 [09:45:03]Write to MH i2c: E2 08 00 ED 1E 80 13 01 00 00 00 00 00 88 [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 ED 1E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AC [09:45:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:45:03]wFMCommunicate OK [09:45:03]SAM_PROTO_GetShiftState done [09:45:03]FM_GetShiftState done [09:45:03]opened in 1739752571 [09:45:03]opened+sec_in_day 1739838971 [09:45:03]quantity*price = 100023 [09:45:03]sum+1 = 100025 [09:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 57 17.02.2025 09:45 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186470 ФПД: 10529092990049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094507&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186470&fm=10529092990049&tin=02508201610067®Number=0000000000091857&sum=100000 [09:45:04]StoreToDocumentArchive [09:45:04]shift 644 fd 186470 [09:45:04]save to /storage/0644/doc_00186470 [09:45:04]save last doc name /storage/0644/doc_00186470 to /storage/kkm_last_doc_name [09:45:04]save OK [09:45:04]Clear old archive folders... [09:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:04]tlvbuf is 01FA1260 [09:45:04]SAM_PROTO_ClearQueue [09:45:04]wFMCommunicate request_size=4 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 09 00 00 [09:45:04]Write to MH i2c: E2 08 00 FA 1E 80 09 00 00 00 00 00 00 8A [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:04]Read from MH i2c: E2 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 03 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 03 00 FA 1E 00 90 00 8C [09:45:04]RAPDU: 90 00 [09:45:04]wFMCommunicate OK [09:45:04]SAM_PROTO_ClearQueue done [09:45:04]KKMCreateOFDPacket [09:45:04]OFDProtocolAddRootSTLVToBuf [09:45:04]FM_MakeSignedData [09:45:04]FM_MakeSignedData [09:45:04]SAM_PROTO_SignData [09:45:04]wFMCommunicate request_size=4 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 0D 01 02 [09:45:04]Write to MH i2c: E2 08 00 FB 1E 80 0D 01 02 00 00 00 00 92 [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:04]Read from MH i2c: E2 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 03 00 [09:45:04]MH_I2C_Read... [09:45:04]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [09:45:04]RAPDU: 90 00 [09:45:04]wFMCommunicate OK [09:45:04]wFMCommunicate request_size=255 [09:45:04]MH_SAM_APDU [09:45:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 23 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D8 02 00 35 04 06 00 09 [09:45:04]Write to MH i2c: E2 02 01 FC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 23 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D8 02 00 35 04 06 00 09 00 00 D9 [09:45:04]Write i2c OK [09:45:04]MH_I2C_Read... [09:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:05]Read from MH i2c: E2 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 03 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [09:45:05]RAPDU: 90 00 [09:45:05]wFMCommunicate OK [09:45:05]wFMCommunicate request_size=10 [09:45:05]MH_SAM_APDU [09:45:05]CAPDU: 80 0D 02 02 05 93 7E D8 F4 61 [09:45:05]Write to MH i2c: E2 0D 00 FD 1E 80 0D 02 02 05 00 93 7E D8 F4 61 00 00 DD [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:05]Read from MH i2c: E2 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 03 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [09:45:05]RAPDU: 90 00 [09:45:05]wFMCommunicate OK [09:45:05]wFMCommunicate request_size=4 [09:45:05]MH_SAM_APDU [09:45:05]CAPDU: 80 0D 03 02 [09:45:05]Write to MH i2c: E2 08 00 FE 1E 80 0D 03 02 00 00 00 00 97 [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:05]Read from MH i2c: E2 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 0B 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 0B 00 FE 1E 00 42 1D E7 CB 4D 3A 1A 25 90 00 6F [09:45:05]RAPDU: 42 1D E7 CB 4D 3A 1A 25 90 00 [09:45:05]wFMCommunicate OK [09:45:05]SAM_PROTO_SignData done [09:45:05]FM_MakeSignedData done [09:45:05]CreateOFDProtocolMessage [09:45:05]wFMCommunicate request_size=4 [09:45:05]MH_SAM_APDU [09:45:05]CAPDU: 80 11 00 00 [09:45:05]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:05]Read from MH i2c: E2 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 17 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [09:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:05]wFMCommunicate OK [09:45:05]CreateOFDProtocolMessage done [09:45:05]OFDSenderStorePacket 186470 [09:45:05]StoreOFDPacket docnum=186470 [09:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 ED CB 07 01 49 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 23 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D8 02 00 35 04 06 00 09 93 7E D8 F4 61 42 1D E7 CB 4D 3A 1A 25 [09:45:05]CheckFolder [09:45:05]dirname=/storage/ofd_packets [09:45:05]CheckFolder done [09:45:05]ProducePacketName [09:45:05]name=ofd_packets/00186470 [09:45:05]NVStorageSaveData ofd_packets/00186470 [09:45:05]File name is /storage/ofd_packets/00186470 [09:45:05]Write 301 bytes [09:45:05]NVStorageSaveData done [09:45:05]OFDSenderStorePacket done [09:45:05]KKMCreateOFDPacket done [09:45:05]NVStorageSaveData kkm_last_timestamp [09:45:05]File name is /storage/kkm_last_timestamp [09:45:05]Write 4 bytes [09:45:05]NVStorageSaveData done [09:45:05]ExternCall_PrintAddStr [09:45:05]wPrintStart [09:45:05]Write to MH i2c: 01 00 00 00 1F 1F [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 07 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 07 00 00 1F 00 00 00 00 00 FF 0F 34 [09:45:05]RasterBufferAndPrint [09:45:05]line Счет N : (1)411603 [09:45:05]line ИНН: 02508201610067 [09:45:05]line Контрольно-Кассовый Чек [09:45:05]line ПРОДАЖА [09:45:05]line ТРК (МРК, ГНК) : 22 [09:45:05]line Товар: 2710124130 [09:45:05]line Аи-92-К-2 [09:45:05]line 15.580 * 64.20 [09:45:05]line = 1000.24 [09:45:05]line НДС 12% НСП 1% [09:45:05]line > о реализуемом товаре [09:45:05]line ОКРУГЛЕНИЕ: -0.24 [09:45:05]line ИТОГО: 1000.00 [09:45:05]line Внесено: 1000.00 [09:45:05]line СДАЧА: 0.00 [09:45:05]line НСП 1% : 8.85 [09:45:05]line НДС 12% : 106.22 [09:45:05]line Наличными: 1000.00 [09:45:05]line Безнал.: 0.00 [09:45:05]line Место: АЗС № 92 "Партнер Нефть" [09:45:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:45:05]line СНО: Общий режим [09:45:05]line Чек 57 17.02.2025 09:45 [09:45:05]line Смена: 644 ФФД: 1.0 [09:45:05]line ЗНМ: 0300000118 [09:45:05]line РНМ: 0000000000091857 [09:45:05]line Версия ККМ: 001 [09:45:05]line ФМ: 0000000000871826 [09:45:05]line ФД: 186470 [09:45:05]line ФПД: 10529092990049 [09:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094507&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186470&fm=10529092990049&tin=02508201610067®Number=0000000000091857&sum=100000 [09:45:05]written 0, free lines is 4095 [09:45:05]OFD Sender: Processing packet 186470 [packets to send 49, broken 48] [09:45:05]ProducePacketName [09:45:05]name=ofd_packets/00186470 [09:45:05]OFD Sender: To server: pG, [09:45:05]CommunicateWithHost lk.salyk.kg:30040 [09:45:05]ConnectInit lk.salyk.kg [09:45:05]Connected sock=10 [09:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 ED CB 07 01 49 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 23 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D8 02 00 35 04 06 00 09 93 7E D8 F4 61 42 1D E7 CB 4D 3A 1A 25 [09:45:05]Write to MH i2c: 01 00 00 2B 1F 4A [09:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 64 03 47 00 73 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 66 D8 02 00 F4 03 04 00 7D AB B2 67 B6 04 01 00 00 6F A8 DA A8 53 C6 DD 7F [09:45:05]CommunicateWithHost err = 0 [09:45:05]CheckOFDResponse [09:45:05]1017 (14) - 77093643461234 [09:45:05]1041 (16) - 0000000000871826 [09:45:05]1040 (4) - 186470 [09:45:05]1012 (4) - 17.02.2025 03:22 [09:45:05]1206 (1) - 0 [09:45:05]OFD Sender: Remove packet 186470 [09:45:05]ProducePacketName [09:45:05]name=ofd_packets/00186470 [09:45:05]NVStorageDeleteData [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 07 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: 01 07 00 2B 1F 00 00 00 00 00 FD 0C 5A [09:45:05]RasterBufferAndPrint [09:45:05]line [09:45:05]line [09:45:05]line [09:45:05]line [09:45:05]line [09:45:05]written 0, free lines is 3363 [09:45:05]MH_Cut [09:45:05]Write to MH i2c: D1 01 00 32 1F 01 23 [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: D1 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: D1 01 00 [09:45:05]MH_I2C_Read... [09:45:05]Read from MH i2c: D1 01 00 32 1F 00 22 [09:45:05]Write to MH i2c: 01 00 00 33 1F 52 [09:45:05]Write i2c OK [09:45:05]MH_I2C_Read... [09:45:06]OFD Sender: No OFD packet to send [09:45:06]*** Cut start [09:45:06]*** Partial cut [09:45:06]*** CUTSNS_PIN = 1 [09:45:06]*** CUTSNS_PIN = 0 [09:45:06]*** Brake cut motor [09:45:07]Read from MH i2c: 01 [09:45:07]MH_I2C_Read... [09:45:07]*** Stop cut motor [09:45:07]*** Cut end [09:45:07]Read from MH i2c: 01 07 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: 01 07 00 33 1F 00 00 00 00 00 FF 0F 67 [09:45:07]process_action close_receipt done [09:45:07]requested_data is exist [09:45:07]produce_requested_data [09:45:07]requested_item fm.sn is exist - process it [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 11 00 00 [09:45:07]Write to MH i2c: E2 08 00 34 1F 80 11 00 00 00 00 00 00 CD [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 17 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 17 00 34 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [09:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:07]wFMCommunicate OK [09:45:07]requested_item fd.num is exist - process it [09:45:07]SAM_PROTO_GetFieldsCounters [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 13 00 00 [09:45:07]Write to MH i2c: E2 08 00 35 1F 80 13 00 00 00 00 00 00 D0 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 62 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 62 00 35 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:45:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 66 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:07]wFMCommunicate OK [09:45:07]SAM_PROTO_GetFieldsCounters done [09:45:07]requested_item shift.num is exist - process it [09:45:07]requested_item shift.opened is exist - process it [09:45:07]req_shift_opened [09:45:07]FM_GetShiftState [09:45:07]SAM_PROTO_GetShiftState [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 13 01 00 [09:45:07]Write to MH i2c: E2 08 00 36 1F 80 13 01 00 00 00 00 00 D2 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 36 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F6 [09:45:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:45:07]wFMCommunicate OK [09:45:07]SAM_PROTO_GetShiftState done [09:45:07]FM_GetShiftState done [09:45:07]req_shift_opened done [09:45:07]requested_item shift.open_date is exist - process it [09:45:07]req_shift_open_date [09:45:07]req_shift_open_date done [09:45:07]produce_requested_data done [09:45:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186470,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:45:07]process_action_free close_receipt [09:45:07]json_value_free [09:45:07]json_value_free done [09:45:07]process_json_proto returns [09:45:07]Send response to host [09:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186470,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:45:07]free response buf [09:45:07]execute_script done [09:45:07]execute_script returns [09:45:07]free content buf [09:45:07]Sock 9.Close socket [09:45:07]Sock 9.Thread stoped [09:45:07]accept exits with 8 [09:45:07]New connection [09:45:07]New thread 3067501924 created [09:45:07]Thread 3067358564 joined [09:45:07]Waiting for new connection... [09:45:07] Sock 8.Parse request [09:45:07]Sock 8.Check first char [09:45:07]Sock 8.First char is OK [09:45:07]request: POST /json_proto HTTP/1.0 [09:45:07]Method: POST [09:45:07]URL: /json_proto [09:45:07]Method is POST - this is cgi request [09:45:07]url: /json_proto [09:45:07]query_string will be loaded in cgi processing [09:45:07]execute_cgi json_proto POST (null) [09:45:07]execute_cgi path=json_proto method=POST [09:45:07]POST find Content-Length [09:45:07]Host: 172.17.46.131:8080 [09:45:07]Content-Length: 803 [09:45:07]Content-Type: application/json [09:45:07] [09:45:07]POST finish read [09:45:07]Found Content-Length = 803 [09:45:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:07]execute_script... [09:45:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:45:07]POST & json_proto [09:45:07]process_json_proto [09:45:07]json parsed OK: [09:45:07]protocol is kg_v1.0 [09:45:07]action value=close_receipt [09:45:07]process_action close_receipt [09:45:07]cmd_close_receipt [09:45:07]MH_GetDate [09:45:07]Write to MH i2c: F0 00 00 37 1F 45 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: F0 09 00 37 1F 00 27 05 B3 67 7E 41 4F 65 07 [09:45:07]GetLastDocTimeStamp 1739785507 [09:45:07]current date 1739785511 [09:45:07]FM_GetShiftState [09:45:07]SAM_PROTO_GetShiftState [09:45:07]wFMCommunicate request_size=4 [09:45:07]MH_SAM_APDU [09:45:07]CAPDU: 80 13 01 00 [09:45:07]Write to MH i2c: E2 08 00 38 1F 80 13 01 00 00 00 00 00 D4 [09:45:07]Write i2c OK [09:45:07]MH_I2C_Read... [09:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:07]Read from MH i2c: E2 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 [09:45:07]MH_I2C_Read... [09:45:07]Read from MH i2c: E2 0E 00 38 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F8 [09:45:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:45:07]wFMCommunicate OK [09:45:07]SAM_PROTO_GetShiftState done [09:45:07]FM_GetShiftState done [09:45:07]opened in 1739752571 [09:45:07]opened+sec_in_day 1739838971 [09:45:07]quantity*price = 100023 [09:45:07]sum+1 = 100025 [09:45:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 58 17.02.2025 09:45 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186471 ФПД: 195561561459424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186471&fm=195561561459424&tin=02508201610067®Number=0000000000091857&sum=100024 [09:45:08]StoreToDocumentArchive [09:45:08]shift 644 fd 186471 [09:45:08]save to /storage/0644/doc_00186471 [09:45:08]save last doc name /storage/0644/doc_00186471 to /storage/kkm_last_doc_name [09:45:08]save OK [09:45:08]Clear old archive folders... [09:45:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:08]tlvbuf is 020868A0 [09:45:08]SAM_PROTO_ClearQueue [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 09 00 00 [09:45:08]Write to MH i2c: E2 08 00 45 1F 80 09 00 00 00 00 00 00 D6 [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 45 1F 00 90 00 D8 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]SAM_PROTO_ClearQueue done [09:45:08]KKMCreateOFDPacket [09:45:08]OFDProtocolAddRootSTLVToBuf [09:45:08]FM_MakeSignedData [09:45:08]FM_MakeSignedData [09:45:08]SAM_PROTO_SignData [09:45:08]wFMCommunicate request_size=4 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 0D 01 02 [09:45:08]Write to MH i2c: E2 08 00 46 1F 80 0D 01 02 00 00 00 00 DE [09:45:08]Write i2c OK [09:45:08]MH_I2C_Read... [09:45:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:08]Read from MH i2c: E2 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 [09:45:08]MH_I2C_Read... [09:45:08]Read from MH i2c: E2 03 00 46 1F 00 90 00 D9 [09:45:08]RAPDU: 90 00 [09:45:08]wFMCommunicate OK [09:45:08]wFMCommunicate request_size=255 [09:45:08]MH_SAM_APDU [09:45:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 27 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D8 02 00 35 04 06 00 B1 [09:45:09]Write to MH i2c: E2 02 01 47 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 27 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D8 02 00 35 04 06 00 B1 00 00 03 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 47 1F 00 90 00 DA [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=10 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 02 02 05 DC B9 67 0A E0 [09:45:09]Write to MH i2c: E2 0D 00 48 1F 80 0D 02 02 05 00 DC B9 67 0A E0 00 00 D1 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:09]Read from MH i2c: E2 03 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 03 00 48 1F 00 90 00 DB [09:45:09]RAPDU: 90 00 [09:45:09]wFMCommunicate OK [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 0D 03 02 [09:45:09]Write to MH i2c: E2 08 00 49 1F 80 0D 03 02 00 00 00 00 E3 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 0B 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 0B 00 49 1F 00 86 D7 0B B0 F6 80 99 39 90 00 44 [09:45:09]RAPDU: 86 D7 0B B0 F6 80 99 39 90 00 [09:45:09]wFMCommunicate OK [09:45:09]SAM_PROTO_SignData done [09:45:09]FM_MakeSignedData done [09:45:09]CreateOFDProtocolMessage [09:45:09]wFMCommunicate request_size=4 [09:45:09]MH_SAM_APDU [09:45:09]CAPDU: 80 11 00 00 [09:45:09]Write to MH i2c: E2 08 00 4A 1F 80 11 00 00 00 00 00 00 E3 [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:09]Read from MH i2c: E2 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 17 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: E2 17 00 4A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [09:45:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:09]wFMCommunicate OK [09:45:09]CreateOFDProtocolMessage done [09:45:09]OFDSenderStorePacket 186471 [09:45:09]StoreOFDPacket docnum=186471 [09:45:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 92 07 01 DC 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 27 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D8 02 00 35 04 06 00 B1 DC B9 67 0A E0 86 D7 0B B0 F6 80 99 39 [09:45:09]CheckFolder [09:45:09]dirname=/storage/ofd_packets [09:45:09]CheckFolder done [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00186471 [09:45:09]NVStorageSaveData ofd_packets/00186471 [09:45:09]File name is /storage/ofd_packets/00186471 [09:45:09]Write 301 bytes [09:45:09]NVStorageSaveData done [09:45:09]OFDSenderStorePacket done [09:45:09]KKMCreateOFDPacket done [09:45:09]NVStorageSaveData kkm_last_timestamp [09:45:09]File name is /storage/kkm_last_timestamp [09:45:09]Write 4 bytes [09:45:09]NVStorageSaveData done [09:45:09]ExternCall_PrintAddStr [09:45:09]wPrintStart [09:45:09]Write to MH i2c: 01 00 00 4B 1F 6A [09:45:09]Write i2c OK [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 [09:45:09]MH_I2C_Read... [09:45:09]Read from MH i2c: 01 07 00 4B 1F 00 00 00 00 00 FF 0F 7F [09:45:09]RasterBufferAndPrint [09:45:09]line Счет N : (1)411601 [09:45:09]line ИНН: 02508201610067 [09:45:09]line Контрольно-Кассовый Чек [09:45:09]line ПРОДАЖА [09:45:09]line ТРК (МРК, ГНК) : 32 [09:45:09]line Товар: 2710124130 [09:45:09]line Аи-92-К-2 [09:45:09]line 15.580 * 64.20 [09:45:09]line = 1000.24 [09:45:09]line НДС 12% НСП 1% [09:45:09]line > о реализуемом товаре [09:45:09]line ИТОГО: 1000.24 [09:45:09]line НСП 1% : 8.85 [09:45:09]line НДС 12% : 106.22 [09:45:09]line Наличными: 0.00 [09:45:09]line Безнал.: 1000.24 [09:45:09]line Место: АЗС № 92 "Партнер Нефть" [09:45:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:45:09]line СНО: Общий режим [09:45:09]line Чек 58 17.02.2025 09:45 [09:45:09]line Смена: 644 ФФД: 1.0 [09:45:09]line ЗНМ: 0300000118 [09:45:09]line РНМ: 0000000000091857 [09:45:09]line Версия ККМ: 001 [09:45:09]line Платежная система: O! деньги [09:45:09]line ФМ: 0000000000871826 [09:45:09]line ФД: 186471 [09:45:09]line ФПД: 195561561459424 [09:45:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186471&fm=195561561459424&tin=02508201610067®Number=0000000000091857&sum=100024 [09:45:09]written 0, free lines is 4095 [09:45:09]OFD Sender: Processing packet 186471 [packets to send 49, broken 48] [09:45:09]ProducePacketName [09:45:09]name=ofd_packets/00186471 [09:45:09]OFD Sender: To server: pG, [09:45:09]CommunicateWithHost lk.salyk.kg:30040 [09:45:09]ConnectInit lk.salyk.kg [09:45:10]Write to MH i2c: 01 00 00 75 1F 94 [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 02 0D AA [09:45:10]RasterBufferAndPrint [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]line [09:45:10]written 0, free lines is 3345 [09:45:10]MH_Cut [09:45:10]Write to MH i2c: D1 01 00 7C 1F 01 6D [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 [09:45:10]MH_I2C_Read... [09:45:10]Read from MH i2c: D1 01 00 7C 1F 00 6C [09:45:10]Write to MH i2c: 01 00 00 7D 1F 9C [09:45:10]Write i2c OK [09:45:10]MH_I2C_Read... [09:45:10]Connected sock=11 [09:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 92 07 01 DC 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 27 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D8 02 00 35 04 06 00 B1 DC B9 67 0A E0 86 D7 0B B0 F6 80 99 39 [09:45:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 51 44 47 00 C9 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 67 D8 02 00 F4 03 04 00 82 AB B2 67 B6 04 01 00 00 A8 66 81 6E F7 32 D1 66 [09:45:10]CommunicateWithHost err = 0 [09:45:10]CheckOFDResponse [09:45:10]1017 (14) - 77093643461234 [09:45:10]1041 (16) - 0000000000871826 [09:45:10]1040 (4) - 186471 [09:45:10]1012 (4) - 17.02.2025 03:22 [09:45:10]1206 (1) - 0 [09:45:10]OFD Sender: Remove packet 186471 [09:45:10]ProducePacketName [09:45:10]name=ofd_packets/00186471 [09:45:10]NVStorageDeleteData [09:45:11]*** Cut start [09:45:11]*** Partial cut [09:45:11]*** CUTSNS_PIN = 1 [09:45:11]*** CUTSNS_PIN = 0 [09:45:11]OFD Sender: No OFD packet to send [09:45:11]*** Brake cut motor [09:45:11]Read from MH i2c: 01 [09:45:11]MH_I2C_Read... [09:45:11]*** Stop cut motor [09:45:11]*** Cut end [09:45:11]Read from MH i2c: 01 07 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: 01 07 00 7D 1F 00 00 00 00 00 FF 0F B1 [09:45:11]process_action close_receipt done [09:45:11]requested_data is exist [09:45:11]produce_requested_data [09:45:11]requested_item fm.sn is exist - process it [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 11 00 00 [09:45:11]Write to MH i2c: E2 08 00 7E 1F 80 11 00 00 00 00 00 00 17 [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 17 00 7E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6A [09:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:45:11]wFMCommunicate OK [09:45:11]requested_item fd.num is exist - process it [09:45:11]SAM_PROTO_GetFieldsCounters [09:45:11]wFMCommunicate request_size=4 [09:45:11]MH_SAM_APDU [09:45:11]CAPDU: 80 13 00 00 [09:45:11]Write to MH i2c: E2 08 00 7F 1F 80 13 00 00 00 00 00 00 1A [09:45:11]Write i2c OK [09:45:11]MH_I2C_Read... [09:45:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:11]Read from MH i2c: E2 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 [09:45:11]MH_I2C_Read... [09:45:11]Read from MH i2c: E2 62 00 7F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:45:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 67 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_GetFieldsCounters done [09:45:12]requested_item shift.num is exist - process it [09:45:12]requested_item shift.opened is exist - process it [09:45:12]req_shift_opened [09:45:12]FM_GetShiftState [09:45:12]SAM_PROTO_GetShiftState [09:45:12]wFMCommunicate request_size=4 [09:45:12]MH_SAM_APDU [09:45:12]CAPDU: 80 13 01 00 [09:45:12]Write to MH i2c: E2 08 00 80 1F 80 13 01 00 00 00 00 00 1C [09:45:12]Write i2c OK [09:45:12]MH_I2C_Read... [09:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:12]Read from MH i2c: E2 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 0E 00 [09:45:12]MH_I2C_Read... [09:45:12]Read from MH i2c: E2 0E 00 80 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 40 [09:45:12]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:45:12]wFMCommunicate OK [09:45:12]SAM_PROTO_GetShiftState done [09:45:12]FM_GetShiftState done [09:45:12]req_shift_opened done [09:45:12]requested_item shift.open_date is exist - process it [09:45:12]req_shift_open_date [09:45:12]req_shift_open_date done [09:45:12]produce_requested_data done [09:45:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186471,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:45:12]process_action_free close_receipt [09:45:12]json_value_free [09:45:12]json_value_free done [09:45:12]process_json_proto returns [09:45:12]Send response to host [09:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186471,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:45:12]free response buf [09:45:12]execute_script done [09:45:12]execute_script returns [09:45:12]free content buf [09:45:12]Sock 8.Close socket [09:45:12]Sock 8.Thread stoped [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:27]accept exits with 9 [09:48:27]New connection [09:48:27]New thread 3067358564 created [09:48:27]Thread 3067501924 joined [09:48:27]Waiting for new connection... [09:48:27] Sock 9.Parse request [09:48:27]Sock 9.Check first char [09:48:27]Sock 9.First char is OK [09:48:27]request: POST /json_proto HTTP/1.0 [09:48:27]Method: POST [09:48:27]URL: /json_proto [09:48:27]Method is POST - this is cgi request [09:48:27]url: /json_proto [09:48:27]query_string will be loaded in cgi processing [09:48:27]execute_cgi json_proto POST (null) [09:48:27]execute_cgi path=json_proto method=POST [09:48:27]POST find Content-Length [09:48:27]Host: 172.17.46.131:8080 [09:48:27]Content-Length: 682 [09:48:27]Content-Type: application/json [09:48:27] [09:48:27]POST finish read [09:48:27]Found Content-Length = 682 [09:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 21.810, "sum" : 1400.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:27]execute_script... [09:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 21.810, "sum" : 1400.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:27]POST & json_proto [09:48:27]process_json_proto [09:48:27]json parsed OK: [09:48:27]protocol is kg_v1.0 [09:48:27]action value=close_receipt [09:48:27]process_action close_receipt [09:48:27]cmd_close_receipt [09:48:27]MH_GetDate [09:48:27]Write to MH i2c: F0 00 00 81 1F 8F [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 09 00 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: F0 09 00 81 1F 00 EF 05 B3 67 7E 41 4F 65 19 [09:48:27]GetLastDocTimeStamp 1739785511 [09:48:27]current date 1739785711 [09:48:27]FM_GetShiftState [09:48:27]SAM_PROTO_GetShiftState [09:48:27]wFMCommunicate request_size=4 [09:48:27]MH_SAM_APDU [09:48:27]CAPDU: 80 13 01 00 [09:48:27]Write to MH i2c: E2 08 00 82 1F 80 13 01 00 00 00 00 00 1E [09:48:27]Write i2c OK [09:48:27]MH_I2C_Read... [09:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:27]Read from MH i2c: E2 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 0E 00 [09:48:27]MH_I2C_Read... [09:48:27]Read from MH i2c: E2 0E 00 82 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 42 [09:48:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:48:27]wFMCommunicate OK [09:48:27]SAM_PROTO_GetShiftState done [09:48:27]FM_GetShiftState done [09:48:27]opened in 1739752571 [09:48:27]opened+sec_in_day 1739838971 [09:48:27]quantity*price = 140020 [09:48:27]sum+1 = 140021 [09:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 59 17.02.2025 09:48 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186472 ФПД: 68474634181599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186472&fm=68474634181599&tin=02508201610067®Number=0000000000091857&sum=140000 [09:48:28]StoreToDocumentArchive [09:48:28]shift 644 fd 186472 [09:48:28]save to /storage/0644/doc_00186472 [09:48:28]save last doc name /storage/0644/doc_00186472 to /storage/kkm_last_doc_name [09:48:28]save OK [09:48:28]Clear old archive folders... [09:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:48:28]tlvbuf is B6F60AF0 [09:48:28]SAM_PROTO_ClearQueue [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 09 00 00 [09:48:28]Write to MH i2c: E2 08 00 8F 1F 80 09 00 00 00 00 00 00 20 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 8F 1F 00 90 00 22 [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]SAM_PROTO_ClearQueue done [09:48:28]KKMCreateOFDPacket [09:48:28]OFDProtocolAddRootSTLVToBuf [09:48:28]FM_MakeSignedData [09:48:28]FM_MakeSignedData [09:48:28]SAM_PROTO_SignData [09:48:28]wFMCommunicate request_size=4 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 01 02 [09:48:28]Write to MH i2c: E2 08 00 90 1F 80 0D 01 02 00 00 00 00 28 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:28]Read from MH i2c: E2 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 [09:48:28]MH_I2C_Read... [09:48:28]Read from MH i2c: E2 03 00 90 1F 00 90 00 23 [09:48:28]RAPDU: 90 00 [09:48:28]wFMCommunicate OK [09:48:28]wFMCommunicate request_size=255 [09:48:28]MH_SAM_APDU [09:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EF 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D8 02 00 35 04 06 00 3E [09:48:28]Write to MH i2c: E2 02 01 91 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EF 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D8 02 00 35 04 06 00 3E 00 00 81 [09:48:28]Write i2c OK [09:48:28]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 91 1F 00 90 00 24 [09:48:29]RAPDU: 90 00 [09:48:29]wFMCommunicate OK [09:48:29]wFMCommunicate request_size=10 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 0D 02 02 05 46 FE 3F 1B DF [09:48:29]Write to MH i2c: E2 0D 00 92 1F 80 0D 02 02 05 00 46 FE 3F 1B DF 00 00 B2 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 03 00 92 1F 00 90 00 25 [09:48:29]RAPDU: 90 00 [09:48:29]wFMCommunicate OK [09:48:29]wFMCommunicate request_size=4 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 0D 03 02 [09:48:29]Write to MH i2c: E2 08 00 93 1F 80 0D 03 02 00 00 00 00 2D [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 0B 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 0B 00 93 1F 00 8B 52 68 5B E2 0F 27 38 90 00 1E [09:48:29]RAPDU: 8B 52 68 5B E2 0F 27 38 90 00 [09:48:29]wFMCommunicate OK [09:48:29]SAM_PROTO_SignData done [09:48:29]FM_MakeSignedData done [09:48:29]CreateOFDProtocolMessage [09:48:29]wFMCommunicate request_size=4 [09:48:29]MH_SAM_APDU [09:48:29]CAPDU: 80 11 00 00 [09:48:29]Write to MH i2c: E2 08 00 94 1F 80 11 00 00 00 00 00 00 2D [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:29]Read from MH i2c: E2 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 17 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: E2 17 00 94 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 80 [09:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:48:29]wFMCommunicate OK [09:48:29]CreateOFDProtocolMessage done [09:48:29]OFDSenderStorePacket 186472 [09:48:29]StoreOFDPacket docnum=186472 [09:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 A9 07 01 2B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EF 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D8 02 00 35 04 06 00 3E 46 FE 3F 1B DF 8B 52 68 5B E2 0F 27 38 [09:48:29]CheckFolder [09:48:29]dirname=/storage/ofd_packets [09:48:29]CheckFolder done [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00186472 [09:48:29]NVStorageSaveData ofd_packets/00186472 [09:48:29]File name is /storage/ofd_packets/00186472 [09:48:29]Write 301 bytes [09:48:29]NVStorageSaveData done [09:48:29]OFDSenderStorePacket done [09:48:29]KKMCreateOFDPacket done [09:48:29]NVStorageSaveData kkm_last_timestamp [09:48:29]File name is /storage/kkm_last_timestamp [09:48:29]Write 4 bytes [09:48:29]NVStorageSaveData done [09:48:29]ExternCall_PrintAddStr [09:48:29]wPrintStart [09:48:29]Write to MH i2c: 01 00 00 95 1F B4 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 95 1F 00 00 00 00 00 FF 0F C9 [09:48:29]RasterBufferAndPrint [09:48:29]line Счет N : (1)411604 [09:48:29]line ИНН: 02508201610067 [09:48:29]line Контрольно-Кассовый Чек [09:48:29]line ПРОДАЖА [09:48:29]line ТРК (МРК, ГНК) : 22 [09:48:29]line Товар: 2710124130 [09:48:29]line Аи-92-К-2 [09:48:29]line 21.810 * 64.20 [09:48:29]line = 1400.20 [09:48:29]line НДС 12% НСП 1% [09:48:29]line > о реализуемом товаре [09:48:29]line ОКРУГЛЕНИЕ: -0.20 [09:48:29]line ИТОГО: 1400.00 [09:48:29]line Внесено: 1400.00 [09:48:29]line СДАЧА: 0.00 [09:48:29]line НСП 1% : 12.39 [09:48:29]line НДС 12% : 148.69 [09:48:29]line Наличными: 1400.00 [09:48:29]line Безнал.: 0.00 [09:48:29]line Место: АЗС № 92 "Партнер Нефть" [09:48:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:48:29]line СНО: Общий режим [09:48:29]line Чек 59 17.02.2025 09:48 [09:48:29]line Смена: 644 ФФД: 1.0 [09:48:29]line ЗНМ: 0300000118 [09:48:29]line РНМ: 0000000000091857 [09:48:29]line Версия ККМ: 001 [09:48:29]line ФМ: 0000000000871826 [09:48:29]line ФД: 186472 [09:48:29]line ФПД: 68474634181599 [09:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094831&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186472&fm=68474634181599&tin=02508201610067®Number=0000000000091857&sum=140000 [09:48:29]written 0, free lines is 4095 [09:48:29]OFD Sender: Processing packet 186472 [packets to send 49, broken 48] [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00186472 [09:48:29]OFD Sender: To server: pG, [09:48:29]CommunicateWithHost lk.salyk.kg:30040 [09:48:29]ConnectInit lk.salyk.kg [09:48:29]Connected sock=10 [09:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F7 A9 07 01 2B C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F4 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 EF 05 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D8 02 00 35 04 06 00 3E 46 FE 3F 1B DF 8B 52 68 5B E2 0F 27 38 [09:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 22 9D 47 00 F2 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 68 D8 02 00 F4 03 04 00 49 AC B2 67 B6 04 01 00 00 D8 5A 06 D7 90 D8 00 CD [09:48:29]CommunicateWithHost err = 0 [09:48:29]CheckOFDResponse [09:48:29]1017 (14) - 77093643461234 [09:48:29]1041 (16) - 0000000000871826 [09:48:29]1040 (4) - 186472 [09:48:29]1012 (4) - 17.02.2025 03:26 [09:48:29]1206 (1) - 0 [09:48:29]OFD Sender: Remove packet 186472 [09:48:29]ProducePacketName [09:48:29]name=ofd_packets/00186472 [09:48:29]NVStorageDeleteData [09:48:29]Write to MH i2c: 01 00 00 C0 1F DF [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: 01 07 00 C0 1F 00 00 00 00 00 F3 0C E5 [09:48:29]RasterBufferAndPrint [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]line [09:48:29]written 0, free lines is 3321 [09:48:29]MH_Cut [09:48:29]Write to MH i2c: D1 01 00 C7 1F 01 B8 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 [09:48:29]MH_I2C_Read... [09:48:29]Read from MH i2c: D1 01 00 C7 1F 00 B7 [09:48:29]Write to MH i2c: 01 00 00 C8 1F E7 [09:48:29]Write i2c OK [09:48:29]MH_I2C_Read... [09:48:30]OFD Sender: No OFD packet to send [09:48:30]*** Cut start [09:48:30]*** Partial cut [09:48:30]*** CUTSNS_PIN = 1 [09:48:30]*** CUTSNS_PIN = 0 [09:48:30]*** Brake cut motor [09:48:31]Read from MH i2c: 01 [09:48:31]MH_I2C_Read... [09:48:31]*** Stop cut motor [09:48:31]*** Cut end [09:48:31]Read from MH i2c: 01 07 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: 01 07 00 C8 1F 00 00 00 00 00 FF 0F FC [09:48:31]process_action close_receipt done [09:48:31]requested_data is exist [09:48:31]produce_requested_data [09:48:31]requested_item fm.sn is exist - process it [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 11 00 00 [09:48:31]Write to MH i2c: E2 08 00 C9 1F 80 11 00 00 00 00 00 00 62 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 17 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 17 00 C9 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [09:48:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:48:31]wFMCommunicate OK [09:48:31]requested_item fd.num is exist - process it [09:48:31]SAM_PROTO_GetFieldsCounters [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 13 00 00 [09:48:31]Write to MH i2c: E2 08 00 CA 1F 80 13 00 00 00 00 00 00 65 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 62 00 CA 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:48:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 68 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetFieldsCounters done [09:48:31]requested_item shift.num is exist - process it [09:48:31]requested_item shift.opened is exist - process it [09:48:31]req_shift_opened [09:48:31]FM_GetShiftState [09:48:31]SAM_PROTO_GetShiftState [09:48:31]wFMCommunicate request_size=4 [09:48:31]MH_SAM_APDU [09:48:31]CAPDU: 80 13 01 00 [09:48:31]Write to MH i2c: E2 08 00 CB 1F 80 13 01 00 00 00 00 00 67 [09:48:31]Write i2c OK [09:48:31]MH_I2C_Read... [09:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:31]Read from MH i2c: E2 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 [09:48:31]MH_I2C_Read... [09:48:31]Read from MH i2c: E2 0E 00 CB 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8B [09:48:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:48:31]wFMCommunicate OK [09:48:31]SAM_PROTO_GetShiftState done [09:48:31]FM_GetShiftState done [09:48:31]req_shift_opened done [09:48:31]requested_item shift.open_date is exist - process it [09:48:31]req_shift_open_date [09:48:31]req_shift_open_date done [09:48:31]produce_requested_data done [09:48:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186472,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:48:31]process_action_free close_receipt [09:48:31]json_value_free [09:48:31]json_value_free done [09:48:31]process_json_proto returns [09:48:31]Send response to host [09:48:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186472,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:48:31]free response buf [09:48:31]execute_script done [09:48:31]execute_script returns [09:48:31]free content buf [09:48:31]Sock 9.Close socket [09:48:31]Sock 9.Thread stoped [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:14]accept exits with 8 [09:49:14]New connection [09:49:14]New thread 3067501924 created [09:49:14]Thread 3067358564 joined [09:49:14]Waiting for new connection... [09:49:14] Sock 8.Parse request [09:49:14]Sock 8.Check first char [09:49:14]Sock 8.First char is OK [09:49:14]request: POST /json_proto HTTP/1.0 [09:49:14]Method: POST [09:49:14]URL: /json_proto [09:49:14]Method is POST - this is cgi request [09:49:14]url: /json_proto [09:49:14]query_string will be loaded in cgi processing [09:49:14]execute_cgi json_proto POST (null) [09:49:14]execute_cgi path=json_proto method=POST [09:49:14]POST find Content-Length [09:49:14]Host: 172.17.46.131:8080 [09:49:14]Content-Length: 801 [09:49:14]Content-Type: application/json [09:49:14] [09:49:14]POST finish read [09:49:14]Found Content-Length = 801 [09:49:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:14]execute_script... [09:49:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:14]POST & json_proto [09:49:14]process_json_proto [09:49:14]json parsed OK: [09:49:14]protocol is kg_v1.0 [09:49:14]action value=close_receipt [09:49:14]process_action close_receipt [09:49:14]cmd_close_receipt [09:49:14]MH_GetDate [09:49:14]Write to MH i2c: F0 00 00 CC 1F DA [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 09 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: F0 09 00 CC 1F 00 1E 06 B3 67 7E 41 4F 65 94 [09:49:14]GetLastDocTimeStamp 1739785711 [09:49:14]current date 1739785758 [09:49:14]FM_GetShiftState [09:49:14]SAM_PROTO_GetShiftState [09:49:14]wFMCommunicate request_size=4 [09:49:14]MH_SAM_APDU [09:49:14]CAPDU: 80 13 01 00 [09:49:14]Write to MH i2c: E2 08 00 CD 1F 80 13 01 00 00 00 00 00 69 [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:14]Read from MH i2c: E2 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 CD 1F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8D [09:49:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:49:14]wFMCommunicate OK [09:49:14]SAM_PROTO_GetShiftState done [09:49:14]FM_GetShiftState done [09:49:14]opened in 1739752571 [09:49:14]opened+sec_in_day 1739838971 [09:49:14]quantity*price = 70042 [09:49:14]sum+1 = 70043 [09:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.42 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.42 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 60 17.02.2025 09:49 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186473 ФПД: 208376007122198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186473&fm=208376007122198&tin=02508201610067®Number=0000000000091857&sum=70042 [09:49:15]StoreToDocumentArchive [09:49:15]shift 644 fd 186473 [09:49:15]save to /storage/0644/doc_00186473 [09:49:15]save last doc name /storage/0644/doc_00186473 to /storage/kkm_last_doc_name [09:49:15]save OK [09:49:15]Clear old archive folders... [09:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:15]tlvbuf is B6F47EF0 [09:49:15]SAM_PROTO_ClearQueue [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 09 00 00 [09:49:15]Write to MH i2c: E2 08 00 DA 1F 80 09 00 00 00 00 00 00 6B [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 DA 1F 00 90 00 6D [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]SAM_PROTO_ClearQueue done [09:49:15]KKMCreateOFDPacket [09:49:15]OFDProtocolAddRootSTLVToBuf [09:49:15]FM_MakeSignedData [09:49:15]FM_MakeSignedData [09:49:15]SAM_PROTO_SignData [09:49:15]wFMCommunicate request_size=4 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 01 02 [09:49:15]Write to MH i2c: E2 08 00 DB 1F 80 0D 01 02 00 00 00 00 73 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:15]Read from MH i2c: E2 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 [09:49:15]MH_I2C_Read... [09:49:15]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [09:49:15]RAPDU: 90 00 [09:49:15]wFMCommunicate OK [09:49:15]wFMCommunicate request_size=255 [09:49:15]MH_SAM_APDU [09:49:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 06 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D8 02 00 35 04 06 00 BD [09:49:15]Write to MH i2c: E2 02 01 DC 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 06 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D8 02 00 35 04 06 00 BD 00 00 11 [09:49:15]Write i2c OK [09:49:15]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [09:49:16]RAPDU: 90 00 [09:49:16]wFMCommunicate OK [09:49:16]wFMCommunicate request_size=10 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 0D 02 02 05 84 51 E2 5D 16 [09:49:16]Write to MH i2c: E2 0D 00 DD 1F 80 0D 02 02 05 00 84 51 E2 5D 16 00 00 AA [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [09:49:16]RAPDU: 90 00 [09:49:16]wFMCommunicate OK [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 0D 03 02 [09:49:16]Write to MH i2c: E2 08 00 DE 1F 80 0D 03 02 00 00 00 00 78 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0B 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 0B 00 DE 1F 00 12 C7 BE 09 A2 DA E3 5B 90 00 D3 [09:49:16]RAPDU: 12 C7 BE 09 A2 DA E3 5B 90 00 [09:49:16]wFMCommunicate OK [09:49:16]SAM_PROTO_SignData done [09:49:16]FM_MakeSignedData done [09:49:16]CreateOFDProtocolMessage [09:49:16]wFMCommunicate request_size=4 [09:49:16]MH_SAM_APDU [09:49:16]CAPDU: 80 11 00 00 [09:49:16]Write to MH i2c: E2 08 00 DF 1F 80 11 00 00 00 00 00 00 78 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:16]Read from MH i2c: E2 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: E2 17 00 DF 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [09:49:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:49:16]wFMCommunicate OK [09:49:16]CreateOFDProtocolMessage done [09:49:16]OFDSenderStorePacket 186473 [09:49:16]StoreOFDPacket docnum=186473 [09:49:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F 2B 07 01 38 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 06 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D8 02 00 35 04 06 00 BD 84 51 E2 5D 16 12 C7 BE 09 A2 DA E3 5B [09:49:16]CheckFolder [09:49:16]dirname=/storage/ofd_packets [09:49:16]CheckFolder done [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00186473 [09:49:16]NVStorageSaveData ofd_packets/00186473 [09:49:16]File name is /storage/ofd_packets/00186473 [09:49:16]Write 301 bytes [09:49:16]NVStorageSaveData done [09:49:16]OFDSenderStorePacket done [09:49:16]KKMCreateOFDPacket done [09:49:16]NVStorageSaveData kkm_last_timestamp [09:49:16]File name is /storage/kkm_last_timestamp [09:49:16]Write 4 bytes [09:49:16]NVStorageSaveData done [09:49:16]ExternCall_PrintAddStr [09:49:16]wPrintStart [09:49:16]Write to MH i2c: 01 00 00 E0 1F FF [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 E0 1F 00 00 00 00 00 FF 0F 14 [09:49:16]RasterBufferAndPrint [09:49:16]line Счет N : (1)411605 [09:49:16]line ИНН: 02508201610067 [09:49:16]line Контрольно-Кассовый Чек [09:49:16]line ПРОДАЖА [09:49:16]line ТРК (МРК, ГНК) : 42 [09:49:16]line Товар: 2710124130 [09:49:16]line Аи-92-К-2 [09:49:16]line 10.910 * 64.20 [09:49:16]line = 700.42 [09:49:16]line НДС 12% НСП 1% [09:49:16]line > о реализуемом товаре [09:49:16]line ИТОГО: 700.42 [09:49:16]line НСП 1% : 6.20 [09:49:16]line НДС 12% : 74.38 [09:49:16]line Наличными: 0.00 [09:49:16]line Безнал.: 700.42 [09:49:16]line Место: АЗС № 92 "Партнер Нефть" [09:49:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:49:16]line СНО: Общий режим [09:49:16]line Чек 60 17.02.2025 09:49 [09:49:16]line Смена: 644 ФФД: 1.0 [09:49:16]line ЗНМ: 0300000118 [09:49:16]line РНМ: 0000000000091857 [09:49:16]line Версия ККМ: 001 [09:49:16]line Платежная система: O! деньги [09:49:16]line ФМ: 0000000000871826 [09:49:16]line ФД: 186473 [09:49:16]line ФПД: 208376007122198 [09:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T094918&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186473&fm=208376007122198&tin=02508201610067®Number=0000000000091857&sum=70042 [09:49:16]written 0, free lines is 4095 [09:49:16]OFD Sender: Processing packet 186473 [packets to send 49, broken 48] [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00186473 [09:49:16]OFD Sender: To server: pG, [09:49:16]CommunicateWithHost lk.salyk.kg:30040 [09:49:16]ConnectInit lk.salyk.kg [09:49:16]Connected sock=10 [09:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8F 2B 07 01 38 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 1E 06 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D8 02 00 35 04 06 00 BD 84 51 E2 5D 16 12 C7 BE 09 A2 DA E3 5B [09:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 87 47 00 93 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 69 D8 02 00 F4 03 04 00 78 AC B2 67 B6 04 01 00 00 A0 5B 13 D7 3E E5 CC CA [09:49:16]CommunicateWithHost err = 0 [09:49:16]CheckOFDResponse [09:49:16]1017 (14) - 77093643461234 [09:49:16]1041 (16) - 0000000000871826 [09:49:16]1040 (4) - 186473 [09:49:16]1012 (4) - 17.02.2025 03:26 [09:49:16]1206 (1) - 0 [09:49:16]OFD Sender: Remove packet 186473 [09:49:16]ProducePacketName [09:49:16]name=ofd_packets/00186473 [09:49:16]NVStorageDeleteData [09:49:16]Write to MH i2c: 01 00 00 0A 20 2A [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: 01 07 00 0A 20 00 00 00 00 00 13 0D 51 [09:49:16]RasterBufferAndPrint [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]line [09:49:16]written 0, free lines is 3353 [09:49:16]MH_Cut [09:49:16]Write to MH i2c: D1 01 00 11 20 01 03 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: D1 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: D1 01 00 [09:49:16]MH_I2C_Read... [09:49:16]Read from MH i2c: D1 01 00 11 20 00 02 [09:49:16]Write to MH i2c: 01 00 00 12 20 32 [09:49:16]Write i2c OK [09:49:16]MH_I2C_Read... [09:49:17]OFD Sender: No OFD packet to send [09:49:17]*** Cut start [09:49:17]*** Partial cut [09:49:17]*** CUTSNS_PIN = 1 [09:49:17]*** CUTSNS_PIN = 0 [09:49:17]*** Brake cut motor [09:49:18]Read from MH i2c: 01 [09:49:18]MH_I2C_Read... [09:49:18]*** Stop cut motor [09:49:18]*** Cut end [09:49:18]Read from MH i2c: 01 07 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: 01 07 00 12 20 00 00 00 00 00 FF 0F 47 [09:49:18]process_action close_receipt done [09:49:18]requested_data is exist [09:49:18]produce_requested_data [09:49:18]requested_item fm.sn is exist - process it [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 11 00 00 [09:49:18]Write to MH i2c: E2 08 00 13 20 80 11 00 00 00 00 00 00 AD [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 17 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 17 00 13 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [09:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:49:18]wFMCommunicate OK [09:49:18]requested_item fd.num is exist - process it [09:49:18]SAM_PROTO_GetFieldsCounters [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 13 00 00 [09:49:18]Write to MH i2c: E2 08 00 14 20 80 13 00 00 00 00 00 00 B0 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 62 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 62 00 14 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 69 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_GetFieldsCounters done [09:49:18]requested_item shift.num is exist - process it [09:49:18]requested_item shift.opened is exist - process it [09:49:18]req_shift_opened [09:49:18]FM_GetShiftState [09:49:18]SAM_PROTO_GetShiftState [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 13 01 00 [09:49:18]Write to MH i2c: E2 08 00 15 20 80 13 01 00 00 00 00 00 B2 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0E 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0E 00 15 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D6 [09:49:18]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_GetShiftState done [09:49:18]FM_GetShiftState done [09:49:18]req_shift_opened done [09:49:18]requested_item shift.open_date is exist - process it [09:49:18]req_shift_open_date [09:49:18]req_shift_open_date done [09:49:18]produce_requested_data done [09:49:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186473,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:49:18]process_action_free close_receipt [09:49:18]json_value_free [09:49:18]json_value_free done [09:49:18]process_json_proto returns [09:49:18]Send response to host [09:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186473,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:49:18]free response buf [09:49:18]execute_script done [09:49:18]execute_script returns [09:49:18]free content buf [09:49:18]Sock 8.Close socket [09:49:18]Sock 8.Thread stoped [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:04]accept exits with 9 [09:53:04]New connection [09:53:04]New thread 3067358564 created [09:53:04]Thread 3067501924 joined [09:53:04]Waiting for new connection... [09:53:04] Sock 9.Parse request [09:53:04]Sock 9.Check first char [09:53:04]Sock 9.First char is OK [09:53:04]request: POST /json_proto HTTP/1.0 [09:53:04]Method: POST [09:53:04]URL: /json_proto [09:53:04]Method is POST - this is cgi request [09:53:04]url: /json_proto [09:53:04]query_string will be loaded in cgi processing [09:53:04]execute_cgi json_proto POST (null) [09:53:04]execute_cgi path=json_proto method=POST [09:53:04]POST find Content-Length [09:53:04]Host: 172.17.46.131:8080 [09:53:04]Content-Length: 682 [09:53:04]Content-Type: application/json [09:53:04] [09:53:04]POST finish read [09:53:04]Found Content-Length = 682 [09:53:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:04]execute_script... [09:53:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:04]POST & json_proto [09:53:04]process_json_proto [09:53:04]json parsed OK: [09:53:04]protocol is kg_v1.0 [09:53:04]action value=close_receipt [09:53:04]process_action close_receipt [09:53:04]cmd_close_receipt [09:53:04]MH_GetDate [09:53:04]Write to MH i2c: F0 00 00 16 20 25 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: F0 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: F0 09 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: F0 09 00 16 20 00 04 07 B3 67 7E 41 4F 65 C6 [09:53:04]GetLastDocTimeStamp 1739785758 [09:53:04]current date 1739785988 [09:53:04]FM_GetShiftState [09:53:04]SAM_PROTO_GetShiftState [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 13 01 00 [09:53:04]Write to MH i2c: E2 08 00 17 20 80 13 01 00 00 00 00 00 B4 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0E 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0E 00 17 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D8 [09:53:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:53:04]wFMCommunicate OK [09:53:04]SAM_PROTO_GetShiftState done [09:53:04]FM_GetShiftState done [09:53:04]opened in 1739752571 [09:53:04]opened+sec_in_day 1739838971 [09:53:04]quantity*price = 120001 [09:53:04]sum+1 = 120002 [09:53:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 61 17.02.2025 09:53 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186474 ФПД: 165375733199321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186474&fm=165375733199321&tin=02508201610067®Number=0000000000091857&sum=120000 [09:53:05]StoreToDocumentArchive [09:53:05]shift 644 fd 186474 [09:53:05]save to /storage/0644/doc_00186474 [09:53:05]save last doc name /storage/0644/doc_00186474 to /storage/kkm_last_doc_name [09:53:05]save OK [09:53:05]Clear old archive folders... [09:53:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:05]tlvbuf is 0200EF70 [09:53:05]SAM_PROTO_ClearQueue [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 09 00 00 [09:53:05]Write to MH i2c: E2 08 00 24 20 80 09 00 00 00 00 00 00 B6 [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 03 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [09:53:05]RAPDU: 90 00 [09:53:05]wFMCommunicate OK [09:53:05]SAM_PROTO_ClearQueue done [09:53:05]KKMCreateOFDPacket [09:53:05]OFDProtocolAddRootSTLVToBuf [09:53:05]FM_MakeSignedData [09:53:05]FM_MakeSignedData [09:53:05]SAM_PROTO_SignData [09:53:05]wFMCommunicate request_size=4 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 0D 01 02 [09:53:05]Write to MH i2c: E2 08 00 25 20 80 0D 01 02 00 00 00 00 BE [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:05]Read from MH i2c: E2 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 03 00 [09:53:05]MH_I2C_Read... [09:53:05]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [09:53:05]RAPDU: 90 00 [09:53:05]wFMCommunicate OK [09:53:05]wFMCommunicate request_size=255 [09:53:05]MH_SAM_APDU [09:53:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 04 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D8 02 00 35 04 06 00 96 [09:53:05]Write to MH i2c: E2 02 01 26 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 04 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D8 02 00 35 04 06 00 96 00 00 1A [09:53:05]Write i2c OK [09:53:05]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [09:53:06]RAPDU: 90 00 [09:53:06]wFMCommunicate OK [09:53:06]wFMCommunicate request_size=10 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 0D 02 02 05 68 89 D4 F1 D9 [09:53:06]Write to MH i2c: E2 0D 00 27 20 80 0D 02 02 05 00 68 89 D4 F1 D9 00 00 5A [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [09:53:06]RAPDU: 90 00 [09:53:06]wFMCommunicate OK [09:53:06]wFMCommunicate request_size=4 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 0D 03 02 [09:53:06]Write to MH i2c: E2 08 00 28 20 80 0D 03 02 00 00 00 00 C3 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 0B 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 0B 00 28 20 00 30 D5 01 A6 63 1B EC 78 90 00 52 [09:53:06]RAPDU: 30 D5 01 A6 63 1B EC 78 90 00 [09:53:06]wFMCommunicate OK [09:53:06]SAM_PROTO_SignData done [09:53:06]FM_MakeSignedData done [09:53:06]CreateOFDProtocolMessage [09:53:06]wFMCommunicate request_size=4 [09:53:06]MH_SAM_APDU [09:53:06]CAPDU: 80 11 00 00 [09:53:06]Write to MH i2c: E2 08 00 29 20 80 11 00 00 00 00 00 00 C3 [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:06]Read from MH i2c: E2 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 17 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: E2 17 00 29 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [09:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:06]wFMCommunicate OK [09:53:06]CreateOFDProtocolMessage done [09:53:06]OFDSenderStorePacket 186474 [09:53:06]StoreOFDPacket docnum=186474 [09:53:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1F 06 07 01 FA 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 04 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D8 02 00 35 04 06 00 96 68 89 D4 F1 D9 30 D5 01 A6 63 1B EC 78 [09:53:06]CheckFolder [09:53:06]dirname=/storage/ofd_packets [09:53:06]CheckFolder done [09:53:06]ProducePacketName [09:53:06]name=ofd_packets/00186474 [09:53:06]NVStorageSaveData ofd_packets/00186474 [09:53:06]File name is /storage/ofd_packets/00186474 [09:53:06]Write 301 bytes [09:53:06]NVStorageSaveData done [09:53:06]OFDSenderStorePacket done [09:53:06]KKMCreateOFDPacket done [09:53:06]NVStorageSaveData kkm_last_timestamp [09:53:06]File name is /storage/kkm_last_timestamp [09:53:06]Write 4 bytes [09:53:06]NVStorageSaveData done [09:53:06]ExternCall_PrintAddStr [09:53:06]wPrintStart [09:53:06]Write to MH i2c: 01 00 00 2A 20 4A [09:53:06]Write i2c OK [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: 01 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: 01 07 00 [09:53:06]MH_I2C_Read... [09:53:06]Read from MH i2c: 01 07 00 2A 20 00 00 00 00 00 FF 0F 5F [09:53:06]RasterBufferAndPrint [09:53:06]line Счет N : (1)411606 [09:53:06]line ИНН: 02508201610067 [09:53:06]line Контрольно-Кассовый Чек [09:53:06]line ПРОДАЖА [09:53:06]line ТРК (МРК, ГНК) : 43 [09:53:06]line Товар: 2710124500 [09:53:06]line Аи-95-К-5 [09:53:06]line 16.690 * 71.90 [09:53:06]line = 1200.01 [09:53:06]line НДС 12% НСП 1% [09:53:06]line > о реализуемом товаре [09:53:06]line ОКРУГЛЕНИЕ: -0.01 [09:53:06]line ИТОГО: 1200.00 [09:53:06]line Внесено: 1200.00 [09:53:06]line СДАЧА: 0.00 [09:53:06]line НСП 1% : 10.62 [09:53:06]line НДС 12% : 127.43 [09:53:06]line Наличными: 1200.00 [09:53:06]line Безнал.: 0.00 [09:53:06]line Место: АЗС № 92 "Партнер Нефть" [09:53:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:53:06]line СНО: Общий режим [09:53:06]line Чек 61 17.02.2025 09:53 [09:53:06]line Смена: 644 ФФД: 1.0 [09:53:06]line ЗНМ: 0300000118 [09:53:06]line РНМ: 0000000000091857 [09:53:06]line Версия ККМ: 001 [09:53:06]line ФМ: 0000000000871826 [09:53:06]line ФД: 186474 [09:53:06]line ФПД: 165375733199321 [09:53:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095308&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186474&fm=165375733199321&tin=02508201610067®Number=0000000000091857&sum=120000 [09:53:06]OFD Sender: Processing packet 186474 [packets to send 49, broken 48] [09:53:06]ProducePacketName [09:53:06]name=ofd_packets/00186474 [09:53:06]OFD Sender: To server: pG, [09:53:06]CommunicateWithHost lk.salyk.kg:30040 [09:53:06]ConnectInit lk.salyk.kg [09:53:06]written 0, free lines is 4095 [09:53:06]Connected sock=10 [09:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1F 06 07 01 FA 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 04 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D8 02 00 35 04 06 00 96 68 89 D4 F1 D9 30 D5 01 A6 63 1B EC 78 [09:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 64 74 47 00 34 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6A D8 02 00 F4 03 04 00 5F AD B2 67 B6 04 01 00 00 EB E0 B3 BB 6C 1B AE 8E [09:53:07]CommunicateWithHost err = 0 [09:53:07]CheckOFDResponse [09:53:07]1017 (14) - 77093643461234 [09:53:07]1041 (16) - 0000000000871826 [09:53:07]1040 (4) - 186474 [09:53:07]1012 (4) - 17.02.2025 03:30 [09:53:07]1206 (1) - 0 [09:53:07]OFD Sender: Remove packet 186474 [09:53:07]ProducePacketName [09:53:07]name=ofd_packets/00186474 [09:53:07]NVStorageDeleteData [09:53:07]Write to MH i2c: 01 00 00 55 20 75 [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 FC 0C 84 [09:53:07]RasterBufferAndPrint [09:53:07]line [09:53:07]line [09:53:07]line [09:53:07]line [09:53:07]line [09:53:07]written 0, free lines is 3330 [09:53:07]MH_Cut [09:53:07]Write to MH i2c: D1 01 00 5C 20 01 4E [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: D1 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: D1 01 00 [09:53:07]MH_I2C_Read... [09:53:07]Read from MH i2c: D1 01 00 5C 20 00 4D [09:53:07]Write to MH i2c: 01 00 00 5D 20 7D [09:53:07]Write i2c OK [09:53:07]MH_I2C_Read... [09:53:07]OFD Sender: No OFD packet to send [09:53:07]*** Cut start [09:53:07]*** Partial cut [09:53:07]*** CUTSNS_PIN = 1 [09:53:07]*** CUTSNS_PIN = 0 [09:53:08]*** Brake cut motor [09:53:08]Read from MH i2c: 01 [09:53:08]MH_I2C_Read... [09:53:08]*** Stop cut motor [09:53:08]*** Cut end [09:53:08]Read from MH i2c: 01 07 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 FF 0F 92 [09:53:08]process_action close_receipt done [09:53:08]requested_data is exist [09:53:08]produce_requested_data [09:53:08]requested_item fm.sn is exist - process it [09:53:08]wFMCommunicate request_size=4 [09:53:08]MH_SAM_APDU [09:53:08]CAPDU: 80 11 00 00 [09:53:08]Write to MH i2c: E2 08 00 5E 20 80 11 00 00 00 00 00 00 F8 [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 17 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 17 00 5E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [09:53:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:53:08]wFMCommunicate OK [09:53:08]requested_item fd.num is exist - process it [09:53:08]SAM_PROTO_GetFieldsCounters [09:53:08]wFMCommunicate request_size=4 [09:53:08]MH_SAM_APDU [09:53:08]CAPDU: 80 13 00 00 [09:53:08]Write to MH i2c: E2 08 00 5F 20 80 13 00 00 00 00 00 00 FB [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 62 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 62 00 5F 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:53:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:08]wFMCommunicate OK [09:53:08]SAM_PROTO_GetFieldsCounters done [09:53:08]requested_item shift.num is exist - process it [09:53:08]requested_item shift.opened is exist - process it [09:53:08]req_shift_opened [09:53:08]FM_GetShiftState [09:53:08]SAM_PROTO_GetShiftState [09:53:08]wFMCommunicate request_size=4 [09:53:08]MH_SAM_APDU [09:53:08]CAPDU: 80 13 01 00 [09:53:08]Write to MH i2c: E2 08 00 60 20 80 13 01 00 00 00 00 00 FD [09:53:08]Write i2c OK [09:53:08]MH_I2C_Read... [09:53:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:08]Read from MH i2c: E2 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 0E 00 [09:53:08]MH_I2C_Read... [09:53:08]Read from MH i2c: E2 0E 00 60 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 21 [09:53:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:53:08]wFMCommunicate OK [09:53:08]SAM_PROTO_GetShiftState done [09:53:08]FM_GetShiftState done [09:53:08]req_shift_opened done [09:53:08]requested_item shift.open_date is exist - process it [09:53:08]req_shift_open_date [09:53:08]req_shift_open_date done [09:53:08]produce_requested_data done [09:53:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186474,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:53:08]process_action_free close_receipt [09:53:08]json_value_free [09:53:08]json_value_free done [09:53:08]process_json_proto returns [09:53:08]Send response to host [09:53:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186474,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:53:08]free response buf [09:53:08]execute_script done [09:53:08]execute_script returns [09:53:08]free content buf [09:53:08]Sock 9.Close socket [09:53:08]Sock 9.Thread stoped [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:11]accept exits with 8 [09:55:11]New connection [09:55:11]New thread 3067501924 created [09:55:11]Thread 3067358564 joined [09:55:11]Waiting for new connection... [09:55:11] Sock 8.Parse request [09:55:11]Sock 8.Check first char [09:55:11]Sock 8.First char is OK [09:55:11]request: POST /json_proto HTTP/1.0 [09:55:11]Method: POST [09:55:11]URL: /json_proto [09:55:11]Method is POST - this is cgi request [09:55:11]url: /json_proto [09:55:11]query_string will be loaded in cgi processing [09:55:11]execute_cgi json_proto POST (null) [09:55:11]execute_cgi path=json_proto method=POST [09:55:11]POST find Content-Length [09:55:11]Host: 172.17.46.131:8080 [09:55:11]Content-Length: 754 [09:55:11]Content-Type: application/json [09:55:11] [09:55:11]POST finish read [09:55:11]Found Content-Length = 754 [09:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30172516", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]execute_script... [09:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30172516", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:11]POST & json_proto [09:55:11]process_json_proto [09:55:11]json parsed OK: [09:55:11]protocol is kg_v1.0 [09:55:11]action value=close_receipt [09:55:11]process_action close_receipt [09:55:11]cmd_close_receipt [09:55:11]MH_GetDate [09:55:11]Write to MH i2c: F0 00 00 61 20 70 [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 09 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: F0 09 00 61 20 00 83 07 B3 67 7E 41 4F 65 90 [09:55:11]GetLastDocTimeStamp 1739785988 [09:55:11]current date 1739786115 [09:55:11]FM_GetShiftState [09:55:11]SAM_PROTO_GetShiftState [09:55:11]wFMCommunicate request_size=4 [09:55:11]MH_SAM_APDU [09:55:11]CAPDU: 80 13 01 00 [09:55:11]Write to MH i2c: E2 08 00 62 20 80 13 01 00 00 00 00 00 FF [09:55:11]Write i2c OK [09:55:11]MH_I2C_Read... [09:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:11]Read from MH i2c: E2 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 [09:55:11]MH_I2C_Read... [09:55:11]Read from MH i2c: E2 0E 00 62 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 23 [09:55:11]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:55:11]wFMCommunicate OK [09:55:11]SAM_PROTO_GetShiftState done [09:55:11]FM_GetShiftState done [09:55:11]opened in 1739752571 [09:55:11]opened+sec_in_day 1739838971 [09:55:11]quantity*price = 0 [09:55:11]sum+1 = 1 [09:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 62 17.02.2025 09:55 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30172516 ФМ: 0000000000871826 ФД: 186475 ФПД: 60755357414675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095515&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186475&fm=60755357414675&tin=02508201610067®Number=0000000000091857&sum=0 [09:55:12]StoreToDocumentArchive [09:55:12]shift 644 fd 186475 [09:55:12]save to /storage/0644/doc_00186475 [09:55:12]save last doc name /storage/0644/doc_00186475 to /storage/kkm_last_doc_name [09:55:12]save OK [09:55:12]Clear old archive folders... [09:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:12]tlvbuf is B6F47660 [09:55:12]SAM_PROTO_ClearQueue [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 09 00 00 [09:55:12]Write to MH i2c: E2 08 00 6F 20 80 09 00 00 00 00 00 00 01 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]SAM_PROTO_ClearQueue done [09:55:12]KKMCreateOFDPacket [09:55:12]OFDProtocolAddRootSTLVToBuf [09:55:12]FM_MakeSignedData [09:55:12]FM_MakeSignedData [09:55:12]SAM_PROTO_SignData [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 0D 01 02 [09:55:12]Write to MH i2c: E2 08 00 70 20 80 0D 01 02 00 00 00 00 09 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]wFMCommunicate request_size=255 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D8 02 00 35 04 06 00 37 [09:55:12]Write to MH i2c: E2 02 01 71 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D8 02 00 35 04 06 00 37 00 00 67 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]OFD Sender: No OFD packet to send [09:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]wFMCommunicate request_size=10 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 0D 02 02 05 41 B5 7F 35 13 [09:55:12]Write to MH i2c: E2 0D 00 72 20 80 0D 02 02 05 00 41 B5 7F 35 13 00 00 D3 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [09:55:12]RAPDU: 90 00 [09:55:12]wFMCommunicate OK [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 0D 03 02 [09:55:12]Write to MH i2c: E2 08 00 73 20 80 0D 03 02 00 00 00 00 0E [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 0B 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 0B 00 73 20 00 04 F0 78 17 D6 75 D9 86 90 00 3C [09:55:12]RAPDU: 04 F0 78 17 D6 75 D9 86 90 00 [09:55:12]wFMCommunicate OK [09:55:12]SAM_PROTO_SignData done [09:55:12]FM_MakeSignedData done [09:55:12]CreateOFDProtocolMessage [09:55:12]wFMCommunicate request_size=4 [09:55:12]MH_SAM_APDU [09:55:12]CAPDU: 80 11 00 00 [09:55:12]Write to MH i2c: E2 08 00 74 20 80 11 00 00 00 00 00 00 0E [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:12]Read from MH i2c: E2 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 17 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: E2 17 00 74 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [09:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:55:12]wFMCommunicate OK [09:55:12]CreateOFDProtocolMessage done [09:55:12]OFDSenderStorePacket 186475 [09:55:12]StoreOFDPacket docnum=186475 [09:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB 45 07 01 C2 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D8 02 00 35 04 06 00 37 41 B5 7F 35 13 04 F0 78 17 D6 75 D9 86 [09:55:12]CheckFolder [09:55:12]dirname=/storage/ofd_packets [09:55:12]CheckFolder done [09:55:12]ProducePacketName [09:55:12]name=ofd_packets/00186475 [09:55:12]NVStorageSaveData ofd_packets/00186475 [09:55:12]File name is /storage/ofd_packets/00186475 [09:55:12]Write 301 bytes [09:55:12]NVStorageSaveData done [09:55:12]OFDSenderStorePacket done [09:55:12]KKMCreateOFDPacket done [09:55:12]NVStorageSaveData kkm_last_timestamp [09:55:12]File name is /storage/kkm_last_timestamp [09:55:12]Write 4 bytes [09:55:12]NVStorageSaveData done [09:55:12]ExternCall_PrintAddStr [09:55:12]wPrintStart [09:55:12]Write to MH i2c: 01 00 00 75 20 95 [09:55:12]Write i2c OK [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 07 00 [09:55:12]MH_I2C_Read... [09:55:12]Read from MH i2c: 01 07 00 75 20 00 00 00 00 00 FF 0F AA [09:55:12]RasterBufferAndPrint [09:55:12]line Счет N : (1)411607 [09:55:12]line ИНН: 02508201610067 [09:55:12]line Контрольно-Кассовый Чек [09:55:12]line ПРОДАЖА [09:55:12]line ТРК (МРК, ГНК) : 22 [09:55:12]line Товар: 2710124130 [09:55:12]line Аи-92-К-2 [09:55:12]line 20.000 * 0.00 [09:55:12]line = 0.00 [09:55:12]line НДС 12% НСП 1% [09:55:12]line > о реализуемом товаре [09:55:12]line ИТОГО: 0.00 [09:55:12]line НСП 1% : 0.00 [09:55:12]line НДС 12% : 0.00 [09:55:12]line Наличными: 0.00 [09:55:12]line Безнал.: 0.00 [09:55:12]line Место: АЗС № 92 "Партнер Нефть" [09:55:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:55:12]line СНО: Общий режим [09:55:12]line Чек 62 17.02.2025 09:55 [09:55:12]line Смена: 644 ФФД: 1.0 [09:55:12]line ЗНМ: 0300000118 [09:55:12]line РНМ: 0000000000091857 [09:55:12]line Версия ККМ: 001 [09:55:12]line Талоны: ТК ГПНА Online [09:55:12]line 30172516 [09:55:12]line ФМ: 0000000000871826 [09:55:12]line ФД: 186475 [09:55:12]line ФПД: 60755357414675 [09:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095515&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186475&fm=60755357414675&tin=02508201610067®Number=0000000000091857&sum=0 [09:55:12]written 0, free lines is 4095 [09:55:12]OFD Sender: Processing packet 186475 [packets to send 49, broken 48] [09:55:12]ProducePacketName [09:55:12]name=ofd_packets/00186475 [09:55:12]OFD Sender: To server: pG, [09:55:12]CommunicateWithHost lk.salyk.kg:30040 [09:55:12]ConnectInit lk.salyk.kg [09:55:13]Connected sock=11 [09:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB 45 07 01 C2 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 83 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D8 02 00 35 04 06 00 37 41 B5 7F 35 13 04 F0 78 17 D6 75 D9 86 [09:55:13]Write to MH i2c: 01 00 00 9F 20 BF [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 07 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: 01 07 00 9F 20 00 00 00 00 00 FC 0C CE [09:55:13]RasterBufferAndPrint [09:55:13]line [09:55:13]line [09:55:13]line [09:55:13]line [09:55:13]line [09:55:13]written 0, free lines is 3330 [09:55:13]MH_Cut [09:55:13]Write to MH i2c: D1 01 00 A6 20 01 98 [09:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B0 65 47 00 63 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6B D8 02 00 F4 03 04 00 DD AD B2 67 B6 04 01 00 00 A6 8B ED D1 D8 5B 53 1C [09:55:13]CommunicateWithHost err = 0 [09:55:13]CheckOFDResponse [09:55:13]1017 (14) - 77093643461234 [09:55:13]1041 (16) - 0000000000871826 [09:55:13]1040 (4) - 186475 [09:55:13]1012 (4) - 17.02.2025 03:32 [09:55:13]1206 (1) - 0 [09:55:13]OFD Sender: Remove packet 186475 [09:55:13]ProducePacketName [09:55:13]name=ofd_packets/00186475 [09:55:13]NVStorageDeleteData [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: D1 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: D1 01 00 [09:55:13]MH_I2C_Read... [09:55:13]Read from MH i2c: D1 01 00 A6 20 00 97 [09:55:13]Write to MH i2c: 01 00 00 A7 20 C7 [09:55:13]Write i2c OK [09:55:13]MH_I2C_Read... [09:55:13]OFD Sender: No OFD packet to send [09:55:14]*** Cut start [09:55:14]*** Partial cut [09:55:14]*** CUTSNS_PIN = 1 [09:55:14]*** CUTSNS_PIN = 0 [09:55:14]*** Brake cut motor [09:55:14]Read from MH i2c: 01 [09:55:14]MH_I2C_Read... [09:55:14]*** Stop cut motor [09:55:14]*** Cut end [09:55:14]Read from MH i2c: 01 07 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 FF 0F DC [09:55:14]process_action close_receipt done [09:55:14]requested_data is exist [09:55:14]produce_requested_data [09:55:14]requested_item fm.sn is exist - process it [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 11 00 00 [09:55:14]Write to MH i2c: E2 08 00 A8 20 80 11 00 00 00 00 00 00 42 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 17 00 A8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [09:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:55:14]wFMCommunicate OK [09:55:14]requested_item fd.num is exist - process it [09:55:14]SAM_PROTO_GetFieldsCounters [09:55:14]wFMCommunicate request_size=4 [09:55:14]MH_SAM_APDU [09:55:14]CAPDU: 80 13 00 00 [09:55:14]Write to MH i2c: E2 08 00 A9 20 80 13 00 00 00 00 00 00 45 [09:55:14]Write i2c OK [09:55:14]MH_I2C_Read... [09:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:14]Read from MH i2c: E2 [09:55:14]MH_I2C_Read... [09:55:14]Read from MH i2c: E2 62 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 62 00 A9 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [09:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_GetFieldsCounters done [09:55:15]requested_item shift.num is exist - process it [09:55:15]requested_item shift.opened is exist - process it [09:55:15]req_shift_opened [09:55:15]FM_GetShiftState [09:55:15]SAM_PROTO_GetShiftState [09:55:15]wFMCommunicate request_size=4 [09:55:15]MH_SAM_APDU [09:55:15]CAPDU: 80 13 01 00 [09:55:15]Write to MH i2c: E2 08 00 AA 20 80 13 01 00 00 00 00 00 47 [09:55:15]Write i2c OK [09:55:15]MH_I2C_Read... [09:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:15]Read from MH i2c: E2 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 [09:55:15]MH_I2C_Read... [09:55:15]Read from MH i2c: E2 0E 00 AA 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6B [09:55:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:55:15]wFMCommunicate OK [09:55:15]SAM_PROTO_GetShiftState done [09:55:15]FM_GetShiftState done [09:55:15]req_shift_opened done [09:55:15]requested_item shift.open_date is exist - process it [09:55:15]req_shift_open_date [09:55:15]req_shift_open_date done [09:55:15]produce_requested_data done [09:55:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186475,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:55:15]process_action_free close_receipt [09:55:15]json_value_free [09:55:15]json_value_free done [09:55:15]process_json_proto returns [09:55:15]Send response to host [09:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186475,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:55:15]free response buf [09:55:15]execute_script done [09:55:15]execute_script returns [09:55:15]free content buf [09:55:15]Sock 8.Close socket [09:55:15]Sock 8.Thread stoped [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:23]accept exits with 9 [09:56:23]New connection [09:56:23]New thread 3067358564 created [09:56:23]Thread 3067501924 joined [09:56:23]Waiting for new connection... [09:56:23] Sock 9.Parse request [09:56:23]Sock 9.Check first char [09:56:23]Sock 9.First char is OK [09:56:23]request: POST /json_proto HTTP/1.0 [09:56:23]Method: POST [09:56:23]URL: /json_proto [09:56:23]Method is POST - this is cgi request [09:56:23]url: /json_proto [09:56:23]query_string will be loaded in cgi processing [09:56:23]execute_cgi json_proto POST (null) [09:56:23]execute_cgi path=json_proto method=POST [09:56:23]POST find Content-Length [09:56:23]Host: 172.17.46.131:8080 [09:56:23]Content-Length: 682 [09:56:23]Content-Type: application/json [09:56:23] [09:56:23]POST finish read [09:56:23]Found Content-Length = 682 [09:56:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:23]execute_script... [09:56:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:23]POST & json_proto [09:56:23]process_json_proto [09:56:23]json parsed OK: [09:56:23]protocol is kg_v1.0 [09:56:23]action value=close_receipt [09:56:23]process_action close_receipt [09:56:23]cmd_close_receipt [09:56:23]MH_GetDate [09:56:23]Write to MH i2c: F0 00 00 AB 20 BA [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: F0 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: F0 09 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: F0 09 00 AB 20 00 CB 07 B3 67 7E 41 4F 65 22 [09:56:23]GetLastDocTimeStamp 1739786115 [09:56:23]current date 1739786187 [09:56:23]FM_GetShiftState [09:56:23]SAM_PROTO_GetShiftState [09:56:23]wFMCommunicate request_size=4 [09:56:23]MH_SAM_APDU [09:56:23]CAPDU: 80 13 01 00 [09:56:23]Write to MH i2c: E2 08 00 AC 20 80 13 01 00 00 00 00 00 49 [09:56:23]Write i2c OK [09:56:23]MH_I2C_Read... [09:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:23]Read from MH i2c: E2 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0E 00 [09:56:23]MH_I2C_Read... [09:56:23]Read from MH i2c: E2 0E 00 AC 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6D [09:56:23]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:56:23]wFMCommunicate OK [09:56:23]SAM_PROTO_GetShiftState done [09:56:23]FM_GetShiftState done [09:56:23]opened in 1739752571 [09:56:23]opened+sec_in_day 1739838971 [09:56:23]quantity*price = 100012 [09:56:23]sum+1 = 100014 [09:56:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 63 17.02.2025 09:56 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186476 ФПД: 55084688025649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095627&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186476&fm=55084688025649&tin=02508201610067®Number=0000000000091857&sum=100000 [09:56:24]StoreToDocumentArchive [09:56:24]shift 644 fd 186476 [09:56:24]save to /storage/0644/doc_00186476 [09:56:24]save last doc name /storage/0644/doc_00186476 to /storage/kkm_last_doc_name [09:56:24]save OK [09:56:24]Clear old archive folders... [09:56:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:56:24]tlvbuf is B6FDB6E0 [09:56:24]SAM_PROTO_ClearQueue [09:56:24]wFMCommunicate request_size=4 [09:56:24]MH_SAM_APDU [09:56:24]CAPDU: 80 09 00 00 [09:56:24]Write to MH i2c: E2 08 00 B9 20 80 09 00 00 00 00 00 00 4B [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:24]Read from MH i2c: E2 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 03 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 03 00 B9 20 00 90 00 4D [09:56:24]RAPDU: 90 00 [09:56:24]wFMCommunicate OK [09:56:24]SAM_PROTO_ClearQueue done [09:56:24]KKMCreateOFDPacket [09:56:24]OFDProtocolAddRootSTLVToBuf [09:56:24]FM_MakeSignedData [09:56:24]FM_MakeSignedData [09:56:24]SAM_PROTO_SignData [09:56:24]wFMCommunicate request_size=4 [09:56:24]MH_SAM_APDU [09:56:24]CAPDU: 80 0D 01 02 [09:56:24]Write to MH i2c: E2 08 00 BA 20 80 0D 01 02 00 00 00 00 53 [09:56:24]Write i2c OK [09:56:24]MH_I2C_Read... [09:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:24]Read from MH i2c: E2 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 03 00 [09:56:24]MH_I2C_Read... [09:56:24]Read from MH i2c: E2 03 00 BA 20 00 90 00 4E [09:56:24]RAPDU: 90 00 [09:56:24]wFMCommunicate OK [09:56:24]wFMCommunicate request_size=255 [09:56:24]MH_SAM_APDU [09:56:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CB 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D8 02 00 35 04 06 00 32 [09:56:24]Write to MH i2c: E2 02 01 BB 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CB 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D8 02 00 35 04 06 00 32 00 00 ED [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 BB 20 00 90 00 4F [09:56:25]RAPDU: 90 00 [09:56:25]wFMCommunicate OK [09:56:25]wFMCommunicate request_size=10 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 0D 02 02 05 19 67 43 28 31 [09:56:25]Write to MH i2c: E2 0D 00 BC 20 80 0D 02 02 05 00 19 67 43 28 31 00 00 7C [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 03 00 BC 20 00 90 00 50 [09:56:25]RAPDU: 90 00 [09:56:25]wFMCommunicate OK [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 0D 03 02 [09:56:25]Write to MH i2c: E2 08 00 BD 20 80 0D 03 02 00 00 00 00 58 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 0B 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 0B 00 BD 20 00 BF 0C 41 06 A6 24 8F 4C 90 00 10 [09:56:25]RAPDU: BF 0C 41 06 A6 24 8F 4C 90 00 [09:56:25]wFMCommunicate OK [09:56:25]SAM_PROTO_SignData done [09:56:25]FM_MakeSignedData done [09:56:25]CreateOFDProtocolMessage [09:56:25]wFMCommunicate request_size=4 [09:56:25]MH_SAM_APDU [09:56:25]CAPDU: 80 11 00 00 [09:56:25]Write to MH i2c: E2 08 00 BE 20 80 11 00 00 00 00 00 00 58 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:25]Read from MH i2c: E2 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 17 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: E2 17 00 BE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [09:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:56:25]wFMCommunicate OK [09:56:25]CreateOFDProtocolMessage done [09:56:25]OFDSenderStorePacket 186476 [09:56:25]StoreOFDPacket docnum=186476 [09:56:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 ED 07 01 05 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CB 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D8 02 00 35 04 06 00 32 19 67 43 28 31 BF 0C 41 06 A6 24 8F 4C [09:56:25]CheckFolder [09:56:25]dirname=/storage/ofd_packets [09:56:25]CheckFolder done [09:56:25]ProducePacketName [09:56:25]name=ofd_packets/00186476 [09:56:25]NVStorageSaveData ofd_packets/00186476 [09:56:25]File name is /storage/ofd_packets/00186476 [09:56:25]Write 301 bytes [09:56:25]NVStorageSaveData done [09:56:25]OFDSenderStorePacket done [09:56:25]KKMCreateOFDPacket done [09:56:25]NVStorageSaveData kkm_last_timestamp [09:56:25]File name is /storage/kkm_last_timestamp [09:56:25]Write 4 bytes [09:56:25]NVStorageSaveData done [09:56:25]ExternCall_PrintAddStr [09:56:25]wPrintStart [09:56:25]Write to MH i2c: 01 00 00 BF 20 DF [09:56:25]OFD Sender: Processing packet 186476 [packets to send 49, broken 48] [09:56:25]ProducePacketName [09:56:25]name=ofd_packets/00186476 [09:56:25]OFD Sender: To server: pG, [09:56:25]CommunicateWithHost lk.salyk.kg:30040 [09:56:25]ConnectInit lk.salyk.kg [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 07 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 07 00 BF 20 00 00 00 00 00 FF 0F F4 [09:56:25]RasterBufferAndPrint [09:56:25]line Счет N : (1)411608 [09:56:25]line ИНН: 02508201610067 [09:56:25]line Контрольно-Кассовый Чек [09:56:25]line ПРОДАЖА [09:56:25]line ТРК (МРК, ГНК) : 43 [09:56:25]line Товар: 2710124500 [09:56:25]line Аи-95-К-5 [09:56:25]line 13.910 * 71.90 [09:56:25]line = 1000.13 [09:56:25]line НДС 12% НСП 1% [09:56:25]line > о реализуемом товаре [09:56:25]line ОКРУГЛЕНИЕ: -0.13 [09:56:25]line ИТОГО: 1000.00 [09:56:25]line Внесено: 1000.00 [09:56:25]line СДАЧА: 0.00 [09:56:25]line НСП 1% : 8.85 [09:56:25]line НДС 12% : 106.21 [09:56:25]line Наличными: 1000.00 [09:56:25]line Безнал.: 0.00 [09:56:25]line Место: АЗС № 92 "Партнер Нефть" [09:56:25]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:56:25]line СНО: Общий режим [09:56:25]line Чек 63 17.02.2025 09:56 [09:56:25]line Смена: 644 ФФД: 1.0 [09:56:25]line ЗНМ: 0300000118 [09:56:25]line РНМ: 0000000000091857 [09:56:25]line Версия ККМ: 001 [09:56:25]line ФМ: 0000000000871826 [09:56:25]line ФД: 186476 [09:56:25]line ФПД: 55084688025649 [09:56:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095627&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186476&fm=55084688025649&tin=02508201610067®Number=0000000000091857&sum=100000 [09:56:25]written 0, free lines is 4095 [09:56:25]Connected sock=10 [09:56:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 ED 07 01 05 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 CB 07 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D8 02 00 35 04 06 00 32 19 67 43 28 31 BF 0C 41 06 A6 24 8F 4C [09:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B5 0C 47 00 16 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6C D8 02 00 F4 03 04 00 25 AE B2 67 B6 04 01 00 00 F6 AB 64 7F 8E 4D FE 6E [09:56:25]CommunicateWithHost err = 0 [09:56:25]CheckOFDResponse [09:56:25]1017 (14) - 77093643461234 [09:56:25]1041 (16) - 0000000000871826 [09:56:25]1040 (4) - 186476 [09:56:25]1012 (4) - 17.02.2025 03:33 [09:56:25]1206 (1) - 0 [09:56:25]OFD Sender: Remove packet 186476 [09:56:25]ProducePacketName [09:56:25]name=ofd_packets/00186476 [09:56:25]NVStorageDeleteData [09:56:25]Write to MH i2c: 01 00 00 EA 20 0A [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 07 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 F8 0C 15 [09:56:25]RasterBufferAndPrint [09:56:25]line [09:56:25]line [09:56:25]line [09:56:25]line [09:56:25]line [09:56:25]written 0, free lines is 3326 [09:56:25]MH_Cut [09:56:25]Write to MH i2c: D1 01 00 F1 20 01 E3 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: D1 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: D1 01 00 [09:56:25]MH_I2C_Read... [09:56:25]Read from MH i2c: D1 01 00 F1 20 00 E2 [09:56:25]Write to MH i2c: 01 00 00 F2 20 12 [09:56:25]Write i2c OK [09:56:25]MH_I2C_Read... [09:56:26]OFD Sender: No OFD packet to send [09:56:26]*** Cut start [09:56:26]*** Partial cut [09:56:26]*** CUTSNS_PIN = 1 [09:56:26]*** CUTSNS_PIN = 0 [09:56:26]*** Brake cut motor [09:56:27]Read from MH i2c: 01 [09:56:27]MH_I2C_Read... [09:56:27]*** Stop cut motor [09:56:27]*** Cut end [09:56:27]Read from MH i2c: 01 07 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 FF 0F 27 [09:56:27]process_action close_receipt done [09:56:27]requested_data is exist [09:56:27]produce_requested_data [09:56:27]requested_item fm.sn is exist - process it [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 11 00 00 [09:56:27]Write to MH i2c: E2 08 00 F3 20 80 11 00 00 00 00 00 00 8D [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 17 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 17 00 F3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E0 [09:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:56:27]wFMCommunicate OK [09:56:27]requested_item fd.num is exist - process it [09:56:27]SAM_PROTO_GetFieldsCounters [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 13 00 00 [09:56:27]Write to MH i2c: E2 08 00 F4 20 80 13 00 00 00 00 00 00 90 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 62 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 62 00 F4 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [09:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:27]wFMCommunicate OK [09:56:27]SAM_PROTO_GetFieldsCounters done [09:56:27]requested_item shift.num is exist - process it [09:56:27]requested_item shift.opened is exist - process it [09:56:27]req_shift_opened [09:56:27]FM_GetShiftState [09:56:27]SAM_PROTO_GetShiftState [09:56:27]wFMCommunicate request_size=4 [09:56:27]MH_SAM_APDU [09:56:27]CAPDU: 80 13 01 00 [09:56:27]Write to MH i2c: E2 08 00 F5 20 80 13 01 00 00 00 00 00 92 [09:56:27]Write i2c OK [09:56:27]MH_I2C_Read... [09:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:27]Read from MH i2c: E2 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 0E 00 [09:56:27]MH_I2C_Read... [09:56:27]Read from MH i2c: E2 0E 00 F5 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B6 [09:56:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:56:27]wFMCommunicate OK [09:56:27]SAM_PROTO_GetShiftState done [09:56:27]FM_GetShiftState done [09:56:27]req_shift_opened done [09:56:27]requested_item shift.open_date is exist - process it [09:56:27]req_shift_open_date [09:56:27]req_shift_open_date done [09:56:27]produce_requested_data done [09:56:27]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186476,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:56:27]process_action_free close_receipt [09:56:27]json_value_free [09:56:27]json_value_free done [09:56:27]process_json_proto returns [09:56:27]Send response to host [09:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186476,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:56:27]free response buf [09:56:27]execute_script done [09:56:27]execute_script returns [09:56:27]free content buf [09:56:27]Sock 9.Close socket [09:56:27]Sock 9.Thread stoped [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:41]OFD Sender: No OFD packet to send [09:56:46]OFD Sender: No OFD packet to send [09:56:51]OFD Sender: No OFD packet to send [09:56:56]OFD Sender: No OFD packet to send [09:57:01]OFD Sender: No OFD packet to send [09:57:06]OFD Sender: No OFD packet to send [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:36]OFD Sender: No OFD packet to send [09:58:41]OFD Sender: No OFD packet to send [09:58:46]OFD Sender: No OFD packet to send [09:58:51]OFD Sender: No OFD packet to send [09:58:56]OFD Sender: No OFD packet to send [09:59:00]accept exits with 8 [09:59:00]New connection [09:59:00]New thread 3067501924 created [09:59:00]Thread 3067358564 joined [09:59:00]Waiting for new connection... [09:59:00] Sock 8.Parse request [09:59:00]Sock 8.Check first char [09:59:00]Sock 8.First char is OK [09:59:00]request: POST /json_proto HTTP/1.0 [09:59:00]Method: POST [09:59:00]URL: /json_proto [09:59:00]Method is POST - this is cgi request [09:59:00]url: /json_proto [09:59:00]query_string will be loaded in cgi processing [09:59:00]execute_cgi json_proto POST (null) [09:59:00]execute_cgi path=json_proto method=POST [09:59:00]POST find Content-Length [09:59:00]Host: 172.17.46.131:8080 [09:59:00]Content-Length: 800 [09:59:00]Content-Type: application/json [09:59:00] [09:59:00]POST finish read [09:59:00]Found Content-Length = 800 [09:59:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4998914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:00]execute_script... [09:59:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4998914", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:00]POST & json_proto [09:59:00]process_json_proto [09:59:00]json parsed OK: [09:59:00]protocol is kg_v1.0 [09:59:00]action value=close_receipt [09:59:00]process_action close_receipt [09:59:00]cmd_close_receipt [09:59:00]MH_GetDate [09:59:00]Write to MH i2c: F0 00 00 F6 20 05 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 09 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: F0 09 00 F6 20 00 68 08 B3 67 7E 41 4F 65 0B [09:59:00]GetLastDocTimeStamp 1739786187 [09:59:00]current date 1739786344 [09:59:00]FM_GetShiftState [09:59:00]SAM_PROTO_GetShiftState [09:59:00]wFMCommunicate request_size=4 [09:59:00]MH_SAM_APDU [09:59:00]CAPDU: 80 13 01 00 [09:59:00]Write to MH i2c: E2 08 00 F7 20 80 13 01 00 00 00 00 00 94 [09:59:00]Write i2c OK [09:59:00]MH_I2C_Read... [09:59:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:00]Read from MH i2c: E2 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0E 00 [09:59:00]MH_I2C_Read... [09:59:00]Read from MH i2c: E2 0E 00 F7 20 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B8 [09:59:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:59:00]wFMCommunicate OK [09:59:00]SAM_PROTO_GetShiftState done [09:59:00]FM_GetShiftState done [09:59:00]opened in 1739752571 [09:59:00]opened+sec_in_day 1739838971 [09:59:00]quantity*price = 0 [09:59:00]sum+1 = 1 [09:59:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 64 17.02.2025 09:59 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4998914 ФМ: 0000000000871826 ФД: 186477 ФПД: 140276350582212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095904&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186477&fm=140276350582212&tin=02508201610067®Number=0000000000091857&sum=0 [09:59:01]StoreToDocumentArchive [09:59:01]shift 644 fd 186477 [09:59:01]save to /storage/0644/doc_00186477 [09:59:01]save last doc name /storage/0644/doc_00186477 to /storage/kkm_last_doc_name [09:59:01]save OK [09:59:01]Clear old archive folders... [09:59:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:01]tlvbuf is 0204FE10 [09:59:01]SAM_PROTO_ClearQueue [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 09 00 00 [09:59:01]Write to MH i2c: E2 08 00 04 21 80 09 00 00 00 00 00 00 97 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 04 21 00 90 00 99 [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]SAM_PROTO_ClearQueue done [09:59:01]KKMCreateOFDPacket [09:59:01]OFDProtocolAddRootSTLVToBuf [09:59:01]FM_MakeSignedData [09:59:01]FM_MakeSignedData [09:59:01]SAM_PROTO_SignData [09:59:01]wFMCommunicate request_size=4 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 01 02 [09:59:01]Write to MH i2c: E2 08 00 05 21 80 0D 01 02 00 00 00 00 9F [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:01]Read from MH i2c: E2 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 [09:59:01]MH_I2C_Read... [09:59:01]Read from MH i2c: E2 03 00 05 21 00 90 00 9A [09:59:01]RAPDU: 90 00 [09:59:01]wFMCommunicate OK [09:59:01]wFMCommunicate request_size=255 [09:59:01]MH_SAM_APDU [09:59:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 40 00 00 00 F4 03 04 00 68 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D8 02 00 35 04 06 00 7F [09:59:01]Write to MH i2c: E2 02 01 06 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 40 00 00 00 F4 03 04 00 68 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D8 02 00 35 04 06 00 7F 00 00 F8 [09:59:01]Write i2c OK [09:59:01]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 06 21 00 90 00 9B [09:59:02]RAPDU: 90 00 [09:59:02]wFMCommunicate OK [09:59:02]wFMCommunicate request_size=10 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 0D 02 02 05 94 A2 0B FD C4 [09:59:02]Write to MH i2c: E2 0D 00 07 21 80 0D 02 02 05 00 94 A2 0B FD C4 00 00 AE [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 03 00 07 21 00 90 00 9C [09:59:02]RAPDU: 90 00 [09:59:02]wFMCommunicate OK [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 0D 03 02 [09:59:02]Write to MH i2c: E2 08 00 08 21 80 0D 03 02 00 00 00 00 A4 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0B 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 0B 00 08 21 00 E9 2E 58 C6 E8 00 66 13 90 00 3B [09:59:02]RAPDU: E9 2E 58 C6 E8 00 66 13 90 00 [09:59:02]wFMCommunicate OK [09:59:02]SAM_PROTO_SignData done [09:59:02]FM_MakeSignedData done [09:59:02]CreateOFDProtocolMessage [09:59:02]wFMCommunicate request_size=4 [09:59:02]MH_SAM_APDU [09:59:02]CAPDU: 80 11 00 00 [09:59:02]Write to MH i2c: E2 08 00 09 21 80 11 00 00 00 00 00 00 A4 [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:02]Read from MH i2c: E2 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: E2 17 00 09 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [09:59:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:02]wFMCommunicate OK [09:59:02]CreateOFDProtocolMessage done [09:59:02]OFDSenderStorePacket 186477 [09:59:02]StoreOFDPacket docnum=186477 [09:59:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 FA 07 01 60 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 40 00 00 00 F4 03 04 00 68 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D8 02 00 35 04 06 00 7F 94 A2 0B FD C4 E9 2E 58 C6 E8 00 66 13 [09:59:02]CheckFolder [09:59:02]dirname=/storage/ofd_packets [09:59:02]CheckFolder done [09:59:02]ProducePacketName [09:59:02]name=ofd_packets/00186477 [09:59:02]NVStorageSaveData ofd_packets/00186477 [09:59:02]File name is /storage/ofd_packets/00186477 [09:59:02]Write 301 bytes [09:59:02]NVStorageSaveData done [09:59:02]OFDSenderStorePacket done [09:59:02]KKMCreateOFDPacket done [09:59:02]NVStorageSaveData kkm_last_timestamp [09:59:02]File name is /storage/kkm_last_timestamp [09:59:02]Write 4 bytes [09:59:02]OFD Sender: Processing packet 186477 [packets to send 49, broken 48] [09:59:02]ProducePacketName [09:59:02]name=ofd_packets/00186477 [09:59:02]OFD Sender: To server: pG, [09:59:02]CommunicateWithHost lk.salyk.kg:30040 [09:59:02]ConnectInit lk.salyk.kg [09:59:02]NVStorageSaveData done [09:59:02]ExternCall_PrintAddStr [09:59:02]wPrintStart [09:59:02]Write to MH i2c: 01 00 00 0A 21 2B [09:59:02]Write i2c OK [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 [09:59:02]MH_I2C_Read... [09:59:02]Read from MH i2c: 01 07 00 0A 21 00 00 00 00 00 FF 0F 40 [09:59:02]RasterBufferAndPrint [09:59:02]line Счет N : (1)411609 [09:59:02]line ИНН: 02508201610067 [09:59:02]line Контрольно-Кассовый Чек [09:59:02]line ПРОДАЖА [09:59:02]line ТРК (МРК, ГНК) : 42 [09:59:02]line Товар: 2710124130 [09:59:02]line Аи-92-К-2 [09:59:02]line 10.000 * 0.00 [09:59:02]line = 0.00 [09:59:02]line НДС 12% НСП 1% [09:59:02]line > о реализуемом товаре [09:59:02]line ИТОГО: 0.00 [09:59:02]line НСП 1% : 0.00 [09:59:02]line НДС 12% : 0.00 [09:59:02]line Наличными: 0.00 [09:59:02]line Безнал.: 0.00 [09:59:02]line Место: АЗС № 92 "Партнер Нефть" [09:59:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [09:59:02]line СНО: Общий режим [09:59:02]line Чек 64 17.02.2025 09:59 [09:59:02]line Смена: 644 ФФД: 1.0 [09:59:02]line ЗНМ: 0300000118 [09:59:02]line РНМ: 0000000000091857 [09:59:02]line Версия ККМ: 001 [09:59:02]line Талоны: Топливные Талоны [09:59:02]line 4998914 [09:59:02]line ФМ: 0000000000871826 [09:59:02]line ФД: 186477 [09:59:02]line ФПД: 140276350582212 [09:59:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T095904&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186477&fm=140276350582212&tin=02508201610067®Number=0000000000091857&sum=0 [09:59:02]Connected sock=11 [09:59:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 FA 07 01 60 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 40 00 00 00 F4 03 04 00 68 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D8 02 00 35 04 06 00 7F 94 A2 0B FD C4 E9 2E 58 C6 E8 00 66 13 [09:59:02]written 0, free lines is 4095 [09:59:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DB 16 47 00 2A 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6D D8 02 00 F4 03 04 00 C2 AE B2 67 B6 04 01 00 00 67 E7 05 B7 D1 1B 34 2A [09:59:02]CommunicateWithHost err = 0 [09:59:02]CheckOFDResponse [09:59:02]1017 (14) - 77093643461234 [09:59:02]1041 (16) - 0000000000871826 [09:59:02]1040 (4) - 186477 [09:59:02]1012 (4) - 17.02.2025 03:36 [09:59:02]1206 (1) - 0 [09:59:02]OFD Sender: Remove packet 186477 [09:59:02]ProducePacketName [09:59:02]name=ofd_packets/00186477 [09:59:02]NVStorageDeleteData [09:59:03]Write to MH i2c: 01 00 00 34 21 55 [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 07 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: 01 07 00 34 21 00 00 00 00 00 03 0D 6C [09:59:03]RasterBufferAndPrint [09:59:03]line [09:59:03]line [09:59:03]line [09:59:03]line [09:59:03]line [09:59:03]written 0, free lines is 3340 [09:59:03]MH_Cut [09:59:03]Write to MH i2c: D1 01 00 3B 21 01 2E [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: D1 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: D1 01 00 [09:59:03]MH_I2C_Read... [09:59:03]Read from MH i2c: D1 01 00 3B 21 00 2D [09:59:03]Write to MH i2c: 01 00 00 3C 21 5D [09:59:03]Write i2c OK [09:59:03]MH_I2C_Read... [09:59:03]OFD Sender: No OFD packet to send [09:59:03]*** Cut start [09:59:03]*** Partial cut [09:59:03]*** CUTSNS_PIN = 1 [09:59:03]*** CUTSNS_PIN = 0 [09:59:04]*** Brake cut motor [09:59:04]Read from MH i2c: 01 [09:59:04]MH_I2C_Read... [09:59:04]*** Stop cut motor [09:59:04]*** Cut end [09:59:04]Read from MH i2c: 01 07 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: 01 07 00 3C 21 00 00 00 00 00 FF 0F 72 [09:59:04]process_action close_receipt done [09:59:04]requested_data is exist [09:59:04]produce_requested_data [09:59:04]requested_item fm.sn is exist - process it [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 11 00 00 [09:59:04]Write to MH i2c: E2 08 00 3D 21 80 11 00 00 00 00 00 00 D8 [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 17 00 3D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2B [09:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [09:59:04]wFMCommunicate OK [09:59:04]requested_item fd.num is exist - process it [09:59:04]SAM_PROTO_GetFieldsCounters [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 13 00 00 [09:59:04]Write to MH i2c: E2 08 00 3E 21 80 13 00 00 00 00 00 00 DB [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 62 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 62 00 3E 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [09:59:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:04]wFMCommunicate OK [09:59:04]SAM_PROTO_GetFieldsCounters done [09:59:04]requested_item shift.num is exist - process it [09:59:04]requested_item shift.opened is exist - process it [09:59:04]req_shift_opened [09:59:04]FM_GetShiftState [09:59:04]SAM_PROTO_GetShiftState [09:59:04]wFMCommunicate request_size=4 [09:59:04]MH_SAM_APDU [09:59:04]CAPDU: 80 13 01 00 [09:59:04]Write to MH i2c: E2 08 00 3F 21 80 13 01 00 00 00 00 00 DD [09:59:04]Write i2c OK [09:59:04]MH_I2C_Read... [09:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:04]Read from MH i2c: E2 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0E 00 [09:59:04]MH_I2C_Read... [09:59:04]Read from MH i2c: E2 0E 00 3F 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 01 [09:59:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [09:59:04]wFMCommunicate OK [09:59:04]SAM_PROTO_GetShiftState done [09:59:04]FM_GetShiftState done [09:59:04]req_shift_opened done [09:59:04]requested_item shift.open_date is exist - process it [09:59:04]req_shift_open_date [09:59:04]req_shift_open_date done [09:59:04]produce_requested_data done [09:59:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186477,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [09:59:04]process_action_free close_receipt [09:59:04]json_value_free [09:59:04]json_value_free done [09:59:04]process_json_proto returns [09:59:04]Send response to host [09:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186477,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [09:59:04]free response buf [09:59:04]execute_script done [09:59:04]execute_script returns [09:59:04]free content buf [09:59:04]Sock 8.Close socket [09:59:04]Sock 8.Thread stoped [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:04]accept exits with 9 [10:01:04]New connection [10:01:04]New thread 3067358564 created [10:01:04]Thread 3067501924 joined [10:01:04]Waiting for new connection... [10:01:04] Sock 9.Parse request [10:01:04]Sock 9.Check first char [10:01:04]Sock 9.First char is OK [10:01:04]request: POST /json_proto HTTP/1.0 [10:01:04]Method: POST [10:01:04]URL: /json_proto [10:01:04]Method is POST - this is cgi request [10:01:04]url: /json_proto [10:01:04]query_string will be loaded in cgi processing [10:01:04]execute_cgi json_proto POST (null) [10:01:04]execute_cgi path=json_proto method=POST [10:01:04]POST find Content-Length [10:01:04]Host: 172.17.46.131:8080 [10:01:04]Content-Length: 800 [10:01:04]Content-Type: application/json [10:01:04] [10:01:04]POST finish read [10:01:04]Found Content-Length = 800 [10:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:04]execute_script... [10:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:04]POST & json_proto [10:01:04]process_json_proto [10:01:04]json parsed OK: [10:01:04]protocol is kg_v1.0 [10:01:04]action value=close_receipt [10:01:04]process_action close_receipt [10:01:04]cmd_close_receipt [10:01:04]MH_GetDate [10:01:04]Write to MH i2c: F0 00 00 40 21 50 [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: F0 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: F0 09 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: F0 09 00 40 21 00 E4 08 B3 67 7E 41 4F 65 D2 [10:01:04]GetLastDocTimeStamp 1739786344 [10:01:04]current date 1739786468 [10:01:04]FM_GetShiftState [10:01:04]SAM_PROTO_GetShiftState [10:01:04]wFMCommunicate request_size=4 [10:01:04]MH_SAM_APDU [10:01:04]CAPDU: 80 13 01 00 [10:01:04]Write to MH i2c: E2 08 00 41 21 80 13 01 00 00 00 00 00 DF [10:01:04]Write i2c OK [10:01:04]MH_I2C_Read... [10:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:04]Read from MH i2c: E2 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 0E 00 [10:01:04]MH_I2C_Read... [10:01:04]Read from MH i2c: E2 0E 00 41 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 03 [10:01:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:01:04]wFMCommunicate OK [10:01:04]SAM_PROTO_GetShiftState done [10:01:04]FM_GetShiftState done [10:01:04]opened in 1739752571 [10:01:04]opened+sec_in_day 1739838971 [10:01:04]quantity*price = 50011 [10:01:04]sum+1 = 50013 [10:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 65 17.02.2025 10:01 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186478 ФПД: 194356566095376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T100108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186478&fm=194356566095376&tin=02508201610067®Number=0000000000091857&sum=50012 [10:01:06]StoreToDocumentArchive [10:01:06]shift 644 fd 186478 [10:01:06]save to /storage/0644/doc_00186478 [10:01:06]save last doc name /storage/0644/doc_00186478 to /storage/kkm_last_doc_name [10:01:06]save OK [10:01:06]Clear old archive folders... [10:01:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:06]tlvbuf is 01FC38A0 [10:01:06]SAM_PROTO_ClearQueue [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 09 00 00 [10:01:06]Write to MH i2c: E2 08 00 4E 21 80 09 00 00 00 00 00 00 E1 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 4E 21 00 90 00 E3 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_ClearQueue done [10:01:06]KKMCreateOFDPacket [10:01:06]OFDProtocolAddRootSTLVToBuf [10:01:06]FM_MakeSignedData [10:01:06]FM_MakeSignedData [10:01:06]SAM_PROTO_SignData [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 0D 01 02 [10:01:06]Write to MH i2c: E2 08 00 4F 21 80 0D 01 02 00 00 00 00 E9 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 4F 21 00 90 00 E4 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]wFMCommunicate request_size=255 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E4 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D8 02 00 35 04 06 00 B0 [10:01:06]Write to MH i2c: E2 02 01 50 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E4 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D8 02 00 35 04 06 00 B0 00 00 5F [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 50 21 00 90 00 E5 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]wFMCommunicate request_size=10 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 0D 02 02 05 C4 2A 14 F6 10 [10:01:06]Write to MH i2c: E2 0D 00 51 21 80 0D 02 02 05 00 C4 2A 14 F6 10 00 00 FE [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 03 00 51 21 00 90 00 E6 [10:01:06]RAPDU: 90 00 [10:01:06]wFMCommunicate OK [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 0D 03 02 [10:01:06]Write to MH i2c: E2 08 00 52 21 80 0D 03 02 00 00 00 00 EE [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0B 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 0B 00 52 21 00 4D E2 C3 5D 6A 1A E7 4D 90 00 F6 [10:01:06]RAPDU: 4D E2 C3 5D 6A 1A E7 4D 90 00 [10:01:06]wFMCommunicate OK [10:01:06]SAM_PROTO_SignData done [10:01:06]FM_MakeSignedData done [10:01:06]CreateOFDProtocolMessage [10:01:06]wFMCommunicate request_size=4 [10:01:06]MH_SAM_APDU [10:01:06]CAPDU: 80 11 00 00 [10:01:06]Write to MH i2c: E2 08 00 53 21 80 11 00 00 00 00 00 00 EE [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:06]Read from MH i2c: E2 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: E2 17 00 53 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 41 [10:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:06]wFMCommunicate OK [10:01:06]CreateOFDProtocolMessage done [10:01:06]OFDSenderStorePacket 186478 [10:01:06]StoreOFDPacket docnum=186478 [10:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 CA 07 01 20 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E4 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D8 02 00 35 04 06 00 B0 C4 2A 14 F6 10 4D E2 C3 5D 6A 1A E7 4D [10:01:06]CheckFolder [10:01:06]dirname=/storage/ofd_packets [10:01:06]CheckFolder done [10:01:06]ProducePacketName [10:01:06]name=ofd_packets/00186478 [10:01:06]NVStorageSaveData ofd_packets/00186478 [10:01:06]File name is /storage/ofd_packets/00186478 [10:01:06]Write 301 bytes [10:01:06]NVStorageSaveData done [10:01:06]OFDSenderStorePacket done [10:01:06]KKMCreateOFDPacket done [10:01:06]NVStorageSaveData kkm_last_timestamp [10:01:06]File name is /storage/kkm_last_timestamp [10:01:06]Write 4 bytes [10:01:06]NVStorageSaveData done [10:01:06]ExternCall_PrintAddStr [10:01:06]wPrintStart [10:01:06]Write to MH i2c: 01 00 00 54 21 75 [10:01:06]Write i2c OK [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: 01 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: 01 07 00 [10:01:06]MH_I2C_Read... [10:01:06]Read from MH i2c: 01 07 00 54 21 00 00 00 00 00 FF 0F 8A [10:01:06]RasterBufferAndPrint [10:01:06]line Счет N : (1)411610 [10:01:06]line ИНН: 02508201610067 [10:01:06]line Контрольно-Кассовый Чек [10:01:06]line ПРОДАЖА [10:01:06]line ТРК (МРК, ГНК) : 32 [10:01:06]line Товар: 2710124130 [10:01:06]line Аи-92-К-2 [10:01:06]line 7.790 * 64.20 [10:01:06]line = 500.12 [10:01:06]line НДС 12% НСП 1% [10:01:06]line > о реализуемом товаре [10:01:06]line ИТОГО: 500.12 [10:01:06]line НСП 1% : 4.43 [10:01:06]line НДС 12% : 53.11 [10:01:06]line Наличными: 0.00 [10:01:06]line Безнал.: 500.12 [10:01:06]line Место: АЗС № 92 "Партнер Нефть" [10:01:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:01:06]line СНО: Общий режим [10:01:06]line Чек 65 17.02.2025 10:01 [10:01:06]line Смена: 644 ФФД: 1.0 [10:01:06]line ЗНМ: 0300000118 [10:01:06]line РНМ: 0000000000091857 [10:01:06]line Версия ККМ: 001 [10:01:06]line Платежная система: O! деньги [10:01:06]line ФМ: 0000000000871826 [10:01:06]line ФД: 186478 [10:01:06]line ФПД: 194356566095376 [10:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T100108&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186478&fm=194356566095376&tin=02508201610067®Number=0000000000091857&sum=50012 [10:01:06]written 0, free lines is 4095 [10:01:06]OFD Sender: Processing packet 186478 [packets to send 49, broken 48] [10:01:06]ProducePacketName [10:01:06]name=ofd_packets/00186478 [10:01:06]OFD Sender: To server: pG, [10:01:06]CommunicateWithHost lk.salyk.kg:30040 [10:01:06]ConnectInit lk.salyk.kg [10:01:07]Write to MH i2c: 01 00 00 7E 21 9F [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 07 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: 01 07 00 7E 21 00 00 00 00 00 FB 0C AD [10:01:07]RasterBufferAndPrint [10:01:07]line [10:01:07]line [10:01:07]line [10:01:07]line [10:01:07]line [10:01:07]written 0, free lines is 3329 [10:01:07]MH_Cut [10:01:07]Write to MH i2c: D1 01 00 85 21 01 78 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: D1 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: D1 01 00 [10:01:07]MH_I2C_Read... [10:01:07]Read from MH i2c: D1 01 00 85 21 00 77 [10:01:07]Write to MH i2c: 01 00 00 86 21 A7 [10:01:07]Write i2c OK [10:01:07]MH_I2C_Read... [10:01:07]Connected sock=10 [10:01:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 CA 07 01 20 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 E4 08 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D8 02 00 35 04 06 00 B0 C4 2A 14 F6 10 4D E2 C3 5D 6A 1A E7 4D [10:01:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B 31 47 00 A2 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6E D8 02 00 F4 03 04 00 3F AF B2 67 B6 04 01 00 00 82 51 F0 0B F8 12 BC 82 [10:01:07]CommunicateWithHost err = 0 [10:01:07]CheckOFDResponse [10:01:07]1017 (14) - 77093643461234 [10:01:07]1041 (16) - 0000000000871826 [10:01:07]1040 (4) - 186478 [10:01:07]1012 (4) - 17.02.2025 03:38 [10:01:07]1206 (1) - 0 [10:01:07]OFD Sender: Remove packet 186478 [10:01:07]ProducePacketName [10:01:07]name=ofd_packets/00186478 [10:01:07]NVStorageDeleteData [10:01:07]*** Cut start [10:01:07]*** Partial cut [10:01:07]*** CUTSNS_PIN = 1 [10:01:07]*** CUTSNS_PIN = 0 [10:01:07]OFD Sender: No OFD packet to send [10:01:08]*** Brake cut motor [10:01:08]Read from MH i2c: 01 [10:01:08]MH_I2C_Read... [10:01:08]*** Stop cut motor [10:01:08]*** Cut end [10:01:08]Read from MH i2c: 01 07 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: 01 07 00 86 21 00 00 00 00 00 FF 0F BC [10:01:08]process_action close_receipt done [10:01:08]requested_data is exist [10:01:08]produce_requested_data [10:01:08]requested_item fm.sn is exist - process it [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 11 00 00 [10:01:08]Write to MH i2c: E2 08 00 87 21 80 11 00 00 00 00 00 00 22 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 17 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 17 00 87 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 75 [10:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:01:08]wFMCommunicate OK [10:01:08]requested_item fd.num is exist - process it [10:01:08]SAM_PROTO_GetFieldsCounters [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 13 00 00 [10:01:08]Write to MH i2c: E2 08 00 88 21 80 13 00 00 00 00 00 00 25 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 62 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 62 00 88 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [10:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_GetFieldsCounters done [10:01:08]requested_item shift.num is exist - process it [10:01:08]requested_item shift.opened is exist - process it [10:01:08]req_shift_opened [10:01:08]FM_GetShiftState [10:01:08]SAM_PROTO_GetShiftState [10:01:08]wFMCommunicate request_size=4 [10:01:08]MH_SAM_APDU [10:01:08]CAPDU: 80 13 01 00 [10:01:08]Write to MH i2c: E2 08 00 89 21 80 13 01 00 00 00 00 00 27 [10:01:08]Write i2c OK [10:01:08]MH_I2C_Read... [10:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:08]Read from MH i2c: E2 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0E 00 [10:01:08]MH_I2C_Read... [10:01:08]Read from MH i2c: E2 0E 00 89 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4B [10:01:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:01:08]wFMCommunicate OK [10:01:08]SAM_PROTO_GetShiftState done [10:01:08]FM_GetShiftState done [10:01:08]req_shift_opened done [10:01:08]requested_item shift.open_date is exist - process it [10:01:08]req_shift_open_date [10:01:08]req_shift_open_date done [10:01:08]produce_requested_data done [10:01:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186478,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:01:08]process_action_free close_receipt [10:01:08]json_value_free [10:01:08]json_value_free done [10:01:08]process_json_proto returns [10:01:08]Send response to host [10:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186478,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:01:08]free response buf [10:01:08]execute_script done [10:01:08]execute_script returns [10:01:08]free content buf [10:01:08]Sock 9.Close socket [10:01:08]Sock 9.Thread stoped [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:03]accept exits with 8 [10:06:03]New connection [10:06:03]New thread 3067501924 created [10:06:03]Thread 3067358564 joined [10:06:03]Waiting for new connection... [10:06:03] Sock 8.Parse request [10:06:03]Sock 8.Check first char [10:06:03]Sock 8.First char is OK [10:06:03]request: POST /json_proto HTTP/1.0 [10:06:03]Method: POST [10:06:03]URL: /json_proto [10:06:03]Method is POST - this is cgi request [10:06:03]url: /json_proto [10:06:03]query_string will be loaded in cgi processing [10:06:03]execute_cgi json_proto POST (null) [10:06:03]execute_cgi path=json_proto method=POST [10:06:03]POST find Content-Length [10:06:03]Host: 172.17.46.131:8080 [10:06:03]Content-Length: 792 [10:06:03]Content-Type: application/json [10:06:03] [10:06:03]POST finish read [10:06:03]Found Content-Length = 792 [10:06:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:03]execute_script... [10:06:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.570, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A99954", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:03]POST & json_proto [10:06:03]process_json_proto [10:06:03]json parsed OK: [10:06:03]protocol is kg_v1.0 [10:06:03]action value=close_receipt [10:06:03]process_action close_receipt [10:06:03]cmd_close_receipt [10:06:03]MH_GetDate [10:06:03]Write to MH i2c: F0 00 00 8A 21 9A [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 09 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: F0 09 00 8A 21 00 0F 0A B3 67 7E 41 4F 65 49 [10:06:03]GetLastDocTimeStamp 1739786468 [10:06:03]current date 1739786767 [10:06:03]FM_GetShiftState [10:06:03]SAM_PROTO_GetShiftState [10:06:03]wFMCommunicate request_size=4 [10:06:03]MH_SAM_APDU [10:06:03]CAPDU: 80 13 01 00 [10:06:03]Write to MH i2c: E2 08 00 8B 21 80 13 01 00 00 00 00 00 29 [10:06:03]Write i2c OK [10:06:03]MH_I2C_Read... [10:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:03]Read from MH i2c: E2 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0E 00 [10:06:03]MH_I2C_Read... [10:06:03]Read from MH i2c: E2 0E 00 8B 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4D [10:06:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:06:03]wFMCommunicate OK [10:06:03]SAM_PROTO_GetShiftState done [10:06:03]FM_GetShiftState done [10:06:03]opened in 1739752571 [10:06:03]opened+sec_in_day 1739838971 [10:06:03]quantity*price = 0 [10:06:03]sum+1 = 1 [10:06:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 66 17.02.2025 10:06 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 99954 ФМ: 0000000000871826 ФД: 186479 ФПД: 218269961928943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T100607&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186479&fm=218269961928943&tin=02508201610067®Number=0000000000091857&sum=0 [10:06:04]StoreToDocumentArchive [10:06:04]shift 644 fd 186479 [10:06:04]save to /storage/0644/doc_00186479 [10:06:04]save last doc name /storage/0644/doc_00186479 to /storage/kkm_last_doc_name [10:06:04]save OK [10:06:04]Clear old archive folders... [10:06:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:04]tlvbuf is 02012D40 [10:06:04]SAM_PROTO_ClearQueue [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 09 00 00 [10:06:04]Write to MH i2c: E2 08 00 98 21 80 09 00 00 00 00 00 00 2B [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 98 21 00 90 00 2D [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]SAM_PROTO_ClearQueue done [10:06:04]KKMCreateOFDPacket [10:06:04]OFDProtocolAddRootSTLVToBuf [10:06:04]FM_MakeSignedData [10:06:04]FM_MakeSignedData [10:06:04]SAM_PROTO_SignData [10:06:04]wFMCommunicate request_size=4 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 01 02 [10:06:04]Write to MH i2c: E2 08 00 99 21 80 0D 01 02 00 00 00 00 33 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:04]Read from MH i2c: E2 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 [10:06:04]MH_I2C_Read... [10:06:04]Read from MH i2c: E2 03 00 99 21 00 90 00 2E [10:06:04]RAPDU: 90 00 [10:06:04]wFMCommunicate OK [10:06:04]wFMCommunicate request_size=255 [10:06:04]MH_SAM_APDU [10:06:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 3C 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 42 00 00 00 F4 03 04 00 0F 0A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D8 02 00 35 04 06 00 C6 [10:06:04]Write to MH i2c: E2 02 01 9A 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 3C 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 42 00 00 00 F4 03 04 00 0F 0A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D8 02 00 35 04 06 00 C6 00 00 57 [10:06:04]Write i2c OK [10:06:04]MH_I2C_Read... [10:06:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 03 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 03 00 9A 21 00 90 00 2F [10:06:05]RAPDU: 90 00 [10:06:05]wFMCommunicate OK [10:06:05]wFMCommunicate request_size=10 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 0D 02 02 05 83 EF 8B C0 EF [10:06:05]Write to MH i2c: E2 0D 00 9B 21 80 0D 02 02 05 00 83 EF 8B C0 EF 00 00 EC [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 03 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 03 00 9B 21 00 90 00 30 [10:06:05]RAPDU: 90 00 [10:06:05]wFMCommunicate OK [10:06:05]wFMCommunicate request_size=4 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 0D 03 02 [10:06:05]Write to MH i2c: E2 08 00 9C 21 80 0D 03 02 00 00 00 00 38 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 0B 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 0B 00 9C 21 00 FC 5D E3 30 B7 3E 31 2A 90 00 F5 [10:06:05]RAPDU: FC 5D E3 30 B7 3E 31 2A 90 00 [10:06:05]wFMCommunicate OK [10:06:05]SAM_PROTO_SignData done [10:06:05]FM_MakeSignedData done [10:06:05]CreateOFDProtocolMessage [10:06:05]wFMCommunicate request_size=4 [10:06:05]MH_SAM_APDU [10:06:05]CAPDU: 80 11 00 00 [10:06:05]Write to MH i2c: E2 08 00 9D 21 80 11 00 00 00 00 00 00 38 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:05]Read from MH i2c: E2 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 17 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: E2 17 00 9D 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8B [10:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:06:05]wFMCommunicate OK [10:06:05]CreateOFDProtocolMessage done [10:06:05]OFDSenderStorePacket 186479 [10:06:05]StoreOFDPacket docnum=186479 [10:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AB C0 07 01 84 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 3C 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 42 00 00 00 F4 03 04 00 0F 0A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D8 02 00 35 04 06 00 C6 83 EF 8B C0 EF FC 5D E3 30 B7 3E 31 2A [10:06:05]CheckFolder [10:06:05]dirname=/storage/ofd_packets [10:06:05]CheckFolder done [10:06:05]ProducePacketName [10:06:05]name=ofd_packets/00186479 [10:06:05]NVStorageSaveData ofd_packets/00186479 [10:06:05]File name is /storage/ofd_packets/00186479 [10:06:05]Write 301 bytes [10:06:05]NVStorageSaveData done [10:06:05]OFDSenderStorePacket done [10:06:05]KKMCreateOFDPacket done [10:06:05]NVStorageSaveData kkm_last_timestamp [10:06:05]File name is /storage/kkm_last_timestamp [10:06:05]Write 4 bytes [10:06:05]NVStorageSaveData done [10:06:05]ExternCall_PrintAddStr [10:06:05]wPrintStart [10:06:05]Write to MH i2c: 01 00 00 9E 21 BF [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 FF 0F D4 [10:06:05]RasterBufferAndPrint [10:06:05]line Счет N : (1)411611 [10:06:05]line ИНН: 02508201610067 [10:06:05]line Контрольно-Кассовый Чек [10:06:05]line ПРОДАЖА [10:06:05]line ТРК (МРК, ГНК) : 42 [10:06:05]line Товар: 2710124130 [10:06:05]line Аи-92-К-2 [10:06:05]line 15.570 * 0.00 [10:06:05]line = 0.00 [10:06:05]line НДС 12% НСП 1% [10:06:05]line > о реализуемом товаре [10:06:05]line ИТОГО: 0.00 [10:06:05]line НСП 1% : 0.00 [10:06:05]line НДС 12% : 0.00 [10:06:05]line Наличными: 0.00 [10:06:05]line Безнал.: 0.00 [10:06:05]line Место: АЗС № 92 "Партнер Нефть" [10:06:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:06:05]line СНО: Общий режим [10:06:05]line Чек 66 17.02.2025 10:06 [10:06:05]line Смена: 644 ФФД: 1.0 [10:06:05]line ЗНМ: 0300000118 [10:06:05]line РНМ: 0000000000091857 [10:06:05]line Версия ККМ: 001 [10:06:05]line Талоны: Топливная Карта [10:06:05]line 99954 [10:06:05]line ФМ: 0000000000871826 [10:06:05]line ФД: 186479 [10:06:05]line ФПД: 218269961928943 [10:06:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T100607&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186479&fm=218269961928943&tin=02508201610067®Number=0000000000091857&sum=0 [10:06:05]written 0, free lines is 4095 [10:06:05]OFD Sender: Processing packet 186479 [packets to send 49, broken 48] [10:06:05]ProducePacketName [10:06:05]name=ofd_packets/00186479 [10:06:05]OFD Sender: To server: pG, [10:06:05]CommunicateWithHost lk.salyk.kg:30040 [10:06:05]ConnectInit lk.salyk.kg [10:06:05]Connected sock=10 [10:06:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AB C0 07 01 84 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 3C 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 42 00 00 00 F4 03 04 00 0F 0A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D8 02 00 35 04 06 00 C6 83 EF 8B C0 EF FC 5D E3 30 B7 3E 31 2A [10:06:05]Write to MH i2c: 01 00 00 C8 21 E9 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: 01 07 00 C8 21 00 00 00 00 00 04 0D 01 [10:06:05]RasterBufferAndPrint [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]line [10:06:05]written 0, free lines is 3338 [10:06:05]MH_Cut [10:06:05]Write to MH i2c: D1 01 00 CF 21 01 C2 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 01 00 [10:06:05]MH_I2C_Read... [10:06:05]Read from MH i2c: D1 01 00 CF 21 00 C1 [10:06:05]Write to MH i2c: 01 00 00 D0 21 F1 [10:06:05]Write i2c OK [10:06:05]MH_I2C_Read... [10:06:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 66 51 47 00 84 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 6F D8 02 00 F4 03 04 00 69 B0 B2 67 B6 04 01 00 00 02 47 9A AA 27 4C 14 8C [10:06:05]CommunicateWithHost err = 0 [10:06:05]CheckOFDResponse [10:06:05]1017 (14) - 77093643461234 [10:06:05]1041 (16) - 0000000000871826 [10:06:05]1040 (4) - 186479 [10:06:05]1012 (4) - 17.02.2025 03:43 [10:06:05]1206 (1) - 0 [10:06:05]OFD Sender: Remove packet 186479 [10:06:05]ProducePacketName [10:06:05]name=ofd_packets/00186479 [10:06:05]NVStorageDeleteData [10:06:06]OFD Sender: No OFD packet to send [10:06:06]*** Cut start [10:06:06]*** Partial cut [10:06:06]*** CUTSNS_PIN = 1 [10:06:06]*** CUTSNS_PIN = 0 [10:06:06]*** Brake cut motor [10:06:06]Read from MH i2c: 01 [10:06:07]MH_I2C_Read... [10:06:07]*** Stop cut motor [10:06:07]*** Cut end [10:06:07]Read from MH i2c: 01 07 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: 01 07 00 D0 21 00 00 00 00 00 FF 0F 06 [10:06:07]process_action close_receipt done [10:06:07]requested_data is exist [10:06:07]produce_requested_data [10:06:07]requested_item fm.sn is exist - process it [10:06:07]wFMCommunicate request_size=4 [10:06:07]MH_SAM_APDU [10:06:07]CAPDU: 80 11 00 00 [10:06:07]Write to MH i2c: E2 08 00 D1 21 80 11 00 00 00 00 00 00 6C [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:07]Read from MH i2c: E2 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 17 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 17 00 D1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [10:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:06:07]wFMCommunicate OK [10:06:07]requested_item fd.num is exist - process it [10:06:07]SAM_PROTO_GetFieldsCounters [10:06:07]wFMCommunicate request_size=4 [10:06:07]MH_SAM_APDU [10:06:07]CAPDU: 80 13 00 00 [10:06:07]Write to MH i2c: E2 08 00 D2 21 80 13 00 00 00 00 00 00 6F [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:07]Read from MH i2c: E2 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 62 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 62 00 D2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:06:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 6F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:07]wFMCommunicate OK [10:06:07]SAM_PROTO_GetFieldsCounters done [10:06:07]requested_item shift.num is exist - process it [10:06:07]requested_item shift.opened is exist - process it [10:06:07]req_shift_opened [10:06:07]FM_GetShiftState [10:06:07]SAM_PROTO_GetShiftState [10:06:07]wFMCommunicate request_size=4 [10:06:07]MH_SAM_APDU [10:06:07]CAPDU: 80 13 01 00 [10:06:07]Write to MH i2c: E2 08 00 D3 21 80 13 01 00 00 00 00 00 71 [10:06:07]Write i2c OK [10:06:07]MH_I2C_Read... [10:06:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:07]Read from MH i2c: E2 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 0E 00 [10:06:07]MH_I2C_Read... [10:06:07]Read from MH i2c: E2 0E 00 D3 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 95 [10:06:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:06:07]wFMCommunicate OK [10:06:07]SAM_PROTO_GetShiftState done [10:06:07]FM_GetShiftState done [10:06:07]req_shift_opened done [10:06:07]requested_item shift.open_date is exist - process it [10:06:07]req_shift_open_date [10:06:07]req_shift_open_date done [10:06:07]produce_requested_data done [10:06:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186479,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:06:07]process_action_free close_receipt [10:06:07]json_value_free [10:06:07]json_value_free done [10:06:07]process_json_proto returns [10:06:07]Send response to host [10:06:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186479,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:06:07]free response buf [10:06:07]execute_script done [10:06:07]execute_script returns [10:06:07]free content buf [10:06:07]Sock 8.Close socket [10:06:07]Sock 8.Thread stoped [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:11]accept exits with 9 [10:12:11]New connection [10:12:11]New thread 3067358564 created [10:12:11]Thread 3067501924 joined [10:12:11]Waiting for new connection... [10:12:11] Sock 9.Parse request [10:12:11]Sock 9.Check first char [10:12:11]Sock 9.First char is OK [10:12:11]request: POST /json_proto HTTP/1.0 [10:12:11]Method: POST [10:12:11]URL: /json_proto [10:12:11]Method is POST - this is cgi request [10:12:11]url: /json_proto [10:12:11]query_string will be loaded in cgi processing [10:12:11]execute_cgi json_proto POST (null) [10:12:11]execute_cgi path=json_proto method=POST [10:12:11]POST find Content-Length [10:12:11]Host: 172.17.46.131:8080 [10:12:11]Content-Length: 682 [10:12:11]Content-Type: application/json [10:12:11] [10:12:11]POST finish read [10:12:11]Found Content-Length = 682 [10:12:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]execute_script... [10:12:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:11]POST & json_proto [10:12:11]process_json_proto [10:12:11]json parsed OK: [10:12:11]protocol is kg_v1.0 [10:12:11]action value=close_receipt [10:12:11]process_action close_receipt [10:12:11]cmd_close_receipt [10:12:11]MH_GetDate [10:12:11]Write to MH i2c: F0 00 00 D4 21 E4 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: F0 09 00 D4 21 00 7F 0B B3 67 7E 41 4F 65 04 [10:12:11]GetLastDocTimeStamp 1739786767 [10:12:11]current date 1739787135 [10:12:11]FM_GetShiftState [10:12:11]SAM_PROTO_GetShiftState [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 13 01 00 [10:12:11]Write to MH i2c: E2 08 00 D5 21 80 13 01 00 00 00 00 00 73 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0E 00 D5 21 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 97 [10:12:11]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_GetShiftState done [10:12:11]FM_GetShiftState done [10:12:11]opened in 1739752571 [10:12:11]opened+sec_in_day 1739838971 [10:12:11]quantity*price = 200025 [10:12:11]sum+1 = 200027 [10:12:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 67 17.02.2025 10:12 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186480 ФПД: 137334356432282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101215&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186480&fm=137334356432282&tin=02508201610067®Number=0000000000091857&sum=200000 [10:12:12]StoreToDocumentArchive [10:12:12]shift 644 fd 186480 [10:12:12]save to /storage/0644/doc_00186480 [10:12:12]save last doc name /storage/0644/doc_00186480 to /storage/kkm_last_doc_name [10:12:12]save OK [10:12:12]Clear old archive folders... [10:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:12]tlvbuf is 01FC3FE0 [10:12:12]SAM_PROTO_ClearQueue [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 09 00 00 [10:12:12]Write to MH i2c: E2 08 00 E2 21 80 09 00 00 00 00 00 00 75 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 03 00 E2 21 00 90 00 77 [10:12:12]RAPDU: 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_ClearQueue done [10:12:12]KKMCreateOFDPacket [10:12:12]OFDProtocolAddRootSTLVToBuf [10:12:12]FM_MakeSignedData [10:12:12]FM_MakeSignedData [10:12:12]SAM_PROTO_SignData [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 0D 01 02 [10:12:12]Write to MH i2c: E2 08 00 E3 21 80 0D 01 02 00 00 00 00 7D [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 E3 21 00 90 00 78 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=255 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7F 0B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D8 02 00 35 04 06 00 7C [10:12:13]Write to MH i2c: E2 02 01 E4 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7F 0B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D8 02 00 35 04 06 00 7C 00 00 53 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 E4 21 00 90 00 79 [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=10 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 02 02 05 E7 A5 87 D5 9A [10:12:13]Write to MH i2c: E2 0D 00 E5 21 80 0D 02 02 05 00 E7 A5 87 D5 9A 00 00 0C [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 03 00 E5 21 00 90 00 7A [10:12:13]RAPDU: 90 00 [10:12:13]wFMCommunicate OK [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 0D 03 02 [10:12:13]Write to MH i2c: E2 08 00 E6 21 80 0D 03 02 00 00 00 00 82 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 0B 00 E6 21 00 C0 EC 35 F3 77 4A 5B 78 90 00 EB [10:12:13]RAPDU: C0 EC 35 F3 77 4A 5B 78 90 00 [10:12:13]wFMCommunicate OK [10:12:13]SAM_PROTO_SignData done [10:12:13]FM_MakeSignedData done [10:12:13]CreateOFDProtocolMessage [10:12:13]wFMCommunicate request_size=4 [10:12:13]MH_SAM_APDU [10:12:13]CAPDU: 80 11 00 00 [10:12:13]Write to MH i2c: E2 08 00 E7 21 80 11 00 00 00 00 00 00 82 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:13]Read from MH i2c: E2 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: E2 17 00 E7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [10:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:12:13]wFMCommunicate OK [10:12:13]CreateOFDProtocolMessage done [10:12:13]OFDSenderStorePacket 186480 [10:12:13]StoreOFDPacket docnum=186480 [10:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE FA 07 01 72 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7F 0B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D8 02 00 35 04 06 00 7C E7 A5 87 D5 9A C0 EC 35 F3 77 4A 5B 78 [10:12:13]CheckFolder [10:12:13]dirname=/storage/ofd_packets [10:12:13]CheckFolder done [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00186480 [10:12:13]NVStorageSaveData ofd_packets/00186480 [10:12:13]File name is /storage/ofd_packets/00186480 [10:12:13]Write 301 bytes [10:12:13]NVStorageSaveData done [10:12:13]OFDSenderStorePacket done [10:12:13]KKMCreateOFDPacket done [10:12:13]NVStorageSaveData kkm_last_timestamp [10:12:13]File name is /storage/kkm_last_timestamp [10:12:13]Write 4 bytes [10:12:13]NVStorageSaveData done [10:12:13]ExternCall_PrintAddStr [10:12:13]wPrintStart [10:12:13]Write to MH i2c: 01 00 00 E8 21 09 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 E8 21 00 00 00 00 00 FF 0F 1E [10:12:13]RasterBufferAndPrint [10:12:13]line Счет N : (1)411612 [10:12:13]line ИНН: 02508201610067 [10:12:13]line Контрольно-Кассовый Чек [10:12:13]line ПРОДАЖА [10:12:13]line ТРК (МРК, ГНК) : 33 [10:12:13]line Товар: 2710124500 [10:12:13]line Аи-95-К-5 [10:12:13]line 27.820 * 71.90 [10:12:13]line = 2000.26 [10:12:13]line НДС 12% НСП 1% [10:12:13]line > о реализуемом товаре [10:12:13]line ОКРУГЛЕНИЕ: -0.26 [10:12:13]line ИТОГО: 2000.00 [10:12:13]line Внесено: 2000.00 [10:12:13]line СДАЧА: 0.00 [10:12:13]line НСП 1% : 17.70 [10:12:13]line НДС 12% : 212.42 [10:12:13]line Наличными: 2000.00 [10:12:13]line Безнал.: 0.00 [10:12:13]line Место: АЗС № 92 "Партнер Нефть" [10:12:13]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:12:13]line СНО: Общий режим [10:12:13]line Чек 67 17.02.2025 10:12 [10:12:13]line Смена: 644 ФФД: 1.0 [10:12:13]line ЗНМ: 0300000118 [10:12:13]line РНМ: 0000000000091857 [10:12:13]line Версия ККМ: 001 [10:12:13]line ФМ: 0000000000871826 [10:12:13]line ФД: 186480 [10:12:13]line ФПД: 137334356432282 [10:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101215&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186480&fm=137334356432282&tin=02508201610067®Number=0000000000091857&sum=200000 [10:12:13]written 0, free lines is 4095 [10:12:13]OFD Sender: Processing packet 186480 [packets to send 49, broken 48] [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00186480 [10:12:13]OFD Sender: To server: pG, [10:12:13]CommunicateWithHost lk.salyk.kg:30040 [10:12:13]ConnectInit lk.salyk.kg [10:12:13]Connected sock=10 [10:12:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FE FA 07 01 72 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 7F 0B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D8 02 00 35 04 06 00 7C E7 A5 87 D5 9A C0 EC 35 F3 77 4A 5B 78 [10:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 78 86 47 00 4C 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 70 D8 02 00 F4 03 04 00 DA B1 B2 67 B6 04 01 00 00 4D 10 DF A8 64 7E 4A A2 [10:12:13]CommunicateWithHost err = 0 [10:12:13]CheckOFDResponse [10:12:13]1017 (14) - 77093643461234 [10:12:13]1041 (16) - 0000000000871826 [10:12:13]1040 (4) - 186480 [10:12:13]1012 (4) - 17.02.2025 03:49 [10:12:13]1206 (1) - 0 [10:12:13]OFD Sender: Remove packet 186480 [10:12:13]ProducePacketName [10:12:13]name=ofd_packets/00186480 [10:12:13]NVStorageDeleteData [10:12:13]Write to MH i2c: 01 00 00 13 22 35 [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: 01 07 00 13 22 00 00 00 00 00 0B 0D 54 [10:12:13]RasterBufferAndPrint [10:12:13]line [10:12:13]line [10:12:13]line [10:12:13]line [10:12:13]line [10:12:13]written 0, free lines is 3345 [10:12:13]MH_Cut [10:12:13]Write to MH i2c: D1 01 00 1A 22 01 0E [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: D1 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: D1 01 00 [10:12:13]MH_I2C_Read... [10:12:13]Read from MH i2c: D1 01 00 1A 22 00 0D [10:12:13]Write to MH i2c: 01 00 00 1B 22 3D [10:12:13]Write i2c OK [10:12:13]MH_I2C_Read... [10:12:14]OFD Sender: No OFD packet to send [10:12:14]*** Cut start [10:12:14]*** Partial cut [10:12:14]*** CUTSNS_PIN = 1 [10:12:14]*** CUTSNS_PIN = 0 [10:12:14]*** Brake cut motor [10:12:15]Read from MH i2c: 01 [10:12:15]MH_I2C_Read... [10:12:15]*** Stop cut motor [10:12:15]*** Cut end [10:12:15]Read from MH i2c: 01 07 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: 01 07 00 1B 22 00 00 00 00 00 FF 0F 52 [10:12:15]process_action close_receipt done [10:12:15]requested_data is exist [10:12:15]produce_requested_data [10:12:15]requested_item fm.sn is exist - process it [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 11 00 00 [10:12:15]Write to MH i2c: E2 08 00 1C 22 80 11 00 00 00 00 00 00 B8 [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 17 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 17 00 1C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [10:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:12:15]wFMCommunicate OK [10:12:15]requested_item fd.num is exist - process it [10:12:15]SAM_PROTO_GetFieldsCounters [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 13 00 00 [10:12:15]Write to MH i2c: E2 08 00 1D 22 80 13 00 00 00 00 00 00 BB [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 62 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 62 00 1D 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [10:12:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 70 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:15]wFMCommunicate OK [10:12:15]SAM_PROTO_GetFieldsCounters done [10:12:15]requested_item shift.num is exist - process it [10:12:15]requested_item shift.opened is exist - process it [10:12:15]req_shift_opened [10:12:15]FM_GetShiftState [10:12:15]SAM_PROTO_GetShiftState [10:12:15]wFMCommunicate request_size=4 [10:12:15]MH_SAM_APDU [10:12:15]CAPDU: 80 13 01 00 [10:12:15]Write to MH i2c: E2 08 00 1E 22 80 13 01 00 00 00 00 00 BD [10:12:15]Write i2c OK [10:12:15]MH_I2C_Read... [10:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:15]Read from MH i2c: E2 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 [10:12:15]MH_I2C_Read... [10:12:15]Read from MH i2c: E2 0E 00 1E 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E1 [10:12:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:12:15]wFMCommunicate OK [10:12:15]SAM_PROTO_GetShiftState done [10:12:15]FM_GetShiftState done [10:12:15]req_shift_opened done [10:12:15]requested_item shift.open_date is exist - process it [10:12:15]req_shift_open_date [10:12:15]req_shift_open_date done [10:12:15]produce_requested_data done [10:12:15]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186480,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:12:15]process_action_free close_receipt [10:12:15]json_value_free [10:12:15]json_value_free done [10:12:15]process_json_proto returns [10:12:15]Send response to host [10:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186480,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:12:15]free response buf [10:12:15]execute_script done [10:12:15]execute_script returns [10:12:15]free content buf [10:12:15]Sock 9.Close socket [10:12:15]Sock 9.Thread stoped [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:38]accept exits with 8 [10:14:38]New connection [10:14:38]New thread 3067501924 created [10:14:38]Thread 3067358564 joined [10:14:38]Waiting for new connection... [10:14:38] Sock 8.Parse request [10:14:38]Sock 8.Check first char [10:14:38]Sock 8.First char is OK [10:14:38]request: POST /json_proto HTTP/1.0 [10:14:38]Method: POST [10:14:38]URL: /json_proto [10:14:38]Method is POST - this is cgi request [10:14:38]url: /json_proto [10:14:38]query_string will be loaded in cgi processing [10:14:38]execute_cgi json_proto POST (null) [10:14:38]execute_cgi path=json_proto method=POST [10:14:38]POST find Content-Length [10:14:38]Host: 172.17.46.131:8080 [10:14:38]Content-Length: 677 [10:14:38]Content-Type: application/json [10:14:38] [10:14:38]POST finish read [10:14:38]Found Content-Length = 677 [10:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:38]execute_script... [10:14:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:38]POST & json_proto [10:14:38]process_json_proto [10:14:38]json parsed OK: [10:14:38]protocol is kg_v1.0 [10:14:38]action value=close_receipt [10:14:38]process_action close_receipt [10:14:38]cmd_close_receipt [10:14:38]MH_GetDate [10:14:38]Write to MH i2c: F0 00 00 1F 22 30 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 09 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 09 00 1F 22 00 12 0C B3 67 7E 41 4F 65 E4 [10:14:38]GetLastDocTimeStamp 1739787135 [10:14:38]current date 1739787282 [10:14:38]FM_GetShiftState [10:14:38]SAM_PROTO_GetShiftState [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 13 01 00 [10:14:38]Write to MH i2c: E2 08 00 20 22 80 13 01 00 00 00 00 00 BF [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 20 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E3 [10:14:38]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_GetShiftState done [10:14:38]FM_GetShiftState done [10:14:38]opened in 1739752571 [10:14:38]opened+sec_in_day 1739838971 [10:14:38]quantity*price = 30045 [10:14:38]sum+1 = 30047 [10:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 68 17.02.2025 10:14 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186481 ФПД: 49072231194409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186481&fm=49072231194409&tin=02508201610067®Number=0000000000091857&sum=30000 [10:14:40]StoreToDocumentArchive [10:14:40]shift 644 fd 186481 [10:14:40]save to /storage/0644/doc_00186481 [10:14:40]save last doc name /storage/0644/doc_00186481 to /storage/kkm_last_doc_name [10:14:40]save OK [10:14:40]Clear old archive folders... [10:14:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:40]tlvbuf is B6FDE370 [10:14:40]SAM_PROTO_ClearQueue [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 09 00 00 [10:14:40]Write to MH i2c: E2 08 00 2D 22 80 09 00 00 00 00 00 00 C1 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 2D 22 00 90 00 C3 [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_ClearQueue done [10:14:40]KKMCreateOFDPacket [10:14:40]OFDProtocolAddRootSTLVToBuf [10:14:40]FM_MakeSignedData [10:14:40]FM_MakeSignedData [10:14:40]SAM_PROTO_SignData [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 01 02 [10:14:40]Write to MH i2c: E2 08 00 2E 22 80 0D 01 02 00 00 00 00 C9 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 2E 22 00 90 00 C4 [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]wFMCommunicate request_size=255 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 12 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D8 02 00 35 04 06 00 2C [10:14:40]Write to MH i2c: E2 02 01 2F 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 12 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D8 02 00 35 04 06 00 2C 00 00 80 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 2F 22 00 90 00 C5 [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]wFMCommunicate request_size=10 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 02 02 05 A1 84 E8 9F 29 [10:14:40]Write to MH i2c: E2 0D 00 30 22 80 0D 02 02 05 00 A1 84 E8 9F 29 00 00 AB [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 03 00 30 22 00 90 00 C6 [10:14:40]RAPDU: 90 00 [10:14:40]wFMCommunicate OK [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 0D 03 02 [10:14:40]Write to MH i2c: E2 08 00 31 22 80 0D 03 02 00 00 00 00 CE [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0B 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0B 00 31 22 00 CD 4B A4 9B A1 9E 85 3F 90 00 29 [10:14:40]RAPDU: CD 4B A4 9B A1 9E 85 3F 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_SignData done [10:14:40]FM_MakeSignedData done [10:14:40]CreateOFDProtocolMessage [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 11 00 00 [10:14:40]Write to MH i2c: E2 08 00 32 22 80 11 00 00 00 00 00 00 CE [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 32 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [10:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:14:40]wFMCommunicate OK [10:14:40]CreateOFDProtocolMessage done [10:14:40]OFDSenderStorePacket 186481 [10:14:40]StoreOFDPacket docnum=186481 [10:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 90 07 01 75 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 12 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D8 02 00 35 04 06 00 2C A1 84 E8 9F 29 CD 4B A4 9B A1 9E 85 3F [10:14:40]CheckFolder [10:14:40]dirname=/storage/ofd_packets [10:14:40]CheckFolder done [10:14:40]ProducePacketName [10:14:40]name=ofd_packets/00186481 [10:14:40]NVStorageSaveData ofd_packets/00186481 [10:14:40]File name is /storage/ofd_packets/00186481 [10:14:40]Write 301 bytes [10:14:40]NVStorageSaveData done [10:14:40]OFDSenderStorePacket done [10:14:40]KKMCreateOFDPacket done [10:14:40]NVStorageSaveData kkm_last_timestamp [10:14:40]File name is /storage/kkm_last_timestamp [10:14:40]Write 4 bytes [10:14:40]NVStorageSaveData done [10:14:40]ExternCall_PrintAddStr [10:14:40]wPrintStart [10:14:40]Write to MH i2c: 01 00 00 33 22 55 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 33 22 00 00 00 00 00 FF 0F 6A [10:14:40]RasterBufferAndPrint [10:14:40]line Счет N : (1)411613 [10:14:40]line ИНН: 02508201610067 [10:14:40]line Контрольно-Кассовый Чек [10:14:40]line ПРОДАЖА [10:14:40]line ТРК (МРК, ГНК) : 12 [10:14:40]line Товар: 2710124130 [10:14:40]line Аи-92-К-2 [10:14:40]line 4.680 * 64.20 [10:14:40]line = 300.46 [10:14:40]line НДС 12% НСП 1% [10:14:40]line > о реализуемом товаре [10:14:40]line ОКРУГЛЕНИЕ: -0.46 [10:14:40]line ИТОГО: 300.00 [10:14:40]line Внесено: 300.00 [10:14:40]line СДАЧА: 0.00 [10:14:40]line НСП 1% : 2.66 [10:14:40]line НДС 12% : 31.91 [10:14:40]line Наличными: 300.00 [10:14:40]line Безнал.: 0.00 [10:14:40]line Место: АЗС № 92 "Партнер Нефть" [10:14:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:14:40]line СНО: Общий режим [10:14:40]line Чек 68 17.02.2025 10:14 [10:14:40]line Смена: 644 ФФД: 1.0 [10:14:40]line ЗНМ: 0300000118 [10:14:40]line РНМ: 0000000000091857 [10:14:40]line Версия ККМ: 001 [10:14:40]line ФМ: 0000000000871826 [10:14:40]line ФД: 186481 [10:14:40]line ФПД: 49072231194409 [10:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101442&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186481&fm=49072231194409&tin=02508201610067®Number=0000000000091857&sum=30000 [10:14:40]written 0, free lines is 4095 [10:14:40]OFD Sender: Processing packet 186481 [packets to send 49, broken 48] [10:14:40]ProducePacketName [10:14:40]name=ofd_packets/00186481 [10:14:40]OFD Sender: To server: pG, [10:14:40]CommunicateWithHost lk.salyk.kg:30040 [10:14:40]ConnectInit lk.salyk.kg [10:14:41]Connected sock=10 [10:14:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 85 90 07 01 75 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 12 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D8 02 00 35 04 06 00 2C A1 84 E8 9F 29 CD 4B A4 9B A1 9E 85 3F [10:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9E 35 47 00 28 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 71 D8 02 00 F4 03 04 00 6D B2 B2 67 B6 04 01 00 00 D7 89 3C AA FC 28 56 EE [10:14:41]CommunicateWithHost err = 0 [10:14:41]CheckOFDResponse [10:14:41]1017 (14) - 77093643461234 [10:14:41]1041 (16) - 0000000000871826 [10:14:41]1040 (4) - 186481 [10:14:41]1012 (4) - 17.02.2025 03:52 [10:14:41]1206 (1) - 0 [10:14:41]OFD Sender: Remove packet 186481 [10:14:41]ProducePacketName [10:14:41]name=ofd_packets/00186481 [10:14:41]NVStorageDeleteData [10:14:41]Write to MH i2c: 01 00 00 5E 22 80 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: 01 07 00 5E 22 00 00 00 00 00 01 0D 95 [10:14:41]RasterBufferAndPrint [10:14:41]line [10:14:41]line [10:14:41]line [10:14:41]line [10:14:41]line [10:14:41]written 0, free lines is 3335 [10:14:41]MH_Cut [10:14:41]Write to MH i2c: D1 01 00 65 22 01 59 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: D1 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: D1 01 00 [10:14:41]MH_I2C_Read... [10:14:41]Read from MH i2c: D1 01 00 65 22 00 58 [10:14:41]Write to MH i2c: 01 00 00 66 22 88 [10:14:41]Write i2c OK [10:14:41]MH_I2C_Read... [10:14:41]OFD Sender: No OFD packet to send [10:14:42]*** Cut start [10:14:42]*** Partial cut [10:14:42]*** CUTSNS_PIN = 1 [10:14:42]*** CUTSNS_PIN = 0 [10:14:42]*** Brake cut motor [10:14:42]Read from MH i2c: 01 [10:14:42]MH_I2C_Read... [10:14:42]*** Stop cut motor [10:14:42]*** Cut end [10:14:42]Read from MH i2c: 01 07 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 66 22 00 00 00 00 00 FF 0F 9D [10:14:42]process_action close_receipt done [10:14:42]requested_data is exist [10:14:42]produce_requested_data [10:14:42]requested_item fm.sn is exist - process it [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 11 00 00 [10:14:42]Write to MH i2c: E2 08 00 67 22 80 11 00 00 00 00 00 00 03 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 67 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 56 [10:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:14:42]wFMCommunicate OK [10:14:42]requested_item fd.num is exist - process it [10:14:42]SAM_PROTO_GetFieldsCounters [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 13 00 00 [10:14:42]Write to MH i2c: E2 08 00 68 22 80 13 00 00 00 00 00 00 06 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 62 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 62 00 68 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10:14: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 71 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetFieldsCounters done [10:14:43]requested_item shift.num is exist - process it [10:14:43]requested_item shift.opened is exist - process it [10:14:43]req_shift_opened [10:14:43]FM_GetShiftState [10:14:43]SAM_PROTO_GetShiftState [10:14:43]wFMCommunicate request_size=4 [10:14:43]MH_SAM_APDU [10:14:43]CAPDU: 80 13 01 00 [10:14:43]Write to MH i2c: E2 08 00 69 22 80 13 01 00 00 00 00 00 08 [10:14:43]Write i2c OK [10:14:43]MH_I2C_Read... [10:14:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:43]Read from MH i2c: E2 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 [10:14:43]MH_I2C_Read... [10:14:43]Read from MH i2c: E2 0E 00 69 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2C [10:14:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:14:43]wFMCommunicate OK [10:14:43]SAM_PROTO_GetShiftState done [10:14:43]FM_GetShiftState done [10:14:43]req_shift_opened done [10:14:43]requested_item shift.open_date is exist - process it [10:14:43]req_shift_open_date [10:14:43]req_shift_open_date done [10:14:43]produce_requested_data done [10:14:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186481,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:14:43]process_action_free close_receipt [10:14:43]json_value_free [10:14:43]json_value_free done [10:14:43]process_json_proto returns [10:14:43]Send response to host [10:14:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186481,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:14:43]free response buf [10:14:43]execute_script done [10:14:43]execute_script returns [10:14:43]free content buf [10:14:43]Sock 8.Close socket [10:14:43]Sock 8.Thread stoped [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:03]accept exits with 9 [10:17:03]New connection [10:17:03]New thread 3067358564 created [10:17:03]Thread 3067501924 joined [10:17:03]Waiting for new connection... [10:17:03] Sock 9.Parse request [10:17:03]Sock 9.Check first char [10:17:03]Sock 9.First char is OK [10:17:03]request: POST /json_proto HTTP/1.0 [10:17:03]Method: POST [10:17:03]URL: /json_proto [10:17:03]Method is POST - this is cgi request [10:17:03]url: /json_proto [10:17:03]query_string will be loaded in cgi processing [10:17:03]execute_cgi json_proto POST (null) [10:17:03]execute_cgi path=json_proto method=POST [10:17:03]POST find Content-Length [10:17:03]Host: 172.17.46.131:8080 [10:17:03]Content-Length: 678 [10:17:03]Content-Type: application/json [10:17:03] [10:17:03]POST finish read [10:17:03]Found Content-Length = 678 [10:17:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]execute_script... [10:17:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:03]POST & json_proto [10:17:03]process_json_proto [10:17:03]json parsed OK: [10:17:03]protocol is kg_v1.0 [10:17:03]action value=close_receipt [10:17:03]process_action close_receipt [10:17:03]cmd_close_receipt [10:17:03]MH_GetDate [10:17:03]Write to MH i2c: F0 00 00 6A 22 7B [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: F0 09 00 6A 22 00 A3 0C B3 67 7E 41 4F 65 C0 [10:17:03]GetLastDocTimeStamp 1739787282 [10:17:03]current date 1739787427 [10:17:03]FM_GetShiftState [10:17:03]SAM_PROTO_GetShiftState [10:17:03]wFMCommunicate request_size=4 [10:17:03]MH_SAM_APDU [10:17:03]CAPDU: 80 13 01 00 [10:17:03]Write to MH i2c: E2 08 00 6B 22 80 13 01 00 00 00 00 00 0A [10:17:03]Write i2c OK [10:17:03]MH_I2C_Read... [10:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:03]Read from MH i2c: E2 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 [10:17:03]MH_I2C_Read... [10:17:03]Read from MH i2c: E2 0E 00 6B 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2E [10:17:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:17:03]wFMCommunicate OK [10:17:03]SAM_PROTO_GetShiftState done [10:17:03]FM_GetShiftState done [10:17:03]opened in 1739752571 [10:17:03]opened+sec_in_day 1739838971 [10:17:03]quantity*price = 100042 [10:17:03]sum+1 = 100044 [10:17:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 69 17.02.2025 10:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186482 ФПД: 279889281046126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101707&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186482&fm=279889281046126&tin=02508201610067®Number=0000000000091857&sum=100000 [10:17:04]StoreToDocumentArchive [10:17:04]shift 644 fd 186482 [10:17:04]save to /storage/0644/doc_00186482 [10:17:04]save last doc name /storage/0644/doc_00186482 to /storage/kkm_last_doc_name [10:17:04]save OK [10:17:04]Clear old archive folders... [10:17:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:17:04]tlvbuf is B6F470E0 [10:17:04]SAM_PROTO_ClearQueue [10:17:04]wFMCommunicate request_size=4 [10:17:04]MH_SAM_APDU [10:17:04]CAPDU: 80 09 00 00 [10:17:04]Write to MH i2c: E2 08 00 78 22 80 09 00 00 00 00 00 00 0C [10:17:04]Write i2c OK [10:17:04]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 78 22 00 90 00 0E [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_ClearQueue done [10:17:05]KKMCreateOFDPacket [10:17:05]OFDProtocolAddRootSTLVToBuf [10:17:05]FM_MakeSignedData [10:17:05]FM_MakeSignedData [10:17:05]SAM_PROTO_SignData [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 01 02 [10:17:05]Write to MH i2c: E2 08 00 79 22 80 0D 01 02 00 00 00 00 14 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 79 22 00 90 00 0F [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=255 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D8 02 00 35 04 06 00 FE 8E CD 2C [10:17:05]Write to MH i2c: E2 02 01 7A 22 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D8 02 00 35 04 06 00 FE 8E CD 2C 00 00 1D [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 7A 22 00 90 00 10 [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=7 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 02 02 02 56 6E [10:17:05]Write to MH i2c: E2 0A 00 7B 22 80 0D 02 02 02 00 56 6E 00 00 DF [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 03 00 7B 22 00 90 00 11 [10:17:05]RAPDU: 90 00 [10:17:05]wFMCommunicate OK [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 0D 03 02 [10:17:05]Write to MH i2c: E2 08 00 7C 22 80 0D 03 02 00 00 00 00 19 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 0B 00 7C 22 00 9D 64 7E C9 D3 0A 11 FE 90 00 4E [10:17:05]RAPDU: 9D 64 7E C9 D3 0A 11 FE 90 00 [10:17:05]wFMCommunicate OK [10:17:05]SAM_PROTO_SignData done [10:17:05]FM_MakeSignedData done [10:17:05]CreateOFDProtocolMessage [10:17:05]wFMCommunicate request_size=4 [10:17:05]MH_SAM_APDU [10:17:05]CAPDU: 80 11 00 00 [10:17:05]Write to MH i2c: E2 08 00 7D 22 80 11 00 00 00 00 00 00 19 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:05]Read from MH i2c: E2 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: E2 17 00 7D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6C [10:17:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:17:05]wFMCommunicate OK [10:17:05]CreateOFDProtocolMessage done [10:17:05]OFDSenderStorePacket 186482 [10:17:05]StoreOFDPacket docnum=186482 [10:17:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 41 25 04 01 B8 8B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D8 02 00 35 04 06 00 FE 8E CD 2C 56 6E 9D 64 7E C9 D3 0A 11 FE [10:17:05]CheckFolder [10:17:05]dirname=/storage/ofd_packets [10:17:05]CheckFolder done [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00186482 [10:17:05]NVStorageSaveData ofd_packets/00186482 [10:17:05]File name is /storage/ofd_packets/00186482 [10:17:05]Write 298 bytes [10:17:05]NVStorageSaveData done [10:17:05]OFDSenderStorePacket done [10:17:05]KKMCreateOFDPacket done [10:17:05]NVStorageSaveData kkm_last_timestamp [10:17:05]File name is /storage/kkm_last_timestamp [10:17:05]Write 4 bytes [10:17:05]NVStorageSaveData done [10:17:05]ExternCall_PrintAddStr [10:17:05]wPrintStart [10:17:05]Write to MH i2c: 01 00 00 7E 22 A0 [10:17:05]Write i2c OK [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 [10:17:05]MH_I2C_Read... [10:17:05]Read from MH i2c: 01 07 00 7E 22 00 00 00 00 00 FF 0F B5 [10:17:05]RasterBufferAndPrint [10:17:05]line Счет N : (1)411614 [10:17:05]line ИНН: 02508201610067 [10:17:05]line Контрольно-Кассовый Чек [10:17:05]line ПРОДАЖА [10:17:05]line ТРК (МРК, ГНК) : 5 [10:17:05]line Товар: 2710194210 [10:17:05]line ДТ-К-5 [10:17:05]line 13.780 * 72.60 [10:17:05]line = 1000.43 [10:17:05]line НДС 12% НСП 1% [10:17:05]line > о реализуемом товаре [10:17:05]line ОКРУГЛЕНИЕ: -0.43 [10:17:05]line ИТОГО: 1000.00 [10:17:05]line Внесено: 1000.00 [10:17:05]line СДАЧА: 0.00 [10:17:05]line НСП 1% : 8.85 [10:17:05]line НДС 12% : 106.24 [10:17:05]line Наличными: 1000.00 [10:17:05]line Безнал.: 0.00 [10:17:05]line Место: АЗС № 92 "Партнер Нефть" [10:17:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:17:05]line СНО: Общий режим [10:17:05]line Чек 69 17.02.2025 10:17 [10:17:05]line Смена: 644 ФФД: 1.0 [10:17:05]line ЗНМ: 0300000118 [10:17:05]line РНМ: 0000000000091857 [10:17:05]line Версия ККМ: 001 [10:17:05]line ФМ: 0000000000871826 [10:17:05]line ФД: 186482 [10:17:05]line ФПД: 279889281046126 [10:17:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T101707&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186482&fm=279889281046126&tin=02508201610067®Number=0000000000091857&sum=100000 [10:17:05]OFD Sender: Processing packet 186482 [packets to send 49, broken 48] [10:17:05]ProducePacketName [10:17:05]name=ofd_packets/00186482 [10:17:05]OFD Sender: To server: pG, [10:17:05]CommunicateWithHost lk.salyk.kg:30040 [10:17:05]ConnectInit lk.salyk.kg [10:17:05]written 0, free lines is 4095 [10:17:05]Connected sock=10 [10:17:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 41 25 04 01 B8 8B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 A3 0C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D8 02 00 35 04 06 00 FE 8E CD 2C 56 6E 9D 64 7E C9 D3 0A 11 FE [10:17:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AE 30 47 00 0F 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 72 D8 02 00 F4 03 04 00 FE B2 B2 67 B6 04 01 00 00 7E 0A EC ED 64 40 5D A1 [10:17:06]CommunicateWithHost err = 0 [10:17:06]CheckOFDResponse [10:17:06]1017 (14) - 77093643461234 [10:17:06]1041 (16) - 0000000000871826 [10:17:06]1040 (4) - 186482 [10:17:06]1012 (4) - 17.02.2025 03:54 [10:17:06]1206 (1) - 0 [10:17:06]OFD Sender: Remove packet 186482 [10:17:06]ProducePacketName [10:17:06]name=ofd_packets/00186482 [10:17:06]NVStorageDeleteData [10:17:06]Write to MH i2c: 01 00 00 A9 22 CB [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 07 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: 01 07 00 A9 22 00 00 00 00 00 F7 0C D5 [10:17:06]RasterBufferAndPrint [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]line [10:17:06]written 0, free lines is 3328 [10:17:06]MH_Cut [10:17:06]Write to MH i2c: D1 01 00 B0 22 01 A4 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 01 00 [10:17:06]MH_I2C_Read... [10:17:06]Read from MH i2c: D1 01 00 B0 22 00 A3 [10:17:06]Write to MH i2c: 01 00 00 B1 22 D3 [10:17:06]Write i2c OK [10:17:06]MH_I2C_Read... [10:17:06]OFD Sender: No OFD packet to send [10:17:06]*** Cut start [10:17:06]*** Partial cut [10:17:06]*** CUTSNS_PIN = 1 [10:17:07]*** CUTSNS_PIN = 0 [10:17:07]*** Brake cut motor [10:17:07]Read from MH i2c: 01 [10:17:07]MH_I2C_Read... [10:17:07]*** Stop cut motor [10:17:07]*** Cut end [10:17:07]Read from MH i2c: 01 07 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: 01 07 00 B1 22 00 00 00 00 00 FF 0F E8 [10:17:07]process_action close_receipt done [10:17:07]requested_data is exist [10:17:07]produce_requested_data [10:17:07]requested_item fm.sn is exist - process it [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 11 00 00 [10:17:07]Write to MH i2c: E2 08 00 B2 22 80 11 00 00 00 00 00 00 4E [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 17 00 B2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A1 [10:17:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:17:07]wFMCommunicate OK [10:17:07]requested_item fd.num is exist - process it [10:17:07]SAM_PROTO_GetFieldsCounters [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 00 00 [10:17:07]Write to MH i2c: E2 08 00 B3 22 80 13 00 00 00 00 00 00 51 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 62 00 B3 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:17:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 72 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetFieldsCounters done [10:17:07]requested_item shift.num is exist - process it [10:17:07]requested_item shift.opened is exist - process it [10:17:07]req_shift_opened [10:17:07]FM_GetShiftState [10:17:07]SAM_PROTO_GetShiftState [10:17:07]wFMCommunicate request_size=4 [10:17:07]MH_SAM_APDU [10:17:07]CAPDU: 80 13 01 00 [10:17:07]Write to MH i2c: E2 08 00 B4 22 80 13 01 00 00 00 00 00 53 [10:17:07]Write i2c OK [10:17:07]MH_I2C_Read... [10:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:07]Read from MH i2c: E2 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0E 00 [10:17:07]MH_I2C_Read... [10:17:07]Read from MH i2c: E2 0E 00 B4 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 77 [10:17:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:17:07]wFMCommunicate OK [10:17:07]SAM_PROTO_GetShiftState done [10:17:07]FM_GetShiftState done [10:17:07]req_shift_opened done [10:17:07]requested_item shift.open_date is exist - process it [10:17:07]req_shift_open_date [10:17:07]req_shift_open_date done [10:17:07]produce_requested_data done [10:17:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186482,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:17:07]process_action_free close_receipt [10:17:07]json_value_free [10:17:07]json_value_free done [10:17:07]process_json_proto returns [10:17:07]Send response to host [10:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186482,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:17:07]free response buf [10:17:07]execute_script done [10:17:07]execute_script returns [10:17:07]free content buf [10:17:07]Sock 9.Close socket [10:17:07]Sock 9.Thread stoped [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:43]accept exits with 8 [10:20:43]New connection [10:20:43]New thread 3067501924 created [10:20:43]Thread 3067358564 joined [10:20:43]Waiting for new connection... [10:20:43] Sock 8.Parse request [10:20:43]Sock 8.Check first char [10:20:43]Sock 8.First char is OK [10:20:43]request: POST /json_proto HTTP/1.0 [10:20:43]Method: POST [10:20:43]URL: /json_proto [10:20:43]Method is POST - this is cgi request [10:20:43]url: /json_proto [10:20:43]query_string will be loaded in cgi processing [10:20:43]execute_cgi json_proto POST (null) [10:20:43]execute_cgi path=json_proto method=POST [10:20:43]POST find Content-Length [10:20:43]Host: 172.17.46.131:8080 [10:20:43]Content-Length: 677 [10:20:43]Content-Type: application/json [10:20:43] [10:20:43]POST finish read [10:20:43]Found Content-Length = 677 [10:20:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:43]execute_script... [10:20:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:43]POST & json_proto [10:20:43]process_json_proto [10:20:43]json parsed OK: [10:20:43]protocol is kg_v1.0 [10:20:43]action value=close_receipt [10:20:43]process_action close_receipt [10:20:43]cmd_close_receipt [10:20:43]MH_GetDate [10:20:43]Write to MH i2c: F0 00 00 B5 22 C6 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 09 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: F0 09 00 B5 22 00 7F 0D B3 67 7E 41 4F 65 E8 [10:20:43]GetLastDocTimeStamp 1739787427 [10:20:43]current date 1739787647 [10:20:43]FM_GetShiftState [10:20:43]SAM_PROTO_GetShiftState [10:20:43]wFMCommunicate request_size=4 [10:20:43]MH_SAM_APDU [10:20:43]CAPDU: 80 13 01 00 [10:20:43]Write to MH i2c: E2 08 00 B6 22 80 13 01 00 00 00 00 00 55 [10:20:43]Write i2c OK [10:20:43]MH_I2C_Read... [10:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:43]Read from MH i2c: E2 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0E 00 [10:20:43]MH_I2C_Read... [10:20:43]Read from MH i2c: E2 0E 00 B6 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 79 [10:20:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:20:43]wFMCommunicate OK [10:20:43]SAM_PROTO_GetShiftState done [10:20:43]FM_GetShiftState done [10:20:43]opened in 1739752571 [10:20:43]opened+sec_in_day 1739838971 [10:20:43]quantity*price = 25038 [10:20:43]sum+1 = 25039 [10:20:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 70 17.02.2025 10:20 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186483 ФПД: 277879578915838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186483&fm=277879578915838&tin=02508201610067®Number=0000000000091857&sum=25000 [10:20:44]StoreToDocumentArchive [10:20:44]shift 644 fd 186483 [10:20:44]save to /storage/0644/doc_00186483 [10:20:44]save last doc name /storage/0644/doc_00186483 to /storage/kkm_last_doc_name [10:20:44]save OK [10:20:44]Clear old archive folders... [10:20:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:44]tlvbuf is 02005A30 [10:20:44]SAM_PROTO_ClearQueue [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 09 00 00 [10:20:44]Write to MH i2c: E2 08 00 C3 22 80 09 00 00 00 00 00 00 57 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 C3 22 00 90 00 59 [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_ClearQueue done [10:20:44]KKMCreateOFDPacket [10:20:44]OFDProtocolAddRootSTLVToBuf [10:20:44]FM_MakeSignedData [10:20:44]FM_MakeSignedData [10:20:44]SAM_PROTO_SignData [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 01 02 [10:20:44]Write to MH i2c: E2 08 00 C4 22 80 0D 01 02 00 00 00 00 5F [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 C4 22 00 90 00 5A [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=255 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D8 02 00 35 04 06 00 FC [10:20:44]Write to MH i2c: E2 02 01 C5 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D8 02 00 35 04 06 00 FC 00 00 2A [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 C5 22 00 90 00 5B [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=10 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 02 02 05 BA E1 97 73 FE [10:20:44]Write to MH i2c: E2 0D 00 C6 22 80 0D 02 02 05 00 BA E1 97 73 FE 00 00 0F [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 03 00 C6 22 00 90 00 5C [10:20:44]RAPDU: 90 00 [10:20:44]wFMCommunicate OK [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 0D 03 02 [10:20:44]Write to MH i2c: E2 08 00 C7 22 80 0D 03 02 00 00 00 00 64 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0B 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 0B 00 C7 22 00 01 C7 C3 7F EC 67 32 54 90 00 48 [10:20:44]RAPDU: 01 C7 C3 7F EC 67 32 54 90 00 [10:20:44]wFMCommunicate OK [10:20:44]SAM_PROTO_SignData done [10:20:44]FM_MakeSignedData done [10:20:44]CreateOFDProtocolMessage [10:20:44]wFMCommunicate request_size=4 [10:20:44]MH_SAM_APDU [10:20:44]CAPDU: 80 11 00 00 [10:20:44]Write to MH i2c: E2 08 00 C8 22 80 11 00 00 00 00 00 00 64 [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:44]Read from MH i2c: E2 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: E2 17 00 C8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B7 [10:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:20:44]wFMCommunicate OK [10:20:44]CreateOFDProtocolMessage done [10:20:44]OFDSenderStorePacket 186483 [10:20:44]StoreOFDPacket docnum=186483 [10:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 8B 07 01 66 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D8 02 00 35 04 06 00 FC BA E1 97 73 FE 01 C7 C3 7F EC 67 32 54 [10:20:44]CheckFolder [10:20:44]dirname=/storage/ofd_packets [10:20:44]CheckFolder done [10:20:44]ProducePacketName [10:20:44]name=ofd_packets/00186483 [10:20:44]NVStorageSaveData ofd_packets/00186483 [10:20:44]File name is /storage/ofd_packets/00186483 [10:20:44]Write 301 bytes [10:20:44]NVStorageSaveData done [10:20:44]OFDSenderStorePacket done [10:20:44]KKMCreateOFDPacket done [10:20:44]NVStorageSaveData kkm_last_timestamp [10:20:44]File name is /storage/kkm_last_timestamp [10:20:44]Write 4 bytes [10:20:44]NVStorageSaveData done [10:20:44]ExternCall_PrintAddStr [10:20:44]wPrintStart [10:20:44]Write to MH i2c: 01 00 00 C9 22 EB [10:20:44]Write i2c OK [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 [10:20:44]MH_I2C_Read... [10:20:44]Read from MH i2c: 01 07 00 C9 22 00 00 00 00 00 FF 0F 00 [10:20:44]RasterBufferAndPrint [10:20:44]line Счет N : (1)411615 [10:20:44]line ИНН: 02508201610067 [10:20:44]line Контрольно-Кассовый Чек [10:20:44]line ПРОДАЖА [10:20:44]line ТРК (МРК, ГНК) : 22 [10:20:44]line Товар: 2710124130 [10:20:44]line Аи-92-К-2 [10:20:44]line 3.900 * 64.20 [10:20:44]line = 250.38 [10:20:44]line НДС 12% НСП 1% [10:20:44]line > о реализуемом товаре [10:20:44]line ОКРУГЛЕНИЕ: -0.38 [10:20:44]line ИТОГО: 250.00 [10:20:44]line Внесено: 250.00 [10:20:44]line СДАЧА: 0.00 [10:20:44]line НСП 1% : 2.22 [10:20:44]line НДС 12% : 26.59 [10:20:44]line Наличными: 250.00 [10:20:44]line Безнал.: 0.00 [10:20:44]line Место: АЗС № 92 "Партнер Нефть" [10:20:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:20:44]line СНО: Общий режим [10:20:44]line Чек 70 17.02.2025 10:20 [10:20:44]line Смена: 644 ФФД: 1.0 [10:20:44]line ЗНМ: 0300000118 [10:20:44]line РНМ: 0000000000091857 [10:20:44]line Версия ККМ: 001 [10:20:44]line ФМ: 0000000000871826 [10:20:44]line ФД: 186483 [10:20:44]line ФПД: 277879578915838 [10:20:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102047&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186483&fm=277879578915838&tin=02508201610067®Number=0000000000091857&sum=25000 [10:20:45]OFD Sender: Processing packet 186483 [packets to send 49, broken 48] [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00186483 [10:20:45]OFD Sender: To server: pG, [10:20:45]CommunicateWithHost lk.salyk.kg:30040 [10:20:45]ConnectInit lk.salyk.kg [10:20:45]written 0, free lines is 4095 [10:20:45]Connected sock=10 [10:20:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 52 8B 07 01 66 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 7F 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D8 02 00 35 04 06 00 FC BA E1 97 73 FE 01 C7 C3 7F EC 67 32 54 [10:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EB FD 47 00 2C A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 73 D8 02 00 F4 03 04 00 D9 B3 B2 67 B6 04 01 00 00 3B 08 64 7C 26 6E 9C 71 [10:20:45]CommunicateWithHost err = 0 [10:20:45]CheckOFDResponse [10:20:45]1017 (14) - 77093643461234 [10:20:45]1041 (16) - 0000000000871826 [10:20:45]1040 (4) - 186483 [10:20:45]1012 (4) - 17.02.2025 03:58 [10:20:45]1206 (1) - 0 [10:20:45]OFD Sender: Remove packet 186483 [10:20:45]ProducePacketName [10:20:45]name=ofd_packets/00186483 [10:20:45]NVStorageDeleteData [10:20:45]Write to MH i2c: 01 00 00 F4 22 16 [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: 01 07 00 F4 22 00 00 00 00 00 FB 0C 24 [10:20:45]RasterBufferAndPrint [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]line [10:20:45]written 0, free lines is 3329 [10:20:45]MH_Cut [10:20:45]Write to MH i2c: D1 01 00 FB 22 01 EF [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 01 00 [10:20:45]MH_I2C_Read... [10:20:45]Read from MH i2c: D1 01 00 FB 22 00 EE [10:20:45]Write to MH i2c: 01 00 00 FC 22 1E [10:20:45]Write i2c OK [10:20:45]MH_I2C_Read... [10:20:45]OFD Sender: No OFD packet to send [10:20:46]*** Cut start [10:20:46]*** Partial cut [10:20:46]*** CUTSNS_PIN = 1 [10:20:46]*** CUTSNS_PIN = 0 [10:20:46]*** Brake cut motor [10:20:46]Read from MH i2c: 01 [10:20:46]MH_I2C_Read... [10:20:46]*** Stop cut motor [10:20:46]*** Cut end [10:20:46]Read from MH i2c: 01 07 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: 01 07 00 FC 22 00 00 00 00 00 FF 0F 33 [10:20:46]process_action close_receipt done [10:20:46]requested_data is exist [10:20:46]produce_requested_data [10:20:46]requested_item fm.sn is exist - process it [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 11 00 00 [10:20:46]Write to MH i2c: E2 08 00 FD 22 80 11 00 00 00 00 00 00 99 [10:20:46]Write i2c OK [10:20:46]MH_I2C_Read... [10:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:46]Read from MH i2c: E2 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 [10:20:46]MH_I2C_Read... [10:20:46]Read from MH i2c: E2 17 00 FD 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EC [10:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:20:46]wFMCommunicate OK [10:20:46]requested_item fd.num is exist - process it [10:20:46]SAM_PROTO_GetFieldsCounters [10:20:46]wFMCommunicate request_size=4 [10:20:46]MH_SAM_APDU [10:20:46]CAPDU: 80 13 00 00 [10:20:46]Write to MH i2c: E2 08 00 FE 22 80 13 00 00 00 00 00 00 9C [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 62 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 62 00 FE 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [10:20:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 73 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:47]wFMCommunicate OK [10:20:47]SAM_PROTO_GetFieldsCounters done [10:20:47]requested_item shift.num is exist - process it [10:20:47]requested_item shift.opened is exist - process it [10:20:47]req_shift_opened [10:20:47]FM_GetShiftState [10:20:47]SAM_PROTO_GetShiftState [10:20:47]wFMCommunicate request_size=4 [10:20:47]MH_SAM_APDU [10:20:47]CAPDU: 80 13 01 00 [10:20:47]Write to MH i2c: E2 08 00 FF 22 80 13 01 00 00 00 00 00 9E [10:20:47]Write i2c OK [10:20:47]MH_I2C_Read... [10:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:47]Read from MH i2c: E2 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 0E 00 [10:20:47]MH_I2C_Read... [10:20:47]Read from MH i2c: E2 0E 00 FF 22 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C2 [10:20:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:20:47]wFMCommunicate OK [10:20:47]SAM_PROTO_GetShiftState done [10:20:47]FM_GetShiftState done [10:20:47]req_shift_opened done [10:20:47]requested_item shift.open_date is exist - process it [10:20:47]req_shift_open_date [10:20:47]req_shift_open_date done [10:20:47]produce_requested_data done [10:20:47]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186483,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:20:47]process_action_free close_receipt [10:20:47]json_value_free [10:20:47]json_value_free done [10:20:47]process_json_proto returns [10:20:47]Send response to host [10:20:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186483,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:20:47]free response buf [10:20:47]execute_script done [10:20:47]execute_script returns [10:20:47]free content buf [10:20:47]Sock 8.Close socket [10:20:47]Sock 8.Thread stoped [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:09]accept exits with 9 [10:22:09]New connection [10:22:09]New thread 3067358564 created [10:22:09]Thread 3067501924 joined [10:22:09]Waiting for new connection... [10:22:09] Sock 9.Parse request [10:22:09]Sock 9.Check first char [10:22:09]Sock 9.First char is OK [10:22:09]request: POST /json_proto HTTP/1.0 [10:22:09]Method: POST [10:22:09]URL: /json_proto [10:22:09]Method is POST - this is cgi request [10:22:09]url: /json_proto [10:22:09]query_string will be loaded in cgi processing [10:22:09]execute_cgi json_proto POST (null) [10:22:09]execute_cgi path=json_proto method=POST [10:22:09]POST find Content-Length [10:22:09]Host: 172.17.46.131:8080 [10:22:09]Content-Length: 673 [10:22:09]Content-Type: application/json [10:22:09] [10:22:09]POST finish read [10:22:09]Found Content-Length = 673 [10:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]execute_script... [10:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:09]POST & json_proto [10:22:09]process_json_proto [10:22:09]json parsed OK: [10:22:09]protocol is kg_v1.0 [10:22:09]action value=close_receipt [10:22:09]process_action close_receipt [10:22:09]cmd_close_receipt [10:22:09]MH_GetDate [10:22:09]Write to MH i2c: F0 00 00 00 23 12 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: F0 09 00 00 23 00 D5 0D B3 67 7E 41 4F 65 8A [10:22:09]GetLastDocTimeStamp 1739787647 [10:22:09]current date 1739787733 [10:22:09]FM_GetShiftState [10:22:09]SAM_PROTO_GetShiftState [10:22:09]wFMCommunicate request_size=4 [10:22:09]MH_SAM_APDU [10:22:09]CAPDU: 80 13 01 00 [10:22:09]Write to MH i2c: E2 08 00 01 23 80 13 01 00 00 00 00 00 A1 [10:22:09]Write i2c OK [10:22:09]MH_I2C_Read... [10:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:09]Read from MH i2c: E2 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 [10:22:09]MH_I2C_Read... [10:22:09]Read from MH i2c: E2 0E 00 01 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C5 [10:22:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:22:09]wFMCommunicate OK [10:22:09]SAM_PROTO_GetShiftState done [10:22:09]FM_GetShiftState done [10:22:09]opened in 1739752571 [10:22:09]opened+sec_in_day 1739838971 [10:22:09]quantity*price = 50021 [10:22:09]sum+1 = 50022 [10:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 71 17.02.2025 10:22 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186484 ФПД: 89995201492167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186484&fm=89995201492167&tin=02508201610067®Number=0000000000091857&sum=50000 [10:22:10]StoreToDocumentArchive [10:22:10]shift 644 fd 186484 [10:22:10]save to /storage/0644/doc_00186484 [10:22:10]save last doc name /storage/0644/doc_00186484 to /storage/kkm_last_doc_name [10:22:10]save OK [10:22:10]Clear old archive folders... [10:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:22:10]tlvbuf is B6E2E840 [10:22:10]SAM_PROTO_ClearQueue [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 09 00 00 [10:22:10]Write to MH i2c: E2 08 00 0E 23 80 09 00 00 00 00 00 00 A3 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 0E 23 00 90 00 A5 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_ClearQueue done [10:22:10]KKMCreateOFDPacket [10:22:10]OFDProtocolAddRootSTLVToBuf [10:22:10]FM_MakeSignedData [10:22:10]FM_MakeSignedData [10:22:10]SAM_PROTO_SignData [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 01 02 [10:22:10]Write to MH i2c: E2 08 00 0F 23 80 0D 01 02 00 00 00 00 AB [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 0F 23 00 90 00 A6 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=255 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D8 02 00 35 04 06 00 51 D9 A4 04 [10:22:10]Write to MH i2c: E2 02 01 10 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D8 02 00 35 04 06 00 51 D9 A4 04 00 00 50 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 10 23 00 90 00 A7 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=7 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 02 02 02 34 C7 [10:22:10]Write to MH i2c: E2 0A 00 11 23 80 0D 02 02 02 00 34 C7 00 00 AD [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 03 00 11 23 00 90 00 A8 [10:22:10]RAPDU: 90 00 [10:22:10]wFMCommunicate OK [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 0D 03 02 [10:22:10]Write to MH i2c: E2 08 00 12 23 80 0D 03 02 00 00 00 00 B0 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0B 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 0B 00 12 23 00 D2 1C BB 5D 96 13 42 50 90 00 F2 [10:22:10]RAPDU: D2 1C BB 5D 96 13 42 50 90 00 [10:22:10]wFMCommunicate OK [10:22:10]SAM_PROTO_SignData done [10:22:10]FM_MakeSignedData done [10:22:10]CreateOFDProtocolMessage [10:22:10]wFMCommunicate request_size=4 [10:22:10]MH_SAM_APDU [10:22:10]CAPDU: 80 11 00 00 [10:22:10]Write to MH i2c: E2 08 00 13 23 80 11 00 00 00 00 00 00 B0 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:10]Read from MH i2c: E2 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 17 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: E2 17 00 13 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [10:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:10]wFMCommunicate OK [10:22:10]CreateOFDProtocolMessage done [10:22:10]OFDSenderStorePacket 186484 [10:22:10]StoreOFDPacket docnum=186484 [10:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3B 81 04 01 67 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D8 02 00 35 04 06 00 51 D9 A4 04 34 C7 D2 1C BB 5D 96 13 42 50 [10:22:10]CheckFolder [10:22:10]dirname=/storage/ofd_packets [10:22:10]CheckFolder done [10:22:10]ProducePacketName [10:22:10]name=ofd_packets/00186484 [10:22:10]NVStorageSaveData ofd_packets/00186484 [10:22:10]File name is /storage/ofd_packets/00186484 [10:22:10]Write 298 bytes [10:22:10]NVStorageSaveData done [10:22:10]OFDSenderStorePacket done [10:22:10]KKMCreateOFDPacket done [10:22:10]NVStorageSaveData kkm_last_timestamp [10:22:10]File name is /storage/kkm_last_timestamp [10:22:10]Write 4 bytes [10:22:10]NVStorageSaveData done [10:22:10]ExternCall_PrintAddStr [10:22:10]wPrintStart [10:22:10]Write to MH i2c: 01 00 00 14 23 37 [10:22:10]Write i2c OK [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: 01 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: 01 07 00 [10:22:10]MH_I2C_Read... [10:22:10]Read from MH i2c: 01 07 00 14 23 00 00 00 00 00 FF 0F 4C [10:22:10]RasterBufferAndPrint [10:22:10]line Счет N : (1)411616 [10:22:10]line ИНН: 02508201610067 [10:22:10]line Контрольно-Кассовый Чек [10:22:10]line ПРОДАЖА [10:22:10]line ТРК (МРК, ГНК) : 5 [10:22:10]line Товар: 2710194210 [10:22:10]line ДТ-К-5 [10:22:10]line 6.890 * 72.60 [10:22:10]line = 500.21 [10:22:10]line НДС 12% НСП 1% [10:22:10]line > о реализуемом товаре [10:22:10]line ОКРУГЛЕНИЕ: -0.21 [10:22:10]line ИТОГО: 500.00 [10:22:10]line Внесено: 500.00 [10:22:10]line СДАЧА: 0.00 [10:22:10]line НСП 1% : 4.43 [10:22:10]line НДС 12% : 53.12 [10:22:10]line Наличными: 500.00 [10:22:10]line Безнал.: 0.00 [10:22:10]line Место: АЗС № 92 "Партнер Нефть" [10:22:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:22:10]line СНО: Общий режим [10:22:10]line Чек 71 17.02.2025 10:22 [10:22:10]line Смена: 644 ФФД: 1.0 [10:22:10]line ЗНМ: 0300000118 [10:22:11]line РНМ: 0000000000091857 [10:22:11]line Версия ККМ: 001 [10:22:11]line ФМ: 0000000000871826 [10:22:11]line ФД: 186484 [10:22:11]line ФПД: 89995201492167 [10:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102213&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186484&fm=89995201492167&tin=02508201610067®Number=0000000000091857&sum=50000 [10:22:11]OFD Sender: Processing packet 186484 [packets to send 49, broken 48] [10:22:11]ProducePacketName [10:22:11]name=ofd_packets/00186484 [10:22:11]OFD Sender: To server: pG, [10:22:11]CommunicateWithHost lk.salyk.kg:30040 [10:22:11]ConnectInit lk.salyk.kg [10:22:11]written 0, free lines is 4095 [10:22:11]Connected sock=10 [10:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3B 81 04 01 67 6F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 D5 0D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D8 02 00 35 04 06 00 51 D9 A4 04 34 C7 D2 1C BB 5D 96 13 42 50 [10:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 79 CF 47 00 B8 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 74 D8 02 00 F4 03 04 00 2F B4 B2 67 B6 04 01 00 00 F8 3E A3 0E FC D6 FA 76 [10:22:11]CommunicateWithHost err = 0 [10:22:11]CheckOFDResponse [10:22:11]1017 (14) - 77093643461234 [10:22:11]1041 (16) - 0000000000871826 [10:22:11]1040 (4) - 186484 [10:22:11]1012 (4) - 17.02.2025 03:59 [10:22:11]1206 (1) - 0 [10:22:11]OFD Sender: Remove packet 186484 [10:22:11]ProducePacketName [10:22:11]name=ofd_packets/00186484 [10:22:11]NVStorageDeleteData [10:22:11]Write to MH i2c: 01 00 00 3F 23 62 [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 07 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: 01 07 00 3F 23 00 00 00 00 00 EF 0C 64 [10:22:11]RasterBufferAndPrint [10:22:11]line [10:22:11]line [10:22:11]line [10:22:11]line [10:22:11]line [10:22:11]written 0, free lines is 3317 [10:22:11]MH_Cut [10:22:11]Write to MH i2c: D1 01 00 46 23 01 3B [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: D1 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: D1 01 00 [10:22:11]MH_I2C_Read... [10:22:11]Read from MH i2c: D1 01 00 46 23 00 3A [10:22:11]Write to MH i2c: 01 00 00 47 23 6A [10:22:11]Write i2c OK [10:22:11]MH_I2C_Read... [10:22:12]OFD Sender: No OFD packet to send [10:22:12]*** Cut start [10:22:12]*** Partial cut [10:22:12]*** CUTSNS_PIN = 1 [10:22:12]*** CUTSNS_PIN = 0 [10:22:12]*** Brake cut motor [10:22:12]Read from MH i2c: 01 [10:22:12]MH_I2C_Read... [10:22:12]*** Stop cut motor [10:22:12]*** Cut end [10:22:12]Read from MH i2c: 01 07 00 [10:22:12]MH_I2C_Read... [10:22:12]Read from MH i2c: 01 07 00 47 23 00 00 00 00 00 FF 0F 7F [10:22:12]process_action close_receipt done [10:22:12]requested_data is exist [10:22:12]produce_requested_data [10:22:12]requested_item fm.sn is exist - process it [10:22:12]wFMCommunicate request_size=4 [10:22:12]MH_SAM_APDU [10:22:12]CAPDU: 80 11 00 00 [10:22:12]Write to MH i2c: E2 08 00 48 23 80 11 00 00 00 00 00 00 E5 [10:22:12]Write i2c OK [10:22:12]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 17 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 17 00 48 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 38 [10:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:22:13]wFMCommunicate OK [10:22:13]requested_item fd.num is exist - process it [10:22:13]SAM_PROTO_GetFieldsCounters [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 00 00 [10:22:13]Write to MH i2c: E2 08 00 49 23 80 13 00 00 00 00 00 00 E8 [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 62 00 49 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 74 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetFieldsCounters done [10:22:13]requested_item shift.num is exist - process it [10:22:13]requested_item shift.opened is exist - process it [10:22:13]req_shift_opened [10:22:13]FM_GetShiftState [10:22:13]SAM_PROTO_GetShiftState [10:22:13]wFMCommunicate request_size=4 [10:22:13]MH_SAM_APDU [10:22:13]CAPDU: 80 13 01 00 [10:22:13]Write to MH i2c: E2 08 00 4A 23 80 13 01 00 00 00 00 00 EA [10:22:13]Write i2c OK [10:22:13]MH_I2C_Read... [10:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:13]Read from MH i2c: E2 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 [10:22:13]MH_I2C_Read... [10:22:13]Read from MH i2c: E2 0E 00 4A 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0E [10:22:13]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:22:13]wFMCommunicate OK [10:22:13]SAM_PROTO_GetShiftState done [10:22:13]FM_GetShiftState done [10:22:13]req_shift_opened done [10:22:13]requested_item shift.open_date is exist - process it [10:22:13]req_shift_open_date [10:22:13]req_shift_open_date done [10:22:13]produce_requested_data done [10:22:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186484,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:22:13]process_action_free close_receipt [10:22:13]json_value_free [10:22:13]json_value_free done [10:22:13]process_json_proto returns [10:22:13]Send response to host [10:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186484,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:22:13]free response buf [10:22:13]execute_script done [10:22:13]execute_script returns [10:22:13]free content buf [10:22:13]Sock 9.Close socket [10:22:13]Sock 9.Thread stoped [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:16]accept exits with 8 [10:24:16]New connection [10:24:16]New thread 3067501924 created [10:24:16]Thread 3067358564 joined [10:24:16]Waiting for new connection... [10:24:16] Sock 8.Parse request [10:24:16]Sock 8.Check first char [10:24:16]Sock 8.First char is OK [10:24:16]request: POST /json_proto HTTP/1.0 [10:24:16]Method: POST [10:24:16]URL: /json_proto [10:24:16]Method is POST - this is cgi request [10:24:16]url: /json_proto [10:24:16]query_string will be loaded in cgi processing [10:24:16]execute_cgi json_proto POST (null) [10:24:16]execute_cgi path=json_proto method=POST [10:24:16]POST find Content-Length [10:24:16]Host: 172.17.46.131:8080 [10:24:16]Content-Length: 796 [10:24:16]Content-Type: application/json [10:24:16] [10:24:16]POST finish read [10:24:16]Found Content-Length = 796 [10:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4697254", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:16]execute_script... [10:24:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4697254", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:16]POST & json_proto [10:24:16]process_json_proto [10:24:16]json parsed OK: [10:24:16]protocol is kg_v1.0 [10:24:16]action value=close_receipt [10:24:16]process_action close_receipt [10:24:16]cmd_close_receipt [10:24:16]MH_GetDate [10:24:16]Write to MH i2c: F0 00 00 4B 23 5D [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: F0 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: F0 09 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: F0 09 00 4B 23 00 54 0E B3 67 7E 41 4F 65 55 [10:24:16]GetLastDocTimeStamp 1739787733 [10:24:16]current date 1739787860 [10:24:16]FM_GetShiftState [10:24:16]SAM_PROTO_GetShiftState [10:24:16]wFMCommunicate request_size=4 [10:24:16]MH_SAM_APDU [10:24:16]CAPDU: 80 13 01 00 [10:24:16]Write to MH i2c: E2 08 00 4C 23 80 13 01 00 00 00 00 00 EC [10:24:16]Write i2c OK [10:24:16]MH_I2C_Read... [10:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:16]Read from MH i2c: E2 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0E 00 [10:24:16]MH_I2C_Read... [10:24:16]Read from MH i2c: E2 0E 00 4C 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 10 [10:24:16]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:24:16]wFMCommunicate OK [10:24:16]SAM_PROTO_GetShiftState done [10:24:16]FM_GetShiftState done [10:24:16]opened in 1739752571 [10:24:16]opened+sec_in_day 1739838971 [10:24:16]quantity*price = 0 [10:24:16]sum+1 = 1 [10:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 72 17.02.2025 10:24 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4697254 ФМ: 0000000000871826 ФД: 186485 ФПД: 98445448116215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186485&fm=98445448116215&tin=02508201610067®Number=0000000000091857&sum=0 [10:24:17]StoreToDocumentArchive [10:24:17]shift 644 fd 186485 [10:24:17]save to /storage/0644/doc_00186485 [10:24:17]save last doc name /storage/0644/doc_00186485 to /storage/kkm_last_doc_name [10:24:17]save OK [10:24:17]Clear old archive folders... [10:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:24:17]tlvbuf is 01FEC140 [10:24:17]SAM_PROTO_ClearQueue [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 09 00 00 [10:24:17]Write to MH i2c: E2 08 00 59 23 80 09 00 00 00 00 00 00 EE [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 59 23 00 90 00 F0 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]SAM_PROTO_ClearQueue done [10:24:17]KKMCreateOFDPacket [10:24:17]OFDProtocolAddRootSTLVToBuf [10:24:17]FM_MakeSignedData [10:24:17]FM_MakeSignedData [10:24:17]SAM_PROTO_SignData [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 01 02 [10:24:17]Write to MH i2c: E2 08 00 5A 23 80 0D 01 02 00 00 00 00 F6 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 5A 23 00 90 00 F1 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=255 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 54 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D8 02 00 35 04 06 00 59 89 1D F6 [10:24:17]Write to MH i2c: E2 02 01 5B 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 54 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D8 02 00 35 04 06 00 59 89 1D F6 00 00 54 [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 5B 23 00 90 00 F2 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=7 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 02 02 02 F7 F7 [10:24:17]Write to MH i2c: E2 0A 00 5C 23 80 0D 02 02 02 00 F7 F7 00 00 EB [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:17]Read from MH i2c: E2 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 [10:24:17]MH_I2C_Read... [10:24:17]Read from MH i2c: E2 03 00 5C 23 00 90 00 F3 [10:24:17]RAPDU: 90 00 [10:24:17]wFMCommunicate OK [10:24:17]wFMCommunicate request_size=4 [10:24:17]MH_SAM_APDU [10:24:17]CAPDU: 80 0D 03 02 [10:24:17]Write to MH i2c: E2 08 00 5D 23 80 0D 03 02 00 00 00 00 FB [10:24:17]Write i2c OK [10:24:17]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 0B 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 0B 00 5D 23 00 29 49 17 4E BC 46 2A 62 90 00 61 [10:24:18]RAPDU: 29 49 17 4E BC 46 2A 62 90 00 [10:24:18]wFMCommunicate OK [10:24:18]SAM_PROTO_SignData done [10:24:18]FM_MakeSignedData done [10:24:18]CreateOFDProtocolMessage [10:24:18]wFMCommunicate request_size=4 [10:24:18]MH_SAM_APDU [10:24:18]CAPDU: 80 11 00 00 [10:24:18]Write to MH i2c: E2 08 00 5E 23 80 11 00 00 00 00 00 00 FB [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:18]Read from MH i2c: E2 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: E2 17 00 5E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4E [10:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:24:18]wFMCommunicate OK [10:24:18]CreateOFDProtocolMessage done [10:24:18]OFDSenderStorePacket 186485 [10:24:18]StoreOFDPacket docnum=186485 [10:24:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA D2 04 01 36 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 54 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D8 02 00 35 04 06 00 59 89 1D F6 F7 F7 29 49 17 4E BC 46 2A 62 [10:24:18]CheckFolder [10:24:18]dirname=/storage/ofd_packets [10:24:18]CheckFolder done [10:24:18]ProducePacketName [10:24:18]name=ofd_packets/00186485 [10:24:18]NVStorageSaveData ofd_packets/00186485 [10:24:18]File name is /storage/ofd_packets/00186485 [10:24:18]Write 298 bytes [10:24:18]NVStorageSaveData done [10:24:18]OFDSenderStorePacket done [10:24:18]KKMCreateOFDPacket done [10:24:18]NVStorageSaveData kkm_last_timestamp [10:24:18]File name is /storage/kkm_last_timestamp [10:24:18]Write 4 bytes [10:24:18]NVStorageSaveData done [10:24:18]ExternCall_PrintAddStr [10:24:18]wPrintStart [10:24:18]Write to MH i2c: 01 00 00 5F 23 82 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 5F 23 00 00 00 00 00 FF 0F 97 [10:24:18]RasterBufferAndPrint [10:24:18]line Счет N : (1)411617 [10:24:18]line ИНН: 02508201610067 [10:24:18]line Контрольно-Кассовый Чек [10:24:18]line ПРОДАЖА [10:24:18]line ТРК (МРК, ГНК) : 6 [10:24:18]line Товар: 2710194210 [10:24:18]line ДТ-К-5 [10:24:18]line 20.000 * 0.00 [10:24:18]line = 0.00 [10:24:18]line НДС 12% НСП 1% [10:24:18]line > о реализуемом товаре [10:24:18]line ИТОГО: 0.00 [10:24:18]line НСП 1% : 0.00 [10:24:18]line НДС 12% : 0.00 [10:24:18]line Наличными: 0.00 [10:24:18]line Безнал.: 0.00 [10:24:18]line Место: АЗС № 92 "Партнер Нефть" [10:24:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:24:18]line СНО: Общий режим [10:24:18]line Чек 72 17.02.2025 10:24 [10:24:18]line Смена: 644 ФФД: 1.0 [10:24:18]line ЗНМ: 0300000118 [10:24:18]line РНМ: 0000000000091857 [10:24:18]line Версия ККМ: 001 [10:24:18]line Талоны: Топливные Талоны [10:24:18]line 4697254 [10:24:18]line ФМ: 0000000000871826 [10:24:18]line ФД: 186485 [10:24:18]line ФПД: 98445448116215 [10:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186485&fm=98445448116215&tin=02508201610067®Number=0000000000091857&sum=0 [10:24:18]OFD Sender: Processing packet 186485 [packets to send 49, broken 48] [10:24:18]ProducePacketName [10:24:18]name=ofd_packets/00186485 [10:24:18]OFD Sender: To server: pG, [10:24:18]CommunicateWithHost lk.salyk.kg:30040 [10:24:18]ConnectInit lk.salyk.kg [10:24:18]written 0, free lines is 4095 [10:24:18]Connected sock=10 [10:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 EA D2 04 01 36 B3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 54 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D8 02 00 35 04 06 00 59 89 1D F6 F7 F7 29 49 17 4E BC 46 2A 62 [10:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4C C3 47 00 11 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 75 D8 02 00 F4 03 04 00 AE B4 B2 67 B6 04 01 00 00 6C C3 63 B9 B2 12 88 F3 [10:24:18]CommunicateWithHost err = 0 [10:24:18]CheckOFDResponse [10:24:18]1017 (14) - 77093643461234 [10:24:18]1041 (16) - 0000000000871826 [10:24:18]1040 (4) - 186485 [10:24:18]1012 (4) - 17.02.2025 04:01 [10:24:18]1206 (1) - 0 [10:24:18]OFD Sender: Remove packet 186485 [10:24:18]ProducePacketName [10:24:18]name=ofd_packets/00186485 [10:24:18]NVStorageDeleteData [10:24:18]Write to MH i2c: 01 00 00 89 23 AC [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: 01 07 00 89 23 00 00 00 00 00 11 0D D1 [10:24:18]RasterBufferAndPrint [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]line [10:24:18]written 0, free lines is 3351 [10:24:18]MH_Cut [10:24:18]Write to MH i2c: D1 01 00 90 23 01 85 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 01 00 [10:24:18]MH_I2C_Read... [10:24:18]Read from MH i2c: D1 01 00 90 23 00 84 [10:24:18]Write to MH i2c: 01 00 00 91 23 B4 [10:24:18]Write i2c OK [10:24:18]MH_I2C_Read... [10:24:19]OFD Sender: No OFD packet to send [10:24:19]*** Cut start [10:24:19]*** Partial cut [10:24:19]*** CUTSNS_PIN = 1 [10:24:19]*** CUTSNS_PIN = 0 [10:24:19]*** Brake cut motor [10:24:20]Read from MH i2c: 01 [10:24:20]MH_I2C_Read... [10:24:20]*** Stop cut motor [10:24:20]*** Cut end [10:24:20]Read from MH i2c: 01 07 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: 01 07 00 91 23 00 00 00 00 00 FF 0F C9 [10:24:20]process_action close_receipt done [10:24:20]requested_data is exist [10:24:20]produce_requested_data [10:24:20]requested_item fm.sn is exist - process it [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 11 00 00 [10:24:20]Write to MH i2c: E2 08 00 92 23 80 11 00 00 00 00 00 00 2F [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 17 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 17 00 92 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [10:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:24:20]wFMCommunicate OK [10:24:20]requested_item fd.num is exist - process it [10:24:20]SAM_PROTO_GetFieldsCounters [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 00 00 [10:24:20]Write to MH i2c: E2 08 00 93 23 80 13 00 00 00 00 00 00 32 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 62 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 62 00 93 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [10:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 75 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetFieldsCounters done [10:24:20]requested_item shift.num is exist - process it [10:24:20]requested_item shift.opened is exist - process it [10:24:20]req_shift_opened [10:24:20]FM_GetShiftState [10:24:20]SAM_PROTO_GetShiftState [10:24:20]wFMCommunicate request_size=4 [10:24:20]MH_SAM_APDU [10:24:20]CAPDU: 80 13 01 00 [10:24:20]Write to MH i2c: E2 08 00 94 23 80 13 01 00 00 00 00 00 34 [10:24:20]Write i2c OK [10:24:20]MH_I2C_Read... [10:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:20]Read from MH i2c: E2 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 [10:24:20]MH_I2C_Read... [10:24:20]Read from MH i2c: E2 0E 00 94 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 58 [10:24:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:24:20]wFMCommunicate OK [10:24:20]SAM_PROTO_GetShiftState done [10:24:20]FM_GetShiftState done [10:24:20]req_shift_opened done [10:24:20]requested_item shift.open_date is exist - process it [10:24:20]req_shift_open_date [10:24:20]req_shift_open_date done [10:24:20]produce_requested_data done [10:24:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186485,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:24:20]process_action_free close_receipt [10:24:20]json_value_free [10:24:20]json_value_free done [10:24:20]process_json_proto returns [10:24:20]Send response to host [10:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186485,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:24:20]free response buf [10:24:20]execute_script done [10:24:20]execute_script returns [10:24:20]free content buf [10:24:20]Sock 8.Close socket [10:24:20]Sock 8.Thread stoped [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:38]accept exits with 9 [10:26:38]New connection [10:26:38]New thread 3067358564 created [10:26:38]Thread 3067501924 joined [10:26:38]Waiting for new connection... [10:26:38] Sock 9.Parse request [10:26:38]Sock 9.Check first char [10:26:38]Sock 9.First char is OK [10:26:38]request: POST /json_proto HTTP/1.0 [10:26:38]Method: POST [10:26:38]URL: /json_proto [10:26:38]Method is POST - this is cgi request [10:26:38]url: /json_proto [10:26:38]query_string will be loaded in cgi processing [10:26:38]execute_cgi json_proto POST (null) [10:26:38]execute_cgi path=json_proto method=POST [10:26:38]POST find Content-Length [10:26:38]Host: 172.17.46.131:8080 [10:26:38]Content-Length: 678 [10:26:38]Content-Type: application/json [10:26:38] [10:26:38]POST finish read [10:26:38]Found Content-Length = 678 [10:26:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:38]execute_script... [10:26: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)411618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:38]POST & json_proto [10:26:38]process_json_proto [10:26:38]json parsed OK: [10:26:38]protocol is kg_v1.0 [10:26:38]action value=close_receipt [10:26:38]process_action close_receipt [10:26:38]cmd_close_receipt [10:26:38]MH_GetDate [10:26:38]Write to MH i2c: F0 00 00 95 23 A7 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: F0 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: F0 09 00 [10:26:38]MH_I2C_Read... [10:26:38]Read from MH i2c: F0 09 00 95 23 00 E2 0E B3 67 7E 41 4F 65 2D [10:26:38]GetLastDocTimeStamp 1739787860 [10:26:38]current date 1739788002 [10:26:38]FM_GetShiftState [10:26:38]SAM_PROTO_GetShiftState [10:26:38]wFMCommunicate request_size=4 [10:26:38]MH_SAM_APDU [10:26:38]CAPDU: 80 13 01 00 [10:26:38]Write to MH i2c: E2 08 00 96 23 80 13 01 00 00 00 00 00 36 [10:26:38]Write i2c OK [10:26:38]MH_I2C_Read... [10:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:39]Read from MH i2c: E2 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 [10:26:39]MH_I2C_Read... [10:26:39]Read from MH i2c: E2 0E 00 96 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5A [10:26:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:26:39]wFMCommunicate OK [10:26:39]SAM_PROTO_GetShiftState done [10:26:39]FM_GetShiftState done [10:26:39]opened in 1739752571 [10:26:39]opened+sec_in_day 1739838971 [10:26:39]quantity*price = 65034 [10:26:39]sum+1 = 65036 [10:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 73 17.02.2025 10:26 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186486 ФПД: 273261807606028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186486&fm=273261807606028&tin=02508201610067®Number=0000000000091857&sum=65000 [10:26:40]StoreToDocumentArchive [10:26:40]shift 644 fd 186486 [10:26:40]save to /storage/0644/doc_00186486 [10:26:40]save last doc name /storage/0644/doc_00186486 to /storage/kkm_last_doc_name [10:26:40]save OK [10:26:40]Clear old archive folders... [10:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:26:40]tlvbuf is 01FEC830 [10:26:40]SAM_PROTO_ClearQueue [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 09 00 00 [10:26:40]Write to MH i2c: E2 08 00 A3 23 80 09 00 00 00 00 00 00 38 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 A3 23 00 90 00 3A [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_ClearQueue done [10:26:40]KKMCreateOFDPacket [10:26:40]OFDProtocolAddRootSTLVToBuf [10:26:40]FM_MakeSignedData [10:26:40]FM_MakeSignedData [10:26:40]SAM_PROTO_SignData [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 01 02 [10:26:40]Write to MH i2c: E2 08 00 A4 23 80 0D 01 02 00 00 00 00 40 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 A4 23 00 90 00 3B [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=255 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E3 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D8 02 00 35 04 06 00 F8 [10:26:40]Write to MH i2c: E2 02 01 A5 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E3 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D8 02 00 35 04 06 00 F8 00 00 7C [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 A5 23 00 90 00 3C [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=10 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 02 02 05 87 B8 F9 19 0C [10:26:40]Write to MH i2c: E2 0D 00 A6 23 80 0D 02 02 05 00 87 B8 F9 19 0C 00 00 AA [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 03 00 A6 23 00 90 00 3D [10:26:40]RAPDU: 90 00 [10:26:40]wFMCommunicate OK [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 0D 03 02 [10:26:40]Write to MH i2c: E2 08 00 A7 23 80 0D 03 02 00 00 00 00 45 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0B 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 0B 00 A7 23 00 81 9A 58 0B BA 7B 33 27 90 00 53 [10:26:40]RAPDU: 81 9A 58 0B BA 7B 33 27 90 00 [10:26:40]wFMCommunicate OK [10:26:40]SAM_PROTO_SignData done [10:26:40]FM_MakeSignedData done [10:26:40]CreateOFDProtocolMessage [10:26:40]wFMCommunicate request_size=4 [10:26:40]MH_SAM_APDU [10:26:40]CAPDU: 80 11 00 00 [10:26:40]Write to MH i2c: E2 08 00 A8 23 80 11 00 00 00 00 00 00 45 [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:40]Read from MH i2c: E2 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 17 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: E2 17 00 A8 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [10:26:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:40]wFMCommunicate OK [10:26:40]CreateOFDProtocolMessage done [10:26:40]OFDSenderStorePacket 186486 [10:26:40]StoreOFDPacket docnum=186486 [10:26:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A 82 07 01 8A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E3 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D8 02 00 35 04 06 00 F8 87 B8 F9 19 0C 81 9A 58 0B BA 7B 33 27 [10:26:40]CheckFolder [10:26:40]dirname=/storage/ofd_packets [10:26:40]CheckFolder done [10:26:40]ProducePacketName [10:26:40]name=ofd_packets/00186486 [10:26:40]NVStorageSaveData ofd_packets/00186486 [10:26:40]File name is /storage/ofd_packets/00186486 [10:26:40]Write 301 bytes [10:26:40]NVStorageSaveData done [10:26:40]OFDSenderStorePacket done [10:26:40]KKMCreateOFDPacket done [10:26:40]NVStorageSaveData kkm_last_timestamp [10:26:40]File name is /storage/kkm_last_timestamp [10:26:40]Write 4 bytes [10:26:40]NVStorageSaveData done [10:26:40]ExternCall_PrintAddStr [10:26:40]wPrintStart [10:26:40]Write to MH i2c: 01 00 00 A9 23 CC [10:26:40]Write i2c OK [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 07 00 [10:26:40]MH_I2C_Read... [10:26:40]Read from MH i2c: 01 07 00 A9 23 00 00 00 00 00 FF 0F E1 [10:26:40]RasterBufferAndPrint [10:26:40]line Счет N : (1)411618 [10:26:40]line ИНН: 02508201610067 [10:26:40]line Контрольно-Кассовый Чек [10:26:40]line ПРОДАЖА [10:26:40]line ТРК (МРК, ГНК) : 32 [10:26:40]line Товар: 2710124130 [10:26:40]line Аи-92-К-2 [10:26:40]line 10.130 * 64.20 [10:26:40]line = 650.35 [10:26:40]line НДС 12% НСП 1% [10:26:40]line > о реализуемом товаре [10:26:40]line ОКРУГЛЕНИЕ: -0.35 [10:26:40]line ИТОГО: 650.00 [10:26:40]line Внесено: 650.00 [10:26:40]line СДАЧА: 0.00 [10:26:40]line НСП 1% : 5.75 [10:26:40]line НДС 12% : 69.06 [10:26:40]line Наличными: 650.00 [10:26:40]line Безнал.: 0.00 [10:26:40]line Место: АЗС № 92 "Партнер Нефть" [10:26:40]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:26:40]line СНО: Общий режим [10:26:40]line Чек 73 17.02.2025 10:26 [10:26:40]line Смена: 644 ФФД: 1.0 [10:26:40]line ЗНМ: 0300000118 [10:26:40]line РНМ: 0000000000091857 [10:26:40]line Версия ККМ: 001 [10:26:40]line ФМ: 0000000000871826 [10:26:40]line ФД: 186486 [10:26:40]line ФПД: 273261807606028 [10:26:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T102643&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186486&fm=273261807606028&tin=02508201610067®Number=0000000000091857&sum=65000 [10:26:40]OFD Sender: Processing packet 186486 [packets to send 49, broken 48] [10:26:40]ProducePacketName [10:26:40]name=ofd_packets/00186486 [10:26:40]OFD Sender: To server: pG, [10:26:40]CommunicateWithHost lk.salyk.kg:30040 [10:26:40]ConnectInit lk.salyk.kg [10:26:40]written 0, free lines is 4095 [10:26:41]Connected sock=10 [10:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A 82 07 01 8A 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 E3 0E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D8 02 00 35 04 06 00 F8 87 B8 F9 19 0C 81 9A 58 0B BA 7B 33 27 [10:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 38 B8 47 00 ED 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 76 D8 02 00 F4 03 04 00 3D B5 B2 67 B6 04 01 00 00 18 68 2F E3 15 9A 5B 0D [10:26:41]CommunicateWithHost err = 0 [10:26:41]CheckOFDResponse [10:26:41]1017 (14) - 77093643461234 [10:26:41]1041 (16) - 0000000000871826 [10:26:41]1040 (4) - 186486 [10:26:41]1012 (4) - 17.02.2025 04:04 [10:26:41]1206 (1) - 0 [10:26:41]OFD Sender: Remove packet 186486 [10:26:41]ProducePacketName [10:26:41]name=ofd_packets/00186486 [10:26:41]NVStorageDeleteData [10:26:41]Write to MH i2c: 01 00 00 D4 23 F7 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 07 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: 01 07 00 D4 23 00 00 00 00 00 FA 0C 04 [10:26:41]RasterBufferAndPrint [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]line [10:26:41]written 0, free lines is 3328 [10:26:41]MH_Cut [10:26:41]Write to MH i2c: D1 01 00 DB 23 01 D0 [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 01 00 [10:26:41]MH_I2C_Read... [10:26:41]Read from MH i2c: D1 01 00 DB 23 00 CF [10:26:41]Write to MH i2c: 01 00 00 DC 23 FF [10:26:41]Write i2c OK [10:26:41]MH_I2C_Read... [10:26:41]OFD Sender: No OFD packet to send [10:26:42]*** Cut start [10:26:42]*** Partial cut [10:26:42]*** CUTSNS_PIN = 1 [10:26:42]*** CUTSNS_PIN = 0 [10:26:42]*** Brake cut motor [10:26:42]Read from MH i2c: 01 [10:26:42]MH_I2C_Read... [10:26:42]*** Stop cut motor [10:26:42]*** Cut end [10:26:42]Read from MH i2c: 01 07 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: 01 07 00 DC 23 00 00 00 00 00 FF 0F 14 [10:26:42]process_action close_receipt done [10:26:42]requested_data is exist [10:26:42]produce_requested_data [10:26:42]requested_item fm.sn is exist - process it [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 11 00 00 [10:26:42]Write to MH i2c: E2 08 00 DD 23 80 11 00 00 00 00 00 00 7A [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:42]Read from MH i2c: E2 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 [10:26:42]MH_I2C_Read... [10:26:42]Read from MH i2c: E2 17 00 DD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [10:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:26:42]wFMCommunicate OK [10:26:42]requested_item fd.num is exist - process it [10:26:42]SAM_PROTO_GetFieldsCounters [10:26:42]wFMCommunicate request_size=4 [10:26:42]MH_SAM_APDU [10:26:42]CAPDU: 80 13 00 00 [10:26:42]Write to MH i2c: E2 08 00 DE 23 80 13 00 00 00 00 00 00 7D [10:26:42]Write i2c OK [10:26:42]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 62 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 62 00 DE 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:26: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 76 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:43]wFMCommunicate OK [10:26:43]SAM_PROTO_GetFieldsCounters done [10:26:43]requested_item shift.num is exist - process it [10:26:43]requested_item shift.opened is exist - process it [10:26:43]req_shift_opened [10:26:43]FM_GetShiftState [10:26:43]SAM_PROTO_GetShiftState [10:26:43]wFMCommunicate request_size=4 [10:26:43]MH_SAM_APDU [10:26:43]CAPDU: 80 13 01 00 [10:26:43]Write to MH i2c: E2 08 00 DF 23 80 13 01 00 00 00 00 00 7F [10:26:43]Write i2c OK [10:26:43]MH_I2C_Read... [10:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:43]Read from MH i2c: E2 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 0E 00 [10:26:43]MH_I2C_Read... [10:26:43]Read from MH i2c: E2 0E 00 DF 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A3 [10:26:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:26:43]wFMCommunicate OK [10:26:43]SAM_PROTO_GetShiftState done [10:26:43]FM_GetShiftState done [10:26:43]req_shift_opened done [10:26:43]requested_item shift.open_date is exist - process it [10:26:43]req_shift_open_date [10:26:43]req_shift_open_date done [10:26:43]produce_requested_data done [10:26:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186486,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:26:43]process_action_free close_receipt [10:26:43]json_value_free [10:26:43]json_value_free done [10:26:43]process_json_proto returns [10:26:43]Send response to host [10:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186486,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:26:43]free response buf [10:26:43]execute_script done [10:26:43]execute_script returns [10:26:43]free content buf [10:26:43]Sock 9.Close socket [10:26:43]Sock 9.Thread stoped [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27:51]OFD Sender: No OFD packet to send [10:27:56]OFD Sender: No OFD packet to send [10:28:01]OFD Sender: No OFD packet to send [10:28:06]OFD Sender: No OFD packet to send [10:28:11]OFD Sender: No OFD packet to send [10:28:16]OFD Sender: No OFD packet to send [10:28:21]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:02]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]OFD Sender: No OFD packet to send [10:30:57]OFD Sender: No OFD packet to send [10:31:02]OFD Sender: No OFD packet to send [10:31:07]OFD Sender: No OFD packet to send [10:31:12]OFD Sender: No OFD packet to send [10:31:17]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:40]accept exits with 8 [10:31:40]New connection [10:31:40]New thread 3067501924 created [10:31:40]Thread 3067358564 joined [10:31:40]Waiting for new connection... [10:31:40] Sock 8.Parse request [10:31:40]Sock 8.Check first char [10:31:40]Sock 8.First char is OK [10:31:40]request: POST /json_proto HTTP/1.0 [10:31:40]Method: POST [10:31:40]URL: /json_proto [10:31:40]Method is POST - this is cgi request [10:31:40]url: /json_proto [10:31:40]query_string will be loaded in cgi processing [10:31:40]execute_cgi json_proto POST (null) [10:31:40]execute_cgi path=json_proto method=POST [10:31:40]POST find Content-Length [10:31:40]Host: 172.17.46.131:8080 [10:31:40]Content-Length: 679 [10:31:40]Content-Type: application/json [10:31:40] [10:31:40]POST finish read [10:31:40]Found Content-Length = 679 [10:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:40]execute_script... [10:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:40]POST & json_proto [10:31:40]process_json_proto [10:31:40]json parsed OK: [10:31:40]protocol is kg_v1.0 [10:31:40]action value=close_receipt [10:31:40]process_action close_receipt [10:31:40]cmd_close_receipt [10:31:40]MH_GetDate [10:31:40]Write to MH i2c: F0 00 00 E0 23 F2 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 09 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 09 00 E0 23 00 10 10 B3 67 7E 41 4F 65 A8 [10:31:40]GetLastDocTimeStamp 1739788003 [10:31:40]current date 1739788304 [10:31:40]FM_GetShiftState [10:31:40]SAM_PROTO_GetShiftState [10:31:40]wFMCommunicate request_size=4 [10:31:40]MH_SAM_APDU [10:31:40]CAPDU: 80 13 01 00 [10:31:40]Write to MH i2c: E2 08 00 E1 23 80 13 01 00 00 00 00 00 81 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:40]Read from MH i2c: E2 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 E1 23 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A5 [10:31:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:31:40]wFMCommunicate OK [10:31:40]SAM_PROTO_GetShiftState done [10:31:40]FM_GetShiftState done [10:31:40]opened in 1739752571 [10:31:40]opened+sec_in_day 1739838971 [10:31:40]quantity*price = 100042 [10:31:40]sum+1 = 100044 [10:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 74 17.02.2025 10:31 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186487 ФПД: 105812254000436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186487&fm=105812254000436&tin=02508201610067®Number=0000000000091857&sum=100000 [10:31:41]StoreToDocumentArchive [10:31:41]shift 644 fd 186487 [10:31:41]save to /storage/0644/doc_00186487 [10:31:41]save last doc name /storage/0644/doc_00186487 to /storage/kkm_last_doc_name [10:31:41]save OK [10:31:41]Clear old archive folders... [10:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:31:41]tlvbuf is 01FCA3F0 [10:31:41]SAM_PROTO_ClearQueue [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 09 00 00 [10:31:41]Write to MH i2c: E2 08 00 EE 23 80 09 00 00 00 00 00 00 83 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 EE 23 00 90 00 85 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]SAM_PROTO_ClearQueue done [10:31:41]KKMCreateOFDPacket [10:31:41]OFDProtocolAddRootSTLVToBuf [10:31:41]FM_MakeSignedData [10:31:41]FM_MakeSignedData [10:31:41]SAM_PROTO_SignData [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 0D 01 02 [10:31:41]Write to MH i2c: E2 08 00 EF 23 80 0D 01 02 00 00 00 00 8B [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 EF 23 00 90 00 86 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]wFMCommunicate request_size=255 [10:31:41]MH_SAM_APDU [10:31:41]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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 10 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D8 02 00 35 04 06 00 60 3C 55 D0 [10:31:41]Write to MH i2c: E2 02 01 F0 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 10 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D8 02 00 35 04 06 00 60 3C 55 D0 00 00 48 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 F0 23 00 90 00 87 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]wFMCommunicate request_size=7 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 0D 02 02 02 05 34 [10:31:41]Write to MH i2c: E2 0A 00 F1 23 80 0D 02 02 02 00 05 34 00 00 CB [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 F1 23 00 90 00 88 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 0D 03 02 [10:31:41]Write to MH i2c: E2 08 00 F2 23 80 0D 03 02 00 00 00 00 90 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 0B 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 0B 00 F2 23 00 1C 40 11 FC 4E 60 AA 1D 90 00 6F [10:31:41]RAPDU: 1C 40 11 FC 4E 60 AA 1D 90 00 [10:31:41]wFMCommunicate OK [10:31:41]SAM_PROTO_SignData done [10:31:41]FM_MakeSignedData done [10:31:41]CreateOFDProtocolMessage [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 11 00 00 [10:31:41]Write to MH i2c: E2 08 00 F3 23 80 11 00 00 00 00 00 00 90 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 17 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 17 00 F3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [10:31:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:31:41]wFMCommunicate OK [10:31:41]CreateOFDProtocolMessage done [10:31:41]OFDSenderStorePacket 186487 [10:31:41]StoreOFDPacket docnum=186487 [10:31:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 86 04 01 1D 6D 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 10 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D8 02 00 35 04 06 00 60 3C 55 D0 05 34 1C 40 11 FC 4E 60 AA 1D [10:31:41]CheckFolder [10:31:41]dirname=/storage/ofd_packets [10:31:41]CheckFolder done [10:31:41]ProducePacketName [10:31:41]name=ofd_packets/00186487 [10:31:41]NVStorageSaveData ofd_packets/00186487 [10:31:41]File name is /storage/ofd_packets/00186487 [10:31:41]Write 298 bytes [10:31:41]NVStorageSaveData done [10:31:41]OFDSenderStorePacket done [10:31:41]KKMCreateOFDPacket done [10:31:41]NVStorageSaveData kkm_last_timestamp [10:31:41]File name is /storage/kkm_last_timestamp [10:31:41]Write 4 bytes [10:31:41]NVStorageSaveData done [10:31:41]ExternCall_PrintAddStr [10:31:41]wPrintStart [10:31:41]Write to MH i2c: 01 00 00 F4 23 17 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: 01 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: 01 07 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: 01 07 00 F4 23 00 00 00 00 00 FF 0F 2C [10:31:41]RasterBufferAndPrint [10:31:41]line Счет N : (1)411620 [10:31:41]line ИНН: 02508201610067 [10:31:41]line Контрольно-Кассовый Чек [10:31:41]line ПРОДАЖА [10:31:41]line ТРК (МРК, ГНК) : 41 [10:31:41]line Товар: 2710194210 [10:31:41]line ДТ-К-2 [10:31:41]line 13.780 * 72.60 [10:31:41]line = 1000.43 [10:31:41]line НДС 12% НСП 1% [10:31:41]line > о реализуемом товаре [10:31:41]line ОКРУГЛЕНИЕ: -0.43 [10:31:41]line ИТОГО: 1000.00 [10:31:41]line Внесено: 1000.00 [10:31:41]line СДАЧА: 0.00 [10:31:41]line НСП 1% : 8.85 [10:31:41]line НДС 12% : 106.24 [10:31:41]line Наличными: 1000.00 [10:31:41]line Безнал.: 0.00 [10:31:41]line Место: АЗС № 92 "Партнер Нефть" [10:31:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:31:41]line СНО: Общий режим [10:31:41]line Чек 74 17.02.2025 10:31 [10:31:41]line Смена: 644 ФФД: 1.0 [10:31:41]line ЗНМ: 0300000118 [10:31:41]line РНМ: 0000000000091857 [10:31:41]line Версия ККМ: 001 [10:31:41]line ФМ: 0000000000871826 [10:31:41]line ФД: 186487 [10:31:41]line ФПД: 105812254000436 [10:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186487&fm=105812254000436&tin=02508201610067®Number=0000000000091857&sum=100000 [10:31:42]OFD Sender: Processing packet 186487 [packets to send 49, broken 48] [10:31:42]ProducePacketName [10:31:42]name=ofd_packets/00186487 [10:31:42]OFD Sender: To server: pG, [10:31:42]CommunicateWithHost lk.salyk.kg:30040 [10:31:42]ConnectInit lk.salyk.kg [10:31:42]written 0, free lines is 4095 [10:31:42]Connected sock=11 [10:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 71 86 04 01 1D 6D 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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 10 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D8 02 00 35 04 06 00 60 3C 55 D0 05 34 1C 40 11 FC 4E 60 AA 1D [10:31:42]Write to MH i2c: 01 00 00 1F 24 43 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 1F 24 00 00 00 00 00 E0 0C 36 [10:31:42]RasterBufferAndPrint [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]written 0, free lines is 3302 [10:31:42]MH_Cut [10:31:42]Write to MH i2c: D1 01 00 26 24 01 1C [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 01 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 01 00 26 24 00 1B [10:31:42]Write to MH i2c: 01 00 00 27 24 4B [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 54 5A 47 00 BD E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 77 D8 02 00 F4 03 04 00 6A B6 B2 67 B6 04 01 00 00 81 E3 5C E8 48 B0 7E 87 [10:31:42]CommunicateWithHost err = 0 [10:31:42]CheckOFDResponse [10:31:42]1017 (14) - 77093643461234 [10:31:42]1041 (16) - 0000000000871826 [10:31:42]1040 (4) - 186487 [10:31:42]1012 (4) - 17.02.2025 04:09 [10:31:42]1206 (1) - 0 [10:31:42]OFD Sender: Remove packet 186487 [10:31:42]ProducePacketName [10:31:42]name=ofd_packets/00186487 [10:31:42]NVStorageDeleteData [10:31:43]OFD Sender: No OFD packet to send [10:31:43]*** Cut start [10:31:43]*** Partial cut [10:31:43]*** CUTSNS_PIN = 1 [10:31:43]*** CUTSNS_PIN = 0 [10:31:43]*** Brake cut motor [10:31:43]Read from MH i2c: 01 [10:31:43]MH_I2C_Read... [10:31:43]*** Stop cut motor [10:31:43]*** Cut end [10:31:43]Read from MH i2c: 01 07 00 [10:31:43]MH_I2C_Read... [10:31:43]Read from MH i2c: 01 07 00 27 24 00 00 00 00 00 FF 0F 60 [10:31:43]process_action close_receipt done [10:31:43]requested_data is exist [10:31:43]produce_requested_data [10:31:43]requested_item fm.sn is exist - process it [10:31:43]wFMCommunicate request_size=4 [10:31:43]MH_SAM_APDU [10:31:43]CAPDU: 80 11 00 00 [10:31:43]Write to MH i2c: E2 08 00 28 24 80 11 00 00 00 00 00 00 C6 [10:31:43]Write i2c OK [10:31:43]MH_I2C_Read... [10:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:43]Read from MH i2c: E2 [10:31:43]MH_I2C_Read... [10:31:43]Read from MH i2c: E2 17 00 [10:31:43]MH_I2C_Read... [10:31:43]Read from MH i2c: E2 17 00 28 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [10:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:31:43]wFMCommunicate OK [10:31:43]requested_item fd.num is exist - process it [10:31:43]SAM_PROTO_GetFieldsCounters [10:31:43]wFMCommunicate request_size=4 [10:31:43]MH_SAM_APDU [10:31:43]CAPDU: 80 13 00 00 [10:31:43]Write to MH i2c: E2 08 00 29 24 80 13 00 00 00 00 00 00 C9 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 62 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 62 00 29 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [10:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 77 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_GetFieldsCounters done [10:31:44]requested_item shift.num is exist - process it [10:31:44]requested_item shift.opened is exist - process it [10:31:44]req_shift_opened [10:31:44]FM_GetShiftState [10:31:44]SAM_PROTO_GetShiftState [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 13 01 00 [10:31:44]Write to MH i2c: E2 08 00 2A 24 80 13 01 00 00 00 00 00 CB [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0E 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0E 00 2A 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EF [10:31:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_GetShiftState done [10:31:44]FM_GetShiftState done [10:31:44]req_shift_opened done [10:31:44]requested_item shift.open_date is exist - process it [10:31:44]req_shift_open_date [10:31:44]req_shift_open_date done [10:31:44]produce_requested_data done [10:31:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186487,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:31:44]process_action_free close_receipt [10:31:44]json_value_free [10:31:44]json_value_free done [10:31:44]process_json_proto returns [10:31:44]Send response to host [10:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186487,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:31:44]free response buf [10:31:44]execute_script done [10:31:44]execute_script returns [10:31:44]free content buf [10:31:44]Sock 8.Close socket [10:31:44]Sock 8.Thread stoped [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:00]accept exits with 9 [10:32:00]New connection [10:32:00]New thread 3067358564 created [10:32:00]Thread 3067501924 joined [10:32:00]Waiting for new connection... [10:32:00] Sock 9.Parse request [10:32:00]Sock 9.Check first char [10:32:00]Sock 9.First char is OK [10:32:00]request: POST /json_proto HTTP/1.0 [10:32:00]Method: POST [10:32:00]URL: /json_proto [10:32:00]Method is POST - this is cgi request [10:32:00]url: /json_proto [10:32:00]query_string will be loaded in cgi processing [10:32:00]execute_cgi json_proto POST (null) [10:32:00]execute_cgi path=json_proto method=POST [10:32:00]POST find Content-Length [10:32:00]Host: 172.17.46.131:8080 [10:32:00]Content-Length: 799 [10:32:00]Content-Type: application/json [10:32:00] [10:32:00]POST finish read [10:32:00]Found Content-Length = 799 [10:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]execute_script... [10:32:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:00]POST & json_proto [10:32:00]process_json_proto [10:32:00]json parsed OK: [10:32:00]protocol is kg_v1.0 [10:32:00]action value=close_receipt [10:32:00]process_action close_receipt [10:32:00]cmd_close_receipt [10:32:00]MH_GetDate [10:32:00]Write to MH i2c: F0 00 00 2B 24 3E [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: F0 09 00 2B 24 00 24 10 B3 67 7E 41 4F 65 08 [10:32:00]GetLastDocTimeStamp 1739788304 [10:32:00]current date 1739788324 [10:32:00]FM_GetShiftState [10:32:00]SAM_PROTO_GetShiftState [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 13 01 00 [10:32:00]Write to MH i2c: E2 08 00 2C 24 80 13 01 00 00 00 00 00 CD [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0E 00 2C 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F1 [10:32:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_GetShiftState done [10:32:00]FM_GetShiftState done [10:32:00]opened in 1739752571 [10:32:00]opened+sec_in_day 1739838971 [10:32:00]quantity*price = 100042 [10:32:00]sum+1 = 100044 [10:32:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 75 17.02.2025 10:32 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186488 ФПД: 161430558316978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186488&fm=161430558316978&tin=02508201610067®Number=0000000000091857&sum=100043 [10:32:02]StoreToDocumentArchive [10:32:02]shift 644 fd 186488 [10:32:02]save to /storage/0644/doc_00186488 [10:32:02]save last doc name /storage/0644/doc_00186488 to /storage/kkm_last_doc_name [10:32:02]save OK [10:32:02]Clear old archive folders... [10:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:32:02]tlvbuf is 02026F40 [10:32:02]SAM_PROTO_ClearQueue [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 09 00 00 [10:32:02]Write to MH i2c: E2 08 00 39 24 80 09 00 00 00 00 00 00 CF [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 39 24 00 90 00 D1 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_ClearQueue done [10:32:02]KKMCreateOFDPacket [10:32:02]OFDProtocolAddRootSTLVToBuf [10:32:02]FM_MakeSignedData [10:32:02]FM_MakeSignedData [10:32:02]SAM_PROTO_SignData [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 01 02 [10:32:02]Write to MH i2c: E2 08 00 3A 24 80 0D 01 02 00 00 00 00 D7 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 3A 24 00 90 00 D2 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=255 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 24 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D8 02 00 35 04 06 00 92 D1 FB 15 [10:32:02]Write to MH i2c: E2 02 01 3B 24 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 24 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D8 02 00 35 04 06 00 92 D1 FB 15 00 00 B5 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 3B 24 00 90 00 D3 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=7 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 02 02 02 99 B2 [10:32:02]Write to MH i2c: E2 0A 00 3C 24 80 0D 02 02 02 00 99 B2 00 00 29 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 03 00 3C 24 00 90 00 D4 [10:32:02]RAPDU: 90 00 [10:32:02]wFMCommunicate OK [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 0D 03 02 [10:32:02]Write to MH i2c: E2 08 00 3D 24 80 0D 03 02 00 00 00 00 DC [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0B 00 3D 24 00 8C AE 66 49 A0 15 3F F4 90 00 AE [10:32:02]RAPDU: 8C AE 66 49 A0 15 3F F4 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_SignData done [10:32:02]FM_MakeSignedData done [10:32:02]CreateOFDProtocolMessage [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 3E 24 80 11 00 00 00 00 00 00 DC [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 3E 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [10:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:02]wFMCommunicate OK [10:32:02]CreateOFDProtocolMessage done [10:32:02]OFDSenderStorePacket 186488 [10:32:02]StoreOFDPacket docnum=186488 [10:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 29 04 01 04 F1 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 24 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D8 02 00 35 04 06 00 92 D1 FB 15 99 B2 8C AE 66 49 A0 15 3F F4 [10:32:02]CheckFolder [10:32:02]dirname=/storage/ofd_packets [10:32:02]CheckFolder done [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00186488 [10:32:02]NVStorageSaveData ofd_packets/00186488 [10:32:02]File name is /storage/ofd_packets/00186488 [10:32:02]Write 298 bytes [10:32:02]NVStorageSaveData done [10:32:02]OFDSenderStorePacket done [10:32:02]KKMCreateOFDPacket done [10:32:02]NVStorageSaveData kkm_last_timestamp [10:32:02]File name is /storage/kkm_last_timestamp [10:32:02]Write 4 bytes [10:32:02]NVStorageSaveData done [10:32:02]ExternCall_PrintAddStr [10:32:02]wPrintStart [10:32:02]Write to MH i2c: 01 00 00 3F 24 63 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 3F 24 00 00 00 00 00 FF 0F 78 [10:32:02]RasterBufferAndPrint [10:32:02]line Счет N : (1)411619 [10:32:02]line ИНН: 02508201610067 [10:32:02]line Контрольно-Кассовый Чек [10:32:02]line ПРОДАЖА [10:32:02]line ТРК (МРК, ГНК) : 5 [10:32:02]line Товар: 2710194210 [10:32:02]line ДТ-К-5 [10:32:02]line 13.780 * 72.60 [10:32:02]line = 1000.43 [10:32:02]line НДС 12% НСП 1% [10:32:02]line > о реализуемом товаре [10:32:02]line ИТОГО: 1000.43 [10:32:02]line НСП 1% : 8.85 [10:32:02]line НДС 12% : 106.24 [10:32:02]line Наличными: 0.00 [10:32:02]line Безнал.: 1000.43 [10:32:02]line Место: АЗС № 92 "Партнер Нефть" [10:32:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:32:02]line СНО: Общий режим [10:32:02]line Чек 75 17.02.2025 10:32 [10:32:02]line Смена: 644 ФФД: 1.0 [10:32:02]line ЗНМ: 0300000118 [10:32:02]line РНМ: 0000000000091857 [10:32:02]line Версия ККМ: 001 [10:32:02]line Платежная система: O! деньги [10:32:02]line ФМ: 0000000000871826 [10:32:02]line ФД: 186488 [10:32:02]line ФПД: 161430558316978 [10:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186488&fm=161430558316978&tin=02508201610067®Number=0000000000091857&sum=100043 [10:32:02]OFD Sender: Processing packet 186488 [packets to send 49, broken 48] [10:32:02]ProducePacketName [10:32:02]name=ofd_packets/00186488 [10:32:02]OFD Sender: To server: pG, [10:32:02]CommunicateWithHost lk.salyk.kg:30040 [10:32:02]ConnectInit lk.salyk.kg [10:32:02]written 0, free lines is 4095 [10:32:03]Connected sock=10 [10:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DE 29 04 01 04 F1 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 24 10 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D8 02 00 35 04 06 00 92 D1 FB 15 99 B2 8C AE 66 49 A0 15 3F F4 [10:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 F1 47 00 30 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 78 D8 02 00 F4 03 04 00 7F B6 B2 67 B6 04 01 00 00 20 E3 B2 62 2B C8 32 78 [10:32:03]CommunicateWithHost err = 0 [10:32:03]CheckOFDResponse [10:32:03]1017 (14) - 77093643461234 [10:32:03]1041 (16) - 0000000000871826 [10:32:03]1040 (4) - 186488 [10:32:03]1012 (4) - 17.02.2025 04:09 [10:32:03]1206 (1) - 0 [10:32:03]OFD Sender: Remove packet 186488 [10:32:03]ProducePacketName [10:32:03]name=ofd_packets/00186488 [10:32:03]NVStorageDeleteData [10:32:03]Write to MH i2c: 01 00 00 69 24 8D [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: 01 07 00 69 24 00 00 00 00 00 FF 0C 9F [10:32:03]RasterBufferAndPrint [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]line [10:32:03]written 0, free lines is 3333 [10:32:03]MH_Cut [10:32:03]Write to MH i2c: D1 01 00 70 24 01 66 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 [10:32:03]MH_I2C_Read... [10:32:03]Read from MH i2c: D1 01 00 70 24 00 65 [10:32:03]Write to MH i2c: 01 00 00 71 24 95 [10:32:03]Write i2c OK [10:32:03]MH_I2C_Read... [10:32:03]OFD Sender: No OFD packet to send [10:32:04]*** Cut start [10:32:04]*** Partial cut [10:32:04]*** CUTSNS_PIN = 1 [10:32:04]*** CUTSNS_PIN = 0 [10:32:04]*** Brake cut motor [10:32:04]Read from MH i2c: 01 [10:32:04]MH_I2C_Read... [10:32:04]*** Stop cut motor [10:32:04]*** Cut end [10:32:04]Read from MH i2c: 01 07 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: 01 07 00 71 24 00 00 00 00 00 FF 0F AA [10:32:04]process_action close_receipt done [10:32:04]requested_data is exist [10:32:04]produce_requested_data [10:32:04]requested_item fm.sn is exist - process it [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 11 00 00 [10:32:04]Write to MH i2c: E2 08 00 72 24 80 11 00 00 00 00 00 00 10 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 17 00 72 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [10:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:32:04]wFMCommunicate OK [10:32:04]requested_item fd.num is exist - process it [10:32:04]SAM_PROTO_GetFieldsCounters [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 00 00 [10:32:04]Write to MH i2c: E2 08 00 73 24 80 13 00 00 00 00 00 00 13 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 62 00 73 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:32:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 78 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetFieldsCounters done [10:32:04]requested_item shift.num is exist - process it [10:32:04]requested_item shift.opened is exist - process it [10:32:04]req_shift_opened [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 74 24 80 13 01 00 00 00 00 00 15 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 74 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 39 [10:32:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetShiftState done [10:32:04]FM_GetShiftState done [10:32:04]req_shift_opened done [10:32:04]requested_item shift.open_date is exist - process it [10:32:04]req_shift_open_date [10:32:04]req_shift_open_date done [10:32:04]produce_requested_data done [10:32:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186488,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:32:04]process_action_free close_receipt [10:32:04]json_value_free [10:32:04]json_value_free done [10:32:04]process_json_proto returns [10:32:04]Send response to host [10:32:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186488,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:32:04]free response buf [10:32:04]execute_script done [10:32:04]execute_script returns [10:32:04]free content buf [10:32:04]Sock 9.Close socket [10:32:04]Sock 9.Thread stoped [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]accept exits with 8 [10:38:34]New connection [10:38:34]New thread 3067501924 created [10:38:34]Thread 3067358564 joined [10:38:34]Waiting for new connection... [10:38:34] Sock 8.Parse request [10:38:34]Sock 8.Check first char [10:38:34]Sock 8.First char is OK [10:38:34]request: POST /json_proto HTTP/1.0 [10:38:34]Method: POST [10:38:34]URL: /json_proto [10:38:34]Method is POST - this is cgi request [10:38:34]url: /json_proto [10:38:34]query_string will be loaded in cgi processing [10:38:34]execute_cgi json_proto POST (null) [10:38:34]execute_cgi path=json_proto method=POST [10:38:34]POST find Content-Length [10:38:34]Host: 172.17.46.131:8080 [10:38:34]Content-Length: 682 [10:38:34]Content-Type: application/json [10:38:34] [10:38:34]POST finish read [10:38:34]Found Content-Length = 682 [10:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]execute_script... [10:38: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)411621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:34]POST & json_proto [10:38:34]process_json_proto [10:38:34]json parsed OK: [10:38:34]protocol is kg_v1.0 [10:38:34]action value=close_receipt [10:38:34]process_action close_receipt [10:38:34]cmd_close_receipt [10:38:34]MH_GetDate [10:38:34]Write to MH i2c: F0 00 00 75 24 88 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: F0 09 00 75 24 00 AE 11 B3 67 7E 41 4F 65 DD [10:38:34]GetLastDocTimeStamp 1739788324 [10:38:34]current date 1739788718 [10:38:34]FM_GetShiftState [10:38:34]SAM_PROTO_GetShiftState [10:38:34]wFMCommunicate request_size=4 [10:38:34]MH_SAM_APDU [10:38:34]CAPDU: 80 13 01 00 [10:38:34]Write to MH i2c: E2 08 00 76 24 80 13 01 00 00 00 00 00 17 [10:38:34]Write i2c OK [10:38:34]MH_I2C_Read... [10:38:34]OFD Sender: No OFD packet to send [10:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:34]Read from MH i2c: E2 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 [10:38:34]MH_I2C_Read... [10:38:34]Read from MH i2c: E2 0E 00 76 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3B [10:38:34]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:38:34]wFMCommunicate OK [10:38:34]SAM_PROTO_GetShiftState done [10:38:34]FM_GetShiftState done [10:38:34]opened in 1739752571 [10:38:34]opened+sec_in_day 1739838971 [10:38:34]quantity*price = 100023 [10:38:34]sum+1 = 100025 [10:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 76 17.02.2025 10:38 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186489 ФПД: 37516139811383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103838&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186489&fm=37516139811383&tin=02508201610067®Number=0000000000091857&sum=100000 [10:38:35]StoreToDocumentArchive [10:38:35]shift 644 fd 186489 [10:38:35]save to /storage/0644/doc_00186489 [10:38:35]save last doc name /storage/0644/doc_00186489 to /storage/kkm_last_doc_name [10:38:35]save OK [10:38:35]Clear old archive folders... [10:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:35]tlvbuf is 0200E5A0 [10:38:35]SAM_PROTO_ClearQueue [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 09 00 00 [10:38:35]Write to MH i2c: E2 08 00 83 24 80 09 00 00 00 00 00 00 19 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 83 24 00 90 00 1B [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_ClearQueue done [10:38:35]KKMCreateOFDPacket [10:38:35]OFDProtocolAddRootSTLVToBuf [10:38:35]FM_MakeSignedData [10:38:35]FM_MakeSignedData [10:38:35]SAM_PROTO_SignData [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 01 02 [10:38:35]Write to MH i2c: E2 08 00 84 24 80 0D 01 02 00 00 00 00 21 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 84 24 00 90 00 1C [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=255 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D8 02 00 35 04 06 00 22 [10:38:35]Write to MH i2c: E2 02 01 85 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D8 02 00 35 04 06 00 22 00 00 3E [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 85 24 00 90 00 1D [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=10 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 02 02 05 1E E8 2F D2 37 [10:38:35]Write to MH i2c: E2 0D 00 86 24 80 0D 02 02 05 00 1E E8 2F D2 37 00 00 6C [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 03 00 86 24 00 90 00 1E [10:38:35]RAPDU: 90 00 [10:38:35]wFMCommunicate OK [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 0D 03 02 [10:38:35]Write to MH i2c: E2 08 00 87 24 80 0D 03 02 00 00 00 00 26 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0B 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 0B 00 87 24 00 55 DF 77 FB E1 8B 29 52 90 00 B4 [10:38:35]RAPDU: 55 DF 77 FB E1 8B 29 52 90 00 [10:38:35]wFMCommunicate OK [10:38:35]SAM_PROTO_SignData done [10:38:35]FM_MakeSignedData done [10:38:35]CreateOFDProtocolMessage [10:38:35]wFMCommunicate request_size=4 [10:38:35]MH_SAM_APDU [10:38:35]CAPDU: 80 11 00 00 [10:38:35]Write to MH i2c: E2 08 00 88 24 80 11 00 00 00 00 00 00 26 [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:35]Read from MH i2c: E2 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: E2 17 00 88 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 79 [10:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:38:35]wFMCommunicate OK [10:38:35]CreateOFDProtocolMessage done [10:38:35]OFDSenderStorePacket 186489 [10:38:35]StoreOFDPacket docnum=186489 [10:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 31 07 01 C6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D8 02 00 35 04 06 00 22 1E E8 2F D2 37 55 DF 77 FB E1 8B 29 52 [10:38:35]CheckFolder [10:38:35]dirname=/storage/ofd_packets [10:38:35]CheckFolder done [10:38:35]ProducePacketName [10:38:35]name=ofd_packets/00186489 [10:38:35]NVStorageSaveData ofd_packets/00186489 [10:38:35]File name is /storage/ofd_packets/00186489 [10:38:35]Write 301 bytes [10:38:35]NVStorageSaveData done [10:38:35]OFDSenderStorePacket done [10:38:35]KKMCreateOFDPacket done [10:38:35]NVStorageSaveData kkm_last_timestamp [10:38:35]File name is /storage/kkm_last_timestamp [10:38:35]Write 4 bytes [10:38:35]NVStorageSaveData done [10:38:35]ExternCall_PrintAddStr [10:38:35]wPrintStart [10:38:35]Write to MH i2c: 01 00 00 89 24 AD [10:38:35]Write i2c OK [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 07 00 [10:38:35]MH_I2C_Read... [10:38:35]Read from MH i2c: 01 07 00 89 24 00 00 00 00 00 FF 0F C2 [10:38:35]RasterBufferAndPrint [10:38:35]line Счет N : (1)411621 [10:38:35]line ИНН: 02508201610067 [10:38:35]line Контрольно-Кассовый Чек [10:38:35]line ПРОДАЖА [10:38:35]line ТРК (МРК, ГНК) : 22 [10:38:35]line Товар: 2710124130 [10:38:35]line Аи-92-К-2 [10:38:35]line 15.580 * 64.20 [10:38:35]line = 1000.24 [10:38:35]line НДС 12% НСП 1% [10:38:35]line > о реализуемом товаре [10:38:35]line ОКРУГЛЕНИЕ: -0.24 [10:38:35]line ИТОГО: 1000.00 [10:38:35]line Внесено: 1000.00 [10:38:35]line СДАЧА: 0.00 [10:38:35]line НСП 1% : 8.85 [10:38:35]line НДС 12% : 106.22 [10:38:35]line Наличными: 1000.00 [10:38:35]line Безнал.: 0.00 [10:38:35]line Место: АЗС № 92 "Партнер Нефть" [10:38:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:38:35]line СНО: Общий режим [10:38:35]line Чек 76 17.02.2025 10:38 [10:38:35]line Смена: 644 ФФД: 1.0 [10:38:35]line ЗНМ: 0300000118 [10:38:35]line РНМ: 0000000000091857 [10:38:35]line Версия ККМ: 001 [10:38:35]line ФМ: 0000000000871826 [10:38:35]line ФД: 186489 [10:38:35]line ФПД: 37516139811383 [10:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103838&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186489&fm=37516139811383&tin=02508201610067®Number=0000000000091857&sum=100000 [10:38:35]written 0, free lines is 4095 [10:38:35]OFD Sender: Processing packet 186489 [packets to send 49, broken 48] [10:38:35]ProducePacketName [10:38:35]name=ofd_packets/00186489 [10:38:35]OFD Sender: To server: pG, [10:38:35]CommunicateWithHost lk.salyk.kg:30040 [10:38:35]ConnectInit lk.salyk.kg [10:38:36]Connected sock=10 [10:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 31 07 01 C6 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D8 02 00 35 04 06 00 22 1E E8 2F D2 37 55 DF 77 FB E1 8B 29 52 [10:38:36]Write to MH i2c: 01 00 00 B4 24 D8 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: 01 07 00 B4 24 00 00 00 00 00 FA 0C E5 [10:38:36]RasterBufferAndPrint [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]line [10:38:36]written 0, free lines is 3329 [10:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A9 68 47 00 82 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 79 D8 02 00 F4 03 04 00 08 B8 B2 67 B6 04 01 00 00 41 40 1F E2 DA A8 3E 2E [10:38:36]CommunicateWithHost err = 0 [10:38:36]CheckOFDResponse [10:38:36]1017 (14) - 77093643461234 [10:38:36]1041 (16) - 0000000000871826 [10:38:36]1040 (4) - 186489 [10:38:36]1012 (4) - 17.02.2025 04:16 [10:38:36]1206 (1) - 0 [10:38:36]OFD Sender: Remove packet 186489 [10:38:36]ProducePacketName [10:38:36]name=ofd_packets/00186489 [10:38:36]NVStorageDeleteData [10:38:36]MH_Cut [10:38:36]Write to MH i2c: D1 01 00 BB 24 01 B1 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 [10:38:36]MH_I2C_Read... [10:38:36]Read from MH i2c: D1 01 00 BB 24 00 B0 [10:38:36]Write to MH i2c: 01 00 00 BC 24 E0 [10:38:36]Write i2c OK [10:38:36]MH_I2C_Read... [10:38:36]OFD Sender: No OFD packet to send [10:38:36]*** Cut start [10:38:36]*** Partial cut [10:38:36]*** CUTSNS_PIN = 1 [10:38:37]*** CUTSNS_PIN = 0 [10:38:37]*** Brake cut motor [10:38:37]Read from MH i2c: 01 [10:38:37]MH_I2C_Read... [10:38:37]*** Stop cut motor [10:38:37]*** Cut end [10:38:37]Read from MH i2c: 01 07 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: 01 07 00 BC 24 00 00 00 00 00 FF 0F F5 [10:38:37]process_action close_receipt done [10:38:37]requested_data is exist [10:38:37]produce_requested_data [10:38:37]requested_item fm.sn is exist - process it [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 11 00 00 [10:38:37]Write to MH i2c: E2 08 00 BD 24 80 11 00 00 00 00 00 00 5B [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 17 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 17 00 BD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AE [10:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:38:37]wFMCommunicate OK [10:38:37]requested_item fd.num is exist - process it [10:38:37]SAM_PROTO_GetFieldsCounters [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 13 00 00 [10:38:37]Write to MH i2c: E2 08 00 BE 24 80 13 00 00 00 00 00 00 5E [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 62 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 62 00 BE 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 79 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:37]wFMCommunicate OK [10:38:37]SAM_PROTO_GetFieldsCounters done [10:38:37]requested_item shift.num is exist - process it [10:38:37]requested_item shift.opened is exist - process it [10:38:37]req_shift_opened [10:38:37]FM_GetShiftState [10:38:37]SAM_PROTO_GetShiftState [10:38:37]wFMCommunicate request_size=4 [10:38:37]MH_SAM_APDU [10:38:37]CAPDU: 80 13 01 00 [10:38:37]Write to MH i2c: E2 08 00 BF 24 80 13 01 00 00 00 00 00 60 [10:38:37]Write i2c OK [10:38:37]MH_I2C_Read... [10:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:37]Read from MH i2c: E2 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 0E 00 [10:38:37]MH_I2C_Read... [10:38:37]Read from MH i2c: E2 0E 00 BF 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 84 [10:38:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:38:37]wFMCommunicate OK [10:38:37]SAM_PROTO_GetShiftState done [10:38:37]FM_GetShiftState done [10:38:37]req_shift_opened done [10:38:37]requested_item shift.open_date is exist - process it [10:38:37]req_shift_open_date [10:38:37]req_shift_open_date done [10:38:37]produce_requested_data done [10:38:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186489,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:38:37]process_action_free close_receipt [10:38:37]json_value_free [10:38:37]json_value_free done [10:38:37]process_json_proto returns [10:38:37]Send response to host [10:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186489,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:38:37]free response buf [10:38:37]execute_script done [10:38:37]execute_script returns [10:38:37]free content buf [10:38:37]Sock 8.Close socket [10:38:37]Sock 8.Thread stoped [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:17]accept exits with 9 [10:39:17]New connection [10:39:17]New thread 3067358564 created [10:39:17]Thread 3067501924 joined [10:39:17]Waiting for new connection... [10:39:17] Sock 9.Parse request [10:39:17]Sock 9.Check first char [10:39:17]Sock 9.First char is OK [10:39:17]request: POST /json_proto HTTP/1.0 [10:39:17]Method: POST [10:39:17]URL: /json_proto [10:39:17]Method is POST - this is cgi request [10:39:17]url: /json_proto [10:39:17]query_string will be loaded in cgi processing [10:39:17]execute_cgi json_proto POST (null) [10:39:17]execute_cgi path=json_proto method=POST [10:39:17]POST find Content-Length [10:39:17]Host: 172.17.46.131:8080 [10:39:17]Content-Length: 682 [10:39:17]Content-Type: application/json [10:39:17] [10:39:17]POST finish read [10:39:17]Found Content-Length = 682 [10:39:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:17]execute_script... [10:39:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:17]POST & json_proto [10:39:17]process_json_proto [10:39:17]json parsed OK: [10:39:17]protocol is kg_v1.0 [10:39:17]action value=close_receipt [10:39:17]process_action close_receipt [10:39:17]cmd_close_receipt [10:39:17]MH_GetDate [10:39:17]Write to MH i2c: F0 00 00 C0 24 D3 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: F0 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: F0 09 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: F0 09 00 C0 24 00 D9 11 B3 67 7E 41 4F 65 53 [10:39:17]GetLastDocTimeStamp 1739788718 [10:39:17]current date 1739788761 [10:39:17]FM_GetShiftState [10:39:17]SAM_PROTO_GetShiftState [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 13 01 00 [10:39:17]Write to MH i2c: E2 08 00 C1 24 80 13 01 00 00 00 00 00 62 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 0E 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 0E 00 C1 24 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 86 [10:39:17]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:39:17]wFMCommunicate OK [10:39:17]SAM_PROTO_GetShiftState done [10:39:17]FM_GetShiftState done [10:39:17]opened in 1739752571 [10:39:17]opened+sec_in_day 1739838971 [10:39:17]quantity*price = 100012 [10:39:17]sum+1 = 100014 [10:39:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 77 17.02.2025 10:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186490 ФПД: 1135395634775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186490&fm=1135395634775&tin=02508201610067®Number=0000000000091857&sum=100000 [10:39:18]StoreToDocumentArchive [10:39:18]shift 644 fd 186490 [10:39:18]save to /storage/0644/doc_00186490 [10:39:18]save last doc name /storage/0644/doc_00186490 to /storage/kkm_last_doc_name [10:39:18]save OK [10:39:18]Clear old archive folders... [10:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:18]tlvbuf is B6FDB890 [10:39:18]SAM_PROTO_ClearQueue [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 09 00 00 [10:39:18]Write to MH i2c: E2 08 00 CE 24 80 09 00 00 00 00 00 00 64 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 CE 24 00 90 00 66 [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_ClearQueue done [10:39:18]KKMCreateOFDPacket [10:39:18]OFDProtocolAddRootSTLVToBuf [10:39:18]FM_MakeSignedData [10:39:18]FM_MakeSignedData [10:39:18]SAM_PROTO_SignData [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 01 02 [10:39:18]Write to MH i2c: E2 08 00 CF 24 80 0D 01 02 00 00 00 00 6C [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 CF 24 00 90 00 67 [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]wFMCommunicate request_size=255 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D9 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D8 02 00 35 04 06 00 01 [10:39:18]Write to MH i2c: E2 02 01 D0 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D9 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D8 02 00 35 04 06 00 01 00 00 09 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 D0 24 00 90 00 68 [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]wFMCommunicate request_size=10 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 02 02 05 08 5A DA 7E 57 [10:39:18]Write to MH i2c: E2 0D 00 D1 24 80 0D 02 02 05 00 08 5A DA 7E 57 00 00 8A [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 D1 24 00 90 00 69 [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 03 02 [10:39:18]Write to MH i2c: E2 08 00 D2 24 80 0D 03 02 00 00 00 00 71 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 D2 24 00 63 3C 05 9D F6 8B 03 B8 90 00 EF [10:39:18]RAPDU: 63 3C 05 9D F6 8B 03 B8 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_SignData done [10:39:18]FM_MakeSignedData done [10:39:18]CreateOFDProtocolMessage [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 11 00 00 [10:39:18]Write to MH i2c: E2 08 00 D3 24 80 11 00 00 00 00 00 00 71 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 D3 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C4 [10:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:39:18]wFMCommunicate OK [10:39:18]CreateOFDProtocolMessage done [10:39:18]OFDSenderStorePacket 186490 [10:39:18]StoreOFDPacket docnum=186490 [10:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 1B 07 01 3C B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D9 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D8 02 00 35 04 06 00 01 08 5A DA 7E 57 63 3C 05 9D F6 8B 03 B8 [10:39:18]CheckFolder [10:39:18]dirname=/storage/ofd_packets [10:39:18]CheckFolder done [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00186490 [10:39:18]NVStorageSaveData ofd_packets/00186490 [10:39:18]File name is /storage/ofd_packets/00186490 [10:39:18]Write 301 bytes [10:39:18]NVStorageSaveData done [10:39:18]OFDSenderStorePacket done [10:39:18]KKMCreateOFDPacket done [10:39:18]NVStorageSaveData kkm_last_timestamp [10:39:18]File name is /storage/kkm_last_timestamp [10:39:18]Write 4 bytes [10:39:18]NVStorageSaveData done [10:39:18]ExternCall_PrintAddStr [10:39:18]wPrintStart [10:39:18]Write to MH i2c: 01 00 00 D4 24 F8 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 D4 24 00 00 00 00 00 FF 0F 0D [10:39:18]RasterBufferAndPrint [10:39:18]line Счет N : (1)411622 [10:39:18]line ИНН: 02508201610067 [10:39:18]line Контрольно-Кассовый Чек [10:39:18]line ПРОДАЖА [10:39:18]line ТРК (МРК, ГНК) : 33 [10:39:18]line Товар: 2710124500 [10:39:18]line Аи-95-К-5 [10:39:18]line 13.910 * 71.90 [10:39:18]line = 1000.13 [10:39:18]line НДС 12% НСП 1% [10:39:18]line > о реализуемом товаре [10:39:18]line ОКРУГЛЕНИЕ: -0.13 [10:39:18]line ИТОГО: 1000.00 [10:39:18]line Внесено: 1000.00 [10:39:18]line СДАЧА: 0.00 [10:39:18]line НСП 1% : 8.85 [10:39:18]line НДС 12% : 106.21 [10:39:18]line Наличными: 1000.00 [10:39:18]line Безнал.: 0.00 [10:39:18]line Место: АЗС № 92 "Партнер Нефть" [10:39:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:39:18]line СНО: Общий режим [10:39:18]line Чек 77 17.02.2025 10:39 [10:39:18]line Смена: 644 ФФД: 1.0 [10:39:18]line ЗНМ: 0300000118 [10:39:18]line РНМ: 0000000000091857 [10:39:18]line Версия ККМ: 001 [10:39:18]line ФМ: 0000000000871826 [10:39:18]line ФД: 186490 [10:39:18]line ФПД: 1135395634775 [10:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103921&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186490&fm=1135395634775&tin=02508201610067®Number=0000000000091857&sum=100000 [10:39:19]written 0, free lines is 4095 [10:39:19]OFD Sender: Processing packet 186490 [packets to send 49, broken 48] [10:39:19]ProducePacketName [10:39:19]name=ofd_packets/00186490 [10:39:19]OFD Sender: To server: pG, [10:39:19]CommunicateWithHost lk.salyk.kg:30040 [10:39:19]ConnectInit lk.salyk.kg [10:39:19]Connected sock=10 [10:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 1B 07 01 3C B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 D9 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D8 02 00 35 04 06 00 01 08 5A DA 7E 57 63 3C 05 9D F6 8B 03 B8 [10:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 B8 47 00 95 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7A D8 02 00 F4 03 04 00 33 B8 B2 67 B6 04 01 00 00 2D DE DC A5 F9 53 DE B3 [10:39:19]CommunicateWithHost err = 0 [10:39:19]CheckOFDResponse [10:39:19]1017 (14) - 77093643461234 [10:39:19]1041 (16) - 0000000000871826 [10:39:19]1040 (4) - 186490 [10:39:19]1012 (4) - 17.02.2025 04:16 [10:39:19]1206 (1) - 0 [10:39:19]OFD Sender: Remove packet 186490 [10:39:19]ProducePacketName [10:39:19]name=ofd_packets/00186490 [10:39:19]NVStorageDeleteData [10:39:19]Write to MH i2c: 01 00 00 FF 24 23 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 FF 24 00 00 00 00 00 E7 0C 1D [10:39:19]RasterBufferAndPrint [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]written 0, free lines is 3310 [10:39:19]MH_Cut [10:39:19]Write to MH i2c: D1 01 00 06 25 01 FD [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 01 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 01 00 06 25 00 FC [10:39:19]Write to MH i2c: 01 00 00 07 25 2C [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:20]OFD Sender: No OFD packet to send [10:39:20]*** Cut start [10:39:20]*** Partial cut [10:39:20]*** CUTSNS_PIN = 1 [10:39:20]*** CUTSNS_PIN = 0 [10:39:20]*** Brake cut motor [10:39:21]Read from MH i2c: 01 [10:39:21]MH_I2C_Read... [10:39:21]*** Stop cut motor [10:39:21]*** Cut end [10:39:21]Read from MH i2c: 01 07 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: 01 07 00 07 25 00 00 00 00 00 FF 0F 41 [10:39:21]process_action close_receipt done [10:39:21]requested_data is exist [10:39:21]produce_requested_data [10:39:21]requested_item fm.sn is exist - process it [10:39:21]wFMCommunicate request_size=4 [10:39:21]MH_SAM_APDU [10:39:21]CAPDU: 80 11 00 00 [10:39:21]Write to MH i2c: E2 08 00 08 25 80 11 00 00 00 00 00 00 A7 [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:21]Read from MH i2c: E2 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 17 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 17 00 08 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FA [10:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:39:21]wFMCommunicate OK [10:39:21]requested_item fd.num is exist - process it [10:39:21]SAM_PROTO_GetFieldsCounters [10:39:21]wFMCommunicate request_size=4 [10:39:21]MH_SAM_APDU [10:39:21]CAPDU: 80 13 00 00 [10:39:21]Write to MH i2c: E2 08 00 09 25 80 13 00 00 00 00 00 00 AA [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:21]Read from MH i2c: E2 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 62 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 62 00 09 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:21]wFMCommunicate OK [10:39:21]SAM_PROTO_GetFieldsCounters done [10:39:21]requested_item shift.num is exist - process it [10:39:21]requested_item shift.opened is exist - process it [10:39:21]req_shift_opened [10:39:21]FM_GetShiftState [10:39:21]SAM_PROTO_GetShiftState [10:39:21]wFMCommunicate request_size=4 [10:39:21]MH_SAM_APDU [10:39:21]CAPDU: 80 13 01 00 [10:39:21]Write to MH i2c: E2 08 00 0A 25 80 13 01 00 00 00 00 00 AC [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:21]Read from MH i2c: E2 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 0E 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: E2 0E 00 0A 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D0 [10:39:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:39:21]wFMCommunicate OK [10:39:21]SAM_PROTO_GetShiftState done [10:39:21]FM_GetShiftState done [10:39:21]req_shift_opened done [10:39:21]requested_item shift.open_date is exist - process it [10:39:21]req_shift_open_date [10:39:21]req_shift_open_date done [10:39:21]produce_requested_data done [10:39:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186490,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:39:21]process_action_free close_receipt [10:39:21]json_value_free [10:39:21]json_value_free done [10:39:21]process_json_proto returns [10:39:21]Send response to host [10:39:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186490,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:39:21]free response buf [10:39:21]execute_script done [10:39:21]execute_script returns [10:39:21]free content buf [10:39:21]Sock 9.Close socket [10:39:21]Sock 9.Thread stoped [10:39:22]accept exits with 8 [10:39:22]New connection [10:39:22]New thread 3067501924 created [10:39:22]Thread 3067358564 joined [10:39:22]Waiting for new connection... [10:39:22] Sock 8.Parse request [10:39:22]Sock 8.Check first char [10:39:22]Sock 8.First char is OK [10:39:22]request: POST /json_proto HTTP/1.0 [10:39:22]Method: POST [10:39:22]URL: /json_proto [10:39:22]Method is POST - this is cgi request [10:39:22]url: /json_proto [10:39:22]query_string will be loaded in cgi processing [10:39:22]execute_cgi json_proto POST (null) [10:39:22]execute_cgi path=json_proto method=POST [10:39:22]POST find Content-Length [10:39:22]Host: 172.17.46.131:8080 [10:39:22]Content-Length: 682 [10:39:22]Content-Type: application/json [10:39:22] [10:39:22]POST finish read [10:39:22]Found Content-Length = 682 [10:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]execute_script... [10:39: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)411623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:22]POST & json_proto [10:39:22]process_json_proto [10:39:22]json parsed OK: [10:39:22]protocol is kg_v1.0 [10:39:22]action value=close_receipt [10:39:22]process_action close_receipt [10:39:22]cmd_close_receipt [10:39:22]MH_GetDate [10:39:22]Write to MH i2c: F0 00 00 0B 25 1F [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 09 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: F0 09 00 0B 25 00 DE 11 B3 67 7E 41 4F 65 A4 [10:39:22]GetLastDocTimeStamp 1739788761 [10:39:22]current date 1739788766 [10:39:22]FM_GetShiftState [10:39:22]SAM_PROTO_GetShiftState [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 13 01 00 [10:39:22]Write to MH i2c: E2 08 00 0C 25 80 13 01 00 00 00 00 00 AE [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:22]Read from MH i2c: E2 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: E2 0E 00 0C 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D2 [10:39:22]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:39:22]wFMCommunicate OK [10:39:22]SAM_PROTO_GetShiftState done [10:39:22]FM_GetShiftState done [10:39:22]opened in 1739752571 [10:39:22]opened+sec_in_day 1739838971 [10:39:22]quantity*price = 100023 [10:39:22]sum+1 = 100025 [10:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 78 17.02.2025 10:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186491 ФПД: 63690603388744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186491&fm=63690603388744&tin=02508201610067®Number=0000000000091857&sum=100000 [10:39:23]StoreToDocumentArchive [10:39:23]shift 644 fd 186491 [10:39:23]save to /storage/0644/doc_00186491 [10:39:23]save last doc name /storage/0644/doc_00186491 to /storage/kkm_last_doc_name [10:39:23]save OK [10:39:23]Clear old archive folders... [10:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:23]tlvbuf is 0207CBF0 [10:39:23]SAM_PROTO_ClearQueue [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 09 00 00 [10:39:23]Write to MH i2c: E2 08 00 19 25 80 09 00 00 00 00 00 00 B0 [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 19 25 00 90 00 B2 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_ClearQueue done [10:39:24]KKMCreateOFDPacket [10:39:24]OFDProtocolAddRootSTLVToBuf [10:39:24]FM_MakeSignedData [10:39:24]FM_MakeSignedData [10:39:24]SAM_PROTO_SignData [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 01 02 [10:39:24]Write to MH i2c: E2 08 00 1A 25 80 0D 01 02 00 00 00 00 B8 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 1A 25 00 90 00 B3 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=255 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D8 02 00 35 04 06 00 39 [10:39:24]Write to MH i2c: E2 02 01 1B 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D8 02 00 35 04 06 00 39 00 00 20 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 1B 25 00 90 00 B4 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=10 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 02 02 05 ED 1F CA 5F 48 [10:39:24]Write to MH i2c: E2 0D 00 1C 25 80 0D 02 02 05 00 ED 1F CA 5F 48 00 00 42 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 1C 25 00 90 00 B5 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 03 02 [10:39:24]Write to MH i2c: E2 08 00 1D 25 80 0D 03 02 00 00 00 00 BD [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 0B 00 1D 25 00 4F 1D E5 A2 BF 5C BD 75 90 00 FE [10:39:24]RAPDU: 4F 1D E5 A2 BF 5C BD 75 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_SignData done [10:39:24]FM_MakeSignedData done [10:39:24]CreateOFDProtocolMessage [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 11 00 00 [10:39:24]Write to MH i2c: E2 08 00 1E 25 80 11 00 00 00 00 00 00 BD [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 17 00 1E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 10 [10:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:39:24]wFMCommunicate OK [10:39:24]CreateOFDProtocolMessage done [10:39:24]OFDSenderStorePacket 186491 [10:39:24]StoreOFDPacket docnum=186491 [10:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC A9 07 01 E4 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D8 02 00 35 04 06 00 39 ED 1F CA 5F 48 4F 1D E5 A2 BF 5C BD 75 [10:39:24]CheckFolder [10:39:24]dirname=/storage/ofd_packets [10:39:24]CheckFolder done [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00186491 [10:39:24]NVStorageSaveData ofd_packets/00186491 [10:39:24]File name is /storage/ofd_packets/00186491 [10:39:24]Write 301 bytes [10:39:24]NVStorageSaveData done [10:39:24]OFDSenderStorePacket done [10:39:24]KKMCreateOFDPacket done [10:39:24]NVStorageSaveData kkm_last_timestamp [10:39:24]File name is /storage/kkm_last_timestamp [10:39:24]Write 4 bytes [10:39:24]NVStorageSaveData done [10:39:24]ExternCall_PrintAddStr [10:39:24]wPrintStart [10:39:24]Write to MH i2c: 01 00 00 1F 25 44 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: 01 07 00 1F 25 00 00 00 00 00 FF 0F 59 [10:39:24]RasterBufferAndPrint [10:39:24]line Счет N : (1)411623 [10:39:24]line ИНН: 02508201610067 [10:39:24]line Контрольно-Кассовый Чек [10:39:24]line ПРОДАЖА [10:39:24]line ТРК (МРК, ГНК) : 12 [10:39:24]line Товар: 2710124130 [10:39:24]line Аи-92-К-2 [10:39:24]line 15.580 * 64.20 [10:39:24]line = 1000.24 [10:39:24]line НДС 12% НСП 1% [10:39:24]line > о реализуемом товаре [10:39:24]line ОКРУГЛЕНИЕ: -0.24 [10:39:24]line ИТОГО: 1000.00 [10:39:24]line Внесено: 1000.00 [10:39:24]line СДАЧА: 0.00 [10:39:24]line НСП 1% : 8.85 [10:39:24]line НДС 12% : 106.22 [10:39:24]line Наличными: 1000.00 [10:39:24]line Безнал.: 0.00 [10:39:24]line Место: АЗС № 92 "Партнер Нефть" [10:39:24]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:39:24]line СНО: Общий режим [10:39:24]line Чек 78 17.02.2025 10:39 [10:39:24]line Смена: 644 ФФД: 1.0 [10:39:24]line ЗНМ: 0300000118 [10:39:24]line РНМ: 0000000000091857 [10:39:24]line Версия ККМ: 001 [10:39:24]line ФМ: 0000000000871826 [10:39:24]line ФД: 186491 [10:39:24]line ФПД: 63690603388744 [10:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T103926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186491&fm=63690603388744&tin=02508201610067®Number=0000000000091857&sum=100000 [10:39:24]written 0, free lines is 4095 [10:39:24]OFD Sender: Processing packet 186491 [packets to send 49, broken 48] [10:39:24]ProducePacketName [10:39:24]name=ofd_packets/00186491 [10:39:24]OFD Sender: To server: pG, [10:39:24]CommunicateWithHost lk.salyk.kg:30040 [10:39:24]ConnectInit lk.salyk.kg [10:39:24]Connected sock=10 [10:39:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DC A9 07 01 E4 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 DE 11 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D8 02 00 35 04 06 00 39 ED 1F CA 5F 48 4F 1D E5 A2 BF 5C BD 75 [10:39:25]Write to MH i2c: 01 00 00 4A 25 6F [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 4A 25 00 00 00 00 00 F3 0C 75 [10:39:25]RasterBufferAndPrint [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]line [10:39:25]written 0, free lines is 3328 [10:39:25]MH_Cut [10:39:25]Write to MH i2c: D1 01 00 51 25 01 48 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: D1 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: D1 01 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: D1 01 00 51 25 00 47 [10:39:25]Write to MH i2c: 01 00 00 52 25 77 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C0 DC 47 00 24 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7B D8 02 00 F4 03 04 00 39 B8 B2 67 B6 04 01 00 00 21 D1 8A 4A 2F 76 41 0E [10:39:25]CommunicateWithHost err = 0 [10:39:25]CheckOFDResponse [10:39:25]1017 (14) - 77093643461234 [10:39:25]1041 (16) - 0000000000871826 [10:39:25]1040 (4) - 186491 [10:39:25]1012 (4) - 17.02.2025 04:16 [10:39:25]1206 (1) - 0 [10:39:25]OFD Sender: Remove packet 186491 [10:39:25]ProducePacketName [10:39:25]name=ofd_packets/00186491 [10:39:25]NVStorageDeleteData [10:39:25]OFD Sender: No OFD packet to send [10:39:25]*** Cut start [10:39:25]*** Partial cut [10:39:25]*** CUTSNS_PIN = 1 [10:39:25]*** CUTSNS_PIN = 0 [10:39:26]*** Brake cut motor [10:39:26]Read from MH i2c: 01 [10:39:26]MH_I2C_Read... [10:39:26]*** Stop cut motor [10:39:26]*** Cut end [10:39:26]Read from MH i2c: 01 07 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 52 25 00 00 00 00 00 FF 0F 8C [10:39:26]process_action close_receipt done [10:39:26]requested_data is exist [10:39:26]produce_requested_data [10:39:26]requested_item fm.sn is exist - process it [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 11 00 00 [10:39:26]Write to MH i2c: E2 08 00 53 25 80 11 00 00 00 00 00 00 F2 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 17 00 53 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 45 [10:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:39:26]wFMCommunicate OK [10:39:26]requested_item fd.num is exist - process it [10:39:26]SAM_PROTO_GetFieldsCounters [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 13 00 00 [10:39:26]Write to MH i2c: E2 08 00 54 25 80 13 00 00 00 00 00 00 F5 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 62 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 62 00 54 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [10:39:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_GetFieldsCounters done [10:39:26]requested_item shift.num is exist - process it [10:39:26]requested_item shift.opened is exist - process it [10:39:26]req_shift_opened [10:39:26]FM_GetShiftState [10:39:26]SAM_PROTO_GetShiftState [10:39:26]wFMCommunicate request_size=4 [10:39:26]MH_SAM_APDU [10:39:26]CAPDU: 80 13 01 00 [10:39:26]Write to MH i2c: E2 08 00 55 25 80 13 01 00 00 00 00 00 F7 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:26]Read from MH i2c: E2 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: E2 0E 00 55 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1B [10:39:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:39:26]wFMCommunicate OK [10:39:26]SAM_PROTO_GetShiftState done [10:39:26]FM_GetShiftState done [10:39:26]req_shift_opened done [10:39:26]requested_item shift.open_date is exist - process it [10:39:26]req_shift_open_date [10:39:26]req_shift_open_date done [10:39:26]produce_requested_data done [10:39:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186491,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:39:26]process_action_free close_receipt [10:39:26]json_value_free [10:39:26]json_value_free done [10:39:26]process_json_proto returns [10:39:26]Send response to host [10:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186491,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:39:26]free response buf [10:39:26]execute_script done [10:39:26]execute_script returns [10:39:26]free content buf [10:39:26]Sock 8.Close socket [10:39:26]Sock 8.Thread stoped [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:48]accept exits with 9 [10:43:48]New connection [10:43:48]New thread 3067358564 created [10:43:48]Thread 3067501924 joined [10:43:48]Waiting for new connection... [10:43:48] Sock 9.Parse request [10:43:48]Sock 9.Check first char [10:43:48]Sock 9.First char is OK [10:43:48]request: POST /json_proto HTTP/1.0 [10:43:48]Method: POST [10:43:48]URL: /json_proto [10:43:48]Method is POST - this is cgi request [10:43:48]url: /json_proto [10:43:48]query_string will be loaded in cgi processing [10:43:48]execute_cgi json_proto POST (null) [10:43:48]execute_cgi path=json_proto method=POST [10:43:48]POST find Content-Length [10:43:48]Host: 172.17.46.131:8080 [10:43:48]Content-Length: 682 [10:43:48]Content-Type: application/json [10:43:48] [10:43:48]POST finish read [10:43:48]Found Content-Length = 682 [10:43:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:48]execute_script... [10:43:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:48]POST & json_proto [10:43:48]process_json_proto [10:43:48]json parsed OK: [10:43:48]protocol is kg_v1.0 [10:43:48]action value=close_receipt [10:43:48]process_action close_receipt [10:43:48]cmd_close_receipt [10:43:48]MH_GetDate [10:43:48]Write to MH i2c: F0 00 00 56 25 6A [10:43:48]Write i2c OK [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: F0 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: F0 09 00 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: F0 09 00 56 25 00 E8 12 B3 67 7E 41 4F 65 FA [10:43:48]GetLastDocTimeStamp 1739788766 [10:43:48]current date 1739789032 [10:43:48]FM_GetShiftState [10:43:48]SAM_PROTO_GetShiftState [10:43:48]wFMCommunicate request_size=4 [10:43:48]MH_SAM_APDU [10:43:48]CAPDU: 80 13 01 00 [10:43:48]Write to MH i2c: E2 08 00 57 25 80 13 01 00 00 00 00 00 F9 [10:43:48]Write i2c OK [10:43:48]MH_I2C_Read... [10:43:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:48]Read from MH i2c: E2 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: E2 0E 00 [10:43:48]MH_I2C_Read... [10:43:48]Read from MH i2c: E2 0E 00 57 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1D [10:43:48]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:43:48]wFMCommunicate OK [10:43:48]SAM_PROTO_GetShiftState done [10:43:48]FM_GetShiftState done [10:43:48]opened in 1739752571 [10:43:48]opened+sec_in_day 1739838971 [10:43:48]quantity*price = 100023 [10:43:48]sum+1 = 100025 [10:43:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 79 17.02.2025 10:43 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186492 ФПД: 94135289533486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104352&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186492&fm=94135289533486&tin=02508201610067®Number=0000000000091857&sum=100000 [10:43:49]StoreToDocumentArchive [10:43:49]shift 644 fd 186492 [10:43:49]save to /storage/0644/doc_00186492 [10:43:49]save last doc name /storage/0644/doc_00186492 to /storage/kkm_last_doc_name [10:43:49]save OK [10:43:49]Clear old archive folders... [10:43:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:49]tlvbuf is 01FFA970 [10:43:49]SAM_PROTO_ClearQueue [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 09 00 00 [10:43:49]Write to MH i2c: E2 08 00 64 25 80 09 00 00 00 00 00 00 FB [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 64 25 00 90 00 FD [10:43:49]RAPDU: 90 00 [10:43:49]wFMCommunicate OK [10:43:49]SAM_PROTO_ClearQueue done [10:43:49]KKMCreateOFDPacket [10:43:49]OFDProtocolAddRootSTLVToBuf [10:43:49]FM_MakeSignedData [10:43:49]FM_MakeSignedData [10:43:49]SAM_PROTO_SignData [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 0D 01 02 [10:43:49]Write to MH i2c: E2 08 00 65 25 80 0D 01 02 00 00 00 00 03 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 65 25 00 90 00 FE [10:43:49]RAPDU: 90 00 [10:43:49]wFMCommunicate OK [10:43:49]wFMCommunicate request_size=255 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E8 12 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D8 02 00 35 04 06 00 55 [10:43:49]Write to MH i2c: E2 02 01 66 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E8 12 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D8 02 00 35 04 06 00 55 00 00 94 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 66 25 00 90 00 FF [10:43:49]RAPDU: 90 00 [10:43:49]wFMCommunicate OK [10:43:49]wFMCommunicate request_size=10 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 0D 02 02 05 9D 94 7E 54 2E [10:43:49]Write to MH i2c: E2 0D 00 67 25 80 0D 02 02 05 00 9D 94 7E 54 2E 00 00 41 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 03 00 67 25 00 90 00 00 [10:43:49]RAPDU: 90 00 [10:43:49]wFMCommunicate OK [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 0D 03 02 [10:43:49]Write to MH i2c: E2 08 00 68 25 80 0D 03 02 00 00 00 00 08 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 0B 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 0B 00 68 25 00 40 20 EE EA F5 D5 78 73 90 00 F6 [10:43:49]RAPDU: 40 20 EE EA F5 D5 78 73 90 00 [10:43:49]wFMCommunicate OK [10:43:49]SAM_PROTO_SignData done [10:43:49]FM_MakeSignedData done [10:43:49]CreateOFDProtocolMessage [10:43:49]wFMCommunicate request_size=4 [10:43:49]MH_SAM_APDU [10:43:49]CAPDU: 80 11 00 00 [10:43:49]Write to MH i2c: E2 08 00 69 25 80 11 00 00 00 00 00 00 08 [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:49]Read from MH i2c: E2 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 17 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: E2 17 00 69 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [10:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:49]wFMCommunicate OK [10:43:49]CreateOFDProtocolMessage done [10:43:49]OFDSenderStorePacket 186492 [10:43:49]StoreOFDPacket docnum=186492 [10:43:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 32 07 01 D8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E8 12 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D8 02 00 35 04 06 00 55 9D 94 7E 54 2E 40 20 EE EA F5 D5 78 73 [10:43:49]CheckFolder [10:43:49]dirname=/storage/ofd_packets [10:43:49]CheckFolder done [10:43:49]ProducePacketName [10:43:49]name=ofd_packets/00186492 [10:43:49]NVStorageSaveData ofd_packets/00186492 [10:43:49]File name is /storage/ofd_packets/00186492 [10:43:49]Write 301 bytes [10:43:49]NVStorageSaveData done [10:43:49]OFDSenderStorePacket done [10:43:49]KKMCreateOFDPacket done [10:43:49]NVStorageSaveData kkm_last_timestamp [10:43:49]File name is /storage/kkm_last_timestamp [10:43:49]Write 4 bytes [10:43:49]NVStorageSaveData done [10:43:49]ExternCall_PrintAddStr [10:43:49]wPrintStart [10:43:49]Write to MH i2c: 01 00 00 6A 25 8F [10:43:49]Write i2c OK [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: 01 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: 01 07 00 [10:43:49]MH_I2C_Read... [10:43:49]Read from MH i2c: 01 07 00 6A 25 00 00 00 00 00 FF 0F A4 [10:43:49]RasterBufferAndPrint [10:43:49]line Счет N : (1)411624 [10:43:49]line ИНН: 02508201610067 [10:43:49]line Контрольно-Кассовый Чек [10:43:49]line ПРОДАЖА [10:43:49]line ТРК (МРК, ГНК) : 22 [10:43:49]line Товар: 2710124130 [10:43:49]line Аи-92-К-2 [10:43:49]line 15.580 * 64.20 [10:43:49]line = 1000.24 [10:43:49]line НДС 12% НСП 1% [10:43:49]line > о реализуемом товаре [10:43:49]line ОКРУГЛЕНИЕ: -0.24 [10:43:49]line ИТОГО: 1000.00 [10:43:49]line Внесено: 1000.00 [10:43:49]line СДАЧА: 0.00 [10:43:49]line НСП 1% : 8.85 [10:43:49]line НДС 12% : 106.22 [10:43:49]line Наличными: 1000.00 [10:43:49]line Безнал.: 0.00 [10:43:49]line Место: АЗС № 92 "Партнер Нефть" [10:43:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:43:49]line СНО: Общий режим [10:43:49]line Чек 79 17.02.2025 10:43 [10:43:49]line Смена: 644 ФФД: 1.0 [10:43:49]line ЗНМ: 0300000118 [10:43:49]line РНМ: 0000000000091857 [10:43:49]line Версия ККМ: 001 [10:43:49]line ФМ: 0000000000871826 [10:43:49]line ФД: 186492 [10:43:49]line ФПД: 94135289533486 [10:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104352&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186492&fm=94135289533486&tin=02508201610067®Number=0000000000091857&sum=100000 [10:43:50]written 0, free lines is 4095 [10:43:50]OFD Sender: Processing packet 186492 [packets to send 49, broken 48] [10:43:50]ProducePacketName [10:43:50]name=ofd_packets/00186492 [10:43:50]OFD Sender: To server: pG, [10:43:50]CommunicateWithHost lk.salyk.kg:30040 [10:43:50]ConnectInit lk.salyk.kg [10:43:50]Connected sock=11 [10:43:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 35 32 07 01 D8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 E8 12 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D8 02 00 35 04 06 00 55 9D 94 7E 54 2E 40 20 EE EA F5 D5 78 73 [10:43:50]Write to MH i2c: 01 00 00 95 25 BA [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: 01 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: 01 07 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: 01 07 00 95 25 00 00 00 00 00 EC 0C B9 [10:43:50]RasterBufferAndPrint [10:43:50]line [10:43:50]line [10:43:50]line [10:43:50]line [10:43:50]line [10:43:50]written 0, free lines is 3314 [10:43:50]MH_Cut [10:43:50]Write to MH i2c: D1 01 00 9C 25 01 93 [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: D1 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: D1 01 00 [10:43:50]MH_I2C_Read... [10:43:50]Read from MH i2c: D1 01 00 9C 25 00 92 [10:43:50]Write to MH i2c: 01 00 00 9D 25 C2 [10:43:50]Write i2c OK [10:43:50]MH_I2C_Read... [10:43:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EC 28 47 00 EA 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7C D8 02 00 F4 03 04 00 42 B9 B2 67 B6 04 01 00 00 12 8A 45 CF 5F AF F9 6F [10:43:50]CommunicateWithHost err = 0 [10:43:50]CheckOFDResponse [10:43:50]1017 (14) - 77093643461234 [10:43:50]1041 (16) - 0000000000871826 [10:43:50]1040 (4) - 186492 [10:43:50]1012 (4) - 17.02.2025 04:21 [10:43:50]1206 (1) - 0 [10:43:50]OFD Sender: Remove packet 186492 [10:43:50]ProducePacketName [10:43:50]name=ofd_packets/00186492 [10:43:50]NVStorageDeleteData [10:43:51]OFD Sender: No OFD packet to send [10:43:51]*** Cut start [10:43:51]*** Partial cut [10:43:51]*** CUTSNS_PIN = 1 [10:43:51]*** CUTSNS_PIN = 0 [10:43:51]*** Brake cut motor [10:43:51]Read from MH i2c: 01 [10:43:51]MH_I2C_Read... [10:43:51]*** Stop cut motor [10:43:51]*** Cut end [10:43:51]Read from MH i2c: 01 07 00 [10:43:51]MH_I2C_Read... [10:43:51]Read from MH i2c: 01 07 00 9D 25 00 00 00 00 00 FF 0F D7 [10:43:51]process_action close_receipt done [10:43:51]requested_data is exist [10:43:51]produce_requested_data [10:43:51]requested_item fm.sn is exist - process it [10:43:51]wFMCommunicate request_size=4 [10:43:51]MH_SAM_APDU [10:43:51]CAPDU: 80 11 00 00 [10:43:51]Write to MH i2c: E2 08 00 9E 25 80 11 00 00 00 00 00 00 3D [10:43:51]Write i2c OK [10:43:51]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 17 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 17 00 9E 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 90 [10:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:43:52]wFMCommunicate OK [10:43:52]requested_item fd.num is exist - process it [10:43:52]SAM_PROTO_GetFieldsCounters [10:43:52]wFMCommunicate request_size=4 [10:43:52]MH_SAM_APDU [10:43:52]CAPDU: 80 13 00 00 [10:43:52]Write to MH i2c: E2 08 00 9F 25 80 13 00 00 00 00 00 00 40 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 62 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 62 00 9F 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [10:43:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:52]wFMCommunicate OK [10:43:52]SAM_PROTO_GetFieldsCounters done [10:43:52]requested_item shift.num is exist - process it [10:43:52]requested_item shift.opened is exist - process it [10:43:52]req_shift_opened [10:43:52]FM_GetShiftState [10:43:52]SAM_PROTO_GetShiftState [10:43:52]wFMCommunicate request_size=4 [10:43:52]MH_SAM_APDU [10:43:52]CAPDU: 80 13 01 00 [10:43:52]Write to MH i2c: E2 08 00 A0 25 80 13 01 00 00 00 00 00 42 [10:43:52]Write i2c OK [10:43:52]MH_I2C_Read... [10:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:52]Read from MH i2c: E2 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 0E 00 [10:43:52]MH_I2C_Read... [10:43:52]Read from MH i2c: E2 0E 00 A0 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 66 [10:43:52]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:43:52]wFMCommunicate OK [10:43:52]SAM_PROTO_GetShiftState done [10:43:52]FM_GetShiftState done [10:43:52]req_shift_opened done [10:43:52]requested_item shift.open_date is exist - process it [10:43:52]req_shift_open_date [10:43:52]req_shift_open_date done [10:43:52]produce_requested_data done [10:43:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186492,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:43:52]process_action_free close_receipt [10:43:52]json_value_free [10:43:52]json_value_free done [10:43:52]process_json_proto returns [10:43:52]Send response to host [10:43:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186492,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:43:52]free response buf [10:43:52]execute_script done [10:43:52]execute_script returns [10:43:52]free content buf [10:43:52]Sock 9.Close socket [10:43:52]Sock 9.Thread stoped [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:19]accept exits with 8 [10:44:19]New connection [10:44:19]New thread 3067501924 created [10:44:19]Thread 3067358564 joined [10:44:19]Waiting for new connection... [10:44:19] Sock 8.Parse request [10:44:19]Sock 8.Check first char [10:44:19]Sock 8.First char is OK [10:44:19]request: POST /json_proto HTTP/1.0 [10:44:19]Method: POST [10:44:19]URL: /json_proto [10:44:19]Method is POST - this is cgi request [10:44:19]url: /json_proto [10:44:19]query_string will be loaded in cgi processing [10:44:19]execute_cgi json_proto POST (null) [10:44:19]execute_cgi path=json_proto method=POST [10:44:19]POST find Content-Length [10:44:19]Host: 172.17.46.131:8080 [10:44:19]Content-Length: 682 [10:44:19]Content-Type: application/json [10:44:19] [10:44:19]POST finish read [10:44:19]Found Content-Length = 682 [10:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:19]execute_script... [10:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:19]POST & json_proto [10:44:19]process_json_proto [10:44:19]json parsed OK: [10:44:19]protocol is kg_v1.0 [10:44:19]action value=close_receipt [10:44:19]process_action close_receipt [10:44:19]cmd_close_receipt [10:44:19]MH_GetDate [10:44:19]Write to MH i2c: F0 00 00 A1 25 B5 [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 09 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 09 00 A1 25 00 07 13 B3 67 7E 41 4F 65 65 [10:44:19]GetLastDocTimeStamp 1739789032 [10:44:19]current date 1739789063 [10:44:19]FM_GetShiftState [10:44:19]SAM_PROTO_GetShiftState [10:44:19]wFMCommunicate request_size=4 [10:44:19]MH_SAM_APDU [10:44:19]CAPDU: 80 13 01 00 [10:44:19]Write to MH i2c: E2 08 00 A2 25 80 13 01 00 00 00 00 00 44 [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:19]Read from MH i2c: E2 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: E2 0E 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: E2 0E 00 A2 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 68 [10:44:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:44:19]wFMCommunicate OK [10:44:19]SAM_PROTO_GetShiftState done [10:44:19]FM_GetShiftState done [10:44:19]opened in 1739752571 [10:44:19]opened+sec_in_day 1739838971 [10:44:19]quantity*price = 100012 [10:44:19]sum+1 = 100014 [10:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 80 17.02.2025 10:44 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186493 ФПД: 178176290816666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104423&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186493&fm=178176290816666&tin=02508201610067®Number=0000000000091857&sum=100000 [10:44:20]StoreToDocumentArchive [10:44:20]shift 644 fd 186493 [10:44:20]save to /storage/0644/doc_00186493 [10:44:20]save last doc name /storage/0644/doc_00186493 to /storage/kkm_last_doc_name [10:44:20]save OK [10:44:20]Clear old archive folders... [10:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:20]tlvbuf is 02026F90 [10:44:20]SAM_PROTO_ClearQueue [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 09 00 00 [10:44:20]Write to MH i2c: E2 08 00 AF 25 80 09 00 00 00 00 00 00 46 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 AF 25 00 90 00 48 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]SAM_PROTO_ClearQueue done [10:44:20]KKMCreateOFDPacket [10:44:20]OFDProtocolAddRootSTLVToBuf [10:44:20]FM_MakeSignedData [10:44:20]FM_MakeSignedData [10:44:20]SAM_PROTO_SignData [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 01 02 [10:44:20]Write to MH i2c: E2 08 00 B0 25 80 0D 01 02 00 00 00 00 4E [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 B0 25 00 90 00 49 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=255 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D8 02 00 35 04 06 00 A2 [10:44:20]Write to MH i2c: E2 02 01 B1 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D8 02 00 35 04 06 00 A2 00 00 C2 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 B1 25 00 90 00 4A [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=10 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 02 02 05 0C E6 85 82 9A [10:44:20]Write to MH i2c: E2 0D 00 B2 25 80 0D 02 02 05 00 0C E6 85 82 9A 00 00 EE [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 B2 25 00 90 00 4B [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 03 02 [10:44:20]Write to MH i2c: E2 08 00 B3 25 80 0D 03 02 00 00 00 00 53 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0B 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0B 00 B3 25 00 F2 94 61 C8 4C 03 8C 94 90 00 72 [10:44:20]RAPDU: F2 94 61 C8 4C 03 8C 94 90 00 [10:44:20]wFMCommunicate OK [10:44:20]SAM_PROTO_SignData done [10:44:20]FM_MakeSignedData done [10:44:20]CreateOFDProtocolMessage [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 11 00 00 [10:44:20]Write to MH i2c: E2 08 00 B4 25 80 11 00 00 00 00 00 00 53 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 17 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 17 00 B4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A6 [10:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:20]wFMCommunicate OK [10:44:20]CreateOFDProtocolMessage done [10:44:20]OFDSenderStorePacket 186493 [10:44:20]StoreOFDPacket docnum=186493 [10:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 A5 07 01 60 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D8 02 00 35 04 06 00 A2 0C E6 85 82 9A F2 94 61 C8 4C 03 8C 94 [10:44:20]CheckFolder [10:44:20]dirname=/storage/ofd_packets [10:44:20]CheckFolder done [10:44:20]ProducePacketName [10:44:20]name=ofd_packets/00186493 [10:44:20]NVStorageSaveData ofd_packets/00186493 [10:44:20]File name is /storage/ofd_packets/00186493 [10:44:20]Write 301 bytes [10:44:20]NVStorageSaveData done [10:44:20]OFDSenderStorePacket done [10:44:20]KKMCreateOFDPacket done [10:44:20]NVStorageSaveData kkm_last_timestamp [10:44:20]File name is /storage/kkm_last_timestamp [10:44:20]Write 4 bytes [10:44:20]NVStorageSaveData done [10:44:20]ExternCall_PrintAddStr [10:44:20]wPrintStart [10:44:20]Write to MH i2c: 01 00 00 B5 25 DA [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 07 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 07 00 B5 25 00 00 00 00 00 FF 0F EF [10:44:20]RasterBufferAndPrint [10:44:20]line Счет N : (1)411625 [10:44:20]line ИНН: 02508201610067 [10:44:20]line Контрольно-Кассовый Чек [10:44:20]line ПРОДАЖА [10:44:20]line ТРК (МРК, ГНК) : 33 [10:44:20]line Товар: 2710124500 [10:44:20]line Аи-95-К-5 [10:44:20]line 13.910 * 71.90 [10:44:20]line = 1000.13 [10:44:20]line НДС 12% НСП 1% [10:44:20]line > о реализуемом товаре [10:44:20]line ОКРУГЛЕНИЕ: -0.13 [10:44:20]line ИТОГО: 1000.00 [10:44:20]line Внесено: 1000.00 [10:44:20]line СДАЧА: 0.00 [10:44:20]line НСП 1% : 8.85 [10:44:20]line НДС 12% : 106.21 [10:44:20]line Наличными: 1000.00 [10:44:20]line Безнал.: 0.00 [10:44:20]line Место: АЗС № 92 "Партнер Нефть" [10:44:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:44:20]line СНО: Общий режим [10:44:20]line Чек 80 17.02.2025 10:44 [10:44:20]line Смена: 644 ФФД: 1.0 [10:44:20]line ЗНМ: 0300000118 [10:44:20]line РНМ: 0000000000091857 [10:44:20]line Версия ККМ: 001 [10:44:20]line ФМ: 0000000000871826 [10:44:20]line ФД: 186493 [10:44:20]line ФПД: 178176290816666 [10:44:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104423&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186493&fm=178176290816666&tin=02508201610067®Number=0000000000091857&sum=100000 [10:44:21]OFD Sender: Processing packet 186493 [packets to send 49, broken 48] [10:44:21]ProducePacketName [10:44:21]name=ofd_packets/00186493 [10:44:21]OFD Sender: To server: pG, [10:44:21]CommunicateWithHost lk.salyk.kg:30040 [10:44:21]ConnectInit lk.salyk.kg [10:44:21]written 0, free lines is 4095 [10:44:21]Connected sock=10 [10:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 13 A5 07 01 60 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 07 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D8 02 00 35 04 06 00 A2 0C E6 85 82 9A F2 94 61 C8 4C 03 8C 94 [10:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC E8 47 00 42 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7D D8 02 00 F4 03 04 00 61 B9 B2 67 B6 04 01 00 00 DF 7B CA 3C B5 A9 B9 DA [10:44:21]CommunicateWithHost err = 0 [10:44:21]CheckOFDResponse [10:44:21]1017 (14) - 77093643461234 [10:44:21]1041 (16) - 0000000000871826 [10:44:21]1040 (4) - 186493 [10:44:21]1012 (4) - 17.02.2025 04:21 [10:44:21]1206 (1) - 0 [10:44:21]OFD Sender: Remove packet 186493 [10:44:21]ProducePacketName [10:44:21]name=ofd_packets/00186493 [10:44:21]NVStorageDeleteData [10:44:21]Write to MH i2c: 01 00 00 E0 25 05 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 E0 25 00 00 00 00 00 EB 0C 03 [10:44:21]RasterBufferAndPrint [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]written 0, free lines is 3314 [10:44:21]MH_Cut [10:44:21]Write to MH i2c: D1 01 00 E7 25 01 DE [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 01 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 01 00 E7 25 00 DD [10:44:21]Write to MH i2c: 01 00 00 E8 25 0D [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:22]OFD Sender: No OFD packet to send [10:44:22]*** Cut start [10:44:22]*** Partial cut [10:44:22]*** CUTSNS_PIN = 1 [10:44:22]*** CUTSNS_PIN = 0 [10:44:22]*** Brake cut motor [10:44:23]Read from MH i2c: 01 [10:44:23]MH_I2C_Read... [10:44:23]*** Stop cut motor [10:44:23]*** Cut end [10:44:23]Read from MH i2c: 01 07 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: 01 07 00 E8 25 00 00 00 00 00 FF 0F 22 [10:44:23]process_action close_receipt done [10:44:23]requested_data is exist [10:44:23]produce_requested_data [10:44:23]requested_item fm.sn is exist - process it [10:44:23]wFMCommunicate request_size=4 [10:44:23]MH_SAM_APDU [10:44:23]CAPDU: 80 11 00 00 [10:44:23]Write to MH i2c: E2 08 00 E9 25 80 11 00 00 00 00 00 00 88 [10:44:23]Write i2c OK [10:44:23]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 17 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 17 00 E9 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [10:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:44:23]wFMCommunicate OK [10:44:23]requested_item fd.num is exist - process it [10:44:23]SAM_PROTO_GetFieldsCounters [10:44:23]wFMCommunicate request_size=4 [10:44:23]MH_SAM_APDU [10:44:23]CAPDU: 80 13 00 00 [10:44:23]Write to MH i2c: E2 08 00 EA 25 80 13 00 00 00 00 00 00 8B [10:44:23]Write i2c OK [10:44:23]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 62 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 62 00 EA 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [10:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:23]wFMCommunicate OK [10:44:23]SAM_PROTO_GetFieldsCounters done [10:44:23]requested_item shift.num is exist - process it [10:44:23]requested_item shift.opened is exist - process it [10:44:23]req_shift_opened [10:44:23]FM_GetShiftState [10:44:23]SAM_PROTO_GetShiftState [10:44:23]wFMCommunicate request_size=4 [10:44:23]MH_SAM_APDU [10:44:23]CAPDU: 80 13 01 00 [10:44:23]Write to MH i2c: E2 08 00 EB 25 80 13 01 00 00 00 00 00 8D [10:44:23]Write i2c OK [10:44:23]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 0E 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 0E 00 EB 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B1 [10:44:23]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:44:23]wFMCommunicate OK [10:44:23]SAM_PROTO_GetShiftState done [10:44:23]FM_GetShiftState done [10:44:23]req_shift_opened done [10:44:23]requested_item shift.open_date is exist - process it [10:44:23]req_shift_open_date [10:44:23]req_shift_open_date done [10:44:23]produce_requested_data done [10:44:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186493,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:44:23]process_action_free close_receipt [10:44:23]json_value_free [10:44:23]json_value_free done [10:44:23]process_json_proto returns [10:44:23]Send response to host [10:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186493,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:44:23]free response buf [10:44:23]execute_script done [10:44:23]execute_script returns [10:44:23]free content buf [10:44:23]Sock 8.Close socket [10:44:23]Sock 8.Thread stoped [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:18]accept exits with 9 [10:45:18]New connection [10:45:18]New thread 3067358564 created [10:45:18]Thread 3067501924 joined [10:45:18]Waiting for new connection... [10:45:18] Sock 9.Parse request [10:45:18]Sock 9.Check first char [10:45:18]Sock 9.First char is OK [10:45:18]request: POST /json_proto HTTP/1.0 [10:45:18]Method: POST [10:45:18]URL: /json_proto [10:45:18]Method is POST - this is cgi request [10:45:18]url: /json_proto [10:45:18]query_string will be loaded in cgi processing [10:45:18]execute_cgi json_proto POST (null) [10:45:18]execute_cgi path=json_proto method=POST [10:45:18]POST find Content-Length [10:45:18]Host: 172.17.46.131:8080 [10:45:18]Content-Length: 792 [10:45:18]Content-Type: application/json [10:45:18] [10:45:18]POST finish read [10:45:18]Found Content-Length = 792 [10:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:18]execute_script... [10:45:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:18]POST & json_proto [10:45:18]process_json_proto [10:45:18]json parsed OK: [10:45:18]protocol is kg_v1.0 [10:45:18]action value=close_receipt [10:45:18]process_action close_receipt [10:45:18]cmd_close_receipt [10:45:18]MH_GetDate [10:45:18]Write to MH i2c: F0 00 00 EC 25 00 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: F0 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: F0 09 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: F0 09 00 EC 25 00 42 13 B3 67 7E 41 4F 65 EB [10:45:18]GetLastDocTimeStamp 1739789063 [10:45:18]current date 1739789122 [10:45:18]FM_GetShiftState [10:45:18]SAM_PROTO_GetShiftState [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 13 01 00 [10:45:18]Write to MH i2c: E2 08 00 ED 25 80 13 01 00 00 00 00 00 8F [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0E 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0E 00 ED 25 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B3 [10:45:18]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_GetShiftState done [10:45:18]FM_GetShiftState done [10:45:18]opened in 1739752571 [10:45:18]opened+sec_in_day 1739838971 [10:45:18]quantity*price = 0 [10:45:18]sum+1 = 1 [10:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 81 17.02.2025 10:45 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186494 ФПД: 71787799883846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104522&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186494&fm=71787799883846&tin=02508201610067®Number=0000000000091857&sum=0 [10:45:19]StoreToDocumentArchive [10:45:19]shift 644 fd 186494 [10:45:19]save to /storage/0644/doc_00186494 [10:45:19]save last doc name /storage/0644/doc_00186494 to /storage/kkm_last_doc_name [10:45:19]save OK [10:45:19]Clear old archive folders... [10:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:19]tlvbuf is 02027870 [10:45:19]SAM_PROTO_ClearQueue [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 09 00 00 [10:45:19]Write to MH i2c: E2 08 00 FA 25 80 09 00 00 00 00 00 00 91 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 FA 25 00 90 00 93 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]SAM_PROTO_ClearQueue done [10:45:19]KKMCreateOFDPacket [10:45:19]OFDProtocolAddRootSTLVToBuf [10:45:19]FM_MakeSignedData [10:45:19]FM_MakeSignedData [10:45:19]SAM_PROTO_SignData [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 01 02 [10:45:19]Write to MH i2c: E2 08 00 FB 25 80 0D 01 02 00 00 00 00 99 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 FB 25 00 90 00 94 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=255 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D8 02 00 35 04 06 00 41 [10:45:19]Write to MH i2c: E2 02 01 FC 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D8 02 00 35 04 06 00 41 00 00 56 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 FC 25 00 90 00 95 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=10 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 02 02 05 4A 66 4F B0 46 [10:45:19]Write to MH i2c: E2 0D 00 FD 25 80 0D 02 02 05 00 4A 66 4F B0 46 00 00 9B [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 03 00 FD 25 00 90 00 96 [10:45:19]RAPDU: 90 00 [10:45:19]wFMCommunicate OK [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 0D 03 02 [10:45:19]Write to MH i2c: E2 08 00 FE 25 80 0D 03 02 00 00 00 00 9E [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 0B 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 0B 00 FE 25 00 3A FA EF 18 F6 72 A8 57 90 00 41 [10:45:19]RAPDU: 3A FA EF 18 F6 72 A8 57 90 00 [10:45:19]wFMCommunicate OK [10:45:19]SAM_PROTO_SignData done [10:45:19]FM_MakeSignedData done [10:45:19]CreateOFDProtocolMessage [10:45:19]wFMCommunicate request_size=4 [10:45:19]MH_SAM_APDU [10:45:19]CAPDU: 80 11 00 00 [10:45:19]Write to MH i2c: E2 08 00 FF 25 80 11 00 00 00 00 00 00 9E [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:19]Read from MH i2c: E2 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 17 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: E2 17 00 FF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [10:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:45:19]wFMCommunicate OK [10:45:19]CreateOFDProtocolMessage done [10:45:19]OFDSenderStorePacket 186494 [10:45:19]StoreOFDPacket docnum=186494 [10:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F FD 07 01 C9 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D8 02 00 35 04 06 00 41 4A 66 4F B0 46 3A FA EF 18 F6 72 A8 57 [10:45:19]CheckFolder [10:45:19]dirname=/storage/ofd_packets [10:45:19]CheckFolder done [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00186494 [10:45:19]NVStorageSaveData ofd_packets/00186494 [10:45:19]File name is /storage/ofd_packets/00186494 [10:45:19]Write 301 bytes [10:45:19]NVStorageSaveData done [10:45:19]OFDSenderStorePacket done [10:45:19]KKMCreateOFDPacket done [10:45:19]NVStorageSaveData kkm_last_timestamp [10:45:19]File name is /storage/kkm_last_timestamp [10:45:19]Write 4 bytes [10:45:19]NVStorageSaveData done [10:45:19]ExternCall_PrintAddStr [10:45:19]wPrintStart [10:45:19]Write to MH i2c: 01 00 00 00 26 26 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 00 26 00 00 00 00 00 FF 0F 3B [10:45:19]RasterBufferAndPrint [10:45:19]line Счет N : (1)411626 [10:45:19]line ИНН: 02508201610067 [10:45:19]line Контрольно-Кассовый Чек [10:45:19]line ПРОДАЖА [10:45:19]line ТРК (МРК, ГНК) : 12 [10:45:19]line Товар: 2710124130 [10:45:19]line Аи-92-К-2 [10:45:19]line 15.000 * 0.00 [10:45:19]line = 0.00 [10:45:19]line НДС 12% НСП 1% [10:45:19]line > о реализуемом товаре [10:45:19]line ИТОГО: 0.00 [10:45:19]line НСП 1% : 0.00 [10:45:19]line НДС 12% : 0.00 [10:45:19]line Наличными: 0.00 [10:45:19]line Безнал.: 0.00 [10:45:19]line Место: АЗС № 92 "Партнер Нефть" [10:45:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:45:19]line СНО: Общий режим [10:45:19]line Чек 81 17.02.2025 10:45 [10:45:19]line Смена: 644 ФФД: 1.0 [10:45:19]line ЗНМ: 0300000118 [10:45:19]line РНМ: 0000000000091857 [10:45:19]line Версия ККМ: 001 [10:45:19]line Талоны: Топливная Карта [10:45:19]line 03821 [10:45:19]line ФМ: 0000000000871826 [10:45:19]line ФД: 186494 [10:45:19]line ФПД: 71787799883846 [10:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104522&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186494&fm=71787799883846&tin=02508201610067®Number=0000000000091857&sum=0 [10:45:19]written 0, free lines is 4095 [10:45:19]OFD Sender: Processing packet 186494 [packets to send 49, broken 48] [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00186494 [10:45:19]OFD Sender: To server: pG, [10:45:19]CommunicateWithHost lk.salyk.kg:30040 [10:45:19]ConnectInit lk.salyk.kg [10:45:20]Connected sock=10 [10:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F FD 07 01 C9 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 42 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D8 02 00 35 04 06 00 41 4A 66 4F B0 46 3A FA EF 18 F6 72 A8 57 [10:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 14 3B 47 00 64 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7E D8 02 00 F4 03 04 00 9C B9 B2 67 B6 04 01 00 00 B9 CD 72 ED 32 4F AE 43 [10:45:20]CommunicateWithHost err = 0 [10:45:20]CheckOFDResponse [10:45:20]1017 (14) - 77093643461234 [10:45:20]1041 (16) - 0000000000871826 [10:45:20]1040 (4) - 186494 [10:45:20]1012 (4) - 17.02.2025 04:22 [10:45:20]1206 (1) - 0 [10:45:20]OFD Sender: Remove packet 186494 [10:45:20]ProducePacketName [10:45:20]name=ofd_packets/00186494 [10:45:20]NVStorageDeleteData [10:45:20]Write to MH i2c: 01 00 00 2A 26 50 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: 01 07 00 2A 26 00 00 00 00 00 15 0D 79 [10:45:20]RasterBufferAndPrint [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]line [10:45:20]written 0, free lines is 3358 [10:45:20]MH_Cut [10:45:20]Write to MH i2c: D1 01 00 31 26 01 29 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 01 00 [10:45:20]MH_I2C_Read... [10:45:20]Read from MH i2c: D1 01 00 31 26 00 28 [10:45:20]Write to MH i2c: 01 00 00 32 26 58 [10:45:20]Write i2c OK [10:45:20]MH_I2C_Read... [10:45:20]OFD Sender: No OFD packet to send [10:45:20]*** Cut start [10:45:20]*** Partial cut [10:45:20]*** CUTSNS_PIN = 1 [10:45:21]*** CUTSNS_PIN = 0 [10:45:21]*** Brake cut motor [10:45:21]Read from MH i2c: 01 [10:45:21]MH_I2C_Read... [10:45:21]*** Stop cut motor [10:45:21]*** Cut end [10:45:21]Read from MH i2c: 01 07 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 07 00 32 26 00 00 00 00 00 FF 0F 6D [10:45:21]process_action close_receipt done [10:45:21]requested_data is exist [10:45:21]produce_requested_data [10:45:21]requested_item fm.sn is exist - process it [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 11 00 00 [10:45:21]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 26 [10:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:45:21]wFMCommunicate OK [10:45:21]requested_item fd.num is exist - process it [10:45:21]SAM_PROTO_GetFieldsCounters [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 13 00 00 [10:45:21]Write to MH i2c: E2 08 00 34 26 80 13 00 00 00 00 00 00 D6 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 62 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 62 00 34 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [10:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_GetFieldsCounters done [10:45:21]requested_item shift.num is exist - process it [10:45:21]requested_item shift.opened is exist - process it [10:45:21]req_shift_opened [10:45:21]FM_GetShiftState [10:45:21]SAM_PROTO_GetShiftState [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 13 01 00 [10:45:21]Write to MH i2c: E2 08 00 35 26 80 13 01 00 00 00 00 00 D8 [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0E 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 0E 00 35 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FC [10:45:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:45:21]wFMCommunicate OK [10:45:21]SAM_PROTO_GetShiftState done [10:45:21]FM_GetShiftState done [10:45:21]req_shift_opened done [10:45:21]requested_item shift.open_date is exist - process it [10:45:21]req_shift_open_date [10:45:21]req_shift_open_date done [10:45:21]produce_requested_data done [10:45:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186494,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:45:21]process_action_free close_receipt [10:45:21]json_value_free [10:45:21]json_value_free done [10:45:21]process_json_proto returns [10:45:21]Send response to host [10:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186494,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:45:21]free response buf [10:45:21]execute_script done [10:45:21]execute_script returns [10:45:21]free content buf [10:45:21]Sock 9.Close socket [10:45:21]Sock 9.Thread stoped [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:46:57]accept exits with 8 [10:46:57]New connection [10:46:57]New thread 3067501924 created [10:46:57]Thread 3067358564 joined [10:46:57]Waiting for new connection... [10:46:57] Sock 8.Parse request [10:46:57]Sock 8.Check first char [10:46:57]Sock 8.First char is OK [10:46:57]request: POST /json_proto HTTP/1.0 [10:46:57]Method: POST [10:46:57]URL: /json_proto [10:46:57]Method is POST - this is cgi request [10:46:57]url: /json_proto [10:46:57]query_string will be loaded in cgi processing [10:46:57]execute_cgi json_proto POST (null) [10:46:57]execute_cgi path=json_proto method=POST [10:46:57]POST find Content-Length [10:46:57]Host: 172.17.46.131:8080 [10:46:57]Content-Length: 792 [10:46:57]Content-Type: application/json [10:46:57] [10:46:57]POST finish read [10:46:57]Found Content-Length = 792 [10:46:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:57]execute_script... [10:46:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:57]POST & json_proto [10:46:57]process_json_proto [10:46:57]json parsed OK: [10:46:57]protocol is kg_v1.0 [10:46:57]action value=close_receipt [10:46:57]process_action close_receipt [10:46:57]cmd_close_receipt [10:46:57]MH_GetDate [10:46:57]Write to MH i2c: F0 00 00 36 26 4B [10:46:57]Write i2c OK [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 09 00 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: F0 09 00 36 26 00 A5 13 B3 67 7E 41 4F 65 99 [10:46:57]GetLastDocTimeStamp 1739789122 [10:46:57]current date 1739789221 [10:46:57]FM_GetShiftState [10:46:57]SAM_PROTO_GetShiftState [10:46:57]wFMCommunicate request_size=4 [10:46:57]MH_SAM_APDU [10:46:57]CAPDU: 80 13 01 00 [10:46:57]Write to MH i2c: E2 08 00 37 26 80 13 01 00 00 00 00 00 DA [10:46:57]Write i2c OK [10:46:57]MH_I2C_Read... [10:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:57]Read from MH i2c: E2 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: E2 0E 00 [10:46:57]MH_I2C_Read... [10:46:57]Read from MH i2c: E2 0E 00 37 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FE [10:46:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:46:57]wFMCommunicate OK [10:46:57]SAM_PROTO_GetShiftState done [10:46:57]FM_GetShiftState done [10:46:57]opened in 1739752571 [10:46:57]opened+sec_in_day 1739838971 [10:46:57]quantity*price = 0 [10:46:57]sum+1 = 1 [10:46:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 82 17.02.2025 10:47 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186495 ФПД: 3849593011876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104701&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186495&fm=3849593011876&tin=02508201610067®Number=0000000000091857&sum=0 [10:46:58]StoreToDocumentArchive [10:46:58]shift 644 fd 186495 [10:46:58]save to /storage/0644/doc_00186495 [10:46:58]save last doc name /storage/0644/doc_00186495 to /storage/kkm_last_doc_name [10:46:58]save OK [10:46:58]Clear old archive folders... [10:46:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:58]tlvbuf is 0201F440 [10:46:58]SAM_PROTO_ClearQueue [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 09 00 00 [10:46:58]Write to MH i2c: E2 08 00 44 26 80 09 00 00 00 00 00 00 DC [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 44 26 00 90 00 DE [10:46:58]RAPDU: 90 00 [10:46:58]wFMCommunicate OK [10:46:58]SAM_PROTO_ClearQueue done [10:46:58]KKMCreateOFDPacket [10:46:58]OFDProtocolAddRootSTLVToBuf [10:46:58]FM_MakeSignedData [10:46:58]FM_MakeSignedData [10:46:58]SAM_PROTO_SignData [10:46:58]wFMCommunicate request_size=4 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 0D 01 02 [10:46:58]Write to MH i2c: E2 08 00 45 26 80 0D 01 02 00 00 00 00 E4 [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:58]Read from MH i2c: E2 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 [10:46:58]MH_I2C_Read... [10:46:58]Read from MH i2c: E2 03 00 45 26 00 90 00 DF [10:46:58]RAPDU: 90 00 [10:46:58]wFMCommunicate OK [10:46:58]wFMCommunicate request_size=255 [10:46:58]MH_SAM_APDU [10:46:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 A5 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D8 02 00 35 04 06 00 03 [10:46:58]Write to MH i2c: E2 02 01 46 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 A5 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D8 02 00 35 04 06 00 03 00 00 2D [10:46:58]Write i2c OK [10:46:58]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 46 26 00 90 00 E0 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=10 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 02 02 05 80 4D 9F BE A4 [10:46:59]Write to MH i2c: E2 0D 00 47 26 80 0D 02 02 05 00 80 4D 9F BE A4 00 00 BF [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 03 00 47 26 00 90 00 E1 [10:46:59]RAPDU: 90 00 [10:46:59]wFMCommunicate OK [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 0D 03 02 [10:46:59]Write to MH i2c: E2 08 00 48 26 80 0D 03 02 00 00 00 00 E9 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 0B 00 48 26 00 CB BC 40 CA A1 3E 68 3A 90 00 FC [10:46:59]RAPDU: CB BC 40 CA A1 3E 68 3A 90 00 [10:46:59]wFMCommunicate OK [10:46:59]SAM_PROTO_SignData done [10:46:59]FM_MakeSignedData done [10:46:59]CreateOFDProtocolMessage [10:46:59]wFMCommunicate request_size=4 [10:46:59]MH_SAM_APDU [10:46:59]CAPDU: 80 11 00 00 [10:46:59]Write to MH i2c: E2 08 00 49 26 80 11 00 00 00 00 00 00 E9 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:59]Read from MH i2c: E2 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 17 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: E2 17 00 49 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [10:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:46:59]wFMCommunicate OK [10:46:59]CreateOFDProtocolMessage done [10:46:59]OFDSenderStorePacket 186495 [10:46:59]StoreOFDPacket docnum=186495 [10:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6E 81 07 01 36 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 A5 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D8 02 00 35 04 06 00 03 80 4D 9F BE A4 CB BC 40 CA A1 3E 68 3A [10:46:59]CheckFolder [10:46:59]dirname=/storage/ofd_packets [10:46:59]CheckFolder done [10:46:59]ProducePacketName [10:46:59]name=ofd_packets/00186495 [10:46:59]NVStorageSaveData ofd_packets/00186495 [10:46:59]File name is /storage/ofd_packets/00186495 [10:46:59]Write 301 bytes [10:46:59]NVStorageSaveData done [10:46:59]OFDSenderStorePacket done [10:46:59]KKMCreateOFDPacket done [10:46:59]NVStorageSaveData kkm_last_timestamp [10:46:59]File name is /storage/kkm_last_timestamp [10:46:59]Write 4 bytes [10:46:59]NVStorageSaveData done [10:46:59]ExternCall_PrintAddStr [10:46:59]wPrintStart [10:46:59]Write to MH i2c: 01 00 00 4A 26 70 [10:46:59]Write i2c OK [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 07 00 [10:46:59]MH_I2C_Read... [10:46:59]Read from MH i2c: 01 07 00 4A 26 00 00 00 00 00 FF 0F 85 [10:46:59]RasterBufferAndPrint [10:46:59]line Счет N : (1)411627 [10:46:59]line ИНН: 02508201610067 [10:46:59]line Контрольно-Кассовый Чек [10:46:59]line ПРОДАЖА [10:46:59]line ТРК (МРК, ГНК) : 12 [10:46:59]line Товар: 2710124130 [10:46:59]line Аи-92-К-2 [10:46:59]line 10.000 * 0.00 [10:46:59]line = 0.00 [10:46:59]line НДС 12% НСП 1% [10:46:59]line > о реализуемом товаре [10:46:59]line ИТОГО: 0.00 [10:46:59]line НСП 1% : 0.00 [10:46:59]line НДС 12% : 0.00 [10:46:59]line Наличными: 0.00 [10:46:59]line Безнал.: 0.00 [10:46:59]line Место: АЗС № 92 "Партнер Нефть" [10:46:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:46:59]line СНО: Общий режим [10:46:59]line Чек 82 17.02.2025 10:47 [10:46:59]line Смена: 644 ФФД: 1.0 [10:46:59]line ЗНМ: 0300000118 [10:46:59]line РНМ: 0000000000091857 [10:46:59]line Версия ККМ: 001 [10:46:59]line Талоны: Топливная Карта [10:46:59]line 03821 [10:46:59]line ФМ: 0000000000871826 [10:46:59]line ФД: 186495 [10:46:59]line ФПД: 3849593011876 [10:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104701&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186495&fm=3849593011876&tin=02508201610067®Number=0000000000091857&sum=0 [10:46:59]OFD Sender: Processing packet 186495 [packets to send 49, broken 48] [10:46:59]ProducePacketName [10:46:59]name=ofd_packets/00186495 [10:46:59]OFD Sender: To server: pG, [10:46:59]CommunicateWithHost lk.salyk.kg:30040 [10:46:59]ConnectInit lk.salyk.kg [10:46:59]written 0, free lines is 4095 [10:46:59]Connected sock=10 [10:46:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6E 81 07 01 36 E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 52 00 00 00 F4 03 04 00 A5 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D8 02 00 35 04 06 00 03 80 4D 9F BE A4 CB BC 40 CA A1 3E 68 3A [10:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 50 D3 47 00 53 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 7F D8 02 00 F4 03 04 00 00 BA B2 67 B6 04 01 00 00 43 5B 80 10 E7 60 30 4F [10:47:00]CommunicateWithHost err = 0 [10:47:00]CheckOFDResponse [10:47:00]1017 (14) - 77093643461234 [10:47:00]1041 (16) - 0000000000871826 [10:47:00]1040 (4) - 186495 [10:47:00]1012 (4) - 17.02.2025 04:24 [10:47:00]1206 (1) - 0 [10:47:00]OFD Sender: Remove packet 186495 [10:47:00]ProducePacketName [10:47:00]name=ofd_packets/00186495 [10:47:00]NVStorageDeleteData [10:47:00]Write to MH i2c: 01 00 00 74 26 9A [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: 01 07 00 74 26 00 00 00 00 00 F8 0C A5 [10:47:00]RasterBufferAndPrint [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]line [10:47:00]written 0, free lines is 3326 [10:47:00]MH_Cut [10:47:00]Write to MH i2c: D1 01 00 7B 26 01 73 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 [10:47:00]MH_I2C_Read... [10:47:00]Read from MH i2c: D1 01 00 7B 26 00 72 [10:47:00]Write to MH i2c: 01 00 00 7C 26 A2 [10:47:00]Write i2c OK [10:47:00]MH_I2C_Read... [10:47:00]OFD Sender: No OFD packet to send [10:47:00]*** Cut start [10:47:00]*** Partial cut [10:47:00]*** CUTSNS_PIN = 1 [10:47:00]*** CUTSNS_PIN = 0 [10:47:01]*** Brake cut motor [10:47:01]Read from MH i2c: 01 [10:47:01]MH_I2C_Read... [10:47:01]*** Stop cut motor [10:47:01]*** Cut end [10:47:01]Read from MH i2c: 01 07 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: 01 07 00 7C 26 00 00 00 00 00 FF 0F B7 [10:47:01]process_action close_receipt done [10:47:01]requested_data is exist [10:47:01]produce_requested_data [10:47:01]requested_item fm.sn is exist - process it [10:47:01]wFMCommunicate request_size=4 [10:47:01]MH_SAM_APDU [10:47:01]CAPDU: 80 11 00 00 [10:47:01]Write to MH i2c: E2 08 00 7D 26 80 11 00 00 00 00 00 00 1D [10:47:01]Write i2c OK [10:47:01]MH_I2C_Read... [10:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:01]Read from MH i2c: E2 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 17 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 17 00 7D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [10:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:47:01]wFMCommunicate OK [10:47:01]requested_item fd.num is exist - process it [10:47:01]SAM_PROTO_GetFieldsCounters [10:47:01]wFMCommunicate request_size=4 [10:47:01]MH_SAM_APDU [10:47:01]CAPDU: 80 13 00 00 [10:47:01]Write to MH i2c: E2 08 00 7E 26 80 13 00 00 00 00 00 00 20 [10:47:01]Write i2c OK [10:47:01]MH_I2C_Read... [10:47:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:01]Read from MH i2c: E2 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 62 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 62 00 7E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:47:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 7F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:01]wFMCommunicate OK [10:47:01]SAM_PROTO_GetFieldsCounters done [10:47:01]requested_item shift.num is exist - process it [10:47:01]requested_item shift.opened is exist - process it [10:47:01]req_shift_opened [10:47:01]FM_GetShiftState [10:47:01]SAM_PROTO_GetShiftState [10:47:01]wFMCommunicate request_size=4 [10:47:01]MH_SAM_APDU [10:47:01]CAPDU: 80 13 01 00 [10:47:01]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [10:47:01]Write i2c OK [10:47:01]MH_I2C_Read... [10:47:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:01]Read from MH i2c: E2 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 0E 00 [10:47:01]MH_I2C_Read... [10:47:01]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 46 [10:47:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:47:01]wFMCommunicate OK [10:47:01]SAM_PROTO_GetShiftState done [10:47:01]FM_GetShiftState done [10:47:01]req_shift_opened done [10:47:01]requested_item shift.open_date is exist - process it [10:47:01]req_shift_open_date [10:47:01]req_shift_open_date done [10:47:01]produce_requested_data done [10:47:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186495,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:47:01]process_action_free close_receipt [10:47:01]json_value_free [10:47:01]json_value_free done [10:47:01]process_json_proto returns [10:47:01]Send response to host [10:47:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186495,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:47:01]free response buf [10:47:01]execute_script done [10:47:01]execute_script returns [10:47:01]free content buf [10:47:01]Sock 8.Close socket [10:47:01]Sock 8.Thread stoped [10:47:02]accept exits with 9 [10:47:02]New connection [10:47:02]New thread 3067358564 created [10:47:02]Thread 3067501924 joined [10:47:02]Waiting for new connection... [10:47:02] Sock 9.Parse request [10:47:02]Sock 9.Check first char [10:47:02]Sock 9.First char is OK [10:47:02]request: POST /json_proto HTTP/1.0 [10:47:02]Method: POST [10:47:02]URL: /json_proto [10:47:02]Method is POST - this is cgi request [10:47:02]url: /json_proto [10:47:02]query_string will be loaded in cgi processing [10:47:02]execute_cgi json_proto POST (null) [10:47:02]execute_cgi path=json_proto method=POST [10:47:02]POST find Content-Length [10:47:02]Host: 172.17.46.131:8080 [10:47:02]Content-Length: 677 [10:47:02]Content-Type: application/json [10:47:02] [10:47:02]POST finish read [10:47:02]Found Content-Length = 677 [10:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:02]execute_script... [10:47:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:02]POST & json_proto [10:47:02]process_json_proto [10:47:02]json parsed OK: [10:47:02]protocol is kg_v1.0 [10:47:02]action value=close_receipt [10:47:02]process_action close_receipt [10:47:02]cmd_close_receipt [10:47:02]MH_GetDate [10:47:02]Write to MH i2c: F0 00 00 80 26 95 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: F0 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: F0 09 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: F0 09 00 80 26 00 AA 13 B3 67 7E 41 4F 65 E8 [10:47:02]GetLastDocTimeStamp 1739789221 [10:47:02]current date 1739789226 [10:47:02]FM_GetShiftState [10:47:02]SAM_PROTO_GetShiftState [10:47:02]wFMCommunicate request_size=4 [10:47:02]MH_SAM_APDU [10:47:02]CAPDU: 80 13 01 00 [10:47:02]Write to MH i2c: E2 08 00 81 26 80 13 01 00 00 00 00 00 24 [10:47:02]Write i2c OK [10:47:02]MH_I2C_Read... [10:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:02]Read from MH i2c: E2 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 [10:47:02]MH_I2C_Read... [10:47:02]Read from MH i2c: E2 0E 00 81 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 48 [10:47:02]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:47:02]wFMCommunicate OK [10:47:02]SAM_PROTO_GetShiftState done [10:47:02]FM_GetShiftState done [10:47:02]opened in 1739752571 [10:47:02]opened+sec_in_day 1739838971 [10:47:02]quantity*price = 60027 [10:47:02]sum+1 = 60028 [10:47:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 83 17.02.2025 10:47 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186496 ФПД: 267934935643441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186496&fm=267934935643441&tin=02508201610067®Number=0000000000091857&sum=60000 [10:47:03]StoreToDocumentArchive [10:47:03]shift 644 fd 186496 [10:47:03]save to /storage/0644/doc_00186496 [10:47:03]save last doc name /storage/0644/doc_00186496 to /storage/kkm_last_doc_name [10:47:03]save OK [10:47:03]Clear old archive folders... [10:47:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:03]tlvbuf is 0202FD90 [10:47:03]SAM_PROTO_ClearQueue [10:47:03]wFMCommunicate request_size=4 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 09 00 00 [10:47:03]Write to MH i2c: E2 08 00 8E 26 80 09 00 00 00 00 00 00 26 [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]SAM_PROTO_ClearQueue done [10:47:03]KKMCreateOFDPacket [10:47:03]OFDProtocolAddRootSTLVToBuf [10:47:03]FM_MakeSignedData [10:47:03]FM_MakeSignedData [10:47:03]SAM_PROTO_SignData [10:47:03]wFMCommunicate request_size=4 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 01 02 [10:47:03]Write to MH i2c: E2 08 00 8F 26 80 0D 01 02 00 00 00 00 2E [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]wFMCommunicate request_size=255 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AA 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 D8 02 00 35 04 06 00 F3 [10:47:03]Write to MH i2c: E2 02 01 90 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AA 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 D8 02 00 35 04 06 00 F3 00 00 1A [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:03]Read from MH i2c: E2 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 [10:47:03]MH_I2C_Read... [10:47:03]Read from MH i2c: E2 03 00 90 26 00 90 00 2A [10:47:03]RAPDU: 90 00 [10:47:03]wFMCommunicate OK [10:47:03]wFMCommunicate request_size=10 [10:47:03]MH_SAM_APDU [10:47:03]CAPDU: 80 0D 02 02 05 AF 76 A9 75 31 [10:47:03]Write to MH i2c: E2 0D 00 91 26 80 0D 02 02 05 00 AF 76 A9 75 31 00 00 AF [10:47:03]Write i2c OK [10:47:03]MH_I2C_Read... [10:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:04]Read from MH i2c: E2 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 03 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 03 00 91 26 00 90 00 2B [10:47:04]RAPDU: 90 00 [10:47:04]wFMCommunicate OK [10:47:04]wFMCommunicate request_size=4 [10:47:04]MH_SAM_APDU [10:47:04]CAPDU: 80 0D 03 02 [10:47:04]Write to MH i2c: E2 08 00 92 26 80 0D 03 02 00 00 00 00 33 [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:04]Read from MH i2c: E2 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 0B 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 0B 00 92 26 00 84 E6 36 4C 5A BD 3C C6 90 00 39 [10:47:04]RAPDU: 84 E6 36 4C 5A BD 3C C6 90 00 [10:47:04]wFMCommunicate OK [10:47:04]SAM_PROTO_SignData done [10:47:04]FM_MakeSignedData done [10:47:04]CreateOFDProtocolMessage [10:47:04]wFMCommunicate request_size=4 [10:47:04]MH_SAM_APDU [10:47:04]CAPDU: 80 11 00 00 [10:47:04]Write to MH i2c: E2 08 00 93 26 80 11 00 00 00 00 00 00 33 [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:04]Read from MH i2c: E2 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 17 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: E2 17 00 93 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [10:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:47:04]wFMCommunicate OK [10:47:04]CreateOFDProtocolMessage done [10:47:04]OFDSenderStorePacket 186496 [10:47:04]StoreOFDPacket docnum=186496 [10:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D C8 07 01 05 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AA 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 D8 02 00 35 04 06 00 F3 AF 76 A9 75 31 84 E6 36 4C 5A BD 3C C6 [10:47:04]CheckFolder [10:47:04]dirname=/storage/ofd_packets [10:47:04]CheckFolder done [10:47:04]ProducePacketName [10:47:04]name=ofd_packets/00186496 [10:47:04]NVStorageSaveData ofd_packets/00186496 [10:47:04]File name is /storage/ofd_packets/00186496 [10:47:04]Write 301 bytes [10:47:04]NVStorageSaveData done [10:47:04]OFDSenderStorePacket done [10:47:04]KKMCreateOFDPacket done [10:47:04]NVStorageSaveData kkm_last_timestamp [10:47:04]File name is /storage/kkm_last_timestamp [10:47:04]Write 4 bytes [10:47:04]NVStorageSaveData done [10:47:04]ExternCall_PrintAddStr [10:47:04]wPrintStart [10:47:04]Write to MH i2c: 01 00 00 94 26 BA [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 94 26 00 00 00 00 00 FF 0F CF [10:47:04]RasterBufferAndPrint [10:47:04]line Счет N : (1)411628 [10:47:04]line ИНН: 02508201610067 [10:47:04]line Контрольно-Кассовый Чек [10:47:04]line ПРОДАЖА [10:47:04]line ТРК (МРК, ГНК) : 32 [10:47:04]line Товар: 2710124130 [10:47:04]line Аи-92-К-2 [10:47:04]line 9.350 * 64.20 [10:47:04]line = 600.27 [10:47:04]line НДС 12% НСП 1% [10:47:04]line > о реализуемом товаре [10:47:04]line ОКРУГЛЕНИЕ: -0.27 [10:47:04]line ИТОГО: 600.00 [10:47:04]line Внесено: 600.00 [10:47:04]line СДАЧА: 0.00 [10:47:04]line НСП 1% : 5.31 [10:47:04]line НДС 12% : 63.74 [10:47:04]line Наличными: 600.00 [10:47:04]line Безнал.: 0.00 [10:47:04]line Место: АЗС № 92 "Партнер Нефть" [10:47:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:47:04]line СНО: Общий режим [10:47:04]line Чек 83 17.02.2025 10:47 [10:47:04]line Смена: 644 ФФД: 1.0 [10:47:04]line ЗНМ: 0300000118 [10:47:04]line РНМ: 0000000000091857 [10:47:04]line Версия ККМ: 001 [10:47:04]line ФМ: 0000000000871826 [10:47:04]line ФД: 186496 [10:47:04]line ФПД: 267934935643441 [10:47:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T104706&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186496&fm=267934935643441&tin=02508201610067®Number=0000000000091857&sum=60000 [10:47:04]written 0, free lines is 4095 [10:47:04]OFD Sender: Processing packet 186496 [packets to send 49, broken 48] [10:47:04]ProducePacketName [10:47:04]name=ofd_packets/00186496 [10:47:04]OFD Sender: To server: pG, [10:47:04]CommunicateWithHost lk.salyk.kg:30040 [10:47:04]ConnectInit lk.salyk.kg [10:47:04]Connected sock=11 [10:47:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D C8 07 01 05 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 AA 13 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 D8 02 00 35 04 06 00 F3 AF 76 A9 75 31 84 E6 36 4C 5A BD 3C C6 [10:47:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 82 47 00 BA B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 80 D8 02 00 F4 03 04 00 05 BA B2 67 B6 04 01 00 00 25 77 0E D2 E7 09 58 BF [10:47:04]CommunicateWithHost err = 0 [10:47:04]CheckOFDResponse [10:47:04]1017 (14) - 77093643461234 [10:47:04]1041 (16) - 0000000000871826 [10:47:04]1040 (4) - 186496 [10:47:04]1012 (4) - 17.02.2025 04:24 [10:47:04]1206 (1) - 0 [10:47:04]OFD Sender: Remove packet 186496 [10:47:04]ProducePacketName [10:47:04]name=ofd_packets/00186496 [10:47:04]NVStorageDeleteData [10:47:04]Write to MH i2c: 01 00 00 BF 26 E5 [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: 01 07 00 BF 26 00 00 00 00 00 F3 0C EB [10:47:04]RasterBufferAndPrint [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]line [10:47:04]written 0, free lines is 3328 [10:47:04]MH_Cut [10:47:04]Write to MH i2c: D1 01 00 C6 26 01 BE [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 01 00 [10:47:04]MH_I2C_Read... [10:47:04]Read from MH i2c: D1 01 00 C6 26 00 BD [10:47:04]Write to MH i2c: 01 00 00 C7 26 ED [10:47:04]Write i2c OK [10:47:04]MH_I2C_Read... [10:47:05]OFD Sender: No OFD packet to send [10:47:05]*** Cut start [10:47:05]*** Partial cut [10:47:05]*** CUTSNS_PIN = 1 [10:47:05]*** CUTSNS_PIN = 0 [10:47:06]*** Brake cut motor [10:47:06]Read from MH i2c: 01 [10:47:06]MH_I2C_Read... [10:47:06]*** Stop cut motor [10:47:06]*** Cut end [10:47:06]Read from MH i2c: 01 07 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: 01 07 00 C7 26 00 00 00 00 00 FF 0F 02 [10:47:06]process_action close_receipt done [10:47:06]requested_data is exist [10:47:06]produce_requested_data [10:47:06]requested_item fm.sn is exist - process it [10:47:06]wFMCommunicate request_size=4 [10:47:06]MH_SAM_APDU [10:47:06]CAPDU: 80 11 00 00 [10:47:06]Write to MH i2c: E2 08 00 C8 26 80 11 00 00 00 00 00 00 68 [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:06]Read from MH i2c: E2 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 17 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 17 00 C8 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [10:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:47:06]wFMCommunicate OK [10:47:06]requested_item fd.num is exist - process it [10:47:06]SAM_PROTO_GetFieldsCounters [10:47:06]wFMCommunicate request_size=4 [10:47:06]MH_SAM_APDU [10:47:06]CAPDU: 80 13 00 00 [10:47:06]Write to MH i2c: E2 08 00 C9 26 80 13 00 00 00 00 00 00 6B [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:06]Read from MH i2c: E2 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 62 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 62 00 C9 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [10:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 80 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:06]wFMCommunicate OK [10:47:06]SAM_PROTO_GetFieldsCounters done [10:47:06]requested_item shift.num is exist - process it [10:47:06]requested_item shift.opened is exist - process it [10:47:06]req_shift_opened [10:47:06]FM_GetShiftState [10:47:06]SAM_PROTO_GetShiftState [10:47:06]wFMCommunicate request_size=4 [10:47:06]MH_SAM_APDU [10:47:06]CAPDU: 80 13 01 00 [10:47:06]Write to MH i2c: E2 08 00 CA 26 80 13 01 00 00 00 00 00 6D [10:47:06]Write i2c OK [10:47:06]MH_I2C_Read... [10:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:06]Read from MH i2c: E2 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 [10:47:06]MH_I2C_Read... [10:47:06]Read from MH i2c: E2 0E 00 CA 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 91 [10:47:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:47:06]wFMCommunicate OK [10:47:06]SAM_PROTO_GetShiftState done [10:47:06]FM_GetShiftState done [10:47:06]req_shift_opened done [10:47:06]requested_item shift.open_date is exist - process it [10:47:06]req_shift_open_date [10:47:06]req_shift_open_date done [10:47:06]produce_requested_data done [10:47:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186496,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:47:06]process_action_free close_receipt [10:47:06]json_value_free [10:47:06]json_value_free done [10:47:06]process_json_proto returns [10:47:06]Send response to host [10:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186496,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:47:06]free response buf [10:47:06]execute_script done [10:47:06]execute_script returns [10:47:06]free content buf [10:47:06]Sock 9.Close socket [10:47:06]Sock 9.Thread stoped [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:19]accept exits with 8 [10:50:19]New connection [10:50:19]New thread 3067501924 created [10:50:19]Thread 3067358564 joined [10:50:19]Waiting for new connection... [10:50:19] Sock 8.Parse request [10:50:19]Sock 8.Check first char [10:50:19]Sock 8.First char is OK [10:50:19]request: POST /json_proto HTTP/1.0 [10:50:19]Method: POST [10:50:19]URL: /json_proto [10:50:19]Method is POST - this is cgi request [10:50:19]url: /json_proto [10:50:19]query_string will be loaded in cgi processing [10:50:19]execute_cgi json_proto POST (null) [10:50:19]execute_cgi path=json_proto method=POST [10:50:19]POST find Content-Length [10:50:19]Host: 172.17.46.131:8080 [10:50:19]Content-Length: 682 [10:50:19]Content-Type: application/json [10:50:19] [10:50:19]POST finish read [10:50:19]Found Content-Length = 682 [10:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:19]execute_script... [10:50:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:19]POST & json_proto [10:50:19]process_json_proto [10:50:19]json parsed OK: [10:50:19]protocol is kg_v1.0 [10:50:19]action value=close_receipt [10:50:19]process_action close_receipt [10:50:19]cmd_close_receipt [10:50:19]MH_GetDate [10:50:19]Write to MH i2c: F0 00 00 CB 26 E0 [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: F0 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: F0 09 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: F0 09 00 CB 26 00 6F 14 B3 67 7E 41 4F 65 F9 [10:50:19]GetLastDocTimeStamp 1739789226 [10:50:19]current date 1739789423 [10:50:19]FM_GetShiftState [10:50:19]SAM_PROTO_GetShiftState [10:50:19]wFMCommunicate request_size=4 [10:50:19]MH_SAM_APDU [10:50:19]CAPDU: 80 13 01 00 [10:50:19]Write to MH i2c: E2 08 00 CC 26 80 13 01 00 00 00 00 00 6F [10:50:19]Write i2c OK [10:50:19]MH_I2C_Read... [10:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:19]Read from MH i2c: E2 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 [10:50:19]MH_I2C_Read... [10:50:19]Read from MH i2c: E2 0E 00 CC 26 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 93 [10:50:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:50:19]wFMCommunicate OK [10:50:19]SAM_PROTO_GetShiftState done [10:50:19]FM_GetShiftState done [10:50:19]opened in 1739752571 [10:50:19]opened+sec_in_day 1739838971 [10:50:19]quantity*price = 100012 [10:50:19]sum+1 = 100014 [10:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 84 17.02.2025 10:50 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186497 ФПД: 222876243975035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186497&fm=222876243975035&tin=02508201610067®Number=0000000000091857&sum=100000 [10:50:20]StoreToDocumentArchive [10:50:20]shift 644 fd 186497 [10:50:20]save to /storage/0644/doc_00186497 [10:50:20]save last doc name /storage/0644/doc_00186497 to /storage/kkm_last_doc_name [10:50:20]save OK [10:50:20]Clear old archive folders... [10:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:20]tlvbuf is 01FFA980 [10:50:20]SAM_PROTO_ClearQueue [10:50:20]wFMCommunicate request_size=4 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 09 00 00 [10:50:20]Write to MH i2c: E2 08 00 D9 26 80 09 00 00 00 00 00 00 71 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [10:50:20]RAPDU: 90 00 [10:50:20]wFMCommunicate OK [10:50:20]SAM_PROTO_ClearQueue done [10:50:20]KKMCreateOFDPacket [10:50:20]OFDProtocolAddRootSTLVToBuf [10:50:20]FM_MakeSignedData [10:50:20]FM_MakeSignedData [10:50:20]SAM_PROTO_SignData [10:50:20]wFMCommunicate request_size=4 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 0D 01 02 [10:50:20]Write to MH i2c: E2 08 00 DA 26 80 0D 01 02 00 00 00 00 79 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [10:50:20]RAPDU: 90 00 [10:50:20]wFMCommunicate OK [10:50:20]wFMCommunicate request_size=255 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6F 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 D8 02 00 35 04 06 00 CA [10:50:20]Write to MH i2c: E2 02 01 DB 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6F 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 D8 02 00 35 04 06 00 CA 00 00 86 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]OFD Sender: No OFD packet to send [10:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [10:50:20]RAPDU: 90 00 [10:50:20]wFMCommunicate OK [10:50:20]wFMCommunicate request_size=10 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 0D 02 02 05 B4 6B 59 DB 7B [10:50:20]Write to MH i2c: E2 0D 00 DC 26 80 0D 02 02 05 00 B4 6B 59 DB 7B 00 00 54 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 03 00 DC 26 00 90 00 76 [10:50:20]RAPDU: 90 00 [10:50:20]wFMCommunicate OK [10:50:20]wFMCommunicate request_size=4 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 0D 03 02 [10:50:20]Write to MH i2c: E2 08 00 DD 26 80 0D 03 02 00 00 00 00 7E [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 0B 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 0B 00 DD 26 00 BE DC 0D C4 D2 63 A7 05 90 00 CB [10:50:20]RAPDU: BE DC 0D C4 D2 63 A7 05 90 00 [10:50:20]wFMCommunicate OK [10:50:20]SAM_PROTO_SignData done [10:50:20]FM_MakeSignedData done [10:50:20]CreateOFDProtocolMessage [10:50:20]wFMCommunicate request_size=4 [10:50:20]MH_SAM_APDU [10:50:20]CAPDU: 80 11 00 00 [10:50:20]Write to MH i2c: E2 08 00 DE 26 80 11 00 00 00 00 00 00 7E [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:20]Read from MH i2c: E2 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 17 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: E2 17 00 DE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [10:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:50:20]wFMCommunicate OK [10:50:20]CreateOFDProtocolMessage done [10:50:20]OFDSenderStorePacket 186497 [10:50:20]StoreOFDPacket docnum=186497 [10:50:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B 7B 07 01 5B B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6F 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 D8 02 00 35 04 06 00 CA B4 6B 59 DB 7B BE DC 0D C4 D2 63 A7 05 [10:50:20]CheckFolder [10:50:20]dirname=/storage/ofd_packets [10:50:20]CheckFolder done [10:50:20]ProducePacketName [10:50:20]name=ofd_packets/00186497 [10:50:20]NVStorageSaveData ofd_packets/00186497 [10:50:20]File name is /storage/ofd_packets/00186497 [10:50:20]Write 301 bytes [10:50:20]NVStorageSaveData done [10:50:20]OFDSenderStorePacket done [10:50:20]KKMCreateOFDPacket done [10:50:20]NVStorageSaveData kkm_last_timestamp [10:50:20]File name is /storage/kkm_last_timestamp [10:50:20]Write 4 bytes [10:50:20]NVStorageSaveData done [10:50:20]ExternCall_PrintAddStr [10:50:20]wPrintStart [10:50:20]Write to MH i2c: 01 00 00 DF 26 05 [10:50:20]Write i2c OK [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 07 00 [10:50:20]MH_I2C_Read... [10:50:20]Read from MH i2c: 01 07 00 DF 26 00 00 00 00 00 FF 0F 1A [10:50:20]RasterBufferAndPrint [10:50:20]line Счет N : (1)411629 [10:50:20]line ИНН: 02508201610067 [10:50:20]line Контрольно-Кассовый Чек [10:50:20]line ПРОДАЖА [10:50:20]line ТРК (МРК, ГНК) : 23 [10:50:20]line Товар: 2710124500 [10:50:20]line Аи-95-К-5 [10:50:20]line 13.910 * 71.90 [10:50:20]line = 1000.13 [10:50:20]line НДС 12% НСП 1% [10:50:20]line > о реализуемом товаре [10:50:20]line ОКРУГЛЕНИЕ: -0.13 [10:50:20]line ИТОГО: 1000.00 [10:50:20]line Внесено: 1000.00 [10:50:20]line СДАЧА: 0.00 [10:50:20]line НСП 1% : 8.85 [10:50:20]line НДС 12% : 106.21 [10:50:20]line Наличными: 1000.00 [10:50:20]line Безнал.: 0.00 [10:50:20]line Место: АЗС № 92 "Партнер Нефть" [10:50:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:50:20]line СНО: Общий режим [10:50:20]line Чек 84 17.02.2025 10:50 [10:50:20]line Смена: 644 ФФД: 1.0 [10:50:20]line ЗНМ: 0300000118 [10:50:20]line РНМ: 0000000000091857 [10:50:20]line Версия ККМ: 001 [10:50:20]line ФМ: 0000000000871826 [10:50:20]line ФД: 186497 [10:50:20]line ФПД: 222876243975035 [10:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105023&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186497&fm=222876243975035&tin=02508201610067®Number=0000000000091857&sum=100000 [10:50:21]OFD Sender: Processing packet 186497 [packets to send 49, broken 48] [10:50:21]ProducePacketName [10:50:21]name=ofd_packets/00186497 [10:50:21]OFD Sender: To server: pG, [10:50:21]CommunicateWithHost lk.salyk.kg:30040 [10:50:21]ConnectInit lk.salyk.kg [10:50:21]written 0, free lines is 4095 [10:50:21]Connected sock=10 [10:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B 7B 07 01 5B B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 6F 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 81 D8 02 00 35 04 06 00 CA B4 6B 59 DB 7B BE DC 0D C4 D2 63 A7 05 [10:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 36 32 47 00 0D 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 31 38 32 36 10 04 04 00 81 D8 02 00 F4 03 04 00 C9 BA B2 67 B6 04 01 00 00 00 ED 99 1A AC AF 6D DB [10:50:21]CommunicateWithHost err = 0 [10:50:21]CheckOFDResponse [10:50:21]1017 (14) - 77093643461234 [10:50:21]1041 (16) - 0000000000871826 [10:50:21]1040 (4) - 186497 [10:50:21]1012 (4) - 17.02.2025 04:27 [10:50:21]1206 (1) - 0 [10:50:21]OFD Sender: Remove packet 186497 [10:50:21]ProducePacketName [10:50:21]name=ofd_packets/00186497 [10:50:21]NVStorageDeleteData [10:50:21]Write to MH i2c: 01 00 00 0A 27 31 [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: 01 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: 01 07 00 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: 01 07 00 0A 27 00 00 00 00 00 EA 0C 2E [10:50:21]RasterBufferAndPrint [10:50:21]line [10:50:21]line [10:50:21]line [10:50:21]line [10:50:21]line [10:50:21]written 0, free lines is 3312 [10:50:21]MH_Cut [10:50:21]Write to MH i2c: D1 01 00 11 27 01 0A [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: D1 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: D1 01 00 [10:50:21]MH_I2C_Read... [10:50:21]Read from MH i2c: D1 01 00 11 27 00 09 [10:50:21]Write to MH i2c: 01 00 00 12 27 39 [10:50:21]Write i2c OK [10:50:21]MH_I2C_Read... [10:50:22]OFD Sender: No OFD packet to send [10:50:22]*** Cut start [10:50:22]*** Partial cut [10:50:22]*** CUTSNS_PIN = 1 [10:50:22]*** CUTSNS_PIN = 0 [10:50:22]*** Brake cut motor [10:50:23]Read from MH i2c: 01 [10:50:23]MH_I2C_Read... [10:50:23]*** Stop cut motor [10:50:23]*** Cut end [10:50:23]Read from MH i2c: 01 07 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: 01 07 00 12 27 00 00 00 00 00 FF 0F 4E [10:50:23]process_action close_receipt done [10:50:23]requested_data is exist [10:50:23]produce_requested_data [10:50:23]requested_item fm.sn is exist - process it [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 11 00 00 [10:50:23]Write to MH i2c: E2 08 00 13 27 80 11 00 00 00 00 00 00 B4 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 17 00 13 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [10:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:50:23]wFMCommunicate OK [10:50:23]requested_item fd.num is exist - process it [10:50:23]SAM_PROTO_GetFieldsCounters [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 13 00 00 [10:50:23]Write to MH i2c: E2 08 00 14 27 80 13 00 00 00 00 00 00 B7 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 62 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 62 00 14 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 81 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_GetFieldsCounters done [10:50:23]requested_item shift.num is exist - process it [10:50:23]requested_item shift.opened is exist - process it [10:50:23]req_shift_opened [10:50:23]FM_GetShiftState [10:50:23]SAM_PROTO_GetShiftState [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 13 01 00 [10:50:23]Write to MH i2c: E2 08 00 15 27 80 13 01 00 00 00 00 00 B9 [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 15 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DD [10:50:23]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_GetShiftState done [10:50:23]FM_GetShiftState done [10:50:23]req_shift_opened done [10:50:23]requested_item shift.open_date is exist - process it [10:50:23]req_shift_open_date [10:50:23]req_shift_open_date done [10:50:23]produce_requested_data done [10:50:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186497,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:50:23]process_action_free close_receipt [10:50:23]json_value_free [10:50:23]json_value_free done [10:50:23]process_json_proto returns [10:50:23]Send response to host [10:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186497,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:50:23]free response buf [10:50:23]execute_script done [10:50:23]execute_script returns [10:50:23]free content buf [10:50:23]Sock 8.Close socket [10:50:23]Sock 8.Thread stoped [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:10]accept exits with 9 [10:51:10]New connection [10:51:10]New thread 3067358564 created [10:51:10]Thread 3067501924 joined [10:51:10]Waiting for new connection... [10:51:10] Sock 9.Parse request [10:51:10]Sock 9.Check first char [10:51:10]Sock 9.First char is OK [10:51:10]request: POST /json_proto HTTP/1.0 [10:51:10]Method: POST [10:51:10]URL: /json_proto [10:51:10]Method is POST - this is cgi request [10:51:10]url: /json_proto [10:51:10]query_string will be loaded in cgi processing [10:51:10]execute_cgi json_proto POST (null) [10:51:10]execute_cgi path=json_proto method=POST [10:51:10]POST find Content-Length [10:51:10]Host: 172.17.46.131:8080 [10:51:10]Content-Length: 682 [10:51:10]Content-Type: application/json [10:51:10] [10:51:10]POST finish read [10:51:10]Found Content-Length = 682 [10:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:10]execute_script... [10:51:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:10]POST & json_proto [10:51:10]process_json_proto [10:51:10]json parsed OK: [10:51:10]protocol is kg_v1.0 [10:51:10]action value=close_receipt [10:51:10]process_action close_receipt [10:51:10]cmd_close_receipt [10:51:10]MH_GetDate [10:51:10]Write to MH i2c: F0 00 00 16 27 2C [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: F0 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: F0 09 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: F0 09 00 16 27 00 A2 14 B3 67 7E 41 4F 65 78 [10:51:10]GetLastDocTimeStamp 1739789423 [10:51:10]current date 1739789474 [10:51:10]FM_GetShiftState [10:51:10]SAM_PROTO_GetShiftState [10:51:10]wFMCommunicate request_size=4 [10:51:10]MH_SAM_APDU [10:51:10]CAPDU: 80 13 01 00 [10:51:10]Write to MH i2c: E2 08 00 17 27 80 13 01 00 00 00 00 00 BB [10:51:10]Write i2c OK [10:51:10]MH_I2C_Read... [10:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:10]Read from MH i2c: E2 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0E 00 [10:51:10]MH_I2C_Read... [10:51:10]Read from MH i2c: E2 0E 00 17 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DF [10:51:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:51:10]wFMCommunicate OK [10:51:10]SAM_PROTO_GetShiftState done [10:51:10]FM_GetShiftState done [10:51:10]opened in 1739752571 [10:51:10]opened+sec_in_day 1739838971 [10:51:10]quantity*price = 100023 [10:51:10]sum+1 = 100025 [10:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 85 17.02.2025 10:51 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186498 ФПД: 34211365143868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105114&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186498&fm=34211365143868&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:11]StoreToDocumentArchive [10:51:11]shift 644 fd 186498 [10:51:11]save to /storage/0644/doc_00186498 [10:51:11]save last doc name /storage/0644/doc_00186498 to /storage/kkm_last_doc_name [10:51:11]save OK [10:51:11]Clear old archive folders... [10:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:11]tlvbuf is 01FC37C0 [10:51:11]SAM_PROTO_ClearQueue [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 09 00 00 [10:51:11]Write to MH i2c: E2 08 00 24 27 80 09 00 00 00 00 00 00 BD [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 24 27 00 90 00 BF [10:51:11]RAPDU: 90 00 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_ClearQueue done [10:51:11]KKMCreateOFDPacket [10:51:11]OFDProtocolAddRootSTLVToBuf [10:51:11]FM_MakeSignedData [10:51:11]FM_MakeSignedData [10:51:11]SAM_PROTO_SignData [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 0D 01 02 [10:51:11]Write to MH i2c: E2 08 00 25 27 80 0D 01 02 00 00 00 00 C5 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [10:51:11]RAPDU: 90 00 [10:51:11]wFMCommunicate OK [10:51:11]wFMCommunicate request_size=255 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A2 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 D8 02 00 35 04 06 00 1F [10:51:11]Write to MH i2c: E2 02 01 26 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A2 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 D8 02 00 35 04 06 00 1F 00 00 E8 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [10:51:11]RAPDU: 90 00 [10:51:11]wFMCommunicate OK [10:51:11]wFMCommunicate request_size=10 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 0D 02 02 05 1D 74 44 45 3C [10:51:11]Write to MH i2c: E2 0D 00 27 27 80 0D 02 02 05 00 1D 74 44 45 3C 00 00 28 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [10:51:11]RAPDU: 90 00 [10:51:11]wFMCommunicate OK [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 0D 03 02 [10:51:11]Write to MH i2c: E2 08 00 28 27 80 0D 03 02 00 00 00 00 CA [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 0B 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 0B 00 28 27 00 DB 0F 76 78 57 11 B3 A8 90 00 66 [10:51:11]RAPDU: DB 0F 76 78 57 11 B3 A8 90 00 [10:51:11]wFMCommunicate OK [10:51:11]SAM_PROTO_SignData done [10:51:11]FM_MakeSignedData done [10:51:11]CreateOFDProtocolMessage [10:51:11]wFMCommunicate request_size=4 [10:51:11]MH_SAM_APDU [10:51:11]CAPDU: 80 11 00 00 [10:51:11]Write to MH i2c: E2 08 00 29 27 80 11 00 00 00 00 00 00 CA [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:11]Read from MH i2c: E2 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: E2 17 00 29 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1D [10:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:11]wFMCommunicate OK [10:51:11]CreateOFDProtocolMessage done [10:51:11]OFDSenderStorePacket 186498 [10:51:11]StoreOFDPacket docnum=186498 [10:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C 9B 07 01 C6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A2 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 D8 02 00 35 04 06 00 1F 1D 74 44 45 3C DB 0F 76 78 57 11 B3 A8 [10:51:11]CheckFolder [10:51:11]dirname=/storage/ofd_packets [10:51:11]CheckFolder done [10:51:11]ProducePacketName [10:51:11]name=ofd_packets/00186498 [10:51:11]NVStorageSaveData ofd_packets/00186498 [10:51:11]File name is /storage/ofd_packets/00186498 [10:51:11]Write 301 bytes [10:51:11]NVStorageSaveData done [10:51:11]OFDSenderStorePacket done [10:51:11]KKMCreateOFDPacket done [10:51:11]NVStorageSaveData kkm_last_timestamp [10:51:11]File name is /storage/kkm_last_timestamp [10:51:11]Write 4 bytes [10:51:11]NVStorageSaveData done [10:51:11]ExternCall_PrintAddStr [10:51:11]wPrintStart [10:51:11]Write to MH i2c: 01 00 00 2A 27 51 [10:51:11]Write i2c OK [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: 01 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: 01 07 00 [10:51:11]MH_I2C_Read... [10:51:11]Read from MH i2c: 01 07 00 2A 27 00 00 00 00 00 FF 0F 66 [10:51:11]RasterBufferAndPrint [10:51:11]line Счет N : (1)411630 [10:51:11]line ИНН: 02508201610067 [10:51:11]line Контрольно-Кассовый Чек [10:51:11]line ПРОДАЖА [10:51:11]line ТРК (МРК, ГНК) : 32 [10:51:11]line Товар: 2710124130 [10:51:11]line Аи-92-К-2 [10:51:11]line 15.580 * 64.20 [10:51:11]line = 1000.24 [10:51:11]line НДС 12% НСП 1% [10:51:11]line > о реализуемом товаре [10:51:11]line ОКРУГЛЕНИЕ: -0.24 [10:51:11]line ИТОГО: 1000.00 [10:51:11]line Внесено: 1000.00 [10:51:11]line СДАЧА: 0.00 [10:51:11]line НСП 1% : 8.85 [10:51:11]line НДС 12% : 106.22 [10:51:11]line Наличными: 1000.00 [10:51:11]line Безнал.: 0.00 [10:51:11]line Место: АЗС № 92 "Партнер Нефть" [10:51:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:51:11]line СНО: Общий режим [10:51:11]line Чек 85 17.02.2025 10:51 [10:51:11]line Смена: 644 ФФД: 1.0 [10:51:11]line ЗНМ: 0300000118 [10:51:11]line РНМ: 0000000000091857 [10:51:11]line Версия ККМ: 001 [10:51:11]line ФМ: 0000000000871826 [10:51:11]line ФД: 186498 [10:51:11]line ФПД: 34211365143868 [10:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105114&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186498&fm=34211365143868&tin=02508201610067®Number=0000000000091857&sum=100000 [10:51:12]OFD Sender: Processing packet 186498 [packets to send 49, broken 48] [10:51:12]ProducePacketName [10:51:12]name=ofd_packets/00186498 [10:51:12]OFD Sender: To server: pG, [10:51:12]CommunicateWithHost lk.salyk.kg:30040 [10:51:12]ConnectInit lk.salyk.kg [10:51:12]written 0, free lines is 4095 [10:51:12]Connected sock=11 [10:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6C 9B 07 01 C6 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A2 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 D8 02 00 35 04 06 00 1F 1D 74 44 45 3C DB 0F 76 78 57 11 B3 A8 [10:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F3 34 47 00 17 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 82 D8 02 00 F4 03 04 00 FC BA B2 67 B6 04 01 00 00 B5 70 EB BB 82 03 FD 18 [10:51:12]CommunicateWithHost err = 0 [10:51:12]CheckOFDResponse [10:51:12]1017 (14) - 77093643461234 [10:51:12]1041 (16) - 0000000000871826 [10:51:12]1040 (4) - 186498 [10:51:12]1012 (4) - 17.02.2025 04:28 [10:51:12]1206 (1) - 0 [10:51:12]OFD Sender: Remove packet 186498 [10:51:12]ProducePacketName [10:51:12]name=ofd_packets/00186498 [10:51:12]NVStorageDeleteData [10:51:12]Write to MH i2c: 01 00 00 55 27 7C [10:51:12]Write i2c OK [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: 01 [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: 01 07 00 [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: 01 07 00 55 27 00 00 00 00 00 F5 0C 84 [10:51:12]RasterBufferAndPrint [10:51:12]line [10:51:12]line [10:51:12]line [10:51:12]line [10:51:12]line [10:51:12]written 0, free lines is 3324 [10:51:12]MH_Cut [10:51:12]Write to MH i2c: D1 01 00 5C 27 01 55 [10:51:12]Write i2c OK [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: D1 [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: D1 01 00 [10:51:12]MH_I2C_Read... [10:51:12]Read from MH i2c: D1 01 00 5C 27 00 54 [10:51:12]Write to MH i2c: 01 00 00 5D 27 84 [10:51:12]Write i2c OK [10:51:12]MH_I2C_Read... [10:51:13]OFD Sender: No OFD packet to send [10:51:13]*** Cut start [10:51:13]*** Partial cut [10:51:13]*** CUTSNS_PIN = 1 [10:51:13]*** CUTSNS_PIN = 0 [10:51:13]*** Brake cut motor [10:51:14]Read from MH i2c: 01 [10:51:14]MH_I2C_Read... [10:51:14]*** Stop cut motor [10:51:14]*** Cut end [10:51:14]Read from MH i2c: 01 07 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: 01 07 00 5D 27 00 00 00 00 00 FF 0F 99 [10:51:14]process_action close_receipt done [10:51:14]requested_data is exist [10:51:14]produce_requested_data [10:51:14]requested_item fm.sn is exist - process it [10:51:14]wFMCommunicate request_size=4 [10:51:14]MH_SAM_APDU [10:51:14]CAPDU: 80 11 00 00 [10:51:14]Write to MH i2c: E2 08 00 5E 27 80 11 00 00 00 00 00 00 FF [10:51:14]Write i2c OK [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 [10:51:14]MH_I2C_Read... [10:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:14]Read from MH i2c: E2 17 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 17 00 5E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 52 [10:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:51:14]wFMCommunicate OK [10:51:14]requested_item fd.num is exist - process it [10:51:14]SAM_PROTO_GetFieldsCounters [10:51:14]wFMCommunicate request_size=4 [10:51:14]MH_SAM_APDU [10:51:14]CAPDU: 80 13 00 00 [10:51:14]Write to MH i2c: E2 08 00 5F 27 80 13 00 00 00 00 00 00 02 [10:51:14]Write i2c OK [10:51:14]MH_I2C_Read... [10:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:14]Read from MH i2c: E2 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 62 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 62 00 5F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [10:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 82 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:14]wFMCommunicate OK [10:51:14]SAM_PROTO_GetFieldsCounters done [10:51:14]requested_item shift.num is exist - process it [10:51:14]requested_item shift.opened is exist - process it [10:51:14]req_shift_opened [10:51:14]FM_GetShiftState [10:51:14]SAM_PROTO_GetShiftState [10:51:14]wFMCommunicate request_size=4 [10:51:14]MH_SAM_APDU [10:51:14]CAPDU: 80 13 01 00 [10:51:14]Write to MH i2c: E2 08 00 60 27 80 13 01 00 00 00 00 00 04 [10:51:14]Write i2c OK [10:51:14]MH_I2C_Read... [10:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:14]Read from MH i2c: E2 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 0E 00 [10:51:14]MH_I2C_Read... [10:51:14]Read from MH i2c: E2 0E 00 60 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 28 [10:51:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:51:14]wFMCommunicate OK [10:51:14]SAM_PROTO_GetShiftState done [10:51:14]FM_GetShiftState done [10:51:14]req_shift_opened done [10:51:14]requested_item shift.open_date is exist - process it [10:51:14]req_shift_open_date [10:51:14]req_shift_open_date done [10:51:14]produce_requested_data done [10:51:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186498,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:51:14]process_action_free close_receipt [10:51:14]json_value_free [10:51:14]json_value_free done [10:51:14]process_json_proto returns [10:51:14]Send response to host [10:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186498,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:51:14]free response buf [10:51:14]execute_script done [10:51:14]execute_script returns [10:51:14]free content buf [10:51:14]Sock 9.Close socket [10:51:14]Sock 9.Thread stoped [10:51:18]OFD Sender: No OFD packet to send [10:51:23]OFD Sender: No OFD packet to send [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:29]accept exits with 8 [10:52:29]New connection [10:52:29]New thread 3067501924 created [10:52:29]Thread 3067358564 joined [10:52:29]Waiting for new connection... [10:52:29] Sock 8.Parse request [10:52:29]Sock 8.Check first char [10:52:29]Sock 8.First char is OK [10:52:29]request: POST /json_proto HTTP/1.0 [10:52:29]Method: POST [10:52:29]URL: /json_proto [10:52:29]Method is POST - this is cgi request [10:52:29]url: /json_proto [10:52:29]query_string will be loaded in cgi processing [10:52:29]execute_cgi json_proto POST (null) [10:52:29]execute_cgi path=json_proto method=POST [10:52:29]POST find Content-Length [10:52:29]Host: 172.17.46.131:8080 [10:52:29]Content-Length: 803 [10:52:29]Content-Type: application/json [10:52:29] [10:52:29]POST finish read [10:52:29]Found Content-Length = 803 [10:52:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:29]execute_script... [10:52:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:29]POST & json_proto [10:52:29]process_json_proto [10:52:29]json parsed OK: [10:52:29]protocol is kg_v1.0 [10:52:29]action value=close_receipt [10:52:29]process_action close_receipt [10:52:29]cmd_close_receipt [10:52:29]MH_GetDate [10:52:29]Write to MH i2c: F0 00 00 61 27 77 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: F0 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: F0 09 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: F0 09 00 61 27 00 F1 14 B3 67 7E 41 4F 65 12 [10:52:29]GetLastDocTimeStamp 1739789474 [10:52:29]current date 1739789553 [10:52:29]FM_GetShiftState [10:52:29]SAM_PROTO_GetShiftState [10:52:29]wFMCommunicate request_size=4 [10:52:29]MH_SAM_APDU [10:52:29]CAPDU: 80 13 01 00 [10:52:29]Write to MH i2c: E2 08 00 62 27 80 13 01 00 00 00 00 00 06 [10:52:29]Write i2c OK [10:52:29]MH_I2C_Read... [10:52:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:29]Read from MH i2c: E2 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0E 00 [10:52:29]MH_I2C_Read... [10:52:29]Read from MH i2c: E2 0E 00 62 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2A [10:52:29]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:52:29]wFMCommunicate OK [10:52:29]SAM_PROTO_GetShiftState done [10:52:29]FM_GetShiftState done [10:52:29]opened in 1739752571 [10:52:29]opened+sec_in_day 1739838971 [10:52:29]quantity*price = 100023 [10:52:29]sum+1 = 100025 [10:52:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 86 17.02.2025 10:52 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186499 ФПД: 19606579352501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186499&fm=19606579352501&tin=02508201610067®Number=0000000000091857&sum=100024 [10:52:30]StoreToDocumentArchive [10:52:30]shift 644 fd 186499 [10:52:30]save to /storage/0644/doc_00186499 [10:52:30]save last doc name /storage/0644/doc_00186499 to /storage/kkm_last_doc_name [10:52:30]save OK [10:52:30]Clear old archive folders... [10:52:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:30]tlvbuf is 0200E5D0 [10:52:30]SAM_PROTO_ClearQueue [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 09 00 00 [10:52:30]Write to MH i2c: E2 08 00 6F 27 80 09 00 00 00 00 00 00 08 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 6F 27 00 90 00 0A [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]SAM_PROTO_ClearQueue done [10:52:30]KKMCreateOFDPacket [10:52:30]OFDProtocolAddRootSTLVToBuf [10:52:30]FM_MakeSignedData [10:52:30]FM_MakeSignedData [10:52:30]SAM_PROTO_SignData [10:52:30]wFMCommunicate request_size=4 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 01 02 [10:52:30]Write to MH i2c: E2 08 00 70 27 80 0D 01 02 00 00 00 00 10 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:30]Read from MH i2c: E2 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 [10:52:30]MH_I2C_Read... [10:52:30]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [10:52:30]RAPDU: 90 00 [10:52:30]wFMCommunicate OK [10:52:30]wFMCommunicate request_size=255 [10:52:30]MH_SAM_APDU [10:52:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F1 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D8 02 00 35 04 06 00 11 [10:52:30]Write to MH i2c: E2 02 01 71 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F1 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D8 02 00 35 04 06 00 11 00 00 A6 [10:52:30]Write i2c OK [10:52:30]MH_I2C_Read... [10:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 03 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [10:52:31]RAPDU: 90 00 [10:52:31]wFMCommunicate OK [10:52:31]wFMCommunicate request_size=10 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 0D 02 02 05 D5 03 32 93 B5 [10:52:31]Write to MH i2c: E2 0D 00 72 27 80 0D 02 02 05 00 D5 03 32 93 B5 00 00 6F [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 03 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [10:52:31]RAPDU: 90 00 [10:52:31]wFMCommunicate OK [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 0D 03 02 [10:52:31]Write to MH i2c: E2 08 00 73 27 80 0D 03 02 00 00 00 00 15 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0B 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 0B 00 73 27 00 65 48 A4 8F FD 74 60 BE 90 00 85 [10:52:31]RAPDU: 65 48 A4 8F FD 74 60 BE 90 00 [10:52:31]wFMCommunicate OK [10:52:31]SAM_PROTO_SignData done [10:52:31]FM_MakeSignedData done [10:52:31]CreateOFDProtocolMessage [10:52:31]wFMCommunicate request_size=4 [10:52:31]MH_SAM_APDU [10:52:31]CAPDU: 80 11 00 00 [10:52:31]Write to MH i2c: E2 08 00 74 27 80 11 00 00 00 00 00 00 15 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:31]Read from MH i2c: E2 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: E2 17 00 74 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [10:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:31]wFMCommunicate OK [10:52:31]CreateOFDProtocolMessage done [10:52:31]OFDSenderStorePacket 186499 [10:52:31]StoreOFDPacket docnum=186499 [10:52:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 1A 07 01 49 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F1 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D8 02 00 35 04 06 00 11 D5 03 32 93 B5 65 48 A4 8F FD 74 60 BE [10:52:31]CheckFolder [10:52:31]dirname=/storage/ofd_packets [10:52:31]CheckFolder done [10:52:31]ProducePacketName [10:52:31]name=ofd_packets/00186499 [10:52:31]NVStorageSaveData ofd_packets/00186499 [10:52:31]File name is /storage/ofd_packets/00186499 [10:52:31]Write 301 bytes [10:52:31]NVStorageSaveData done [10:52:31]OFDSenderStorePacket done [10:52:31]KKMCreateOFDPacket done [10:52:31]NVStorageSaveData kkm_last_timestamp [10:52:31]File name is /storage/kkm_last_timestamp [10:52:31]Write 4 bytes [10:52:31]NVStorageSaveData done [10:52:31]ExternCall_PrintAddStr [10:52:31]wPrintStart [10:52:31]Write to MH i2c: 01 00 00 75 27 9C [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 75 27 00 00 00 00 00 FF 0F B1 [10:52:31]RasterBufferAndPrint [10:52:31]line Счет N : (1)411631 [10:52:31]line ИНН: 02508201610067 [10:52:31]line Контрольно-Кассовый Чек [10:52:31]line ПРОДАЖА [10:52:31]line ТРК (МРК, ГНК) : 42 [10:52:31]line Товар: 2710124130 [10:52:31]line Аи-92-К-2 [10:52:31]line 15.580 * 64.20 [10:52:31]line = 1000.24 [10:52:31]line НДС 12% НСП 1% [10:52:31]line > о реализуемом товаре [10:52:31]line ИТОГО: 1000.24 [10:52:31]line НСП 1% : 8.85 [10:52:31]line НДС 12% : 106.22 [10:52:31]line Наличными: 0.00 [10:52:31]line Безнал.: 1000.24 [10:52:31]line Место: АЗС № 92 "Партнер Нефть" [10:52:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:52:31]line СНО: Общий режим [10:52:31]line Чек 86 17.02.2025 10:52 [10:52:31]line Смена: 644 ФФД: 1.0 [10:52:31]line ЗНМ: 0300000118 [10:52:31]line РНМ: 0000000000091857 [10:52:31]line Версия ККМ: 001 [10:52:31]line Платежная система: O! деньги [10:52:31]line ФМ: 0000000000871826 [10:52:31]line ФД: 186499 [10:52:31]line ФПД: 19606579352501 [10:52:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105233&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186499&fm=19606579352501&tin=02508201610067®Number=0000000000091857&sum=100024 [10:52:31]written 0, free lines is 4095 [10:52:31]OFD Sender: Processing packet 186499 [packets to send 49, broken 48] [10:52:31]ProducePacketName [10:52:31]name=ofd_packets/00186499 [10:52:31]OFD Sender: To server: pG, [10:52:31]CommunicateWithHost lk.salyk.kg:30040 [10:52:31]ConnectInit lk.salyk.kg [10:52:31]Connected sock=10 [10:52:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 1A 07 01 49 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 F1 14 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D8 02 00 35 04 06 00 11 D5 03 32 93 B5 65 48 A4 8F FD 74 60 BE [10:52:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 D7 47 00 3F 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 83 D8 02 00 F4 03 04 00 4C BB B2 67 B6 04 01 00 00 CF CC 96 FC 6C 0F BE C4 [10:52:31]CommunicateWithHost err = 0 [10:52:31]CheckOFDResponse [10:52:31]1017 (14) - 77093643461234 [10:52:31]1041 (16) - 0000000000871826 [10:52:31]1040 (4) - 186499 [10:52:31]1012 (4) - 17.02.2025 04:30 [10:52:31]1206 (1) - 0 [10:52:31]OFD Sender: Remove packet 186499 [10:52:31]ProducePacketName [10:52:31]name=ofd_packets/00186499 [10:52:31]NVStorageDeleteData [10:52:31]Write to MH i2c: 01 00 00 9F 27 C6 [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: 01 07 00 9F 27 00 00 00 00 00 FC 0C D5 [10:52:31]RasterBufferAndPrint [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]line [10:52:31]written 0, free lines is 3331 [10:52:31]MH_Cut [10:52:31]Write to MH i2c: D1 01 00 A6 27 01 9F [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 [10:52:31]MH_I2C_Read... [10:52:31]Read from MH i2c: D1 01 00 A6 27 00 9E [10:52:31]Write to MH i2c: 01 00 00 A7 27 CE [10:52:31]Write i2c OK [10:52:31]MH_I2C_Read... [10:52:32]OFD Sender: No OFD packet to send [10:52:32]*** Cut start [10:52:32]*** Partial cut [10:52:32]*** CUTSNS_PIN = 1 [10:52:32]*** CUTSNS_PIN = 0 [10:52:32]*** Brake cut motor [10:52:33]Read from MH i2c: 01 [10:52:33]MH_I2C_Read... [10:52:33]*** Stop cut motor [10:52:33]*** Cut end [10:52:33]Read from MH i2c: 01 07 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: 01 07 00 A7 27 00 00 00 00 00 FF 0F E3 [10:52:33]process_action close_receipt done [10:52:33]requested_data is exist [10:52:33]produce_requested_data [10:52:33]requested_item fm.sn is exist - process it [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 11 00 00 [10:52:33]Write to MH i2c: E2 08 00 A8 27 80 11 00 00 00 00 00 00 49 [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 17 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 17 00 A8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9C [10:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:33]wFMCommunicate OK [10:52:33]requested_item fd.num is exist - process it [10:52:33]SAM_PROTO_GetFieldsCounters [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 13 00 00 [10:52:33]Write to MH i2c: E2 08 00 A9 27 80 13 00 00 00 00 00 00 4C [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 62 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 62 00 A9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [10:52:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 83 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_GetFieldsCounters done [10:52:33]requested_item shift.num is exist - process it [10:52:33]requested_item shift.opened is exist - process it [10:52:33]req_shift_opened [10:52:33]FM_GetShiftState [10:52:33]SAM_PROTO_GetShiftState [10:52:33]wFMCommunicate request_size=4 [10:52:33]MH_SAM_APDU [10:52:33]CAPDU: 80 13 01 00 [10:52:33]Write to MH i2c: E2 08 00 AA 27 80 13 01 00 00 00 00 00 4E [10:52:33]Write i2c OK [10:52:33]MH_I2C_Read... [10:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:33]Read from MH i2c: E2 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 [10:52:33]MH_I2C_Read... [10:52:33]Read from MH i2c: E2 0E 00 AA 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 72 [10:52:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:52:33]wFMCommunicate OK [10:52:33]SAM_PROTO_GetShiftState done [10:52:33]FM_GetShiftState done [10:52:33]req_shift_opened done [10:52:33]requested_item shift.open_date is exist - process it [10:52:33]req_shift_open_date [10:52:33]req_shift_open_date done [10:52:33]produce_requested_data done [10:52:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186499,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:52:33]process_action_free close_receipt [10:52:33]json_value_free [10:52:33]json_value_free done [10:52:33]process_json_proto returns [10:52:33]Send response to host [10:52:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186499,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:52:33]free response buf [10:52:33]execute_script done [10:52:33]execute_script returns [10:52:33]free content buf [10:52:33]Sock 8.Close socket [10:52:33]Sock 8.Thread stoped [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:45]accept exits with 9 [10:52:45]New connection [10:52:45]New thread 3067358564 created [10:52:45]Thread 3067501924 joined [10:52:45]Waiting for new connection... [10:52:45] Sock 9.Parse request [10:52:45]Sock 9.Check first char [10:52:45]Sock 9.First char is OK [10:52:45]request: POST /json_proto HTTP/1.0 [10:52:45]Method: POST [10:52:45]URL: /json_proto [10:52:45]Method is POST - this is cgi request [10:52:45]url: /json_proto [10:52:45]query_string will be loaded in cgi processing [10:52:45]execute_cgi json_proto POST (null) [10:52:45]execute_cgi path=json_proto method=POST [10:52:45]POST find Content-Length [10:52:45]Host: 172.17.46.131:8080 [10:52:45]Content-Length: 799 [10:52:45]Content-Type: application/json [10:52:45] [10:52:45]POST finish read [10:52:45]Found Content-Length = 799 [10:52:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 30.000, "sum" : 2178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2178.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:45]execute_script... [10:52:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 30.000, "sum" : 2178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2178.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:45]POST & json_proto [10:52:45]process_json_proto [10:52:45]json parsed OK: [10:52:45]protocol is kg_v1.0 [10:52:45]action value=close_receipt [10:52:45]process_action close_receipt [10:52:45]cmd_close_receipt [10:52:45]MH_GetDate [10:52:45]Write to MH i2c: F0 00 00 AB 27 C1 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 09 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: F0 09 00 AB 27 00 01 15 B3 67 7E 41 4F 65 6D [10:52:45]GetLastDocTimeStamp 1739789553 [10:52:45]current date 1739789569 [10:52:45]FM_GetShiftState [10:52:45]SAM_PROTO_GetShiftState [10:52:45]wFMCommunicate request_size=4 [10:52:45]MH_SAM_APDU [10:52:45]CAPDU: 80 13 01 00 [10:52:45]Write to MH i2c: E2 08 00 AC 27 80 13 01 00 00 00 00 00 50 [10:52:45]Write i2c OK [10:52:45]MH_I2C_Read... [10:52:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:45]Read from MH i2c: E2 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 [10:52:45]MH_I2C_Read... [10:52:45]Read from MH i2c: E2 0E 00 AC 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 74 [10:52:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:52:45]wFMCommunicate OK [10:52:45]SAM_PROTO_GetShiftState done [10:52:45]FM_GetShiftState done [10:52:45]opened in 1739752571 [10:52:45]opened+sec_in_day 1739838971 [10:52:45]quantity*price = 217800 [10:52:45]sum+1 = 217801 [10:52:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2178.00 НСП 1% : 19.27 НДС 12% : 231.29 Наличными: 0.00 Безнал.: 2178.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 87 17.02.2025 10:52 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186500 ФПД: 159596414123992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186500&fm=159596414123992&tin=02508201610067®Number=0000000000091857&sum=217800 [10:52:46]StoreToDocumentArchive [10:52:46]shift 644 fd 186500 [10:52:46]save to /storage/0644/doc_00186500 [10:52:46]save last doc name /storage/0644/doc_00186500 to /storage/kkm_last_doc_name [10:52:46]save OK [10:52:46]Clear old archive folders... [10:52:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:52:46]tlvbuf is 01FC3CC0 [10:52:46]SAM_PROTO_ClearQueue [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 09 00 00 [10:52:46]Write to MH i2c: E2 08 00 B9 27 80 09 00 00 00 00 00 00 52 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 B9 27 00 90 00 54 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]SAM_PROTO_ClearQueue done [10:52:46]KKMCreateOFDPacket [10:52:46]OFDProtocolAddRootSTLVToBuf [10:52:46]FM_MakeSignedData [10:52:46]FM_MakeSignedData [10:52:46]SAM_PROTO_SignData [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 01 02 [10:52:46]Write to MH i2c: E2 08 00 BA 27 80 0D 01 02 00 00 00 00 5A [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 BA 27 00 90 00 55 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=255 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 52 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D8 02 00 35 04 06 00 91 26 EF 92 [10:52:46]Write to MH i2c: E2 02 01 BB 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 52 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D8 02 00 35 04 06 00 91 26 EF 92 00 00 14 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 BB 27 00 90 00 56 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=7 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 02 02 02 3F D8 [10:52:46]Write to MH i2c: E2 0A 00 BC 27 80 0D 02 02 02 00 3F D8 00 00 78 [10:52:46]Write i2c OK [10:52:46]MH_I2C_Read... [10:52:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:46]Read from MH i2c: E2 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 [10:52:46]MH_I2C_Read... [10:52:46]Read from MH i2c: E2 03 00 BC 27 00 90 00 57 [10:52:46]RAPDU: 90 00 [10:52:46]wFMCommunicate OK [10:52:46]wFMCommunicate request_size=4 [10:52:46]MH_SAM_APDU [10:52:46]CAPDU: 80 0D 03 02 [10:52:46]Write to MH i2c: E2 08 00 BD 27 80 0D 03 02 00 00 00 00 5F [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 0B 00 BD 27 00 A2 02 CA FB A9 B5 67 37 90 00 C5 [10:52:47]RAPDU: A2 02 CA FB A9 B5 67 37 90 00 [10:52:47]wFMCommunicate OK [10:52:47]SAM_PROTO_SignData done [10:52:47]FM_MakeSignedData done [10:52:47]CreateOFDProtocolMessage [10:52:47]wFMCommunicate request_size=4 [10:52:47]MH_SAM_APDU [10:52:47]CAPDU: 80 11 00 00 [10:52:47]Write to MH i2c: E2 08 00 BE 27 80 11 00 00 00 00 00 00 5F [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:47]Read from MH i2c: E2 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: E2 17 00 BE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B2 [10:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:47]wFMCommunicate OK [10:52:47]CreateOFDProtocolMessage done [10:52:47]OFDSenderStorePacket 186500 [10:52:47]StoreOFDPacket docnum=186500 [10:52:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D4 6B 04 01 56 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 52 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D8 02 00 35 04 06 00 91 26 EF 92 3F D8 A2 02 CA FB A9 B5 67 37 [10:52:47]CheckFolder [10:52:47]dirname=/storage/ofd_packets [10:52:47]CheckFolder done [10:52:47]ProducePacketName [10:52:47]name=ofd_packets/00186500 [10:52:47]NVStorageSaveData ofd_packets/00186500 [10:52:47]File name is /storage/ofd_packets/00186500 [10:52:47]Write 298 bytes [10:52:47]NVStorageSaveData done [10:52:47]OFDSenderStorePacket done [10:52:47]KKMCreateOFDPacket done [10:52:47]NVStorageSaveData kkm_last_timestamp [10:52:47]File name is /storage/kkm_last_timestamp [10:52:47]Write 4 bytes [10:52:47]NVStorageSaveData done [10:52:47]ExternCall_PrintAddStr [10:52:47]wPrintStart [10:52:47]Write to MH i2c: 01 00 00 BF 27 E6 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 BF 27 00 00 00 00 00 FF 0F FB [10:52:47]RasterBufferAndPrint [10:52:47]line Счет N : (1)411632 [10:52:47]line ИНН: 02508201610067 [10:52:47]line Контрольно-Кассовый Чек [10:52:47]line ПРОДАЖА [10:52:47]line ТРК (МРК, ГНК) : 5 [10:52:47]line Товар: 2710194210 [10:52:47]line ДТ-К-5 [10:52:47]line 30.000 * 72.60 [10:52:47]line = 2178.00 [10:52:47]line НДС 12% НСП 1% [10:52:47]line > о реализуемом товаре [10:52:47]line ИТОГО: 2178.00 [10:52:47]line НСП 1% : 19.27 [10:52:47]line НДС 12% : 231.29 [10:52:47]line Наличными: 0.00 [10:52:47]line Безнал.: 2178.00 [10:52:47]line Место: АЗС № 92 "Партнер Нефть" [10:52:47]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:52:47]line СНО: Общий режим [10:52:47]line Чек 87 17.02.2025 10:52 [10:52:47]line Смена: 644 ФФД: 1.0 [10:52:47]line ЗНМ: 0300000118 [10:52:47]line РНМ: 0000000000091857 [10:52:47]line Версия ККМ: 001 [10:52:47]line Платежная система: O! деньги [10:52:47]line ФМ: 0000000000871826 [10:52:47]line ФД: 186500 [10:52:47]line ФПД: 159596414123992 [10:52:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105249&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186500&fm=159596414123992&tin=02508201610067®Number=0000000000091857&sum=217800 [10:52:47]OFD Sender: Processing packet 186500 [packets to send 49, broken 48] [10:52:47]ProducePacketName [10:52:47]name=ofd_packets/00186500 [10:52:47]OFD Sender: To server: pG, [10:52:47]CommunicateWithHost lk.salyk.kg:30040 [10:52:47]ConnectInit lk.salyk.kg [10:52:47]written 0, free lines is 4095 [10:52:47]Connected sock=10 [10:52:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 D4 6B 04 01 56 47 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 C8 52 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 52 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 5A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 52 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 01 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D8 02 00 35 04 06 00 91 26 EF 92 3F D8 A2 02 CA FB A9 B5 67 37 [10:52:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DA 53 47 00 A0 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 84 D8 02 00 F4 03 04 00 5C BB B2 67 B6 04 01 00 00 11 37 2E D0 32 78 95 2E [10:52:47]CommunicateWithHost err = 0 [10:52:47]CheckOFDResponse [10:52:47]1017 (14) - 77093643461234 [10:52:47]1041 (16) - 0000000000871826 [10:52:47]1040 (4) - 186500 [10:52:47]1012 (4) - 17.02.2025 04:30 [10:52:47]1206 (1) - 0 [10:52:47]OFD Sender: Remove packet 186500 [10:52:47]ProducePacketName [10:52:47]name=ofd_packets/00186500 [10:52:47]NVStorageDeleteData [10:52:47]Write to MH i2c: 01 00 00 E9 27 10 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: 01 07 00 E9 27 00 00 00 00 00 FA 0C 1D [10:52:47]RasterBufferAndPrint [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]line [10:52:47]written 0, free lines is 3329 [10:52:47]MH_Cut [10:52:47]Write to MH i2c: D1 01 00 F0 27 01 E9 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 01 00 [10:52:47]MH_I2C_Read... [10:52:47]Read from MH i2c: D1 01 00 F0 27 00 E8 [10:52:47]Write to MH i2c: 01 00 00 F1 27 18 [10:52:47]Write i2c OK [10:52:47]MH_I2C_Read... [10:52:48]OFD Sender: No OFD packet to send [10:52:48]*** Cut start [10:52:48]*** Partial cut [10:52:48]*** CUTSNS_PIN = 1 [10:52:48]*** CUTSNS_PIN = 0 [10:52:48]*** Brake cut motor [10:52:49]Read from MH i2c: 01 [10:52:49]MH_I2C_Read... [10:52:49]*** Stop cut motor [10:52:49]*** Cut end [10:52:49]Read from MH i2c: 01 07 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: 01 07 00 F1 27 00 00 00 00 00 FF 0F 2D [10:52:49]process_action close_receipt done [10:52:49]requested_data is exist [10:52:49]produce_requested_data [10:52:49]requested_item fm.sn is exist - process it [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 11 00 00 [10:52:49]Write to MH i2c: E2 08 00 F2 27 80 11 00 00 00 00 00 00 93 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 17 00 F2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E6 [10:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:52:49]wFMCommunicate OK [10:52:49]requested_item fd.num is exist - process it [10:52:49]SAM_PROTO_GetFieldsCounters [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 00 00 [10:52:49]Write to MH i2c: E2 08 00 F3 27 80 13 00 00 00 00 00 00 96 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 62 00 F3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:52:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 84 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:49]wFMCommunicate OK [10:52:49]SAM_PROTO_GetFieldsCounters done [10:52:49]requested_item shift.num is exist - process it [10:52:49]requested_item shift.opened is exist - process it [10:52:49]req_shift_opened [10:52:49]FM_GetShiftState [10:52:49]SAM_PROTO_GetShiftState [10:52:49]wFMCommunicate request_size=4 [10:52:49]MH_SAM_APDU [10:52:49]CAPDU: 80 13 01 00 [10:52:49]Write to MH i2c: E2 08 00 F4 27 80 13 01 00 00 00 00 00 98 [10:52:49]Write i2c OK [10:52:49]MH_I2C_Read... [10:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:49]Read from MH i2c: E2 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 0E 00 [10:52:49]MH_I2C_Read... [10:52:49]Read from MH i2c: E2 0E 00 F4 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BC [10:52:49]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:52:49]wFMCommunicate OK [10:52:49]SAM_PROTO_GetShiftState done [10:52:49]FM_GetShiftState done [10:52:49]req_shift_opened done [10:52:49]requested_item shift.open_date is exist - process it [10:52:49]req_shift_open_date [10:52:49]req_shift_open_date done [10:52:49]produce_requested_data done [10:52:49]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186500,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:52:49]process_action_free close_receipt [10:52:49]json_value_free [10:52:49]json_value_free done [10:52:49]process_json_proto returns [10:52:49]Send response to host [10:52:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186500,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [10:52:49]free response buf [10:52:49]execute_script done [10:52:49]execute_script returns [10:52:49]free content buf [10:52:49]Sock 9.Close socket [10:52:49]Sock 9.Thread stoped [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:21]accept exits with 8 [10:55:21]New connection [10:55:21]New thread 3067501924 created [10:55:21]Thread 3067358564 joined [10:55:21]Waiting for new connection... [10:55:21] Sock 8.Parse request [10:55:21]Sock 8.Check first char [10:55:21]Sock 8.First char is OK [10:55:21]request: POST /json_proto HTTP/1.0 [10:55:21]Method: POST [10:55:21]URL: /json_proto [10:55:21]Method is POST - this is cgi request [10:55:21]url: /json_proto [10:55:21]query_string will be loaded in cgi processing [10:55:21]execute_cgi json_proto POST (null) [10:55:21]execute_cgi path=json_proto method=POST [10:55:21]POST find Content-Length [10:55:21]Host: 172.17.46.131:8080 [10:55:21]Content-Length: 678 [10:55:21]Content-Type: application/json [10:55:21] [10:55:21]POST finish read [10:55:21]Found Content-Length = 678 [10:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:21]execute_script... [10:55:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:21]POST & json_proto [10:55:21]process_json_proto [10:55:21]json parsed OK: [10:55:21]protocol is kg_v1.0 [10:55:21]action value=close_receipt [10:55:21]process_action close_receipt [10:55:21]cmd_close_receipt [10:55:21]MH_GetDate [10:55:21]Write to MH i2c: F0 00 00 F5 27 0B [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 09 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 09 00 F5 27 00 9D 15 B3 67 7E 41 4F 65 53 [10:55:21]GetLastDocTimeStamp 1739789569 [10:55:21]current date 1739789725 [10:55:21]FM_GetShiftState [10:55:21]SAM_PROTO_GetShiftState [10:55:21]wFMCommunicate request_size=4 [10:55:21]MH_SAM_APDU [10:55:21]CAPDU: 80 13 01 00 [10:55:21]Write to MH i2c: E2 08 00 F6 27 80 13 01 00 00 00 00 00 9A [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 F6 27 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BE [10:55:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetShiftState done [10:55:21]FM_GetShiftState done [10:55:21]opened in 1739752571 [10:55:21]opened+sec_in_day 1739838971 [10:55:21]quantity*price = 70042 [10:55:21]sum+1 = 70043 [10:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 88 17.02.2025 10:55 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186501 ФПД: 275869069134932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186501&fm=275869069134932&tin=02508201610067®Number=0000000000091857&sum=70000 [10:55:22]StoreToDocumentArchive [10:55:22]shift 644 fd 186501 [10:55:22]save to /storage/0644/doc_00186501 [10:55:22]save last doc name /storage/0644/doc_00186501 to /storage/kkm_last_doc_name [10:55:22]save OK [10:55:22]Clear old archive folders... [10:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:22]tlvbuf is 0201F380 [10:55:22]SAM_PROTO_ClearQueue [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 09 00 00 [10:55:22]Write to MH i2c: E2 08 00 03 28 80 09 00 00 00 00 00 00 9D [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 03 28 00 90 00 9F [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]SAM_PROTO_ClearQueue done [10:55:22]KKMCreateOFDPacket [10:55:22]OFDProtocolAddRootSTLVToBuf [10:55:22]FM_MakeSignedData [10:55:22]FM_MakeSignedData [10:55:22]SAM_PROTO_SignData [10:55:22]wFMCommunicate request_size=4 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 01 02 [10:55:22]Write to MH i2c: E2 08 00 04 28 80 0D 01 02 00 00 00 00 A5 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 04 28 00 90 00 A0 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]wFMCommunicate request_size=255 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 9D 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D8 02 00 35 04 06 00 FA [10:55:22]Write to MH i2c: E2 02 01 05 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 9D 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D8 02 00 35 04 06 00 FA 00 00 F2 [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:22]Read from MH i2c: E2 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 [10:55:22]MH_I2C_Read... [10:55:22]Read from MH i2c: E2 03 00 05 28 00 90 00 A1 [10:55:22]RAPDU: 90 00 [10:55:22]wFMCommunicate OK [10:55:22]wFMCommunicate request_size=10 [10:55:22]MH_SAM_APDU [10:55:22]CAPDU: 80 0D 02 02 05 E6 C5 DE CC 54 [10:55:22]Write to MH i2c: E2 0D 00 06 28 80 0D 02 02 05 00 E6 C5 DE CC 54 00 00 5B [10:55:22]Write i2c OK [10:55:22]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 06 28 00 90 00 A2 [10:55:23]RAPDU: 90 00 [10:55:23]wFMCommunicate OK [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 0D 03 02 [10:55:23]Write to MH i2c: E2 08 00 07 28 80 0D 03 02 00 00 00 00 AA [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 0B 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 0B 00 07 28 00 83 15 37 2B 60 E0 3C 1B 90 00 3C [10:55:23]RAPDU: 83 15 37 2B 60 E0 3C 1B 90 00 [10:55:23]wFMCommunicate OK [10:55:23]SAM_PROTO_SignData done [10:55:23]FM_MakeSignedData done [10:55:23]CreateOFDProtocolMessage [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 11 00 00 [10:55:23]Write to MH i2c: E2 08 00 08 28 80 11 00 00 00 00 00 00 AA [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 17 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 17 00 08 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [10:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:23]wFMCommunicate OK [10:55:23]CreateOFDProtocolMessage done [10:55:23]OFDSenderStorePacket 186501 [10:55:23]StoreOFDPacket docnum=186501 [10:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B F7 07 01 03 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 9D 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D8 02 00 35 04 06 00 FA E6 C5 DE CC 54 83 15 37 2B 60 E0 3C 1B [10:55:23]CheckFolder [10:55:23]dirname=/storage/ofd_packets [10:55:23]CheckFolder done [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00186501 [10:55:23]NVStorageSaveData ofd_packets/00186501 [10:55:23]File name is /storage/ofd_packets/00186501 [10:55:23]Write 301 bytes [10:55:23]NVStorageSaveData done [10:55:23]OFDSenderStorePacket done [10:55:23]KKMCreateOFDPacket done [10:55:23]NVStorageSaveData kkm_last_timestamp [10:55:23]File name is /storage/kkm_last_timestamp [10:55:23]Write 4 bytes [10:55:23]NVStorageSaveData done [10:55:23]OFD Sender: Processing packet 186501 [packets to send 49, broken 48] [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00186501 [10:55:23]OFD Sender: To server: pG, [10:55:23]CommunicateWithHost lk.salyk.kg:30040 [10:55:23]ConnectInit lk.salyk.kg [10:55:23]ExternCall_PrintAddStr [10:55:23]wPrintStart [10:55:23]Write to MH i2c: 01 00 00 09 28 31 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 09 28 00 00 00 00 00 FF 0F 46 [10:55:23]RasterBufferAndPrint [10:55:23]line Счет N : (1)411633 [10:55:23]line ИНН: 02508201610067 [10:55:23]line Контрольно-Кассовый Чек [10:55:23]line ПРОДАЖА [10:55:23]line ТРК (МРК, ГНК) : 12 [10:55:23]line Товар: 2710124130 [10:55:23]line Аи-92-К-2 [10:55:23]line 10.910 * 64.20 [10:55:23]line = 700.42 [10:55:23]line НДС 12% НСП 1% [10:55:23]line > о реализуемом товаре [10:55:23]line ОКРУГЛЕНИЕ: -0.42 [10:55:23]line ИТОГО: 700.00 [10:55:23]line Внесено: 700.00 [10:55:23]line СДАЧА: 0.00 [10:55:23]line НСП 1% : 6.20 [10:55:23]line НДС 12% : 74.38 [10:55:23]line Наличными: 700.00 [10:55:23]line Безнал.: 0.00 [10:55:23]line Место: АЗС № 92 "Партнер Нефть" [10:55:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [10:55:23]line СНО: Общий режим [10:55:23]line Чек 88 17.02.2025 10:55 [10:55:23]line Смена: 644 ФФД: 1.0 [10:55:23]line ЗНМ: 0300000118 [10:55:23]line РНМ: 0000000000091857 [10:55:23]line Версия ККМ: 001 [10:55:23]line ФМ: 0000000000871826 [10:55:23]line ФД: 186501 [10:55:23]line ФПД: 275869069134932 [10:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T105525&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186501&fm=275869069134932&tin=02508201610067®Number=0000000000091857&sum=70000 [10:55:23]Connected sock=11 [10:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B F7 07 01 03 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 9D 15 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D8 02 00 35 04 06 00 FA E6 C5 DE CC 54 83 15 37 2B 60 E0 3C 1B [10:55:23]written 0, free lines is 4095 [10:55:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6B CF 47 00 AB 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 85 D8 02 00 F4 03 04 00 F7 BB B2 67 B6 04 01 00 00 51 C2 51 D0 7C 19 65 65 [10:55:23]CommunicateWithHost err = 0 [10:55:23]CheckOFDResponse [10:55:23]1017 (14) - 77093643461234 [10:55:23]1041 (16) - 0000000000871826 [10:55:23]1040 (4) - 186501 [10:55:23]1012 (4) - 17.02.2025 04:32 [10:55:23]1206 (1) - 0 [10:55:23]OFD Sender: Remove packet 186501 [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00186501 [10:55:23]NVStorageDeleteData [10:55:23]Write to MH i2c: 01 00 00 34 28 5C [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 34 28 00 00 00 00 00 F3 0C 62 [10:55:23]RasterBufferAndPrint [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]line [10:55:23]written 0, free lines is 3321 [10:55:23]MH_Cut [10:55:23]Write to MH i2c: D1 01 00 3B 28 01 35 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 01 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: D1 01 00 3B 28 00 34 [10:55:23]Write to MH i2c: 01 00 00 3C 28 64 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:24]OFD Sender: No OFD packet to send [10:55:24]*** Cut start [10:55:24]*** Partial cut [10:55:24]*** CUTSNS_PIN = 1 [10:55:24]*** CUTSNS_PIN = 0 [10:55:25]*** Brake cut motor [10:55:25]Read from MH i2c: 01 [10:55:25]MH_I2C_Read... [10:55:25]*** Stop cut motor [10:55:25]*** Cut end [10:55:25]Read from MH i2c: 01 07 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 3C 28 00 00 00 00 00 FF 0F 79 [10:55:25]process_action close_receipt done [10:55:25]requested_data is exist [10:55:25]produce_requested_data [10:55:25]requested_item fm.sn is exist - process it [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 11 00 00 [10:55:25]Write to MH i2c: E2 08 00 3D 28 80 11 00 00 00 00 00 00 DF [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:25]Read from MH i2c: E2 17 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 17 00 3D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [10:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [10:55:25]wFMCommunicate OK [10:55:25]requested_item fd.num is exist - process it [10:55:25]SAM_PROTO_GetFieldsCounters [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 13 00 00 [10:55:25]Write to MH i2c: E2 08 00 3E 28 80 13 00 00 00 00 00 00 E2 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 62 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 62 00 3E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [10:55:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 85 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:25]wFMCommunicate OK [10:55:25]SAM_PROTO_GetFieldsCounters done [10:55:25]requested_item shift.num is exist - process it [10:55:25]requested_item shift.opened is exist - process it [10:55:25]req_shift_opened [10:55:25]FM_GetShiftState [10:55:25]SAM_PROTO_GetShiftState [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 13 01 00 [10:55:25]Write to MH i2c: E2 08 00 3F 28 80 13 01 00 00 00 00 00 E4 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 3F 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 08 [10:55:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [10:55:25]wFMCommunicate OK [10:55:25]SAM_PROTO_GetShiftState done [10:55:25]FM_GetShiftState done [10:55:25]req_shift_opened done [10:55:25]requested_item shift.open_date is exist - process it [10:55:25]req_shift_open_date [10:55:25]req_shift_open_date done [10:55:25]produce_requested_data done [10:55:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186501,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [10:55:25]process_action_free close_receipt [10:55:25]json_value_free [10:55:25]json_value_free done [10:55:25]process_json_proto returns [10:55:25]Send response to host [11:00:38]ConnectInit Can't connect to host [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:46]accept exits with 9 [11:03:46]New connection [11:03:46]New thread 3067358564 created [11:03:46]Thread 3067501924 joined [11:03:46]Waiting for new connection... [11:03:46] Sock 9.Parse request [11:03:46]Sock 9.Check first char [11:03:46]Sock 9.First char is OK [11:03:46]request: POST /json_proto HTTP/1.0 [11:03:46]Method: POST [11:03:46]URL: /json_proto [11:03:46]Method is POST - this is cgi request [11:03:46]url: /json_proto [11:03:46]query_string will be loaded in cgi processing [11:03:46]execute_cgi json_proto POST (null) [11:03:46]execute_cgi path=json_proto method=POST [11:03:46]POST find Content-Length [11:03:46]Host: 172.17.46.131:8080 [11:03:46]Content-Length: 677 [11:03:46]Content-Type: application/json [11:03:46] [11:03:46]POST finish read [11:03:46]Found Content-Length = 677 [11:03:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:46]execute_script... [11:03:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:46]POST & json_proto [11:03:46]process_json_proto [11:03:46]json parsed OK: [11:03:46]protocol is kg_v1.0 [11:03:46]action value=close_receipt [11:03:46]process_action close_receipt [11:03:46]cmd_close_receipt [11:03:46]MH_GetDate [11:03:46]Write to MH i2c: F0 00 00 40 28 57 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 09 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: F0 09 00 40 28 00 96 17 B3 67 7E 41 4F 65 9A [11:03:46]GetLastDocTimeStamp 1739789725 [11:03:46]current date 1739790230 [11:03:46]FM_GetShiftState [11:03:46]SAM_PROTO_GetShiftState [11:03:46]wFMCommunicate request_size=4 [11:03:46]MH_SAM_APDU [11:03:46]CAPDU: 80 13 01 00 [11:03:46]Write to MH i2c: E2 08 00 41 28 80 13 01 00 00 00 00 00 E6 [11:03:46]Write i2c OK [11:03:46]MH_I2C_Read... [11:03:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:46]Read from MH i2c: E2 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: E2 0E 00 [11:03:46]MH_I2C_Read... [11:03:46]Read from MH i2c: E2 0E 00 41 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0A [11:03:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:03:46]wFMCommunicate OK [11:03:46]SAM_PROTO_GetShiftState done [11:03:46]FM_GetShiftState done [11:03:46]opened in 1739752571 [11:03:46]opened+sec_in_day 1739838971 [11:03:46]quantity*price = 30045 [11:03:46]sum+1 = 30047 [11:03:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 89 17.02.2025 11:03 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186502 ФПД: 13450567363836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T110350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186502&fm=13450567363836&tin=02508201610067®Number=0000000000091857&sum=30000 [11:03:47]StoreToDocumentArchive [11:03:47]shift 644 fd 186502 [11:03:47]save to /storage/0644/doc_00186502 [11:03:47]save last doc name /storage/0644/doc_00186502 to /storage/kkm_last_doc_name [11:03:47]save OK [11:03:47]Clear old archive folders... [11:03:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:47]tlvbuf is 02006000 [11:03:47]SAM_PROTO_ClearQueue [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 09 00 00 [11:03:47]Write to MH i2c: E2 08 00 4E 28 80 09 00 00 00 00 00 00 E8 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 4E 28 00 90 00 EA [11:03:47]RAPDU: 90 00 [11:03:47]wFMCommunicate OK [11:03:47]SAM_PROTO_ClearQueue done [11:03:47]KKMCreateOFDPacket [11:03:47]OFDProtocolAddRootSTLVToBuf [11:03:47]FM_MakeSignedData [11:03:47]FM_MakeSignedData [11:03:47]SAM_PROTO_SignData [11:03:47]wFMCommunicate request_size=4 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 0D 01 02 [11:03:47]Write to MH i2c: E2 08 00 4F 28 80 0D 01 02 00 00 00 00 F0 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 4F 28 00 90 00 EB [11:03:47]RAPDU: 90 00 [11:03:47]wFMCommunicate OK [11:03:47]wFMCommunicate request_size=255 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 96 17 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D8 02 00 35 04 06 00 0C [11:03:47]Write to MH i2c: E2 02 01 50 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 96 17 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D8 02 00 35 04 06 00 0C 00 00 40 [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:47]Read from MH i2c: E2 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 [11:03:47]MH_I2C_Read... [11:03:47]Read from MH i2c: E2 03 00 50 28 00 90 00 EC [11:03:47]RAPDU: 90 00 [11:03:47]wFMCommunicate OK [11:03:47]wFMCommunicate request_size=10 [11:03:47]MH_SAM_APDU [11:03:47]CAPDU: 80 0D 02 02 05 3B B4 4A 2C FC [11:03:47]Write to MH i2c: E2 0D 00 51 28 80 0D 02 02 05 00 3B B4 4A 2C FC 00 00 5E [11:03:47]Write i2c OK [11:03:47]MH_I2C_Read... [11:03:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 03 00 51 28 00 90 00 ED [11:03:48]RAPDU: 90 00 [11:03:48]wFMCommunicate OK [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 0D 03 02 [11:03:48]Write to MH i2c: E2 08 00 52 28 80 0D 03 02 00 00 00 00 F5 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0B 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 0B 00 52 28 00 B2 51 E7 1A 35 38 D1 CF 90 00 07 [11:03:48]RAPDU: B2 51 E7 1A 35 38 D1 CF 90 00 [11:03:48]wFMCommunicate OK [11:03:48]SAM_PROTO_SignData done [11:03:48]FM_MakeSignedData done [11:03:48]CreateOFDProtocolMessage [11:03:48]wFMCommunicate request_size=4 [11:03:48]MH_SAM_APDU [11:03:48]CAPDU: 80 11 00 00 [11:03:48]Write to MH i2c: E2 08 00 53 28 80 11 00 00 00 00 00 00 F5 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:48]Read from MH i2c: E2 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 17 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: E2 17 00 53 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [11:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:03:48]wFMCommunicate OK [11:03:48]CreateOFDProtocolMessage done [11:03:48]OFDSenderStorePacket 186502 [11:03:48]StoreOFDPacket docnum=186502 [11:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F 49 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 96 17 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D8 02 00 35 04 06 00 0C 3B B4 4A 2C FC B2 51 E7 1A 35 38 D1 CF [11:03:48]CheckFolder [11:03:48]dirname=/storage/ofd_packets [11:03:48]CheckFolder done [11:03:48]ProducePacketName [11:03:48]name=ofd_packets/00186502 [11:03:48]NVStorageSaveData ofd_packets/00186502 [11:03:48]File name is /storage/ofd_packets/00186502 [11:03:48]Write 301 bytes [11:03:48]NVStorageSaveData done [11:03:48]OFDSenderStorePacket done [11:03:48]KKMCreateOFDPacket done [11:03:48]NVStorageSaveData kkm_last_timestamp [11:03:48]File name is /storage/kkm_last_timestamp [11:03:48]Write 4 bytes [11:03:48]NVStorageSaveData done [11:03:48]ExternCall_PrintAddStr [11:03:48]wPrintStart [11:03:48]Write to MH i2c: 01 00 00 54 28 7C [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 54 28 00 00 00 00 00 FF 0F 91 [11:03:48]RasterBufferAndPrint [11:03:48]line Счет N : (1)411634 [11:03:48]line ИНН: 02508201610067 [11:03:48]line Контрольно-Кассовый Чек [11:03:48]line ПРОДАЖА [11:03:48]line ТРК (МРК, ГНК) : 32 [11:03:48]line Товар: 2710124130 [11:03:48]line Аи-92-К-2 [11:03:48]line 4.680 * 64.20 [11:03:48]line = 300.46 [11:03:48]line НДС 12% НСП 1% [11:03:48]line > о реализуемом товаре [11:03:48]line ОКРУГЛЕНИЕ: -0.46 [11:03:48]line ИТОГО: 300.00 [11:03:48]line Внесено: 300.00 [11:03:48]line СДАЧА: 0.00 [11:03:48]line НСП 1% : 2.66 [11:03:48]line НДС 12% : 31.91 [11:03:48]line Наличными: 300.00 [11:03:48]line Безнал.: 0.00 [11:03:48]line Место: АЗС № 92 "Партнер Нефть" [11:03:48]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:03:48]line СНО: Общий режим [11:03:48]line Чек 89 17.02.2025 11:03 [11:03:48]line Смена: 644 ФФД: 1.0 [11:03:48]line ЗНМ: 0300000118 [11:03:48]line РНМ: 0000000000091857 [11:03:48]line Версия ККМ: 001 [11:03:48]line ФМ: 0000000000871826 [11:03:48]line ФД: 186502 [11:03:48]line ФПД: 13450567363836 [11:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T110350&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186502&fm=13450567363836&tin=02508201610067®Number=0000000000091857&sum=30000 [11:03:48]OFD Sender: Processing packet 186502 [packets to send 49, broken 48] [11:03:48]ProducePacketName [11:03:48]name=ofd_packets/00186502 [11:03:48]OFD Sender: To server: pG, [11:03:48]CommunicateWithHost lk.salyk.kg:30040 [11:03:48]ConnectInit lk.salyk.kg [11:03:48]written 0, free lines is 4095 [11:03:48]Connected sock=10 [11:03:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F 49 07 01 4F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 96 17 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D8 02 00 35 04 06 00 0C 3B B4 4A 2C FC B2 51 E7 1A 35 38 D1 CF [11:03:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FA 13 47 00 99 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 86 D8 02 00 F4 03 04 00 F1 BD B2 67 B6 04 01 00 00 8B D4 CF 8B 7C 1C 0F CA [11:03:48]CommunicateWithHost err = 0 [11:03:48]CheckOFDResponse [11:03:48]1017 (14) - 77093643461234 [11:03:48]1041 (16) - 0000000000871826 [11:03:48]1040 (4) - 186502 [11:03:48]1012 (4) - 17.02.2025 04:41 [11:03:48]1206 (1) - 0 [11:03:48]OFD Sender: Remove packet 186502 [11:03:48]ProducePacketName [11:03:48]name=ofd_packets/00186502 [11:03:48]NVStorageDeleteData [11:03:48]Write to MH i2c: 01 00 00 7F 28 A7 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: 01 07 00 7F 28 00 00 00 00 00 E6 0C A0 [11:03:48]RasterBufferAndPrint [11:03:48]line [11:03:48]line [11:03:48]line [11:03:48]line [11:03:48]line [11:03:48]written 0, free lines is 3309 [11:03:48]MH_Cut [11:03:48]Write to MH i2c: D1 01 00 86 28 01 80 [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: D1 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: D1 01 00 [11:03:48]MH_I2C_Read... [11:03:48]Read from MH i2c: D1 01 00 86 28 00 7F [11:03:48]Write to MH i2c: 01 00 00 87 28 AF [11:03:48]Write i2c OK [11:03:48]MH_I2C_Read... [11:03:49]OFD Sender: No OFD packet to send [11:03:49]*** Cut start [11:03:49]*** Partial cut [11:03:49]*** CUTSNS_PIN = 1 [11:03:49]*** CUTSNS_PIN = 0 [11:03:49]*** Brake cut motor [11:03:50]Read from MH i2c: 01 [11:03:50]*** Stop cut motor [11:03:50]*** Cut end [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: 01 07 00 87 28 00 00 00 00 00 FF 0F C4 [11:03:50]process_action close_receipt done [11:03:50]requested_data is exist [11:03:50]produce_requested_data [11:03:50]requested_item fm.sn is exist - process it [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 11 00 00 [11:03:50]Write to MH i2c: E2 08 00 88 28 80 11 00 00 00 00 00 00 2A [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 17 00 88 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [11:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:03:50]wFMCommunicate OK [11:03:50]requested_item fd.num is exist - process it [11:03:50]SAM_PROTO_GetFieldsCounters [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 13 00 00 [11:03:50]Write to MH i2c: E2 08 00 89 28 80 13 00 00 00 00 00 00 2D [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 62 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 62 00 89 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 86 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_GetFieldsCounters done [11:03:50]requested_item shift.num is exist - process it [11:03:50]requested_item shift.opened is exist - process it [11:03:50]req_shift_opened [11:03:50]FM_GetShiftState [11:03:50]SAM_PROTO_GetShiftState [11:03:50]wFMCommunicate request_size=4 [11:03:50]MH_SAM_APDU [11:03:50]CAPDU: 80 13 01 00 [11:03:50]Write to MH i2c: E2 08 00 8A 28 80 13 01 00 00 00 00 00 2F [11:03:50]Write i2c OK [11:03:50]MH_I2C_Read... [11:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:50]Read from MH i2c: E2 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 [11:03:50]MH_I2C_Read... [11:03:50]Read from MH i2c: E2 0E 00 8A 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 53 [11:03:50]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:03:50]wFMCommunicate OK [11:03:50]SAM_PROTO_GetShiftState done [11:03:50]FM_GetShiftState done [11:03:50]req_shift_opened done [11:03:50]requested_item shift.open_date is exist - process it [11:03:50]req_shift_open_date [11:03:50]req_shift_open_date done [11:03:50]produce_requested_data done [11:03:50]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186502,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:03:50]process_action_free close_receipt [11:03:50]json_value_free [11:03:50]json_value_free done [11:03:50]process_json_proto returns [11:03:50]Send response to host [11:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186502,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:03:50]free response buf [11:03:50]execute_script done [11:03:50]execute_script returns [11:03:50]free content buf [11:03:50]Sock 9.Close socket [11:03:50]Sock 9.Thread stoped [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:04]accept exits with 8 [11:10:04]New connection [11:10:04]New thread 3067501924 created [11:10:04]Thread 3067358564 joined [11:10:04]Waiting for new connection... [11:10:04] Sock 8.Parse request [11:10:04]Sock 8.Check first char [11:10:04]Sock 8.First char is OK [11:10:04]request: POST /json_proto HTTP/1.0 [11:10:04]Method: POST [11:10:04]URL: /json_proto [11:10:04]Method is POST - this is cgi request [11:10:04]url: /json_proto [11:10:04]query_string will be loaded in cgi processing [11:10:04]execute_cgi json_proto POST (null) [11:10:04]execute_cgi path=json_proto method=POST [11:10:04]POST find Content-Length [11:10:04]Host: 172.17.46.131:8080 [11:10:04]Content-Length: 754 [11:10:04]Content-Type: application/json [11:10:04] [11:10:04]POST finish read [11:10:04]Found Content-Length = 754 [11:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060232", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:04]execute_script... [11:10:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30060232", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:04]POST & json_proto [11:10:04]process_json_proto [11:10:04]json parsed OK: [11:10:04]protocol is kg_v1.0 [11:10:04]action value=close_receipt [11:10:04]process_action close_receipt [11:10:04]cmd_close_receipt [11:10:04]MH_GetDate [11:10:04]Write to MH i2c: F0 00 00 8B 28 A2 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: F0 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: F0 09 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: F0 09 00 8B 28 00 10 19 B3 67 7E 41 4F 65 61 [11:10:04]GetLastDocTimeStamp 1739790230 [11:10:04]current date 1739790608 [11:10:04]FM_GetShiftState [11:10:04]SAM_PROTO_GetShiftState [11:10:04]wFMCommunicate request_size=4 [11:10:04]MH_SAM_APDU [11:10:04]CAPDU: 80 13 01 00 [11:10:04]Write to MH i2c: E2 08 00 8C 28 80 13 01 00 00 00 00 00 31 [11:10:04]Write i2c OK [11:10:04]MH_I2C_Read... [11:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:04]Read from MH i2c: E2 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 0E 00 [11:10:04]MH_I2C_Read... [11:10:04]Read from MH i2c: E2 0E 00 8C 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 55 [11:10:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:10:04]wFMCommunicate OK [11:10:04]SAM_PROTO_GetShiftState done [11:10:04]FM_GetShiftState done [11:10:04]opened in 1739752571 [11:10:04]opened+sec_in_day 1739838971 [11:10:04]quantity*price = 0 [11:10:04]sum+1 = 1 [11:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 90 17.02.2025 11:10 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30060232 ФМ: 0000000000871826 ФД: 186503 ФПД: 183712827434227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186503&fm=183712827434227&tin=02508201610067®Number=0000000000091857&sum=0 [11:10:05]StoreToDocumentArchive [11:10:05]shift 644 fd 186503 [11:10:05]save to /storage/0644/doc_00186503 [11:10:05]save last doc name /storage/0644/doc_00186503 to /storage/kkm_last_doc_name [11:10:05]save OK [11:10:05]Clear old archive folders... [11:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:05]tlvbuf is 0209E0D0 [11:10:05]SAM_PROTO_ClearQueue [11:10:05]wFMCommunicate request_size=4 [11:10:05]MH_SAM_APDU [11:10:05]CAPDU: 80 09 00 00 [11:10:05]Write to MH i2c: E2 08 00 99 28 80 09 00 00 00 00 00 00 33 [11:10:05]Write i2c OK [11:10:05]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 99 28 00 90 00 35 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]SAM_PROTO_ClearQueue done [11:10:06]KKMCreateOFDPacket [11:10:06]OFDProtocolAddRootSTLVToBuf [11:10:06]FM_MakeSignedData [11:10:06]FM_MakeSignedData [11:10:06]SAM_PROTO_SignData [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 01 02 [11:10:06]Write to MH i2c: E2 08 00 9A 28 80 0D 01 02 00 00 00 00 3B [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 9A 28 00 90 00 36 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=255 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 11 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D8 02 00 35 04 06 00 A7 [11:10:06]Write to MH i2c: E2 02 01 9B 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 11 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D8 02 00 35 04 06 00 A7 00 00 E1 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 9B 28 00 90 00 37 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=10 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 02 02 05 15 F9 D1 E4 F3 [11:10:06]Write to MH i2c: E2 0D 00 9C 28 80 0D 02 02 05 00 15 F9 D1 E4 F3 00 00 FE [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 03 00 9C 28 00 90 00 38 [11:10:06]RAPDU: 90 00 [11:10:06]wFMCommunicate OK [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 0D 03 02 [11:10:06]Write to MH i2c: E2 08 00 9D 28 80 0D 03 02 00 00 00 00 40 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 0B 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 0B 00 9D 28 00 1F A8 D1 9A FE 53 40 A4 90 00 A8 [11:10:06]RAPDU: 1F A8 D1 9A FE 53 40 A4 90 00 [11:10:06]wFMCommunicate OK [11:10:06]SAM_PROTO_SignData done [11:10:06]FM_MakeSignedData done [11:10:06]CreateOFDProtocolMessage [11:10:06]wFMCommunicate request_size=4 [11:10:06]MH_SAM_APDU [11:10:06]CAPDU: 80 11 00 00 [11:10:06]Write to MH i2c: E2 08 00 9E 28 80 11 00 00 00 00 00 00 40 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:06]Read from MH i2c: E2 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 17 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: E2 17 00 9E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [11:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:06]wFMCommunicate OK [11:10:06]CreateOFDProtocolMessage done [11:10:06]OFDSenderStorePacket 186503 [11:10:06]StoreOFDPacket docnum=186503 [11:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C C6 07 01 75 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 11 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D8 02 00 35 04 06 00 A7 15 F9 D1 E4 F3 1F A8 D1 9A FE 53 40 A4 [11:10:06]CheckFolder [11:10:06]dirname=/storage/ofd_packets [11:10:06]CheckFolder done [11:10:06]ProducePacketName [11:10:06]name=ofd_packets/00186503 [11:10:06]NVStorageSaveData ofd_packets/00186503 [11:10:06]File name is /storage/ofd_packets/00186503 [11:10:06]Write 301 bytes [11:10:06]NVStorageSaveData done [11:10:06]OFDSenderStorePacket done [11:10:06]KKMCreateOFDPacket done [11:10:06]NVStorageSaveData kkm_last_timestamp [11:10:06]File name is /storage/kkm_last_timestamp [11:10:06]Write 4 bytes [11:10:06]NVStorageSaveData done [11:10:06]ExternCall_PrintAddStr [11:10:06]wPrintStart [11:10:06]Write to MH i2c: 01 00 00 9F 28 C7 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 9F 28 00 00 00 00 00 FF 0F DC [11:10:06]RasterBufferAndPrint [11:10:06]line Счет N : (1)411635 [11:10:06]line ИНН: 02508201610067 [11:10:06]line Контрольно-Кассовый Чек [11:10:06]line ПРОДАЖА [11:10:06]line ТРК (МРК, ГНК) : 22 [11:10:06]line Товар: 2710124130 [11:10:06]line Аи-92-К-2 [11:10:06]line 20.000 * 0.00 [11:10:06]line = 0.00 [11:10:06]line НДС 12% НСП 1% [11:10:06]line > о реализуемом товаре [11:10:06]line ИТОГО: 0.00 [11:10:06]line НСП 1% : 0.00 [11:10:06]line НДС 12% : 0.00 [11:10:06]line Наличными: 0.00 [11:10:06]line Безнал.: 0.00 [11:10:06]line Место: АЗС № 92 "Партнер Нефть" [11:10:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:10:06]line СНО: Общий режим [11:10:06]line Чек 90 17.02.2025 11:10 [11:10:06]line Смена: 644 ФФД: 1.0 [11:10:06]line ЗНМ: 0300000118 [11:10:06]line РНМ: 0000000000091857 [11:10:06]line Версия ККМ: 001 [11:10:06]line Талоны: ТК ГПНА Online [11:10:06]line 30060232 [11:10:06]line ФМ: 0000000000871826 [11:10:06]line ФД: 186503 [11:10:06]line ФПД: 183712827434227 [11:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111009&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186503&fm=183712827434227&tin=02508201610067®Number=0000000000091857&sum=0 [11:10:06]written 0, free lines is 4095 [11:10:06]OFD Sender: Processing packet 186503 [packets to send 49, broken 48] [11:10:06]ProducePacketName [11:10:06]name=ofd_packets/00186503 [11:10:06]OFD Sender: To server: pG, [11:10:06]CommunicateWithHost lk.salyk.kg:30040 [11:10:06]ConnectInit lk.salyk.kg [11:10:06]Connected sock=10 [11:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C C6 07 01 75 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 11 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D8 02 00 35 04 06 00 A7 15 F9 D1 E4 F3 1F A8 D1 9A FE 53 40 A4 [11:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5C D6 47 00 FD 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 87 D8 02 00 F4 03 04 00 6B BF B2 67 B6 04 01 00 00 C7 C3 3B C1 8E 06 6F C0 [11:10:06]CommunicateWithHost err = 0 [11:10:06]CheckOFDResponse [11:10:06]1017 (14) - 77093643461234 [11:10:06]1041 (16) - 0000000000871826 [11:10:06]1040 (4) - 186503 [11:10:06]1012 (4) - 17.02.2025 04:47 [11:10:06]1206 (1) - 0 [11:10:06]OFD Sender: Remove packet 186503 [11:10:06]ProducePacketName [11:10:06]name=ofd_packets/00186503 [11:10:06]NVStorageDeleteData [11:10:06]Write to MH i2c: 01 00 00 C9 28 F1 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: 01 07 00 C9 28 00 00 00 00 00 18 0D 1D [11:10:06]RasterBufferAndPrint [11:10:06]line [11:10:06]line [11:10:06]line [11:10:06]line [11:10:06]line [11:10:06]written 0, free lines is 3358 [11:10:06]MH_Cut [11:10:06]Write to MH i2c: D1 01 00 D0 28 01 CA [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: D1 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: D1 01 00 [11:10:06]MH_I2C_Read... [11:10:06]Read from MH i2c: D1 01 00 D0 28 00 C9 [11:10:06]Write to MH i2c: 01 00 00 D1 28 F9 [11:10:06]Write i2c OK [11:10:06]MH_I2C_Read... [11:10:07]OFD Sender: No OFD packet to send [11:10:07]*** Cut start [11:10:07]*** Partial cut [11:10:07]*** CUTSNS_PIN = 1 [11:10:07]*** CUTSNS_PIN = 0 [11:10:08]*** Brake cut motor [11:10:08]Read from MH i2c: 01 [11:10:08]MH_I2C_Read... [11:10:08]*** Stop cut motor [11:10:08]*** Cut end [11:10:08]Read from MH i2c: 01 07 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: 01 07 00 D1 28 00 00 00 00 00 FF 0F 0E [11:10:08]process_action close_receipt done [11:10:08]requested_data is exist [11:10:08]produce_requested_data [11:10:08]requested_item fm.sn is exist - process it [11:10:08]wFMCommunicate request_size=4 [11:10:08]MH_SAM_APDU [11:10:08]CAPDU: 80 11 00 00 [11:10:08]Write to MH i2c: E2 08 00 D2 28 80 11 00 00 00 00 00 00 74 [11:10:08]Write i2c OK [11:10:08]MH_I2C_Read... [11:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:08]Read from MH i2c: E2 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 17 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 17 00 D2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C7 [11:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:08]wFMCommunicate OK [11:10:08]requested_item fd.num is exist - process it [11:10:08]SAM_PROTO_GetFieldsCounters [11:10:08]wFMCommunicate request_size=4 [11:10:08]MH_SAM_APDU [11:10:08]CAPDU: 80 13 00 00 [11:10:08]Write to MH i2c: E2 08 00 D3 28 80 13 00 00 00 00 00 00 77 [11:10:08]Write i2c OK [11:10:08]MH_I2C_Read... [11:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:08]Read from MH i2c: E2 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 62 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 62 00 D3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 87 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:08]wFMCommunicate OK [11:10:08]SAM_PROTO_GetFieldsCounters done [11:10:08]requested_item shift.num is exist - process it [11:10:08]requested_item shift.opened is exist - process it [11:10:08]req_shift_opened [11:10:08]FM_GetShiftState [11:10:08]SAM_PROTO_GetShiftState [11:10:08]wFMCommunicate request_size=4 [11:10:08]MH_SAM_APDU [11:10:08]CAPDU: 80 13 01 00 [11:10:08]Write to MH i2c: E2 08 00 D4 28 80 13 01 00 00 00 00 00 79 [11:10:08]Write i2c OK [11:10:08]MH_I2C_Read... [11:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:08]Read from MH i2c: E2 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 0E 00 [11:10:08]MH_I2C_Read... [11:10:08]Read from MH i2c: E2 0E 00 D4 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9D [11:10:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:10:08]wFMCommunicate OK [11:10:08]SAM_PROTO_GetShiftState done [11:10:08]FM_GetShiftState done [11:10:08]req_shift_opened done [11:10:08]requested_item shift.open_date is exist - process it [11:10:08]req_shift_open_date [11:10:08]req_shift_open_date done [11:10:08]produce_requested_data done [11:10:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186503,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:10:08]process_action_free close_receipt [11:10:08]json_value_free [11:10:08]json_value_free done [11:10:08]process_json_proto returns [11:10:08]Send response to host [11:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186503,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:10:08]free response buf [11:10:08]execute_script done [11:10:08]execute_script returns [11:10:08]free content buf [11:10:08]Sock 8.Close socket [11:10:08]Sock 8.Thread stoped [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]accept exits with 9 [11:10:57]New connection [11:10:57]New thread 3067358564 created [11:10:57]Thread 3067501924 joined [11:10:57]Waiting for new connection... [11:10:57] Sock 9.Parse request [11:10:57]Sock 9.Check first char [11:10:57]Sock 9.First char is OK [11:10:57]request: POST /json_proto HTTP/1.0 [11:10:57]Method: POST [11:10:57]URL: /json_proto [11:10:57]Method is POST - this is cgi request [11:10:57]url: /json_proto [11:10:57]query_string will be loaded in cgi processing [11:10:57]execute_cgi json_proto POST (null) [11:10:57]execute_cgi path=json_proto method=POST [11:10:57]POST find Content-Length [11:10:57]Host: 172.17.46.131:8080 [11:10:57]Content-Length: 677 [11:10:57]Content-Type: application/json [11:10:57] [11:10:57]POST finish read [11:10:57]Found Content-Length = 677 [11:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:57]execute_script... [11:10:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:57]POST & json_proto [11:10:57]process_json_proto [11:10:57]json parsed OK: [11:10:57]protocol is kg_v1.0 [11:10:57]action value=close_receipt [11:10:57]process_action close_receipt [11:10:57]cmd_close_receipt [11:10:57]MH_GetDate [11:10:57]Write to MH i2c: F0 00 00 D5 28 EC [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: F0 09 00 D5 28 00 45 19 B3 67 7E 41 4F 65 E0 [11:10:57]GetLastDocTimeStamp 1739790609 [11:10:57]current date 1739790661 [11:10:57]FM_GetShiftState [11:10:57]SAM_PROTO_GetShiftState [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 13 01 00 [11:10:57]Write to MH i2c: E2 08 00 D6 28 80 13 01 00 00 00 00 00 7B [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]OFD Sender: No OFD packet to send [11:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0E 00 D6 28 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9F [11:10:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_GetShiftState done [11:10:57]FM_GetShiftState done [11:10:57]opened in 1739752571 [11:10:57]opened+sec_in_day 1739838971 [11:10:57]quantity*price = 50011 [11:10:57]sum+1 = 50013 [11:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 91 17.02.2025 11:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186504 ФПД: 235104056185506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111101&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186504&fm=235104056185506&tin=02508201610067®Number=0000000000091857&sum=50000 [11:10:58]StoreToDocumentArchive [11:10:58]shift 644 fd 186504 [11:10:58]save to /storage/0644/doc_00186504 [11:10:58]save last doc name /storage/0644/doc_00186504 to /storage/kkm_last_doc_name [11:10:58]save OK [11:10:58]Clear old archive folders... [11:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:58]tlvbuf is 01FC6210 [11:10:58]SAM_PROTO_ClearQueue [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 09 00 00 [11:10:58]Write to MH i2c: E2 08 00 E3 28 80 09 00 00 00 00 00 00 7D [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 E3 28 00 90 00 7F [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]SAM_PROTO_ClearQueue done [11:10:58]KKMCreateOFDPacket [11:10:58]OFDProtocolAddRootSTLVToBuf [11:10:58]FM_MakeSignedData [11:10:58]FM_MakeSignedData [11:10:58]SAM_PROTO_SignData [11:10:58]wFMCommunicate request_size=4 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 01 02 [11:10:58]Write to MH i2c: E2 08 00 E4 28 80 0D 01 02 00 00 00 00 85 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 03 00 E4 28 00 90 00 80 [11:10:58]RAPDU: 90 00 [11:10:58]wFMCommunicate OK [11:10:58]wFMCommunicate request_size=255 [11:10:58]MH_SAM_APDU [11:10:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 45 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D8 02 00 35 04 06 00 D5 [11:10:58]Write to MH i2c: E2 02 01 E5 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 45 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D8 02 00 35 04 06 00 D5 00 00 AE [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 E5 28 00 90 00 81 [11:10:59]RAPDU: 90 00 [11:10:59]wFMCommunicate OK [11:10:59]wFMCommunicate request_size=10 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 0D 02 02 05 D3 6D C1 12 A2 [11:10:59]Write to MH i2c: E2 0D 00 E6 28 80 0D 02 02 05 00 D3 6D C1 12 A2 00 00 47 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 03 00 E6 28 00 90 00 82 [11:10:59]RAPDU: 90 00 [11:10:59]wFMCommunicate OK [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 0D 03 02 [11:10:59]Write to MH i2c: E2 08 00 E7 28 80 0D 03 02 00 00 00 00 8A [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 0B 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 0B 00 E7 28 00 FA B0 CB E8 F7 A0 59 ED 90 00 C5 [11:10:59]RAPDU: FA B0 CB E8 F7 A0 59 ED 90 00 [11:10:59]wFMCommunicate OK [11:10:59]SAM_PROTO_SignData done [11:10:59]FM_MakeSignedData done [11:10:59]CreateOFDProtocolMessage [11:10:59]wFMCommunicate request_size=4 [11:10:59]MH_SAM_APDU [11:10:59]CAPDU: 80 11 00 00 [11:10:59]Write to MH i2c: E2 08 00 E8 28 80 11 00 00 00 00 00 00 8A [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:59]Read from MH i2c: E2 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 17 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: E2 17 00 E8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [11:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:10:59]wFMCommunicate OK [11:10:59]CreateOFDProtocolMessage done [11:10:59]OFDSenderStorePacket 186504 [11:10:59]StoreOFDPacket docnum=186504 [11:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C6 98 07 01 A5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 45 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D8 02 00 35 04 06 00 D5 D3 6D C1 12 A2 FA B0 CB E8 F7 A0 59 ED [11:10:59]CheckFolder [11:10:59]dirname=/storage/ofd_packets [11:10:59]CheckFolder done [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00186504 [11:10:59]NVStorageSaveData ofd_packets/00186504 [11:10:59]File name is /storage/ofd_packets/00186504 [11:10:59]Write 301 bytes [11:10:59]NVStorageSaveData done [11:10:59]OFDSenderStorePacket done [11:10:59]KKMCreateOFDPacket done [11:10:59]NVStorageSaveData kkm_last_timestamp [11:10:59]File name is /storage/kkm_last_timestamp [11:10:59]Write 4 bytes [11:10:59]NVStorageSaveData done [11:10:59]ExternCall_PrintAddStr [11:10:59]wPrintStart [11:10:59]Write to MH i2c: 01 00 00 E9 28 11 [11:10:59]Write i2c OK [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 [11:10:59]MH_I2C_Read... [11:10:59]Read from MH i2c: 01 07 00 E9 28 00 00 00 00 00 FF 0F 26 [11:10:59]RasterBufferAndPrint [11:10:59]line Счет N : (1)411636 [11:10:59]line ИНН: 02508201610067 [11:10:59]line Контрольно-Кассовый Чек [11:10:59]line ПРОДАЖА [11:10:59]line ТРК (МРК, ГНК) : 42 [11:10:59]line Товар: 2710124130 [11:10:59]line Аи-92-К-2 [11:10:59]line 7.790 * 64.20 [11:10:59]line = 500.12 [11:10:59]line НДС 12% НСП 1% [11:10:59]line > о реализуемом товаре [11:10:59]line ОКРУГЛЕНИЕ: -0.12 [11:10:59]line ИТОГО: 500.00 [11:10:59]line Внесено: 500.00 [11:10:59]line СДАЧА: 0.00 [11:10:59]line НСП 1% : 4.43 [11:10:59]line НДС 12% : 53.11 [11:10:59]line Наличными: 500.00 [11:10:59]line Безнал.: 0.00 [11:10:59]line Место: АЗС № 92 "Партнер Нефть" [11:10:59]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:10:59]line СНО: Общий режим [11:10:59]line Чек 91 17.02.2025 11:11 [11:10:59]line Смена: 644 ФФД: 1.0 [11:10:59]line ЗНМ: 0300000118 [11:10:59]line РНМ: 0000000000091857 [11:10:59]line Версия ККМ: 001 [11:10:59]line ФМ: 0000000000871826 [11:10:59]line ФД: 186504 [11:10:59]line ФПД: 235104056185506 [11:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111101&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186504&fm=235104056185506&tin=02508201610067®Number=0000000000091857&sum=50000 [11:10:59]OFD Sender: Processing packet 186504 [packets to send 49, broken 48] [11:10:59]ProducePacketName [11:10:59]name=ofd_packets/00186504 [11:10:59]OFD Sender: To server: pG, [11:10:59]CommunicateWithHost lk.salyk.kg:30040 [11:10:59]ConnectInit lk.salyk.kg [11:10:59]written 0, free lines is 4095 [11:10:59]Connected sock=10 [11:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C6 98 07 01 A5 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 45 19 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D8 02 00 35 04 06 00 D5 D3 6D C1 12 A2 FA B0 CB E8 F7 A0 59 ED [11:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7F 18 47 00 BA 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 88 D8 02 00 F4 03 04 00 A0 BF B2 67 B6 04 01 00 00 DF 78 14 F2 F0 4B D7 E5 [11:11:00]CommunicateWithHost err = 0 [11:11:00]CheckOFDResponse [11:11:00]1017 (14) - 77093643461234 [11:11:00]1041 (16) - 0000000000871826 [11:11:00]1040 (4) - 186504 [11:11:00]1012 (4) - 17.02.2025 04:48 [11:11:00]1206 (1) - 0 [11:11:00]OFD Sender: Remove packet 186504 [11:11:00]ProducePacketName [11:11:00]name=ofd_packets/00186504 [11:11:00]NVStorageDeleteData [11:11:00]Write to MH i2c: 01 00 00 14 29 3D [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 14 29 00 00 00 00 00 F8 0C 48 [11:11:00]RasterBufferAndPrint [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]line [11:11:00]written 0, free lines is 3326 [11:11:00]MH_Cut [11:11:00]Write to MH i2c: D1 01 00 1B 29 01 16 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 01 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: D1 01 00 1B 29 00 15 [11:11:00]Write to MH i2c: 01 00 00 1C 29 45 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]OFD Sender: No OFD packet to send [11:11:00]*** Cut start [11:11:00]*** Partial cut [11:11:00]*** CUTSNS_PIN = 1 [11:11:00]*** CUTSNS_PIN = 0 [11:11:01]*** Brake cut motor [11:11:01]Read from MH i2c: 01 [11:11:01]MH_I2C_Read... [11:11:01]*** Stop cut motor [11:11:01]*** Cut end [11:11:01]Read from MH i2c: 01 07 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: 01 07 00 1C 29 00 00 00 00 00 FF 0F 5A [11:11:01]process_action close_receipt done [11:11:01]requested_data is exist [11:11:01]produce_requested_data [11:11:01]requested_item fm.sn is exist - process it [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 11 00 00 [11:11:01]Write to MH i2c: E2 08 00 1D 29 80 11 00 00 00 00 00 00 C0 [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 17 00 1D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [11:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:11:01]wFMCommunicate OK [11:11:01]requested_item fd.num is exist - process it [11:11:01]SAM_PROTO_GetFieldsCounters [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 00 00 [11:11:01]Write to MH i2c: E2 08 00 1E 29 80 13 00 00 00 00 00 00 C3 [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 62 00 1E 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 88 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetFieldsCounters done [11:11:01]requested_item shift.num is exist - process it [11:11:01]requested_item shift.opened is exist - process it [11:11:01]req_shift_opened [11:11:01]FM_GetShiftState [11:11:01]SAM_PROTO_GetShiftState [11:11:01]wFMCommunicate request_size=4 [11:11:01]MH_SAM_APDU [11:11:01]CAPDU: 80 13 01 00 [11:11:01]Write to MH i2c: E2 08 00 1F 29 80 13 01 00 00 00 00 00 C5 [11:11:01]Write i2c OK [11:11:01]MH_I2C_Read... [11:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:01]Read from MH i2c: E2 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 [11:11:01]MH_I2C_Read... [11:11:01]Read from MH i2c: E2 0E 00 1F 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E9 [11:11:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:11:01]wFMCommunicate OK [11:11:01]SAM_PROTO_GetShiftState done [11:11:01]FM_GetShiftState done [11:11:01]req_shift_opened done [11:11:01]requested_item shift.open_date is exist - process it [11:11:01]req_shift_open_date [11:11:01]req_shift_open_date done [11:11:01]produce_requested_data done [11:11:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186504,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:11:01]process_action_free close_receipt [11:11:01]json_value_free [11:11:01]json_value_free done [11:11:01]process_json_proto returns [11:11:01]Send response to host [11:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186504,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:11:01]free response buf [11:11:01]execute_script done [11:11:01]execute_script returns [11:11:01]free content buf [11:11:01]Sock 9.Close socket [11:11:01]Sock 9.Thread stoped [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:19]accept exits with 8 [11:16:19]New connection [11:16:19]New thread 3067501924 created [11:16:19]Thread 3067358564 joined [11:16:19]Waiting for new connection... [11:16:19] Sock 8.Parse request [11:16:19]Sock 8.Check first char [11:16:19]Sock 8.First char is OK [11:16:19]request: POST /json_proto HTTP/1.0 [11:16:19]Method: POST [11:16:19]URL: /json_proto [11:16:19]Method is POST - this is cgi request [11:16:19]url: /json_proto [11:16:19]query_string will be loaded in cgi processing [11:16:19]execute_cgi json_proto POST (null) [11:16:19]execute_cgi path=json_proto method=POST [11:16:19]POST find Content-Length [11:16:19]Host: 172.17.46.131:8080 [11:16:19]Content-Length: 677 [11:16:19]Content-Type: application/json [11:16:19] [11:16:19]POST finish read [11:16:19]Found Content-Length = 677 [11:16:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:19]execute_script... [11:16:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:19]POST & json_proto [11:16:19]process_json_proto [11:16:19]json parsed OK: [11:16:19]protocol is kg_v1.0 [11:16:19]action value=close_receipt [11:16:19]process_action close_receipt [11:16:19]cmd_close_receipt [11:16:19]MH_GetDate [11:16:19]Write to MH i2c: F0 00 00 20 29 38 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: F0 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: F0 09 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: F0 09 00 20 29 00 87 1A B3 67 7E 41 4F 65 6F [11:16:19]GetLastDocTimeStamp 1739790661 [11:16:19]current date 1739790983 [11:16:19]FM_GetShiftState [11:16:19]SAM_PROTO_GetShiftState [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 13 01 00 [11:16:19]Write to MH i2c: E2 08 00 21 29 80 13 01 00 00 00 00 00 C7 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:19]Read from MH i2c: E2 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 0E 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 0E 00 21 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EB [11:16:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:16:19]wFMCommunicate OK [11:16:19]SAM_PROTO_GetShiftState done [11:16:19]FM_GetShiftState done [11:16:19]opened in 1739752571 [11:16:19]opened+sec_in_day 1739838971 [11:16:19]quantity*price = 50042 [11:16:19]sum+1 = 50043 [11:16:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 92 17.02.2025 11:16 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186505 ФПД: 152736135873436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186505&fm=152736135873436&tin=02508201610067®Number=0000000000091857&sum=50000 [11:16:20]StoreToDocumentArchive [11:16:20]shift 644 fd 186505 [11:16:20]save to /storage/0644/doc_00186505 [11:16:20]save last doc name /storage/0644/doc_00186505 to /storage/kkm_last_doc_name [11:16:20]save OK [11:16:20]Clear old archive folders... [11:16:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:20]tlvbuf is 01FCA410 [11:16:20]SAM_PROTO_ClearQueue [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 09 00 00 [11:16:20]Write to MH i2c: E2 08 00 2E 29 80 09 00 00 00 00 00 00 C9 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 2E 29 00 90 00 CB [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_ClearQueue done [11:16:20]KKMCreateOFDPacket [11:16:20]OFDProtocolAddRootSTLVToBuf [11:16:20]FM_MakeSignedData [11:16:20]FM_MakeSignedData [11:16:20]SAM_PROTO_SignData [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 01 02 [11:16:20]Write to MH i2c: E2 08 00 2F 29 80 0D 01 02 00 00 00 00 D1 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 2F 29 00 90 00 CC [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=255 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 87 1A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D8 02 00 35 04 06 00 8A [11:16:20]Write to MH i2c: E2 02 01 30 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 87 1A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D8 02 00 35 04 06 00 8A 00 00 E0 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 30 29 00 90 00 CD [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=10 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 02 02 05 E9 A7 1F 83 9C [11:16:20]Write to MH i2c: E2 0D 00 31 29 80 0D 02 02 05 00 E9 A7 1F 83 9C 00 00 AC [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 31 29 00 90 00 CE [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 03 02 [11:16:20]Write to MH i2c: E2 08 00 32 29 80 0D 03 02 00 00 00 00 D6 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:20]OFD Sender: No OFD packet to send [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 32 29 00 ED 8D B3 8A 40 5C 5E 10 90 00 98 [11:16:20]RAPDU: ED 8D B3 8A 40 5C 5E 10 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_SignData done [11:16:20]FM_MakeSignedData done [11:16:20]CreateOFDProtocolMessage [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 11 00 00 [11:16:20]Write to MH i2c: E2 08 00 33 29 80 11 00 00 00 00 00 00 D6 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 33 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [11:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:20]wFMCommunicate OK [11:16:20]CreateOFDProtocolMessage done [11:16:20]OFDSenderStorePacket 186505 [11:16:20]StoreOFDPacket docnum=186505 [11:16:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 80 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 87 1A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D8 02 00 35 04 06 00 8A E9 A7 1F 83 9C ED 8D B3 8A 40 5C 5E 10 [11:16:20]CheckFolder [11:16:20]dirname=/storage/ofd_packets [11:16:20]CheckFolder done [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00186505 [11:16:20]NVStorageSaveData ofd_packets/00186505 [11:16:20]File name is /storage/ofd_packets/00186505 [11:16:20]Write 301 bytes [11:16:20]NVStorageSaveData done [11:16:20]OFDSenderStorePacket done [11:16:20]KKMCreateOFDPacket done [11:16:20]NVStorageSaveData kkm_last_timestamp [11:16:20]File name is /storage/kkm_last_timestamp [11:16:20]Write 4 bytes [11:16:20]NVStorageSaveData done [11:16:20]ExternCall_PrintAddStr [11:16:20]wPrintStart [11:16:20]Write to MH i2c: 01 00 00 34 29 5D [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 34 29 00 00 00 00 00 FF 0F 72 [11:16:20]RasterBufferAndPrint [11:16:20]line Счет N : (1)411638 [11:16:20]line ИНН: 02508201610067 [11:16:20]line Контрольно-Кассовый Чек [11:16:20]line ПРОДАЖА [11:16:20]line ТРК (МРК, ГНК) : 43 [11:16:20]line Товар: 2710124500 [11:16:20]line Аи-95-К-5 [11:16:20]line 6.960 * 71.90 [11:16:20]line = 500.42 [11:16:20]line НДС 12% НСП 1% [11:16:20]line > о реализуемом товаре [11:16:20]line ОКРУГЛЕНИЕ: -0.42 [11:16:20]line ИТОГО: 500.00 [11:16:20]line Внесено: 500.00 [11:16:20]line СДАЧА: 0.00 [11:16:20]line НСП 1% : 4.43 [11:16:20]line НДС 12% : 53.14 [11:16:20]line Наличными: 500.00 [11:16:20]line Безнал.: 0.00 [11:16:20]line Место: АЗС № 92 "Партнер Нефть" [11:16:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:16:20]line СНО: Общий режим [11:16:20]line Чек 92 17.02.2025 11:16 [11:16:20]line Смена: 644 ФФД: 1.0 [11:16:20]line ЗНМ: 0300000118 [11:16:20]line РНМ: 0000000000091857 [11:16:20]line Версия ККМ: 001 [11:16:20]line ФМ: 0000000000871826 [11:16:20]line ФД: 186505 [11:16:20]line ФПД: 152736135873436 [11:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111623&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186505&fm=152736135873436&tin=02508201610067®Number=0000000000091857&sum=50000 [11:16:21]OFD Sender: Processing packet 186505 [packets to send 49, broken 48] [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00186505 [11:16:21]OFD Sender: To server: pG, [11:16:21]CommunicateWithHost lk.salyk.kg:30040 [11:16:21]ConnectInit lk.salyk.kg [11:16:21]written 0, free lines is 4095 [11:16:21]Connected sock=10 [11:16:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 06 80 07 01 5F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 87 1A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D8 02 00 35 04 06 00 8A E9 A7 1F 83 9C ED 8D B3 8A 40 5C 5E 10 [11:16:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7B CE 47 00 49 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 89 D8 02 00 F4 03 04 00 E1 C0 B2 67 B6 04 01 00 00 7B 27 E2 D4 05 33 D9 F1 [11:16:21]CommunicateWithHost err = 0 [11:16:21]CheckOFDResponse [11:16:21]1017 (14) - 77093643461234 [11:16:21]1041 (16) - 0000000000871826 [11:16:21]1040 (4) - 186505 [11:16:21]1012 (4) - 17.02.2025 04:53 [11:16:21]1206 (1) - 0 [11:16:21]OFD Sender: Remove packet 186505 [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00186505 [11:16:21]NVStorageDeleteData [11:16:21]Write to MH i2c: 01 00 00 5F 29 88 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 07 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: 01 07 00 5F 29 00 00 00 00 00 EF 0C 8A [11:16:21]RasterBufferAndPrint [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]line [11:16:21]written 0, free lines is 3317 [11:16:21]MH_Cut [11:16:21]Write to MH i2c: D1 01 00 66 29 01 61 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 01 00 [11:16:21]MH_I2C_Read... [11:16:21]Read from MH i2c: D1 01 00 66 29 00 60 [11:16:21]Write to MH i2c: 01 00 00 67 29 90 [11:16:21]Write i2c OK [11:16:21]MH_I2C_Read... [11:16:22]OFD Sender: No OFD packet to send [11:16:22]*** Cut start [11:16:22]*** Partial cut [11:16:22]*** CUTSNS_PIN = 1 [11:16:22]*** CUTSNS_PIN = 0 [11:16:22]*** Brake cut motor [11:16:23]Read from MH i2c: 01 [11:16:23]MH_I2C_Read... [11:16:23]*** Stop cut motor [11:16:23]*** Cut end [11:16:23]Read from MH i2c: 01 07 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: 01 07 00 67 29 00 00 00 00 00 FF 0F A5 [11:16:23]process_action close_receipt done [11:16:23]requested_data is exist [11:16:23]produce_requested_data [11:16:23]requested_item fm.sn is exist - process it [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 11 00 00 [11:16:23]Write to MH i2c: E2 08 00 68 29 80 11 00 00 00 00 00 00 0B [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 17 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 17 00 68 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [11:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:16:23]wFMCommunicate OK [11:16:23]requested_item fd.num is exist - process it [11:16:23]SAM_PROTO_GetFieldsCounters [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 13 00 00 [11:16:23]Write to MH i2c: E2 08 00 69 29 80 13 00 00 00 00 00 00 0E [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 62 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 62 00 69 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [11:16:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 89 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:23]wFMCommunicate OK [11:16:23]SAM_PROTO_GetFieldsCounters done [11:16:23]requested_item shift.num is exist - process it [11:16:23]requested_item shift.opened is exist - process it [11:16:23]req_shift_opened [11:16:23]FM_GetShiftState [11:16:23]SAM_PROTO_GetShiftState [11:16:23]wFMCommunicate request_size=4 [11:16:23]MH_SAM_APDU [11:16:23]CAPDU: 80 13 01 00 [11:16:23]Write to MH i2c: E2 08 00 6A 29 80 13 01 00 00 00 00 00 10 [11:16:23]Write i2c OK [11:16:23]MH_I2C_Read... [11:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:23]Read from MH i2c: E2 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 [11:16:23]MH_I2C_Read... [11:16:23]Read from MH i2c: E2 0E 00 6A 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 34 [11:16:23]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:16:23]wFMCommunicate OK [11:16:23]SAM_PROTO_GetShiftState done [11:16:23]FM_GetShiftState done [11:16:23]req_shift_opened done [11:16:23]requested_item shift.open_date is exist - process it [11:16:23]req_shift_open_date [11:16:23]req_shift_open_date done [11:16:23]produce_requested_data done [11:16:23]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186505,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:16:23]process_action_free close_receipt [11:16:23]json_value_free [11:16:23]json_value_free done [11:16:23]process_json_proto returns [11:16:23]Send response to host [11:16:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186505,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:16:23]free response buf [11:16:23]execute_script done [11:16:23]execute_script returns [11:16:23]free content buf [11:16:23]Sock 8.Close socket [11:16:23]Sock 8.Thread stoped [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:21]accept exits with 9 [11:19:21]New connection [11:19:21]New thread 3067358564 created [11:19:21]Thread 3067501924 joined [11:19:21]Waiting for new connection... [11:19:21] Sock 9.Parse request [11:19:21]Sock 9.Check first char [11:19:21]Sock 9.First char is OK [11:19:21]request: POST /json_proto HTTP/1.0 [11:19:21]Method: POST [11:19:21]URL: /json_proto [11:19:21]Method is POST - this is cgi request [11:19:21]url: /json_proto [11:19:21]query_string will be loaded in cgi processing [11:19:21]execute_cgi json_proto POST (null) [11:19:21]execute_cgi path=json_proto method=POST [11:19:21]POST find Content-Length [11:19:21]Host: 172.17.46.131:8080 [11:19:21]Content-Length: 792 [11:19:21]Content-Type: application/json [11:19:21] [11:19:21]POST finish read [11:19:21]Found Content-Length = 792 [11:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:21]execute_script... [11:19:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03821", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:21]POST & json_proto [11:19:21]process_json_proto [11:19:21]json parsed OK: [11:19:21]protocol is kg_v1.0 [11:19:21]action value=close_receipt [11:19:21]process_action close_receipt [11:19:21]cmd_close_receipt [11:19:21]MH_GetDate [11:19:21]Write to MH i2c: F0 00 00 6B 29 83 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: F0 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: F0 09 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: F0 09 00 6B 29 00 3D 1B B3 67 7E 41 4F 65 71 [11:19:21]GetLastDocTimeStamp 1739790983 [11:19:21]current date 1739791165 [11:19:21]FM_GetShiftState [11:19:21]SAM_PROTO_GetShiftState [11:19:21]wFMCommunicate request_size=4 [11:19:21]MH_SAM_APDU [11:19:21]CAPDU: 80 13 01 00 [11:19:21]Write to MH i2c: E2 08 00 6C 29 80 13 01 00 00 00 00 00 12 [11:19:21]Write i2c OK [11:19:21]MH_I2C_Read... [11:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:21]Read from MH i2c: E2 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0E 00 [11:19:21]MH_I2C_Read... [11:19:21]Read from MH i2c: E2 0E 00 6C 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 36 [11:19:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:19:21]wFMCommunicate OK [11:19:21]SAM_PROTO_GetShiftState done [11:19:21]FM_GetShiftState done [11:19:21]opened in 1739752571 [11:19:21]opened+sec_in_day 1739838971 [11:19:21]quantity*price = 0 [11:19:21]sum+1 = 1 [11:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 93 17.02.2025 11:19 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 03821 ФМ: 0000000000871826 ФД: 186506 ФПД: 44711683127589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111925&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186506&fm=44711683127589&tin=02508201610067®Number=0000000000091857&sum=0 [11:19:22]StoreToDocumentArchive [11:19:22]shift 644 fd 186506 [11:19:22]save to /storage/0644/doc_00186506 [11:19:22]save last doc name /storage/0644/doc_00186506 to /storage/kkm_last_doc_name [11:19:22]save OK [11:19:22]Clear old archive folders... [11:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:22]tlvbuf is 0200EB50 [11:19:22]SAM_PROTO_ClearQueue [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 09 00 00 [11:19:22]Write to MH i2c: E2 08 00 79 29 80 09 00 00 00 00 00 00 14 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 79 29 00 90 00 16 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]SAM_PROTO_ClearQueue done [11:19:22]KKMCreateOFDPacket [11:19:22]OFDProtocolAddRootSTLVToBuf [11:19:22]FM_MakeSignedData [11:19:22]FM_MakeSignedData [11:19:22]SAM_PROTO_SignData [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 01 02 [11:19:22]Write to MH i2c: E2 08 00 7A 29 80 0D 01 02 00 00 00 00 1C [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 7A 29 00 90 00 17 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]wFMCommunicate request_size=255 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5D 00 00 00 F4 03 04 00 3D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D8 02 00 35 04 06 00 28 [11:19:22]Write to MH i2c: E2 02 01 7B 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5D 00 00 00 F4 03 04 00 3D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D8 02 00 35 04 06 00 28 00 00 40 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]OFD Sender: No OFD packet to send [11:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 7B 29 00 90 00 18 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]wFMCommunicate request_size=10 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 02 02 05 AA 3F FD 79 25 [11:19:22]Write to MH i2c: E2 0D 00 7C 29 80 0D 02 02 05 00 AA 3F FD 79 25 00 00 AD [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 03 00 7C 29 00 90 00 19 [11:19:22]RAPDU: 90 00 [11:19:22]wFMCommunicate OK [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 0D 03 02 [11:19:22]Write to MH i2c: E2 08 00 7D 29 80 0D 03 02 00 00 00 00 21 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0B 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0B 00 7D 29 00 E5 00 0B 18 F6 BC 3F E7 90 00 02 [11:19:22]RAPDU: E5 00 0B 18 F6 BC 3F E7 90 00 [11:19:22]wFMCommunicate OK [11:19:22]SAM_PROTO_SignData done [11:19:22]FM_MakeSignedData done [11:19:22]CreateOFDProtocolMessage [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 11 00 00 [11:19:22]Write to MH i2c: E2 08 00 7E 29 80 11 00 00 00 00 00 00 21 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 17 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 17 00 7E 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [11:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:19:22]wFMCommunicate OK [11:19:22]CreateOFDProtocolMessage done [11:19:22]OFDSenderStorePacket 186506 [11:19:22]StoreOFDPacket docnum=186506 [11:19:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BF F6 07 01 C6 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5D 00 00 00 F4 03 04 00 3D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D8 02 00 35 04 06 00 28 AA 3F FD 79 25 E5 00 0B 18 F6 BC 3F E7 [11:19:22]CheckFolder [11:19:22]dirname=/storage/ofd_packets [11:19:22]CheckFolder done [11:19:22]ProducePacketName [11:19:22]name=ofd_packets/00186506 [11:19:22]NVStorageSaveData ofd_packets/00186506 [11:19:22]File name is /storage/ofd_packets/00186506 [11:19:22]Write 301 bytes [11:19:22]NVStorageSaveData done [11:19:22]OFDSenderStorePacket done [11:19:22]KKMCreateOFDPacket done [11:19:22]NVStorageSaveData kkm_last_timestamp [11:19:22]File name is /storage/kkm_last_timestamp [11:19:22]Write 4 bytes [11:19:22]NVStorageSaveData done [11:19:22]ExternCall_PrintAddStr [11:19:22]wPrintStart [11:19:22]Write to MH i2c: 01 00 00 7F 29 A8 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: 01 07 00 7F 29 00 00 00 00 00 FF 0F BD [11:19:22]RasterBufferAndPrint [11:19:22]line Счет N : (1)411640 [11:19:22]line ИНН: 02508201610067 [11:19:22]line Контрольно-Кассовый Чек [11:19:22]line ПРОДАЖА [11:19:22]line ТРК (МРК, ГНК) : 22 [11:19:22]line Товар: 2710124130 [11:19:22]line Аи-92-К-2 [11:19:22]line 10.000 * 0.00 [11:19:22]line = 0.00 [11:19:22]line НДС 12% НСП 1% [11:19:22]line > о реализуемом товаре [11:19:22]line ИТОГО: 0.00 [11:19:22]line НСП 1% : 0.00 [11:19:22]line НДС 12% : 0.00 [11:19:22]line Наличными: 0.00 [11:19:22]line Безнал.: 0.00 [11:19:22]line Место: АЗС № 92 "Партнер Нефть" [11:19:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:19:22]line СНО: Общий режим [11:19:22]line Чек 93 17.02.2025 11:19 [11:19:22]line Смена: 644 ФФД: 1.0 [11:19:22]line ЗНМ: 0300000118 [11:19:22]line РНМ: 0000000000091857 [11:19:22]line Версия ККМ: 001 [11:19:22]line Талоны: Топливная Карта [11:19:22]line 03821 [11:19:22]line ФМ: 0000000000871826 [11:19:22]line ФД: 186506 [11:19:22]line ФПД: 44711683127589 [11:19:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111925&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186506&fm=44711683127589&tin=02508201610067®Number=0000000000091857&sum=0 [11:19:23]written 0, free lines is 4095 [11:19:23]OFD Sender: Processing packet 186506 [packets to send 49, broken 48] [11:19:23]ProducePacketName [11:19:23]name=ofd_packets/00186506 [11:19:23]OFD Sender: To server: pG, [11:19:23]CommunicateWithHost lk.salyk.kg:30040 [11:19:23]ConnectInit lk.salyk.kg [11:19:23]Connected sock=10 [11:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BF F6 07 01 C6 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5D 00 00 00 F4 03 04 00 3D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D8 02 00 35 04 06 00 28 AA 3F FD 79 25 E5 00 0B 18 F6 BC 3F E7 [11:19:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 73 0A 47 00 CD 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8A D8 02 00 F4 03 04 00 97 C1 B2 67 B6 04 01 00 00 35 FF 83 A4 81 EB 2D 48 [11:19:23]CommunicateWithHost err = 0 [11:19:23]CheckOFDResponse [11:19:23]1017 (14) - 77093643461234 [11:19:23]1041 (16) - 0000000000871826 [11:19:23]1040 (4) - 186506 [11:19:23]1012 (4) - 17.02.2025 04:56 [11:19:23]1206 (1) - 0 [11:19:23]OFD Sender: Remove packet 186506 [11:19:23]ProducePacketName [11:19:23]name=ofd_packets/00186506 [11:19:23]NVStorageDeleteData [11:19:23]Write to MH i2c: 01 00 00 A9 29 D2 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 1F 0D 05 [11:19:23]RasterBufferAndPrint [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]line [11:19:23]written 0, free lines is 3366 [11:19:23]MH_Cut [11:19:23]Write to MH i2c: D1 01 00 B0 29 01 AB [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 01 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: D1 01 00 B0 29 00 AA [11:19:23]Write to MH i2c: 01 00 00 B1 29 DA [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]OFD Sender: No OFD packet to send [11:19:24]*** Cut start [11:19:24]*** Partial cut [11:19:24]*** CUTSNS_PIN = 1 [11:19:24]*** CUTSNS_PIN = 0 [11:19:24]*** Brake cut motor [11:19:24]Read from MH i2c: 01 [11:19:24]MH_I2C_Read... [11:19:24]*** Stop cut motor [11:19:24]*** Cut end [11:19:24]Read from MH i2c: 01 07 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 B1 29 00 00 00 00 00 FF 0F EF [11:19:24]process_action close_receipt done [11:19:24]requested_data is exist [11:19:24]produce_requested_data [11:19:24]requested_item fm.sn is exist - process it [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 11 00 00 [11:19:24]Write to MH i2c: E2 08 00 B2 29 80 11 00 00 00 00 00 00 55 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 [11:19:24]MH_I2C_Read... [11:19:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:24]Read from MH i2c: E2 17 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: E2 17 00 B2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A8 [11:19:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:19:24]wFMCommunicate OK [11:19:24]requested_item fd.num is exist - process it [11:19:24]SAM_PROTO_GetFieldsCounters [11:19:24]wFMCommunicate request_size=4 [11:19:24]MH_SAM_APDU [11:19:24]CAPDU: 80 13 00 00 [11:19:24]Write to MH i2c: E2 08 00 B3 29 80 13 00 00 00 00 00 00 58 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:25]Read from MH i2c: E2 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 62 00 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 62 00 B3 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [11:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:25]wFMCommunicate OK [11:19:25]SAM_PROTO_GetFieldsCounters done [11:19:25]requested_item shift.num is exist - process it [11:19:25]requested_item shift.opened is exist - process it [11:19:25]req_shift_opened [11:19:25]FM_GetShiftState [11:19:25]SAM_PROTO_GetShiftState [11:19:25]wFMCommunicate request_size=4 [11:19:25]MH_SAM_APDU [11:19:25]CAPDU: 80 13 01 00 [11:19:25]Write to MH i2c: E2 08 00 B4 29 80 13 01 00 00 00 00 00 5A [11:19:25]Write i2c OK [11:19:25]MH_I2C_Read... [11:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:25]Read from MH i2c: E2 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 0E 00 [11:19:25]MH_I2C_Read... [11:19:25]Read from MH i2c: E2 0E 00 B4 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7E [11:19:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:19:25]wFMCommunicate OK [11:19:25]SAM_PROTO_GetShiftState done [11:19:25]FM_GetShiftState done [11:19:25]req_shift_opened done [11:19:25]requested_item shift.open_date is exist - process it [11:19:25]req_shift_open_date [11:19:25]req_shift_open_date done [11:19:25]produce_requested_data done [11:19:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186506,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:19:25]process_action_free close_receipt [11:19:25]json_value_free [11:19:25]json_value_free done [11:19:25]process_json_proto returns [11:19:25]Send response to host [11:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186506,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:19:25]free response buf [11:19:25]execute_script done [11:19:25]execute_script returns [11:19:25]free content buf [11:19:25]Sock 9.Close socket [11:19:25]Sock 9.Thread stoped [11:19:28]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:37]accept exits with 8 [11:19:37]New connection [11:19:37]New thread 3067501924 created [11:19:37]Thread 3067358564 joined [11:19:37]Waiting for new connection... [11:19:37] Sock 8.Parse request [11:19:37]Sock 8.Check first char [11:19:37]Sock 8.First char is OK [11:19:37]request: POST /json_proto HTTP/1.0 [11:19:37]Method: POST [11:19:37]URL: /json_proto [11:19:37]Method is POST - this is cgi request [11:19:37]url: /json_proto [11:19:37]query_string will be loaded in cgi processing [11:19:37]execute_cgi json_proto POST (null) [11:19:37]execute_cgi path=json_proto method=POST [11:19:37]POST find Content-Length [11:19:37]Host: 172.17.46.131:8080 [11:19:37]Content-Length: 804 [11:19:37]Content-Type: application/json [11:19:37] [11:19:37]POST finish read [11:19:37]Found Content-Length = 804 [11:19:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4785473.4785474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:37]execute_script... [11:19:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4785473.4785474", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:37]POST & json_proto [11:19:37]process_json_proto [11:19:37]json parsed OK: [11:19:37]protocol is kg_v1.0 [11:19:37]action value=close_receipt [11:19:37]process_action close_receipt [11:19:37]cmd_close_receipt [11:19:37]MH_GetDate [11:19:37]Write to MH i2c: F0 00 00 B5 29 CD [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: F0 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: F0 09 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: F0 09 00 B5 29 00 4D 1B B3 67 7E 41 4F 65 CB [11:19:37]GetLastDocTimeStamp 1739791165 [11:19:37]current date 1739791181 [11:19:37]FM_GetShiftState [11:19:37]SAM_PROTO_GetShiftState [11:19:37]wFMCommunicate request_size=4 [11:19:37]MH_SAM_APDU [11:19:37]CAPDU: 80 13 01 00 [11:19:37]Write to MH i2c: E2 08 00 B6 29 80 13 01 00 00 00 00 00 5C [11:19:37]Write i2c OK [11:19:37]MH_I2C_Read... [11:19:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:37]Read from MH i2c: E2 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 0E 00 [11:19:37]MH_I2C_Read... [11:19:37]Read from MH i2c: E2 0E 00 B6 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 80 [11:19:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:19:37]wFMCommunicate OK [11:19:37]SAM_PROTO_GetShiftState done [11:19:37]FM_GetShiftState done [11:19:37]opened in 1739752571 [11:19:37]opened+sec_in_day 1739838971 [11:19:37]quantity*price = 0 [11:19:37]sum+1 = 1 [11:19:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 94 17.02.2025 11:19 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4785473.4785474 ФМ: 0000000000871826 ФД: 186507 ФПД: 13338423409120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186507&fm=13338423409120&tin=02508201610067®Number=0000000000091857&sum=0 [11:19:38]StoreToDocumentArchive [11:19:38]shift 644 fd 186507 [11:19:38]save to /storage/0644/doc_00186507 [11:19:38]save last doc name /storage/0644/doc_00186507 to /storage/kkm_last_doc_name [11:19:38]save OK [11:19:38]Clear old archive folders... [11:19:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:19:38]tlvbuf is 02090300 [11:19:38]SAM_PROTO_ClearQueue [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 09 00 00 [11:19:38]Write to MH i2c: E2 08 00 C3 29 80 09 00 00 00 00 00 00 5E [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 03 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 03 00 C3 29 00 90 00 60 [11:19:38]RAPDU: 90 00 [11:19:38]wFMCommunicate OK [11:19:38]SAM_PROTO_ClearQueue done [11:19:38]KKMCreateOFDPacket [11:19:38]OFDProtocolAddRootSTLVToBuf [11:19:38]FM_MakeSignedData [11:19:38]FM_MakeSignedData [11:19:38]SAM_PROTO_SignData [11:19:38]wFMCommunicate request_size=4 [11:19:38]MH_SAM_APDU [11:19:38]CAPDU: 80 0D 01 02 [11:19:38]Write to MH i2c: E2 08 00 C4 29 80 0D 01 02 00 00 00 00 66 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:38]Read from MH i2c: E2 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 03 00 [11:19:38]MH_I2C_Read... [11:19:38]Read from MH i2c: E2 03 00 C4 29 00 90 00 61 [11:19:38]RAPDU: 90 00 [11:19:38]wFMCommunicate OK [11:19:38]wFMCommunicate request_size=255 [11:19:38]MH_SAM_APDU [11:19:38]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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D8 02 00 35 04 06 00 0C 21 97 FD [11:19:38]Write to MH i2c: E2 02 01 C5 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D8 02 00 35 04 06 00 0C 21 97 FD 00 00 30 [11:19:38]Write i2c OK [11:19:38]MH_I2C_Read... [11:19:39]OFD Sender: No OFD packet to send [11:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 C5 29 00 90 00 62 [11:19:39]RAPDU: 90 00 [11:19:39]wFMCommunicate OK [11:19:39]wFMCommunicate request_size=7 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 0D 02 02 02 39 E0 [11:19:39]Write to MH i2c: E2 0A 00 C6 29 80 0D 02 02 02 00 39 E0 00 00 86 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 03 00 C6 29 00 90 00 63 [11:19:39]RAPDU: 90 00 [11:19:39]wFMCommunicate OK [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 0D 03 02 [11:19:39]Write to MH i2c: E2 08 00 C7 29 80 0D 03 02 00 00 00 00 6B [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0B 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 0B 00 C7 29 00 C6 E0 B2 E3 FE B8 6F 42 90 00 0E [11:19:39]RAPDU: C6 E0 B2 E3 FE B8 6F 42 90 00 [11:19:39]wFMCommunicate OK [11:19:39]SAM_PROTO_SignData done [11:19:39]FM_MakeSignedData done [11:19:39]CreateOFDProtocolMessage [11:19:39]wFMCommunicate request_size=4 [11:19:39]MH_SAM_APDU [11:19:39]CAPDU: 80 11 00 00 [11:19:39]Write to MH i2c: E2 08 00 C8 29 80 11 00 00 00 00 00 00 6B [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:39]Read from MH i2c: E2 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 17 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: E2 17 00 C8 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BE [11:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:19:39]wFMCommunicate OK [11:19:39]CreateOFDProtocolMessage done [11:19:39]OFDSenderStorePacket 186507 [11:19:39]StoreOFDPacket docnum=186507 [11:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B8 A2 04 01 31 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D8 02 00 35 04 06 00 0C 21 97 FD 39 E0 C6 E0 B2 E3 FE B8 6F 42 [11:19:39]CheckFolder [11:19:39]dirname=/storage/ofd_packets [11:19:39]CheckFolder done [11:19:39]ProducePacketName [11:19:39]name=ofd_packets/00186507 [11:19:39]NVStorageSaveData ofd_packets/00186507 [11:19:39]File name is /storage/ofd_packets/00186507 [11:19:39]Write 298 bytes [11:19:39]NVStorageSaveData done [11:19:39]OFDSenderStorePacket done [11:19:39]KKMCreateOFDPacket done [11:19:39]NVStorageSaveData kkm_last_timestamp [11:19:39]File name is /storage/kkm_last_timestamp [11:19:39]Write 4 bytes [11:19:39]NVStorageSaveData done [11:19:39]ExternCall_PrintAddStr [11:19:39]wPrintStart [11:19:39]Write to MH i2c: 01 00 00 C9 29 F2 [11:19:39]Write i2c OK [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: 01 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: 01 07 00 [11:19:39]MH_I2C_Read... [11:19:39]Read from MH i2c: 01 07 00 C9 29 00 00 00 00 00 FF 0F 07 [11:19:39]RasterBufferAndPrint [11:19:39]line Счет N : (1)411639 [11:19:39]line ИНН: 02508201610067 [11:19:39]line Контрольно-Кассовый Чек [11:19:39]line ПРОДАЖА [11:19:39]line ТРК (МРК, ГНК) : 5 [11:19:39]line Товар: 2710194210 [11:19:39]line ДТ-К-5 [11:19:39]line 40.000 * 0.00 [11:19:39]line = 0.00 [11:19:39]line НДС 12% НСП 1% [11:19:39]line > о реализуемом товаре [11:19:39]line ИТОГО: 0.00 [11:19:39]line НСП 1% : 0.00 [11:19:39]line НДС 12% : 0.00 [11:19:39]line Наличными: 0.00 [11:19:39]line Безнал.: 0.00 [11:19:39]line Место: АЗС № 92 "Партнер Нефть" [11:19:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:19:39]line СНО: Общий режим [11:19:39]line Чек 94 17.02.2025 11:19 [11:19:39]line Смена: 644 ФФД: 1.0 [11:19:39]line ЗНМ: 0300000118 [11:19:39]line РНМ: 0000000000091857 [11:19:39]line Версия ККМ: 001 [11:19:39]line Талоны: Топливные Талоны [11:19:39]line 4785473.4785474 [11:19:39]line ФМ: 0000000000871826 [11:19:39]line ФД: 186507 [11:19:39]line ФПД: 13338423409120 [11:19:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T111941&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186507&fm=13338423409120&tin=02508201610067®Number=0000000000091857&sum=0 [11:19:39]OFD Sender: Processing packet 186507 [packets to send 49, broken 48] [11:19:39]ProducePacketName [11:19:39]name=ofd_packets/00186507 [11:19:39]OFD Sender: To server: pG, [11:19:39]CommunicateWithHost lk.salyk.kg:30040 [11:19:39]ConnectInit lk.salyk.kg [11:19:39]written 0, free lines is 4095 [11:19:39]Connected sock=10 [11:19:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B8 A2 04 01 31 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4D 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D8 02 00 35 04 06 00 0C 21 97 FD 39 E0 C6 E0 B2 E3 FE B8 6F 42 [11:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 46 DB 47 00 FE 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8B D8 02 00 F4 03 04 00 A8 C1 B2 67 B6 04 01 00 00 24 F5 1A 56 20 B0 FE 63 [11:19:40]CommunicateWithHost err = 0 [11:19:40]CheckOFDResponse [11:19:40]1017 (14) - 77093643461234 [11:19:40]1041 (16) - 0000000000871826 [11:19:40]1040 (4) - 186507 [11:19:40]1012 (4) - 17.02.2025 04:57 [11:19:40]1206 (1) - 0 [11:19:40]OFD Sender: Remove packet 186507 [11:19:40]ProducePacketName [11:19:40]name=ofd_packets/00186507 [11:19:40]NVStorageDeleteData [11:19:40]Write to MH i2c: 01 00 00 F3 29 1C [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: 01 07 00 F3 29 00 00 00 00 00 08 0D 38 [11:19:40]RasterBufferAndPrint [11:19:40]line [11:19:40]line [11:19:40]line [11:19:40]line [11:19:40]line [11:19:40]written 0, free lines is 3343 [11:19:40]MH_Cut [11:19:40]Write to MH i2c: D1 01 00 FA 29 01 F5 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D1 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D1 01 00 [11:19:40]MH_I2C_Read... [11:19:40]Read from MH i2c: D1 01 00 FA 29 00 F4 [11:19:40]Write to MH i2c: 01 00 00 FB 29 24 [11:19:40]Write i2c OK [11:19:40]MH_I2C_Read... [11:19:40]OFD Sender: No OFD packet to send [11:19:40]*** Cut start [11:19:40]*** Partial cut [11:19:40]*** CUTSNS_PIN = 1 [11:19:40]*** CUTSNS_PIN = 0 [11:19:41]*** Brake cut motor [11:19:41]Read from MH i2c: 01 [11:19:41]MH_I2C_Read... [11:19:41]*** Stop cut motor [11:19:41]*** Cut end [11:19:41]Read from MH i2c: 01 07 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [11:19:41]process_action close_receipt done [11:19:41]requested_data is exist [11:19:41]produce_requested_data [11:19:41]requested_item fm.sn is exist - process it [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 11 00 00 [11:19:41]Write to MH i2c: E2 08 00 FC 29 80 11 00 00 00 00 00 00 9F [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 17 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 17 00 FC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [11:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:19:41]wFMCommunicate OK [11:19:41]requested_item fd.num is exist - process it [11:19:41]SAM_PROTO_GetFieldsCounters [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 13 00 00 [11:19:41]Write to MH i2c: E2 08 00 FD 29 80 13 00 00 00 00 00 00 A2 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 62 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 62 00 FD 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [11:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:41]wFMCommunicate OK [11:19:41]SAM_PROTO_GetFieldsCounters done [11:19:41]requested_item shift.num is exist - process it [11:19:41]requested_item shift.opened is exist - process it [11:19:41]req_shift_opened [11:19:41]FM_GetShiftState [11:19:41]SAM_PROTO_GetShiftState [11:19:41]wFMCommunicate request_size=4 [11:19:41]MH_SAM_APDU [11:19:41]CAPDU: 80 13 01 00 [11:19:41]Write to MH i2c: E2 08 00 FE 29 80 13 01 00 00 00 00 00 A4 [11:19:41]Write i2c OK [11:19:41]MH_I2C_Read... [11:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:41]Read from MH i2c: E2 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 0E 00 [11:19:41]MH_I2C_Read... [11:19:41]Read from MH i2c: E2 0E 00 FE 29 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C8 [11:19:41]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:19:41]wFMCommunicate OK [11:19:41]SAM_PROTO_GetShiftState done [11:19:41]FM_GetShiftState done [11:19:41]req_shift_opened done [11:19:41]requested_item shift.open_date is exist - process it [11:19:41]req_shift_open_date [11:19:41]req_shift_open_date done [11:19:41]produce_requested_data done [11:19:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186507,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:19:41]process_action_free close_receipt [11:19:41]json_value_free [11:19:41]json_value_free done [11:19:41]process_json_proto returns [11:19:41]Send response to host [11:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186507,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:19:41]free response buf [11:19:41]execute_script done [11:19:41]execute_script returns [11:19:41]free content buf [11:19:41]Sock 8.Close socket [11:19:41]Sock 8.Thread stoped [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:26]accept exits with 9 [11:21:26]New connection [11:21:26]New thread 3067358564 created [11:21:26]Thread 3067501924 joined [11:21:26]Waiting for new connection... [11:21:26] Sock 9.Parse request [11:21:26]Sock 9.Check first char [11:21:26]Sock 9.First char is OK [11:21:26]request: POST /json_proto HTTP/1.0 [11:21:26]Method: POST [11:21:26]URL: /json_proto [11:21:26]Method is POST - this is cgi request [11:21:26]url: /json_proto [11:21:26]query_string will be loaded in cgi processing [11:21:26]execute_cgi json_proto POST (null) [11:21:26]execute_cgi path=json_proto method=POST [11:21:26]POST find Content-Length [11:21:26]Host: 172.17.46.131:8080 [11:21:26]Content-Length: 682 [11:21:26]Content-Type: application/json [11:21:26] [11:21:26]POST finish read [11:21:26]Found Content-Length = 682 [11:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.020, "sum" : 1092.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1092.00, "payments": [ { "type": 0, "sum" : 1092.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:26]execute_script... [11:21:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 17.020, "sum" : 1092.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1092.00, "payments": [ { "type": 0, "sum" : 1092.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:26]POST & json_proto [11:21:26]process_json_proto [11:21:26]json parsed OK: [11:21:26]protocol is kg_v1.0 [11:21:26]action value=close_receipt [11:21:26]process_action close_receipt [11:21:26]cmd_close_receipt [11:21:26]MH_GetDate [11:21:26]Write to MH i2c: F0 00 00 FF 29 17 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: F0 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: F0 09 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: F0 09 00 FF 29 00 BA 1B B3 67 7E 41 4F 65 82 [11:21:26]GetLastDocTimeStamp 1739791181 [11:21:26]current date 1739791290 [11:21:26]FM_GetShiftState [11:21:26]SAM_PROTO_GetShiftState [11:21:26]wFMCommunicate request_size=4 [11:21:26]MH_SAM_APDU [11:21:26]CAPDU: 80 13 01 00 [11:21:26]Write to MH i2c: E2 08 00 00 2A 80 13 01 00 00 00 00 00 A7 [11:21:26]Write i2c OK [11:21:26]MH_I2C_Read... [11:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:26]Read from MH i2c: E2 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 0E 00 [11:21:26]MH_I2C_Read... [11:21:26]Read from MH i2c: E2 0E 00 00 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CB [11:21:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:21:26]wFMCommunicate OK [11:21:26]SAM_PROTO_GetShiftState done [11:21:26]FM_GetShiftState done [11:21:26]opened in 1739752571 [11:21:26]opened+sec_in_day 1739838971 [11:21:26]quantity*price = 109268 [11:21:26]sum+1 = 109269 [11:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1092.00 Внесено: 1200.00 СДАЧА: 108.00 НСП 1% : 9.67 НДС 12% : 116.04 Наличными: 1092.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 95 17.02.2025 11:21 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186508 ФПД: 102888586452827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112130&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186508&fm=102888586452827&tin=02508201610067®Number=0000000000091857&sum=109200 [11:21:27]StoreToDocumentArchive [11:21:27]shift 644 fd 186508 [11:21:27]save to /storage/0644/doc_00186508 [11:21:27]save last doc name /storage/0644/doc_00186508 to /storage/kkm_last_doc_name [11:21:27]save OK [11:21:27]Clear old archive folders... [11:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:21:27]tlvbuf is 02090BB0 [11:21:27]SAM_PROTO_ClearQueue [11:21:27]wFMCommunicate request_size=4 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 09 00 00 [11:21:27]Write to MH i2c: E2 08 00 0D 2A 80 09 00 00 00 00 00 00 A9 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 0D 2A 00 90 00 AB [11:21:27]RAPDU: 90 00 [11:21:27]wFMCommunicate OK [11:21:27]SAM_PROTO_ClearQueue done [11:21:27]KKMCreateOFDPacket [11:21:27]OFDProtocolAddRootSTLVToBuf [11:21:27]FM_MakeSignedData [11:21:27]FM_MakeSignedData [11:21:27]SAM_PROTO_SignData [11:21:27]wFMCommunicate request_size=4 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 0D 01 02 [11:21:27]Write to MH i2c: E2 08 00 0E 2A 80 0D 01 02 00 00 00 00 B1 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 0E 2A 00 90 00 AC [11:21:27]RAPDU: 90 00 [11:21:27]wFMCommunicate OK [11:21:27]wFMCommunicate request_size=255 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 42 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D4 AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 2D 00 00 00 00 07 04 06 00 90 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BA 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D8 02 00 35 04 06 00 5D [11:21:27]Write to MH i2c: E2 02 01 0F 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 42 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D4 AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 2D 00 00 00 00 07 04 06 00 90 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BA 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D8 02 00 35 04 06 00 5D 00 00 7F [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 0F 2A 00 90 00 AD [11:21:27]RAPDU: 90 00 [11:21:27]wFMCommunicate OK [11:21:27]wFMCommunicate request_size=10 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 0D 02 02 05 93 9D A5 9F 5B [11:21:27]Write to MH i2c: E2 0D 00 10 2A 80 0D 02 02 05 00 93 9D A5 9F 5B 00 00 8D [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:27]Read from MH i2c: E2 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 [11:21:27]MH_I2C_Read... [11:21:27]Read from MH i2c: E2 03 00 10 2A 00 90 00 AE [11:21:27]RAPDU: 90 00 [11:21:27]wFMCommunicate OK [11:21:27]wFMCommunicate request_size=4 [11:21:27]MH_SAM_APDU [11:21:27]CAPDU: 80 0D 03 02 [11:21:27]Write to MH i2c: E2 08 00 11 2A 80 0D 03 02 00 00 00 00 B6 [11:21:27]Write i2c OK [11:21:27]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 0B 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 0B 00 11 2A 00 A7 E0 1D 62 48 FA 81 0F 90 00 8F [11:21:28]RAPDU: A7 E0 1D 62 48 FA 81 0F 90 00 [11:21:28]wFMCommunicate OK [11:21:28]SAM_PROTO_SignData done [11:21:28]FM_MakeSignedData done [11:21:28]CreateOFDProtocolMessage [11:21:28]wFMCommunicate request_size=4 [11:21:28]MH_SAM_APDU [11:21:28]CAPDU: 80 11 00 00 [11:21:28]Write to MH i2c: E2 08 00 12 2A 80 11 00 00 00 00 00 00 B6 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:28]Read from MH i2c: E2 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 17 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: E2 17 00 12 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 09 [11:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:21:28]wFMCommunicate OK [11:21:28]CreateOFDProtocolMessage done [11:21:28]OFDSenderStorePacket 186508 [11:21:28]StoreOFDPacket docnum=186508 [11:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 93 89 07 01 10 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 42 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D4 AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 2D 00 00 00 00 07 04 06 00 90 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BA 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D8 02 00 35 04 06 00 5D 93 9D A5 9F 5B A7 E0 1D 62 48 FA 81 0F [11:21:28]CheckFolder [11:21:28]dirname=/storage/ofd_packets [11:21:28]CheckFolder done [11:21:28]ProducePacketName [11:21:28]name=ofd_packets/00186508 [11:21:28]NVStorageSaveData ofd_packets/00186508 [11:21:28]File name is /storage/ofd_packets/00186508 [11:21:28]Write 301 bytes [11:21:28]NVStorageSaveData done [11:21:28]OFDSenderStorePacket done [11:21:28]KKMCreateOFDPacket done [11:21:28]NVStorageSaveData kkm_last_timestamp [11:21:28]File name is /storage/kkm_last_timestamp [11:21:28]Write 4 bytes [11:21:28]NVStorageSaveData done [11:21:28]ExternCall_PrintAddStr [11:21:28]wPrintStart [11:21:28]Write to MH i2c: 01 00 00 13 2A 3D [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 07 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 07 00 13 2A 00 00 00 00 00 FF 0F 52 [11:21:28]RasterBufferAndPrint [11:21:28]line Счет N : (1)411641 [11:21:28]line ИНН: 02508201610067 [11:21:28]line Контрольно-Кассовый Чек [11:21:28]line ПРОДАЖА [11:21:28]line ТРК (МРК, ГНК) : 42 [11:21:28]line Товар: 2710124130 [11:21:28]line Аи-92-К-2 [11:21:28]line 17.020 * 64.20 [11:21:28]line = 1092.68 [11:21:28]line НДС 12% НСП 1% [11:21:28]line > о реализуемом товаре [11:21:28]line ОКРУГЛЕНИЕ: -0.68 [11:21:28]line ИТОГО: 1092.00 [11:21:28]line Внесено: 1200.00 [11:21:28]line СДАЧА: 108.00 [11:21:28]line НСП 1% : 9.67 [11:21:28]line НДС 12% : 116.04 [11:21:28]line Наличными: 1092.00 [11:21:28]line Безнал.: 0.00 [11:21:28]line Место: АЗС № 92 "Партнер Нефть" [11:21:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:21:28]line СНО: Общий режим [11:21:28]line Чек 95 17.02.2025 11:21 [11:21:28]line Смена: 644 ФФД: 1.0 [11:21:28]line ЗНМ: 0300000118 [11:21:28]line РНМ: 0000000000091857 [11:21:28]line Версия ККМ: 001 [11:21:28]line ФМ: 0000000000871826 [11:21:28]line ФД: 186508 [11:21:28]line ФПД: 102888586452827 [11:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112130&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186508&fm=102888586452827&tin=02508201610067®Number=0000000000091857&sum=109200 [11:21:28]OFD Sender: Processing packet 186508 [packets to send 49, broken 48] [11:21:28]ProducePacketName [11:21:28]name=ofd_packets/00186508 [11:21:28]OFD Sender: To server: pG, [11:21:28]CommunicateWithHost lk.salyk.kg:30040 [11:21:28]ConnectInit lk.salyk.kg [11:21:28]written 0, free lines is 4095 [11:21:28]Connected sock=10 [11:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 93 89 07 01 10 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 7C 42 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 D4 AA 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 AA 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 2D 00 00 00 00 07 04 06 00 90 AA 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 BA 1B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D8 02 00 35 04 06 00 5D 93 9D A5 9F 5B A7 E0 1D 62 48 FA 81 0F [11:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E0 D7 47 00 2D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8C D8 02 00 F4 03 04 00 15 C2 B2 67 B6 04 01 00 00 CD 20 C2 1D 69 BE 82 67 [11:21:28]CommunicateWithHost err = 0 [11:21:28]CheckOFDResponse [11:21:28]1017 (14) - 77093643461234 [11:21:28]1041 (16) - 0000000000871826 [11:21:28]1040 (4) - 186508 [11:21:28]1012 (4) - 17.02.2025 04:59 [11:21:28]1206 (1) - 0 [11:21:28]OFD Sender: Remove packet 186508 [11:21:28]ProducePacketName [11:21:28]name=ofd_packets/00186508 [11:21:28]NVStorageDeleteData [11:21:28]Write to MH i2c: 01 00 00 3E 2A 68 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 07 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: 01 07 00 3E 2A 00 00 00 00 00 FF 0C 7A [11:21:28]RasterBufferAndPrint [11:21:28]line [11:21:28]line [11:21:28]line [11:21:28]line [11:21:28]line [11:21:28]written 0, free lines is 3336 [11:21:28]MH_Cut [11:21:28]Write to MH i2c: D1 01 00 45 2A 01 41 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: D1 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: D1 01 00 [11:21:28]MH_I2C_Read... [11:21:28]Read from MH i2c: D1 01 00 45 2A 00 40 [11:21:28]Write to MH i2c: 01 00 00 46 2A 70 [11:21:28]Write i2c OK [11:21:28]MH_I2C_Read... [11:21:29]OFD Sender: No OFD packet to send [11:21:29]*** Cut start [11:21:29]*** Partial cut [11:21:29]*** CUTSNS_PIN = 1 [11:21:29]*** CUTSNS_PIN = 0 [11:21:29]*** Brake cut motor [11:21:30]Read from MH i2c: 01 [11:21:30]MH_I2C_Read... [11:21:30]*** Stop cut motor [11:21:30]*** Cut end [11:21:30]Read from MH i2c: 01 07 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: 01 07 00 46 2A 00 00 00 00 00 FF 0F 85 [11:21:30]process_action close_receipt done [11:21:30]requested_data is exist [11:21:30]produce_requested_data [11:21:30]requested_item fm.sn is exist - process it [11:21:30]wFMCommunicate request_size=4 [11:21:30]MH_SAM_APDU [11:21:30]CAPDU: 80 11 00 00 [11:21:30]Write to MH i2c: E2 08 00 47 2A 80 11 00 00 00 00 00 00 EB [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 [11:21:30]MH_I2C_Read... [11:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:30]Read from MH i2c: E2 17 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 17 00 47 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [11:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:21:30]wFMCommunicate OK [11:21:30]requested_item fd.num is exist - process it [11:21:30]SAM_PROTO_GetFieldsCounters [11:21:30]wFMCommunicate request_size=4 [11:21:30]MH_SAM_APDU [11:21:30]CAPDU: 80 13 00 00 [11:21:30]Write to MH i2c: E2 08 00 48 2A 80 13 00 00 00 00 00 00 EE [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:30]Read from MH i2c: E2 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 62 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 62 00 48 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [11:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:21:30]wFMCommunicate OK [11:21:30]SAM_PROTO_GetFieldsCounters done [11:21:30]requested_item shift.num is exist - process it [11:21:30]requested_item shift.opened is exist - process it [11:21:30]req_shift_opened [11:21:30]FM_GetShiftState [11:21:30]SAM_PROTO_GetShiftState [11:21:30]wFMCommunicate request_size=4 [11:21:30]MH_SAM_APDU [11:21:30]CAPDU: 80 13 01 00 [11:21:30]Write to MH i2c: E2 08 00 49 2A 80 13 01 00 00 00 00 00 F0 [11:21:30]Write i2c OK [11:21:30]MH_I2C_Read... [11:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:30]Read from MH i2c: E2 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 0E 00 [11:21:30]MH_I2C_Read... [11:21:30]Read from MH i2c: E2 0E 00 49 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 14 [11:21:30]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:21:30]wFMCommunicate OK [11:21:30]SAM_PROTO_GetShiftState done [11:21:30]FM_GetShiftState done [11:21:30]req_shift_opened done [11:21:30]requested_item shift.open_date is exist - process it [11:21:30]req_shift_open_date [11:21:30]req_shift_open_date done [11:21:30]produce_requested_data done [11:21:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186508,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:21:30]process_action_free close_receipt [11:21:30]json_value_free [11:21:30]json_value_free done [11:21:30]process_json_proto returns [11:21:30]Send response to host [11:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186508,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:21:30]free response buf [11:21:30]execute_script done [11:21:30]execute_script returns [11:21:30]free content buf [11:21:30]Sock 9.Close socket [11:21:30]Sock 9.Thread stoped [11:21:34]OFD Sender: No OFD packet to send [11:21:39]OFD Sender: No OFD packet to send [11:21:44]OFD Sender: No OFD packet to send [11:21:49]OFD Sender: No OFD packet to send [11:21:54]OFD Sender: No OFD packet to send [11:21:59]OFD Sender: No OFD packet to send [11:22:04]OFD Sender: No OFD packet to send [11:22:09]OFD Sender: No OFD packet to send [11:22:14]OFD Sender: No OFD packet to send [11:22:19]OFD Sender: No OFD packet to send [11:22:24]OFD Sender: No OFD packet to send [11:22:29]OFD Sender: No OFD packet to send [11:22:34]OFD Sender: No OFD packet to send [11:22:39]OFD Sender: No OFD packet to send [11:22:44]OFD Sender: No OFD packet to send [11:22:49]OFD Sender: No OFD packet to send [11:22:54]OFD Sender: No OFD packet to send [11:22:59]OFD Sender: No OFD packet to send [11:23:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:26]accept exits with 8 [11:23:26]New connection [11:23:26]New thread 3067501924 created [11:23:26]Thread 3067358564 joined [11:23:26]Waiting for new connection... [11:23:26] Sock 8.Parse request [11:23:26]Sock 8.Check first char [11:23:26]Sock 8.First char is OK [11:23:26]request: POST /json_proto HTTP/1.0 [11:23:26]Method: POST [11:23:26]URL: /json_proto [11:23:26]Method is POST - this is cgi request [11:23:26]url: /json_proto [11:23:26]query_string will be loaded in cgi processing [11:23:26]execute_cgi json_proto POST (null) [11:23:26]execute_cgi path=json_proto method=POST [11:23:26]POST find Content-Length [11:23:26]Host: 172.17.46.131:8080 [11:23:26]Content-Length: 677 [11:23:26]Content-Type: application/json [11:23:26] [11:23:26]POST finish read [11:23:26]Found Content-Length = 677 [11:23:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:26]execute_script... [11:23: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)411642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:26]POST & json_proto [11:23:26]process_json_proto [11:23:26]json parsed OK: [11:23:26]protocol is kg_v1.0 [11:23:26]action value=close_receipt [11:23:26]process_action close_receipt [11:23:26]cmd_close_receipt [11:23:26]MH_GetDate [11:23:26]Write to MH i2c: F0 00 00 4A 2A 63 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: F0 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: F0 09 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: F0 09 00 4A 2A 00 32 1C B3 67 7E 41 4F 65 47 [11:23:26]GetLastDocTimeStamp 1739791290 [11:23:26]current date 1739791410 [11:23:26]FM_GetShiftState [11:23:26]SAM_PROTO_GetShiftState [11:23:26]wFMCommunicate request_size=4 [11:23:26]MH_SAM_APDU [11:23:26]CAPDU: 80 13 01 00 [11:23:26]Write to MH i2c: E2 08 00 4B 2A 80 13 01 00 00 00 00 00 F2 [11:23:26]Write i2c OK [11:23:26]MH_I2C_Read... [11:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:26]Read from MH i2c: E2 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0E 00 [11:23:26]MH_I2C_Read... [11:23:26]Read from MH i2c: E2 0E 00 4B 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 16 [11:23:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:23:26]wFMCommunicate OK [11:23:26]SAM_PROTO_GetShiftState done [11:23:26]FM_GetShiftState done [11:23:26]opened in 1739752571 [11:23:26]opened+sec_in_day 1739838971 [11:23:26]quantity*price = 50011 [11:23:26]sum+1 = 50013 [11:23:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 96 17.02.2025 11:23 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186509 ФПД: 88775868802988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112330&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186509&fm=88775868802988&tin=02508201610067®Number=0000000000091857&sum=50000 [11:23:27]StoreToDocumentArchive [11:23:27]shift 644 fd 186509 [11:23:27]save to /storage/0644/doc_00186509 [11:23:27]save last doc name /storage/0644/doc_00186509 to /storage/kkm_last_doc_name [11:23:27]save OK [11:23:27]Clear old archive folders... [11:23:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:27]tlvbuf is 01FC3F60 [11:23:27]SAM_PROTO_ClearQueue [11:23:27]wFMCommunicate request_size=4 [11:23:27]MH_SAM_APDU [11:23:27]CAPDU: 80 09 00 00 [11:23:27]Write to MH i2c: E2 08 00 58 2A 80 09 00 00 00 00 00 00 F4 [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:27]Read from MH i2c: E2 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: E2 03 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: E2 03 00 58 2A 00 90 00 F6 [11:23:27]RAPDU: 90 00 [11:23:27]wFMCommunicate OK [11:23:27]SAM_PROTO_ClearQueue done [11:23:27]KKMCreateOFDPacket [11:23:27]OFDProtocolAddRootSTLVToBuf [11:23:27]FM_MakeSignedData [11:23:27]FM_MakeSignedData [11:23:27]SAM_PROTO_SignData [11:23:27]wFMCommunicate request_size=4 [11:23:27]MH_SAM_APDU [11:23:27]CAPDU: 80 0D 01 02 [11:23:27]Write to MH i2c: E2 08 00 59 2A 80 0D 01 02 00 00 00 00 FC [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:27]Read from MH i2c: E2 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: E2 03 00 [11:23:27]MH_I2C_Read... [11:23:27]Read from MH i2c: E2 03 00 59 2A 00 90 00 F7 [11:23:27]RAPDU: 90 00 [11:23:27]wFMCommunicate OK [11:23:27]wFMCommunicate request_size=255 [11:23:27]MH_SAM_APDU [11:23:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D8 02 00 35 04 06 00 50 [11:23:27]Write to MH i2c: E2 02 01 5A 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D8 02 00 35 04 06 00 50 00 00 9A [11:23:27]Write i2c OK [11:23:27]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 03 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 03 00 5A 2A 00 90 00 F8 [11:23:28]RAPDU: 90 00 [11:23:28]wFMCommunicate OK [11:23:28]wFMCommunicate request_size=10 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 0D 02 02 05 BD BE 1F E7 AC [11:23:28]Write to MH i2c: E2 0D 00 5B 2A 80 0D 02 02 05 00 BD BE 1F E7 AC 00 00 36 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 03 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 03 00 5B 2A 00 90 00 F9 [11:23:28]RAPDU: 90 00 [11:23:28]wFMCommunicate OK [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 0D 03 02 [11:23:28]Write to MH i2c: E2 08 00 5C 2A 80 0D 03 02 00 00 00 00 01 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0B 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 0B 00 5C 2A 00 AA BF C4 02 93 ED 7B 1A 90 00 46 [11:23:28]RAPDU: AA BF C4 02 93 ED 7B 1A 90 00 [11:23:28]wFMCommunicate OK [11:23:28]SAM_PROTO_SignData done [11:23:28]FM_MakeSignedData done [11:23:28]CreateOFDProtocolMessage [11:23:28]wFMCommunicate request_size=4 [11:23:28]MH_SAM_APDU [11:23:28]CAPDU: 80 11 00 00 [11:23:28]Write to MH i2c: E2 08 00 5D 2A 80 11 00 00 00 00 00 00 01 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:28]Read from MH i2c: E2 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 17 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: E2 17 00 5D 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 54 [11:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:23:28]wFMCommunicate OK [11:23:28]CreateOFDProtocolMessage done [11:23:28]OFDSenderStorePacket 186509 [11:23:28]StoreOFDPacket docnum=186509 [11:23:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B AA 07 01 37 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D8 02 00 35 04 06 00 50 BD BE 1F E7 AC AA BF C4 02 93 ED 7B 1A [11:23:28]CheckFolder [11:23:28]dirname=/storage/ofd_packets [11:23:28]CheckFolder done [11:23:28]ProducePacketName [11:23:28]name=ofd_packets/00186509 [11:23:28]NVStorageSaveData ofd_packets/00186509 [11:23:28]File name is /storage/ofd_packets/00186509 [11:23:28]Write 301 bytes [11:23:28]NVStorageSaveData done [11:23:28]OFDSenderStorePacket done [11:23:28]KKMCreateOFDPacket done [11:23:28]NVStorageSaveData kkm_last_timestamp [11:23:28]File name is /storage/kkm_last_timestamp [11:23:28]Write 4 bytes [11:23:28]NVStorageSaveData done [11:23:28]ExternCall_PrintAddStr [11:23:28]wPrintStart [11:23:28]Write to MH i2c: 01 00 00 5E 2A 88 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 07 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 07 00 5E 2A 00 00 00 00 00 FF 0F 9D [11:23:28]RasterBufferAndPrint [11:23:28]line Счет N : (1)411642 [11:23:28]line ИНН: 02508201610067 [11:23:28]line Контрольно-Кассовый Чек [11:23:28]line ПРОДАЖА [11:23:28]line ТРК (МРК, ГНК) : 22 [11:23:28]line Товар: 2710124130 [11:23:28]line Аи-92-К-2 [11:23:28]line 7.790 * 64.20 [11:23:28]line = 500.12 [11:23:28]line НДС 12% НСП 1% [11:23:28]line > о реализуемом товаре [11:23:28]line ОКРУГЛЕНИЕ: -0.12 [11:23:28]line ИТОГО: 500.00 [11:23:28]line Внесено: 500.00 [11:23:28]line СДАЧА: 0.00 [11:23:28]line НСП 1% : 4.43 [11:23:28]line НДС 12% : 53.11 [11:23:28]line Наличными: 500.00 [11:23:28]line Безнал.: 0.00 [11:23:28]line Место: АЗС № 92 "Партнер Нефть" [11:23:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:23:28]line СНО: Общий режим [11:23:28]line Чек 96 17.02.2025 11:23 [11:23:28]line Смена: 644 ФФД: 1.0 [11:23:28]line ЗНМ: 0300000118 [11:23:28]line РНМ: 0000000000091857 [11:23:28]line Версия ККМ: 001 [11:23:28]line ФМ: 0000000000871826 [11:23:28]line ФД: 186509 [11:23:28]line ФПД: 88775868802988 [11:23:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112330&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186509&fm=88775868802988&tin=02508201610067®Number=0000000000091857&sum=50000 [11:23:28]written 0, free lines is 4095 [11:23:28]OFD Sender: Processing packet 186509 [packets to send 49, broken 48] [11:23:28]ProducePacketName [11:23:28]name=ofd_packets/00186509 [11:23:28]OFD Sender: To server: pG, [11:23:28]CommunicateWithHost lk.salyk.kg:30040 [11:23:28]ConnectInit lk.salyk.kg [11:23:28]Connected sock=11 [11:23:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5B AA 07 01 37 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 32 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D8 02 00 35 04 06 00 50 BD BE 1F E7 AC AA BF C4 02 93 ED 7B 1A [11:23:28]Write to MH i2c: 01 00 00 89 2A B3 [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 07 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 00 0D C7 [11:23:28]RasterBufferAndPrint [11:23:28]line [11:23:28]line [11:23:28]line [11:23:28]line [11:23:28]line [11:23:28]written 0, free lines is 3334 [11:23:28]MH_Cut [11:23:28]Write to MH i2c: D1 01 00 90 2A 01 8C [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: D1 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: D1 01 00 [11:23:28]MH_I2C_Read... [11:23:28]Read from MH i2c: D1 01 00 90 2A 00 8B [11:23:28]Write to MH i2c: 01 00 00 91 2A BB [11:23:28]Write i2c OK [11:23:28]MH_I2C_Read... [11:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 70 47 00 D3 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8D D8 02 00 F4 03 04 00 8D C2 B2 67 B6 04 01 00 00 A4 80 4F CA 96 C9 6D 86 [11:23:28]CommunicateWithHost err = 0 [11:23:28]CheckOFDResponse [11:23:28]1017 (14) - 77093643461234 [11:23:28]1041 (16) - 0000000000871826 [11:23:28]1040 (4) - 186509 [11:23:28]1012 (4) - 17.02.2025 05:01 [11:23:28]1206 (1) - 0 [11:23:28]OFD Sender: Remove packet 186509 [11:23:28]ProducePacketName [11:23:28]name=ofd_packets/00186509 [11:23:28]NVStorageDeleteData [11:23:29]OFD Sender: No OFD packet to send [11:23:29]*** Cut start [11:23:29]*** Partial cut [11:23:29]*** CUTSNS_PIN = 1 [11:23:29]*** CUTSNS_PIN = 0 [11:23:29]*** Brake cut motor [11:23:30]Read from MH i2c: 01 [11:23:30]MH_I2C_Read... [11:23:30]*** Stop cut motor [11:23:30]*** Cut end [11:23:30]Read from MH i2c: 01 07 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: 01 07 00 91 2A 00 00 00 00 00 FF 0F D0 [11:23:30]process_action close_receipt done [11:23:30]requested_data is exist [11:23:30]produce_requested_data [11:23:30]requested_item fm.sn is exist - process it [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 11 00 00 [11:23:30]Write to MH i2c: E2 08 00 92 2A 80 11 00 00 00 00 00 00 36 [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 17 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 17 00 92 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 89 [11:23:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:23:30]wFMCommunicate OK [11:23:30]requested_item fd.num is exist - process it [11:23:30]SAM_PROTO_GetFieldsCounters [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 13 00 00 [11:23:30]Write to MH i2c: E2 08 00 93 2A 80 13 00 00 00 00 00 00 39 [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 62 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 62 00 93 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:23:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:30]wFMCommunicate OK [11:23:30]SAM_PROTO_GetFieldsCounters done [11:23:30]requested_item shift.num is exist - process it [11:23:30]requested_item shift.opened is exist - process it [11:23:30]req_shift_opened [11:23:30]FM_GetShiftState [11:23:30]SAM_PROTO_GetShiftState [11:23:30]wFMCommunicate request_size=4 [11:23:30]MH_SAM_APDU [11:23:30]CAPDU: 80 13 01 00 [11:23:30]Write to MH i2c: E2 08 00 94 2A 80 13 01 00 00 00 00 00 3B [11:23:30]Write i2c OK [11:23:30]MH_I2C_Read... [11:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:30]Read from MH i2c: E2 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0E 00 [11:23:30]MH_I2C_Read... [11:23:30]Read from MH i2c: E2 0E 00 94 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5F [11:23:30]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:23:30]wFMCommunicate OK [11:23:30]SAM_PROTO_GetShiftState done [11:23:30]FM_GetShiftState done [11:23:30]req_shift_opened done [11:23:30]requested_item shift.open_date is exist - process it [11:23:30]req_shift_open_date [11:23:30]req_shift_open_date done [11:23:30]produce_requested_data done [11:23:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186509,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:23:30]process_action_free close_receipt [11:23:30]json_value_free [11:23:30]json_value_free done [11:23:30]process_json_proto returns [11:23:30]Send response to host [11:23:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186509,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:23:30]free response buf [11:23:30]execute_script done [11:23:30]execute_script returns [11:23:30]free content buf [11:23:30]Sock 8.Close socket [11:23:30]Sock 8.Thread stoped [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:40]accept exits with 9 [11:23:40]New connection [11:23:40]New thread 3067358564 created [11:23:40]Thread 3067501924 joined [11:23:40]Waiting for new connection... [11:23:40] Sock 9.Parse request [11:23:40]Sock 9.Check first char [11:23:40]Sock 9.First char is OK [11:23:40]request: POST /json_proto HTTP/1.0 [11:23:40]Method: POST [11:23:40]URL: /json_proto [11:23:40]Method is POST - this is cgi request [11:23:40]url: /json_proto [11:23:40]query_string will be loaded in cgi processing [11:23:40]execute_cgi json_proto POST (null) [11:23:40]execute_cgi path=json_proto method=POST [11:23:40]POST find Content-Length [11:23:40]Host: 172.17.46.131:8080 [11:23:40]Content-Length: 677 [11:23:40]Content-Type: application/json [11:23:40] [11:23:40]POST finish read [11:23:40]Found Content-Length = 677 [11:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.640, "sum" : 693.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 693.00, "payments": [ { "type": 0, "sum" : 693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:40]execute_script... [11:23:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.640, "sum" : 693.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 693.00, "payments": [ { "type": 0, "sum" : 693.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:40]POST & json_proto [11:23:40]process_json_proto [11:23:40]json parsed OK: [11:23:40]protocol is kg_v1.0 [11:23:40]action value=close_receipt [11:23:40]process_action close_receipt [11:23:40]cmd_close_receipt [11:23:40]MH_GetDate [11:23:40]Write to MH i2c: F0 00 00 95 2A AE [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: F0 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: F0 09 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: F0 09 00 95 2A 00 41 1C B3 67 7E 41 4F 65 A1 [11:23:40]GetLastDocTimeStamp 1739791410 [11:23:40]current date 1739791425 [11:23:40]FM_GetShiftState [11:23:40]SAM_PROTO_GetShiftState [11:23:40]wFMCommunicate request_size=4 [11:23:40]MH_SAM_APDU [11:23:40]CAPDU: 80 13 01 00 [11:23:40]Write to MH i2c: E2 08 00 96 2A 80 13 01 00 00 00 00 00 3D [11:23:40]Write i2c OK [11:23:40]MH_I2C_Read... [11:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:40]Read from MH i2c: E2 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0E 00 [11:23:40]MH_I2C_Read... [11:23:40]Read from MH i2c: E2 0E 00 96 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 61 [11:23:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:23:40]wFMCommunicate OK [11:23:40]SAM_PROTO_GetShiftState done [11:23:40]FM_GetShiftState done [11:23:40]opened in 1739752571 [11:23:40]opened+sec_in_day 1739838971 [11:23:40]quantity*price = 69311 [11:23:40]sum+1 = 69313 [11:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 693.00 Внесено: 700.00 СДАЧА: 7.00 НСП 1% : 6.13 НДС 12% : 73.61 Наличными: 693.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 97 17.02.2025 11:23 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186510 ФПД: 279116726062370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112345&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186510&fm=279116726062370&tin=02508201610067®Number=0000000000091857&sum=69300 [11:23:41]StoreToDocumentArchive [11:23:41]shift 644 fd 186510 [11:23:41]save to /storage/0644/doc_00186510 [11:23:41]save last doc name /storage/0644/doc_00186510 to /storage/kkm_last_doc_name [11:23:41]save OK [11:23:41]Clear old archive folders... [11:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:41]tlvbuf is 02096140 [11:23:41]SAM_PROTO_ClearQueue [11:23:41]wFMCommunicate request_size=4 [11:23:41]MH_SAM_APDU [11:23:41]CAPDU: 80 09 00 00 [11:23:41]Write to MH i2c: E2 08 00 A3 2A 80 09 00 00 00 00 00 00 3F [11:23:41]Write i2c OK [11:23:41]MH_I2C_Read... [11:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A3 2A 00 90 00 41 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_ClearQueue done [11:23:42]KKMCreateOFDPacket [11:23:42]OFDProtocolAddRootSTLVToBuf [11:23:42]FM_MakeSignedData [11:23:42]FM_MakeSignedData [11:23:42]SAM_PROTO_SignData [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 01 02 [11:23:42]Write to MH i2c: E2 08 00 A4 2A 80 0D 01 02 00 00 00 00 47 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A4 2A 00 90 00 42 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=255 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C0 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 1C 00 00 00 00 07 04 06 00 B4 0E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D8 02 00 35 04 06 00 FD [11:23:42]Write to MH i2c: E2 02 01 A5 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C0 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 1C 00 00 00 00 07 04 06 00 B4 0E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D8 02 00 35 04 06 00 FD 00 00 B5 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A5 2A 00 90 00 43 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=10 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 02 02 05 DA ED 4E CD 22 [11:23:42]Write to MH i2c: E2 0D 00 A6 2A 80 0D 02 02 05 00 DA ED 4E CD 22 00 00 58 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 03 00 A6 2A 00 90 00 44 [11:23:42]RAPDU: 90 00 [11:23:42]wFMCommunicate OK [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 0D 03 02 [11:23:42]Write to MH i2c: E2 08 00 A7 2A 80 0D 03 02 00 00 00 00 4C [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0B 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 0B 00 A7 2A 00 FD 34 68 D8 EC 9D 52 44 90 00 DD [11:23:42]RAPDU: FD 34 68 D8 EC 9D 52 44 90 00 [11:23:42]wFMCommunicate OK [11:23:42]SAM_PROTO_SignData done [11:23:42]FM_MakeSignedData done [11:23:42]CreateOFDProtocolMessage [11:23:42]wFMCommunicate request_size=4 [11:23:42]MH_SAM_APDU [11:23:42]CAPDU: 80 11 00 00 [11:23:42]Write to MH i2c: E2 08 00 A8 2A 80 11 00 00 00 00 00 00 4C [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:42]Read from MH i2c: E2 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: E2 17 00 A8 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9F [11:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:23:42]wFMCommunicate OK [11:23:42]CreateOFDProtocolMessage done [11:23:42]OFDSenderStorePacket 186510 [11:23:42]StoreOFDPacket docnum=186510 [11:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 9A 07 01 F3 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C0 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 1C 00 00 00 00 07 04 06 00 B4 0E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D8 02 00 35 04 06 00 FD DA ED 4E CD 22 FD 34 68 D8 EC 9D 52 44 [11:23:42]CheckFolder [11:23:42]dirname=/storage/ofd_packets [11:23:42]CheckFolder done [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00186510 [11:23:42]NVStorageSaveData ofd_packets/00186510 [11:23:42]File name is /storage/ofd_packets/00186510 [11:23:42]Write 301 bytes [11:23:42]NVStorageSaveData done [11:23:42]OFDSenderStorePacket done [11:23:42]KKMCreateOFDPacket done [11:23:42]NVStorageSaveData kkm_last_timestamp [11:23:42]File name is /storage/kkm_last_timestamp [11:23:42]Write 4 bytes [11:23:42]NVStorageSaveData done [11:23:42]ExternCall_PrintAddStr [11:23:42]wPrintStart [11:23:42]Write to MH i2c: 01 00 00 A9 2A D3 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 A9 2A 00 00 00 00 00 FF 0F E8 [11:23:42]RasterBufferAndPrint [11:23:42]line Счет N : (1)411643 [11:23:42]line ИНН: 02508201610067 [11:23:42]line Контрольно-Кассовый Чек [11:23:42]line ПРОДАЖА [11:23:42]line ТРК (МРК, ГНК) : 13 [11:23:42]line Товар: 2710124500 [11:23:42]line Аи-95-К-5 [11:23:42]line 9.640 * 71.90 [11:23:42]line = 693.12 [11:23:42]line НДС 12% НСП 1% [11:23:42]line > о реализуемом товаре [11:23:42]line ОКРУГЛЕНИЕ: -0.12 [11:23:42]line ИТОГО: 693.00 [11:23:42]line Внесено: 700.00 [11:23:42]line СДАЧА: 7.00 [11:23:42]line НСП 1% : 6.13 [11:23:42]line НДС 12% : 73.61 [11:23:42]line Наличными: 693.00 [11:23:42]line Безнал.: 0.00 [11:23:42]line Место: АЗС № 92 "Партнер Нефть" [11:23:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:23:42]line СНО: Общий режим [11:23:42]line Чек 97 17.02.2025 11:23 [11:23:42]line Смена: 644 ФФД: 1.0 [11:23:42]line ЗНМ: 0300000118 [11:23:42]line РНМ: 0000000000091857 [11:23:42]line Версия ККМ: 001 [11:23:42]line ФМ: 0000000000871826 [11:23:42]line ФД: 186510 [11:23:42]line ФПД: 279116726062370 [11:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112345&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186510&fm=279116726062370&tin=02508201610067®Number=0000000000091857&sum=69300 [11:23:42]written 0, free lines is 4095 [11:23:42]OFD Sender: Processing packet 186510 [packets to send 49, broken 48] [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00186510 [11:23:42]OFD Sender: To server: pG, [11:23:42]CommunicateWithHost lk.salyk.kg:30040 [11:23:42]ConnectInit lk.salyk.kg [11:23:42]Connected sock=10 [11:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 9A 07 01 F3 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 25 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C0 0E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 0E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 1C 00 00 00 00 07 04 06 00 B4 0E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 1C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D8 02 00 35 04 06 00 FD DA ED 4E CD 22 FD 34 68 D8 EC 9D 52 44 [11:23:42]Write to MH i2c: 01 00 00 D4 2A FE [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FE 0C 0F [11:23:42]RasterBufferAndPrint [11:23:42]line [11:23:42]line [11:23:42]line [11:23:42]line [11:23:42]line [11:23:42]written 0, free lines is 3332 [11:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CB D2 47 00 01 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8E D8 02 00 F4 03 04 00 9B C2 B2 67 B6 04 01 00 00 8C C7 E2 D1 EF 82 48 15 [11:23:42]CommunicateWithHost err = 0 [11:23:42]CheckOFDResponse [11:23:42]1017 (14) - 77093643461234 [11:23:42]1041 (16) - 0000000000871826 [11:23:42]1040 (4) - 186510 [11:23:42]1012 (4) - 17.02.2025 05:01 [11:23:42]1206 (1) - 0 [11:23:42]OFD Sender: Remove packet 186510 [11:23:42]ProducePacketName [11:23:42]name=ofd_packets/00186510 [11:23:42]NVStorageDeleteData [11:23:42]MH_Cut [11:23:42]Write to MH i2c: D1 01 00 DB 2A 01 D7 [11:23:42]Write i2c OK [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: D1 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: D1 01 00 [11:23:42]MH_I2C_Read... [11:23:42]Read from MH i2c: D1 01 00 DB 2A 00 D6 [11:23:42]Write to MH i2c: 01 00 00 DC 2A 06 [11:23:43]Write i2c OK [11:23:43]MH_I2C_Read... [11:23:43]OFD Sender: No OFD packet to send [11:23:43]*** Cut start [11:23:43]*** Partial cut [11:23:43]*** CUTSNS_PIN = 1 [11:23:43]*** CUTSNS_PIN = 0 [11:23:44]*** Brake cut motor [11:23:44]Read from MH i2c: 01 [11:23:44]MH_I2C_Read... [11:23:44]*** Stop cut motor [11:23:44]*** Cut end [11:23:44]Read from MH i2c: 01 07 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: 01 07 00 DC 2A 00 00 00 00 00 FF 0F 1B [11:23:44]process_action close_receipt done [11:23:44]requested_data is exist [11:23:44]produce_requested_data [11:23:44]requested_item fm.sn is exist - process it [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 11 00 00 [11:23:44]Write to MH i2c: E2 08 00 DD 2A 80 11 00 00 00 00 00 00 81 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 17 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 17 00 DD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [11:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:23:44]wFMCommunicate OK [11:23:44]requested_item fd.num is exist - process it [11:23:44]SAM_PROTO_GetFieldsCounters [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 13 00 00 [11:23:44]Write to MH i2c: E2 08 00 DE 2A 80 13 00 00 00 00 00 00 84 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 62 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 62 00 DE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:44]wFMCommunicate OK [11:23:44]SAM_PROTO_GetFieldsCounters done [11:23:44]requested_item shift.num is exist - process it [11:23:44]requested_item shift.opened is exist - process it [11:23:44]req_shift_opened [11:23:44]FM_GetShiftState [11:23:44]SAM_PROTO_GetShiftState [11:23:44]wFMCommunicate request_size=4 [11:23:44]MH_SAM_APDU [11:23:44]CAPDU: 80 13 01 00 [11:23:44]Write to MH i2c: E2 08 00 DF 2A 80 13 01 00 00 00 00 00 86 [11:23:44]Write i2c OK [11:23:44]MH_I2C_Read... [11:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:44]Read from MH i2c: E2 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 0E 00 [11:23:44]MH_I2C_Read... [11:23:44]Read from MH i2c: E2 0E 00 DF 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AA [11:23:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:23:44]wFMCommunicate OK [11:23:44]SAM_PROTO_GetShiftState done [11:23:44]FM_GetShiftState done [11:23:44]req_shift_opened done [11:23:44]requested_item shift.open_date is exist - process it [11:23:44]req_shift_open_date [11:23:44]req_shift_open_date done [11:23:44]produce_requested_data done [11:23:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186510,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:23:44]process_action_free close_receipt [11:23:44]json_value_free [11:23:44]json_value_free done [11:23:44]process_json_proto returns [11:23:44]Send response to host [11:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186510,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:23:44]free response buf [11:23:44]execute_script done [11:23:44]execute_script returns [11:23:44]free content buf [11:23:44]Sock 9.Close socket [11:23:44]Sock 9.Thread stoped [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:28]OFD Sender: No OFD packet to send [11:27:33]OFD Sender: No OFD packet to send [11:27:38]OFD Sender: No OFD packet to send [11:27:43]OFD Sender: No OFD packet to send [11:27:48]OFD Sender: No OFD packet to send [11:27:53]OFD Sender: No OFD packet to send [11:27:58]OFD Sender: No OFD packet to send [11:28:03]OFD Sender: No OFD packet to send [11:28:08]OFD Sender: No OFD packet to send [11:28:13]OFD Sender: No OFD packet to send [11:28:18]OFD Sender: No OFD packet to send [11:28:23]OFD Sender: No OFD packet to send [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]accept exits with 8 [11:28:53]New connection [11:28:53]New thread 3067501924 created [11:28:53]Thread 3067358564 joined [11:28:53]Waiting for new connection... [11:28:53] Sock 8.Parse request [11:28:53]Sock 8.Check first char [11:28:53]Sock 8.First char is OK [11:28:53]request: POST /json_proto HTTP/1.0 [11:28:53]Method: POST [11:28:53]URL: /json_proto [11:28:53]Method is POST - this is cgi request [11:28:53]url: /json_proto [11:28:53]query_string will be loaded in cgi processing [11:28:53]execute_cgi json_proto POST (null) [11:28:53]execute_cgi path=json_proto method=POST [11:28:53]POST find Content-Length [11:28:53]Host: 172.17.46.131:8080 [11:28:53]Content-Length: 674 [11:28:53]Content-Type: application/json [11:28:53] [11:28:53]POST finish read [11:28:53]Found Content-Length = 674 [11:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:53]execute_script... [11:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:53]POST & json_proto [11:28:53]process_json_proto [11:28:53]json parsed OK: [11:28:53]protocol is kg_v1.0 [11:28:53]action value=close_receipt [11:28:53]process_action close_receipt [11:28:53]cmd_close_receipt [11:28:53]MH_GetDate [11:28:53]Write to MH i2c: F0 00 00 E0 2A F9 [11:28:53]Write i2c OK [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: F0 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: F0 09 00 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: F0 09 00 E0 2A 00 79 1D B3 67 7E 41 4F 65 25 [11:28:53]GetLastDocTimeStamp 1739791425 [11:28:53]current date 1739791737 [11:28:53]FM_GetShiftState [11:28:53]SAM_PROTO_GetShiftState [11:28:53]wFMCommunicate request_size=4 [11:28:53]MH_SAM_APDU [11:28:53]CAPDU: 80 13 01 00 [11:28:53]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [11:28:53]Write i2c OK [11:28:53]MH_I2C_Read... [11:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:53]Read from MH i2c: E2 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: E2 0E 00 [11:28:53]MH_I2C_Read... [11:28:53]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AC [11:28:53]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:28:53]wFMCommunicate OK [11:28:53]SAM_PROTO_GetShiftState done [11:28:53]FM_GetShiftState done [11:28:53]opened in 1739752571 [11:28:53]opened+sec_in_day 1739838971 [11:28:53]quantity*price = 90024 [11:28:53]sum+1 = 90025 [11:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 98 17.02.2025 11:28 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186511 ФПД: 59343240053760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186511&fm=59343240053760&tin=02508201610067®Number=0000000000091857&sum=90000 [11:28:54]StoreToDocumentArchive [11:28:54]shift 644 fd 186511 [11:28:54]save to /storage/0644/doc_00186511 [11:28:54]save last doc name /storage/0644/doc_00186511 to /storage/kkm_last_doc_name [11:28:54]save OK [11:28:54]Clear old archive folders... [11:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:28:54]tlvbuf is 0200E6F0 [11:28:54]SAM_PROTO_ClearQueue [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 09 00 00 [11:28:54]Write to MH i2c: E2 08 00 EE 2A 80 09 00 00 00 00 00 00 8A [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]SAM_PROTO_ClearQueue done [11:28:54]KKMCreateOFDPacket [11:28:54]OFDProtocolAddRootSTLVToBuf [11:28:54]FM_MakeSignedData [11:28:54]FM_MakeSignedData [11:28:54]SAM_PROTO_SignData [11:28:54]wFMCommunicate request_size=4 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 01 02 [11:28:54]Write to MH i2c: E2 08 00 EF 2A 80 0D 01 02 00 00 00 00 92 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:54]Read from MH i2c: E2 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 [11:28:54]MH_I2C_Read... [11:28:54]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [11:28:54]RAPDU: 90 00 [11:28:54]wFMCommunicate OK [11:28:54]wFMCommunicate request_size=255 [11:28:54]MH_SAM_APDU [11:28:54]CAPDU: 80 0D 02 02 FA 03 00 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 1D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D8 02 00 35 04 06 00 35 F8 EC BE [11:28:54]Write to MH i2c: E2 02 01 F0 2A 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 1D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D8 02 00 35 04 06 00 35 F8 EC BE 00 00 69 [11:28:54]Write i2c OK [11:28:54]MH_I2C_Read... [11:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 03 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [11:28:55]RAPDU: 90 00 [11:28:55]wFMCommunicate OK [11:28:55]wFMCommunicate request_size=7 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 0D 02 02 02 44 00 [11:28:55]Write to MH i2c: E2 0A 00 F1 2A 80 0D 02 02 02 00 44 00 00 00 DD [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 03 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [11:28:55]RAPDU: 90 00 [11:28:55]wFMCommunicate OK [11:28:55]wFMCommunicate request_size=4 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 0D 03 02 [11:28:55]Write to MH i2c: E2 08 00 F2 2A 80 0D 03 02 00 00 00 00 97 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 0B 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 0B 00 F2 2A 00 1E 9E 98 44 FC 0B 1E 09 90 00 5E [11:28:55]RAPDU: 1E 9E 98 44 FC 0B 1E 09 90 00 [11:28:55]wFMCommunicate OK [11:28:55]SAM_PROTO_SignData done [11:28:55]FM_MakeSignedData done [11:28:55]CreateOFDProtocolMessage [11:28:55]wFMCommunicate request_size=4 [11:28:55]MH_SAM_APDU [11:28:55]CAPDU: 80 11 00 00 [11:28:55]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:55]Read from MH i2c: E2 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 17 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [11:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:28:55]wFMCommunicate OK [11:28:55]CreateOFDProtocolMessage done [11:28:55]OFDSenderStorePacket 186511 [11:28:55]StoreOFDPacket docnum=186511 [11:28:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 76 81 04 01 AB AB 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 1D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D8 02 00 35 04 06 00 35 F8 EC BE 44 00 1E 9E 98 44 FC 0B 1E 09 [11:28:55]CheckFolder [11:28:55]dirname=/storage/ofd_packets [11:28:55]CheckFolder done [11:28:55]ProducePacketName [11:28:55]name=ofd_packets/00186511 [11:28:55]NVStorageSaveData ofd_packets/00186511 [11:28:55]File name is /storage/ofd_packets/00186511 [11:28:55]Write 298 bytes [11:28:55]NVStorageSaveData done [11:28:55]OFDSenderStorePacket done [11:28:55]KKMCreateOFDPacket done [11:28:55]NVStorageSaveData kkm_last_timestamp [11:28:55]File name is /storage/kkm_last_timestamp [11:28:55]Write 4 bytes [11:28:55]NVStorageSaveData done [11:28:55]ExternCall_PrintAddStr [11:28:55]wPrintStart [11:28:55]Write to MH i2c: 01 00 00 F4 2A 1E [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 07 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [11:28:55]RasterBufferAndPrint [11:28:55]line Счет N : (1)411644 [11:28:55]line ИНН: 02508201610067 [11:28:55]line Контрольно-Кассовый Чек [11:28:55]line ПРОДАЖА [11:28:55]line ТРК (МРК, ГНК) : 5 [11:28:55]line Товар: 2710194210 [11:28:55]line ДТ-К-5 [11:28:55]line 12.400 * 72.60 [11:28:55]line = 900.24 [11:28:55]line НДС 12% НСП 1% [11:28:55]line > о реализуемом товаре [11:28:55]line ОКРУГЛЕНИЕ: -0.24 [11:28:55]line ИТОГО: 900.00 [11:28:55]line Внесено: 900.00 [11:28:55]line СДАЧА: 0.00 [11:28:55]line НСП 1% : 7.97 [11:28:55]line НДС 12% : 95.60 [11:28:55]line Наличными: 900.00 [11:28:55]line Безнал.: 0.00 [11:28:55]line Место: АЗС № 92 "Партнер Нефть" [11:28:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:28:55]line СНО: Общий режим [11:28:55]line Чек 98 17.02.2025 11:28 [11:28:55]line Смена: 644 ФФД: 1.0 [11:28:55]line ЗНМ: 0300000118 [11:28:55]line РНМ: 0000000000091857 [11:28:55]line Версия ККМ: 001 [11:28:55]line ФМ: 0000000000871826 [11:28:55]line ФД: 186511 [11:28:55]line ФПД: 59343240053760 [11:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T112857&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186511&fm=59343240053760&tin=02508201610067®Number=0000000000091857&sum=90000 [11:28:55]OFD Sender: Processing packet 186511 [packets to send 49, broken 48] [11:28:55]ProducePacketName [11:28:55]name=ofd_packets/00186511 [11:28:55]OFD Sender: To server: pG, [11:28:55]CommunicateWithHost lk.salyk.kg:30040 [11:28:55]ConnectInit lk.salyk.kg [11:28:55]written 0, free lines is 4095 [11:28:55]Connected sock=10 [11:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 76 81 04 01 AB AB 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 79 1D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D8 02 00 35 04 06 00 35 F8 EC BE 44 00 1E 9E 98 44 FC 0B 1E 09 [11:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 99 E0 47 00 CD 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 8F D8 02 00 F4 03 04 00 D4 C3 B2 67 B6 04 01 00 00 60 B2 4F FD 42 A1 13 49 [11:28:55]CommunicateWithHost err = 0 [11:28:55]CheckOFDResponse [11:28:55]1017 (14) - 77093643461234 [11:28:55]1041 (16) - 0000000000871826 [11:28:55]1040 (4) - 186511 [11:28:55]1012 (4) - 17.02.2025 05:06 [11:28:55]1206 (1) - 0 [11:28:55]OFD Sender: Remove packet 186511 [11:28:55]ProducePacketName [11:28:55]name=ofd_packets/00186511 [11:28:55]NVStorageDeleteData [11:28:55]Write to MH i2c: 01 00 00 1F 2B 4A [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 07 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: 01 07 00 1F 2B 00 00 00 00 00 E5 0C 42 [11:28:55]RasterBufferAndPrint [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]line [11:28:55]written 0, free lines is 3307 [11:28:55]MH_Cut [11:28:55]Write to MH i2c: D1 01 00 26 2B 01 23 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 01 00 [11:28:55]MH_I2C_Read... [11:28:55]Read from MH i2c: D1 01 00 26 2B 00 22 [11:28:55]Write to MH i2c: 01 00 00 27 2B 52 [11:28:55]Write i2c OK [11:28:55]MH_I2C_Read... [11:28:56]OFD Sender: No OFD packet to send [11:28:56]*** Cut start [11:28:56]*** Partial cut [11:28:56]*** CUTSNS_PIN = 1 [11:28:56]*** CUTSNS_PIN = 0 [11:28:57]*** Brake cut motor [11:28:57]Read from MH i2c: 01 [11:28:57]MH_I2C_Read... [11:28:57]*** Stop cut motor [11:28:57]*** Cut end [11:28:57]Read from MH i2c: 01 07 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: 01 07 00 27 2B 00 00 00 00 00 FF 0F 67 [11:28:57]process_action close_receipt done [11:28:57]requested_data is exist [11:28:57]produce_requested_data [11:28:57]requested_item fm.sn is exist - process it [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 11 00 00 [11:28:57]Write to MH i2c: E2 08 00 28 2B 80 11 00 00 00 00 00 00 CD [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 17 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 17 00 28 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 20 [11:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:28:57]wFMCommunicate OK [11:28:57]requested_item fd.num is exist - process it [11:28:57]SAM_PROTO_GetFieldsCounters [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 13 00 00 [11:28:57]Write to MH i2c: E2 08 00 29 2B 80 13 00 00 00 00 00 00 D0 [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 62 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 62 00 29 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [11:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 8F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:57]wFMCommunicate OK [11:28:57]SAM_PROTO_GetFieldsCounters done [11:28:57]requested_item shift.num is exist - process it [11:28:57]requested_item shift.opened is exist - process it [11:28:57]req_shift_opened [11:28:57]FM_GetShiftState [11:28:57]SAM_PROTO_GetShiftState [11:28:57]wFMCommunicate request_size=4 [11:28:57]MH_SAM_APDU [11:28:57]CAPDU: 80 13 01 00 [11:28:57]Write to MH i2c: E2 08 00 2A 2B 80 13 01 00 00 00 00 00 D2 [11:28:57]Write i2c OK [11:28:57]MH_I2C_Read... [11:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:57]Read from MH i2c: E2 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 [11:28:57]MH_I2C_Read... [11:28:57]Read from MH i2c: E2 0E 00 2A 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F6 [11:28:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:28:57]wFMCommunicate OK [11:28:57]SAM_PROTO_GetShiftState done [11:28:57]FM_GetShiftState done [11:28:57]req_shift_opened done [11:28:57]requested_item shift.open_date is exist - process it [11:28:57]req_shift_open_date [11:28:57]req_shift_open_date done [11:28:57]produce_requested_data done [11:28:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186511,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:28:57]process_action_free close_receipt [11:28:57]json_value_free [11:28:57]json_value_free done [11:28:57]process_json_proto returns [11:28:57]Send response to host [11:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186511,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:28:57]free response buf [11:28:57]execute_script done [11:28:57]execute_script returns [11:28:57]free content buf [11:28:57]Sock 8.Close socket [11:28:57]Sock 8.Thread stoped [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:51]accept exits with 9 [11:32:51]New connection [11:32:51]New thread 3067358564 created [11:32:51]Thread 3067501924 joined [11:32:51]Waiting for new connection... [11:32:51] Sock 9.Parse request [11:32:51]Sock 9.Check first char [11:32:51]Sock 9.First char is OK [11:32:51]request: POST /json_proto HTTP/1.0 [11:32:51]Method: POST [11:32:51]URL: /json_proto [11:32:51]Method is POST - this is cgi request [11:32:51]url: /json_proto [11:32:51]query_string will be loaded in cgi processing [11:32:51]execute_cgi json_proto POST (null) [11:32:51]execute_cgi path=json_proto method=POST [11:32:51]POST find Content-Length [11:32:51]Host: 172.17.46.131:8080 [11:32:51]Content-Length: 677 [11:32:51]Content-Type: application/json [11:32:51] [11:32:51]POST finish read [11:32:51]Found Content-Length = 677 [11:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:51]execute_script... [11:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:51]POST & json_proto [11:32:51]process_json_proto [11:32:51]json parsed OK: [11:32:51]protocol is kg_v1.0 [11:32:51]action value=close_receipt [11:32:51]process_action close_receipt [11:32:51]cmd_close_receipt [11:32:51]MH_GetDate [11:32:51]Write to MH i2c: F0 00 00 2B 2B 45 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 09 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 09 00 2B 2B 00 68 1E B3 67 7E 41 4F 65 61 [11:32:51]GetLastDocTimeStamp 1739791737 [11:32:51]current date 1739791976 [11:32:51]FM_GetShiftState [11:32:51]SAM_PROTO_GetShiftState [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 13 01 00 [11:32:51]Write to MH i2c: E2 08 00 2C 2B 80 13 01 00 00 00 00 00 D4 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 2C 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F8 [11:32:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:32:51]wFMCommunicate OK [11:32:51]SAM_PROTO_GetShiftState done [11:32:51]FM_GetShiftState done [11:32:51]opened in 1739752571 [11:32:51]opened+sec_in_day 1739838971 [11:32:51]quantity*price = 40060 [11:32:51]sum+1 = 40062 [11:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 99 17.02.2025 11:32 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186512 ФПД: 176605787117959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186512&fm=176605787117959&tin=02508201610067®Number=0000000000091857&sum=40000 [11:32:52]StoreToDocumentArchive [11:32:52]shift 644 fd 186512 [11:32:52]save to /storage/0644/doc_00186512 [11:32:52]save last doc name /storage/0644/doc_00186512 to /storage/kkm_last_doc_name [11:32:52]save OK [11:32:52]Clear old archive folders... [11:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:52]tlvbuf is 0202FEE0 [11:32:52]SAM_PROTO_ClearQueue [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 09 00 00 [11:32:52]Write to MH i2c: E2 08 00 39 2B 80 09 00 00 00 00 00 00 D6 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 39 2B 00 90 00 D8 [11:32:52]RAPDU: 90 00 [11:32:52]wFMCommunicate OK [11:32:52]SAM_PROTO_ClearQueue done [11:32:52]KKMCreateOFDPacket [11:32:52]OFDProtocolAddRootSTLVToBuf [11:32:52]FM_MakeSignedData [11:32:52]FM_MakeSignedData [11:32:52]SAM_PROTO_SignData [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 0D 01 02 [11:32:52]Write to MH i2c: E2 08 00 3A 2B 80 0D 01 02 00 00 00 00 DE [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 3A 2B 00 90 00 D9 [11:32:53]RAPDU: 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=255 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 68 1E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D8 02 00 35 04 06 00 A0 [11:32:53]Write to MH i2c: E2 02 01 3B 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 68 1E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D8 02 00 35 04 06 00 A0 00 00 04 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 3B 2B 00 90 00 DA [11:32:53]RAPDU: 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=10 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 0D 02 02 05 9F 3D 34 D9 87 [11:32:53]Write to MH i2c: E2 0D 00 3C 2B 80 0D 02 02 05 00 9F 3D 34 D9 87 00 00 5B [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 03 00 3C 2B 00 90 00 DB [11:32:53]RAPDU: 90 00 [11:32:53]wFMCommunicate OK [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 0D 03 02 [11:32:53]Write to MH i2c: E2 08 00 3D 2B 80 0D 03 02 00 00 00 00 E3 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 0B 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 0B 00 3D 2B 00 DD C7 C6 7A EF 0F 71 17 90 00 4E [11:32:53]RAPDU: DD C7 C6 7A EF 0F 71 17 90 00 [11:32:53]wFMCommunicate OK [11:32:53]SAM_PROTO_SignData done [11:32:53]FM_MakeSignedData done [11:32:53]CreateOFDProtocolMessage [11:32:53]wFMCommunicate request_size=4 [11:32:53]MH_SAM_APDU [11:32:53]CAPDU: 80 11 00 00 [11:32:53]Write to MH i2c: E2 08 00 3E 2B 80 11 00 00 00 00 00 00 E3 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:53]Read from MH i2c: E2 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 17 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: E2 17 00 3E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 36 [11:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:32:53]wFMCommunicate OK [11:32:53]CreateOFDProtocolMessage done [11:32:53]OFDSenderStorePacket 186512 [11:32:53]StoreOFDPacket docnum=186512 [11:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D A4 07 01 99 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 68 1E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D8 02 00 35 04 06 00 A0 9F 3D 34 D9 87 DD C7 C6 7A EF 0F 71 17 [11:32:53]CheckFolder [11:32:53]dirname=/storage/ofd_packets [11:32:53]CheckFolder done [11:32:53]ProducePacketName [11:32:53]name=ofd_packets/00186512 [11:32:53]NVStorageSaveData ofd_packets/00186512 [11:32:53]File name is /storage/ofd_packets/00186512 [11:32:53]Write 301 bytes [11:32:53]NVStorageSaveData done [11:32:53]OFDSenderStorePacket done [11:32:53]KKMCreateOFDPacket done [11:32:53]NVStorageSaveData kkm_last_timestamp [11:32:53]File name is /storage/kkm_last_timestamp [11:32:53]Write 4 bytes [11:32:53]NVStorageSaveData done [11:32:53]ExternCall_PrintAddStr [11:32:53]wPrintStart [11:32:53]Write to MH i2c: 01 00 00 3F 2B 6A [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 07 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 FF 0F 7F [11:32:53]RasterBufferAndPrint [11:32:53]line Счет N : (1)411645 [11:32:53]line ИНН: 02508201610067 [11:32:53]line Контрольно-Кассовый Чек [11:32:53]line ПРОДАЖА [11:32:53]line ТРК (МРК, ГНК) : 22 [11:32:53]line Товар: 2710124130 [11:32:53]line Аи-92-К-2 [11:32:53]line 6.240 * 64.20 [11:32:53]line = 400.61 [11:32:53]line НДС 12% НСП 1% [11:32:53]line > о реализуемом товаре [11:32:53]line ОКРУГЛЕНИЕ: -0.61 [11:32:53]line ИТОГО: 400.00 [11:32:53]line Внесено: 400.00 [11:32:53]line СДАЧА: 0.00 [11:32:53]line НСП 1% : 3.54 [11:32:53]line НДС 12% : 42.54 [11:32:53]line Наличными: 400.00 [11:32:53]line Безнал.: 0.00 [11:32:53]line Место: АЗС № 92 "Партнер Нефть" [11:32:53]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:32:53]line СНО: Общий режим [11:32:53]line Чек 99 17.02.2025 11:32 [11:32:53]line Смена: 644 ФФД: 1.0 [11:32:53]line ЗНМ: 0300000118 [11:32:53]line РНМ: 0000000000091857 [11:32:53]line Версия ККМ: 001 [11:32:53]line ФМ: 0000000000871826 [11:32:53]line ФД: 186512 [11:32:53]line ФПД: 176605787117959 [11:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113256&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186512&fm=176605787117959&tin=02508201610067®Number=0000000000091857&sum=40000 [11:32:53]written 0, free lines is 4095 [11:32:53]OFD Sender: Processing packet 186512 [packets to send 49, broken 48] [11:32:53]ProducePacketName [11:32:53]name=ofd_packets/00186512 [11:32:53]OFD Sender: To server: pG, [11:32:53]CommunicateWithHost lk.salyk.kg:30040 [11:32:53]ConnectInit lk.salyk.kg [11:32:54]Write to MH i2c: 01 00 00 6A 2B 95 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 07 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 07 00 6A 2B 00 00 00 00 00 F2 0C 9A [11:32:54]RasterBufferAndPrint [11:32:54]line [11:32:54]line [11:32:54]line [11:32:54]line [11:32:54]line [11:32:54]written 0, free lines is 3320 [11:32:54]MH_Cut [11:32:54]Write to MH i2c: D1 01 00 71 2B 01 6E [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: D1 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: D1 01 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: D1 01 00 71 2B 00 6D [11:32:54]Write to MH i2c: 01 00 00 72 2B 9D [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** Cut start [11:32:54]*** Partial cut [11:32:54]*** CUTSNS_PIN = 1 [11:32:55]*** CUTSNS_PIN = 0 [11:32:55]*** Brake cut motor [11:32:55]Read from MH i2c: 01 [11:32:55]MH_I2C_Read... [11:32:55]*** Stop cut motor [11:32:55]*** Cut end [11:32:55]Read from MH i2c: 01 07 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: 01 07 00 72 2B 00 00 00 00 00 FF 0F B2 [11:32:55]process_action close_receipt done [11:32:55]requested_data is exist [11:32:55]produce_requested_data [11:32:55]requested_item fm.sn is exist - process it [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 11 00 00 [11:32:55]Write to MH i2c: E2 08 00 73 2B 80 11 00 00 00 00 00 00 18 [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 17 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 17 00 73 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [11:32:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:32:55]wFMCommunicate OK [11:32:55]requested_item fd.num is exist - process it [11:32:55]SAM_PROTO_GetFieldsCounters [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 13 00 00 [11:32:55]Write to MH i2c: E2 08 00 74 2B 80 13 00 00 00 00 00 00 1B [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 62 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 62 00 74 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 90 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:55]wFMCommunicate OK [11:32:55]SAM_PROTO_GetFieldsCounters done [11:32:55]requested_item shift.num is exist - process it [11:32:55]requested_item shift.opened is exist - process it [11:32:55]req_shift_opened [11:32:55]FM_GetShiftState [11:32:55]SAM_PROTO_GetShiftState [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 13 01 00 [11:32:55]Write to MH i2c: E2 08 00 75 2B 80 13 01 00 00 00 00 00 1D [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 0E 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 0E 00 75 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 41 [11:32:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:32:55]wFMCommunicate OK [11:32:55]SAM_PROTO_GetShiftState done [11:32:55]FM_GetShiftState done [11:32:55]req_shift_opened done [11:32:55]requested_item shift.open_date is exist - process it [11:32:55]req_shift_open_date [11:32:55]req_shift_open_date done [11:32:55]produce_requested_data done [11:32:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186512,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:32:55]process_action_free close_receipt [11:32:55]json_value_free [11:32:55]json_value_free done [11:32:55]process_json_proto returns [11:32:55]Send response to host [11:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186512,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:32:55]free response buf [11:32:55]execute_script done [11:32:55]execute_script returns [11:32:55]free content buf [11:32:55]Sock 9.Close socket [11:32:55]Sock 9.Thread stoped [11:35:05]ConnectInit Can't connect to host [11:35:05]CommunicateWithHost connect error [11:35:05]CommunicateWithHost err = -1 [11:35:05]OFD Sender: Server communicate error [11:35:10]OFD Sender: Processing packet 186512 [packets to send 49, broken 48] [11:35:10]ProducePacketName [11:35:10]name=ofd_packets/00186512 [11:35:10]OFD Sender: To server: pG, [11:35:10]CommunicateWithHost lk.salyk.kg:30040 [11:35:10]ConnectInit lk.salyk.kg [11:35:11]Connected sock=9 [11:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2D A4 07 01 99 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 68 1E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D8 02 00 35 04 06 00 A0 9F 3D 34 D9 87 DD C7 C6 7A EF 0F 71 17 [11:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2A E7 47 00 E3 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 90 D8 02 00 F4 03 04 00 4B C5 B2 67 B6 04 01 00 00 F6 10 19 59 B0 C6 92 71 [11:35:11]CommunicateWithHost err = 0 [11:35:11]CheckOFDResponse [11:35:11]1017 (14) - 77093643461234 [11:35:11]1041 (16) - 0000000000871826 [11:35:11]1040 (4) - 186512 [11:35:11]1012 (4) - 17.02.2025 05:12 [11:35:11]1206 (1) - 0 [11:35:11]OFD Sender: Remove packet 186512 [11:35:11]ProducePacketName [11:35:11]name=ofd_packets/00186512 [11:35:11]NVStorageDeleteData [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:37]accept exits with 8 [11:37:37]New connection [11:37:37]New thread 3067501924 created [11:37:37]Thread 3067358564 joined [11:37:37]Waiting for new connection... [11:37:37] Sock 8.Parse request [11:37:37]Sock 8.Check first char [11:37:37]Sock 8.First char is OK [11:37:37]request: POST /json_proto HTTP/1.0 [11:37:37]Method: POST [11:37:37]URL: /json_proto [11:37:37]Method is POST - this is cgi request [11:37:37]url: /json_proto [11:37:37]query_string will be loaded in cgi processing [11:37:37]execute_cgi json_proto POST (null) [11:37:37]execute_cgi path=json_proto method=POST [11:37:37]POST find Content-Length [11:37:37]Host: 172.17.46.131:8080 [11:37:37]Content-Length: 754 [11:37:37]Content-Type: application/json [11:37:37] [11:37:37]POST finish read [11:37:37]Found Content-Length = 754 [11:37:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:37]execute_script... [11:37:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30147245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:37]POST & json_proto [11:37:37]process_json_proto [11:37:37]json parsed OK: [11:37:37]protocol is kg_v1.0 [11:37:37]action value=close_receipt [11:37:37]process_action close_receipt [11:37:37]cmd_close_receipt [11:37:37]MH_GetDate [11:37:37]Write to MH i2c: F0 00 00 76 2B 90 [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: F0 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: F0 09 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: F0 09 00 76 2B 00 86 1F B3 67 7E 41 4F 65 CB [11:37:37]GetLastDocTimeStamp 1739791976 [11:37:37]current date 1739792262 [11:37:37]FM_GetShiftState [11:37:37]SAM_PROTO_GetShiftState [11:37:37]wFMCommunicate request_size=4 [11:37:37]MH_SAM_APDU [11:37:37]CAPDU: 80 13 01 00 [11:37:37]Write to MH i2c: E2 08 00 77 2B 80 13 01 00 00 00 00 00 1F [11:37:37]Write i2c OK [11:37:37]MH_I2C_Read... [11:37:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:37]Read from MH i2c: E2 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: E2 0E 00 [11:37:37]MH_I2C_Read... [11:37:37]Read from MH i2c: E2 0E 00 77 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 43 [11:37:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:37:37]wFMCommunicate OK [11:37:37]SAM_PROTO_GetShiftState done [11:37:37]FM_GetShiftState done [11:37:37]opened in 1739752571 [11:37:37]opened+sec_in_day 1739838971 [11:37:37]quantity*price = 0 [11:37:37]sum+1 = 1 [11:37:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 100 17.02.2025 11:37 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30147245 ФМ: 0000000000871826 ФД: 186513 ФПД: 261100813032980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186513&fm=261100813032980&tin=02508201610067®Number=0000000000091857&sum=0 [11:37:38]StoreToDocumentArchive [11:37:38]shift 644 fd 186513 [11:37:38]save to /storage/0644/doc_00186513 [11:37:38]save last doc name /storage/0644/doc_00186513 to /storage/kkm_last_doc_name [11:37:38]save OK [11:37:38]Clear old archive folders... [11:37:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:37:38]tlvbuf is 0209E4E0 [11:37:38]SAM_PROTO_ClearQueue [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 09 00 00 [11:37:38]Write to MH i2c: E2 08 00 84 2B 80 09 00 00 00 00 00 00 21 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:38]Read from MH i2c: E2 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 [11:37:38]MH_I2C_Read... [11:37:38]Read from MH i2c: E2 03 00 84 2B 00 90 00 23 [11:37:38]RAPDU: 90 00 [11:37:38]wFMCommunicate OK [11:37:38]SAM_PROTO_ClearQueue done [11:37:38]KKMCreateOFDPacket [11:37:38]OFDProtocolAddRootSTLVToBuf [11:37:38]FM_MakeSignedData [11:37:38]FM_MakeSignedData [11:37:38]SAM_PROTO_SignData [11:37:38]wFMCommunicate request_size=4 [11:37:38]MH_SAM_APDU [11:37:38]CAPDU: 80 0D 01 02 [11:37:38]Write to MH i2c: E2 08 00 85 2B 80 0D 01 02 00 00 00 00 29 [11:37:38]Write i2c OK [11:37:38]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 85 2B 00 90 00 24 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=255 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 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 64 00 00 00 F4 03 04 00 86 1F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D8 02 00 35 04 06 00 ED [11:37:39]Write to MH i2c: E2 02 01 86 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 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 64 00 00 00 F4 03 04 00 86 1F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D8 02 00 35 04 06 00 ED 00 00 76 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 86 2B 00 90 00 25 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=10 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 02 02 05 78 45 36 1E 14 [11:37:39]Write to MH i2c: E2 0D 00 87 2B 80 0D 02 02 05 00 78 45 36 1E 14 00 00 5B [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 03 00 87 2B 00 90 00 26 [11:37:39]RAPDU: 90 00 [11:37:39]wFMCommunicate OK [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 0D 03 02 [11:37:39]Write to MH i2c: E2 08 00 88 2B 80 0D 03 02 00 00 00 00 2E [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0B 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 0B 00 88 2B 00 F5 8C D0 7C 34 47 7A 39 90 00 2A [11:37:39]RAPDU: F5 8C D0 7C 34 47 7A 39 90 00 [11:37:39]wFMCommunicate OK [11:37:39]SAM_PROTO_SignData done [11:37:39]FM_MakeSignedData done [11:37:39]CreateOFDProtocolMessage [11:37:39]wFMCommunicate request_size=4 [11:37:39]MH_SAM_APDU [11:37:39]CAPDU: 80 11 00 00 [11:37:39]Write to MH i2c: E2 08 00 89 2B 80 11 00 00 00 00 00 00 2E [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:39]Read from MH i2c: E2 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: E2 17 00 89 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [11:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:37:39]wFMCommunicate OK [11:37:39]CreateOFDProtocolMessage done [11:37:39]OFDSenderStorePacket 186513 [11:37:39]StoreOFDPacket docnum=186513 [11:37:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA 87 07 01 54 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 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 64 00 00 00 F4 03 04 00 86 1F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D8 02 00 35 04 06 00 ED 78 45 36 1E 14 F5 8C D0 7C 34 47 7A 39 [11:37:39]CheckFolder [11:37:39]dirname=/storage/ofd_packets [11:37:39]CheckFolder done [11:37:39]ProducePacketName [11:37:39]name=ofd_packets/00186513 [11:37:39]NVStorageSaveData ofd_packets/00186513 [11:37:39]File name is /storage/ofd_packets/00186513 [11:37:39]Write 301 bytes [11:37:39]NVStorageSaveData done [11:37:39]OFDSenderStorePacket done [11:37:39]KKMCreateOFDPacket done [11:37:39]NVStorageSaveData kkm_last_timestamp [11:37:39]File name is /storage/kkm_last_timestamp [11:37:39]Write 4 bytes [11:37:39]NVStorageSaveData done [11:37:39]ExternCall_PrintAddStr [11:37:39]wPrintStart [11:37:39]Write to MH i2c: 01 00 00 8A 2B B5 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 8A 2B 00 00 00 00 00 FF 0F CA [11:37:39]RasterBufferAndPrint [11:37:39]line Счет N : (1)411646 [11:37:39]line ИНН: 02508201610067 [11:37:39]line Контрольно-Кассовый Чек [11:37:39]line ПРОДАЖА [11:37:39]line ТРК (МРК, ГНК) : 22 [11:37:39]line Товар: 2710124130 [11:37:39]line Аи-92-К-2 [11:37:39]line 35.000 * 0.00 [11:37:39]line = 0.00 [11:37:39]line НДС 12% НСП 1% [11:37:39]line > о реализуемом товаре [11:37:39]line ИТОГО: 0.00 [11:37:39]line НСП 1% : 0.00 [11:37:39]line НДС 12% : 0.00 [11:37:39]line Наличными: 0.00 [11:37:39]line Безнал.: 0.00 [11:37:39]line Место: АЗС № 92 "Партнер Нефть" [11:37:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:37:39]line СНО: Общий режим [11:37:39]line Чек 100 17.02.2025 11:37 [11:37:39]line Смена: 644 ФФД: 1.0 [11:37:39]line ЗНМ: 0300000118 [11:37:39]line РНМ: 0000000000091857 [11:37:39]line Версия ККМ: 001 [11:37:39]line Талоны: ТК ГПНА Online [11:37:39]line 30147245 [11:37:39]line ФМ: 0000000000871826 [11:37:39]line ФД: 186513 [11:37:39]line ФПД: 261100813032980 [11:37:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113742&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186513&fm=261100813032980&tin=02508201610067®Number=0000000000091857&sum=0 [11:37:39]written 0, free lines is 4095 [11:37:39]OFD Sender: Processing packet 186513 [packets to send 49, broken 48] [11:37:39]ProducePacketName [11:37:39]name=ofd_packets/00186513 [11:37:39]OFD Sender: To server: pG, [11:37:39]CommunicateWithHost lk.salyk.kg:30040 [11:37:39]ConnectInit lk.salyk.kg [11:37:39]Connected sock=10 [11:37:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BA 87 07 01 54 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 88 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 64 00 00 00 F4 03 04 00 86 1F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D8 02 00 35 04 06 00 ED 78 45 36 1E 14 F5 8C D0 7C 34 47 7A 39 [11:37:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9D B4 47 00 B9 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 91 D8 02 00 F4 03 04 00 E0 C5 B2 67 B6 04 01 00 00 76 FF 1A 81 84 BE 5F 5C [11:37:39]CommunicateWithHost err = 0 [11:37:39]CheckOFDResponse [11:37:39]1017 (14) - 77093643461234 [11:37:39]1041 (16) - 0000000000871826 [11:37:39]1040 (4) - 186513 [11:37:39]1012 (4) - 17.02.2025 05:15 [11:37:39]1206 (1) - 0 [11:37:39]OFD Sender: Remove packet 186513 [11:37:39]ProducePacketName [11:37:39]name=ofd_packets/00186513 [11:37:39]NVStorageDeleteData [11:37:39]Write to MH i2c: 01 00 00 B4 2B DF [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: 01 07 00 B4 2B 00 00 00 00 00 12 0D 05 [11:37:39]RasterBufferAndPrint [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]line [11:37:39]written 0, free lines is 3355 [11:37:39]MH_Cut [11:37:39]Write to MH i2c: D1 01 00 BB 2B 01 B8 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 01 00 [11:37:39]MH_I2C_Read... [11:37:39]Read from MH i2c: D1 01 00 BB 2B 00 B7 [11:37:39]Write to MH i2c: 01 00 00 BC 2B E7 [11:37:39]Write i2c OK [11:37:39]MH_I2C_Read... [11:37:40]OFD Sender: No OFD packet to send [11:37:40]*** Cut start [11:37:40]*** Partial cut [11:37:40]*** CUTSNS_PIN = 1 [11:37:40]*** CUTSNS_PIN = 0 [11:37:40]*** Brake cut motor [11:37:41]Read from MH i2c: 01 [11:37:41]MH_I2C_Read... [11:37:41]*** Stop cut motor [11:37:41]*** Cut end [11:37:41]Read from MH i2c: 01 07 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 FF 0F FC [11:37:41]process_action close_receipt done [11:37:41]requested_data is exist [11:37:41]produce_requested_data [11:37:41]requested_item fm.sn is exist - process it [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 11 00 00 [11:37:41]Write to MH i2c: E2 08 00 BD 2B 80 11 00 00 00 00 00 00 62 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 17 00 BD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B5 [11:37:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:37:41]wFMCommunicate OK [11:37:41]requested_item fd.num is exist - process it [11:37:41]SAM_PROTO_GetFieldsCounters [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 13 00 00 [11:37:41]Write to MH i2c: E2 08 00 BE 2B 80 13 00 00 00 00 00 00 65 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 62 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 62 00 BE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [11:37:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 91 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_GetFieldsCounters done [11:37:41]requested_item shift.num is exist - process it [11:37:41]requested_item shift.opened is exist - process it [11:37:41]req_shift_opened [11:37:41]FM_GetShiftState [11:37:41]SAM_PROTO_GetShiftState [11:37:41]wFMCommunicate request_size=4 [11:37:41]MH_SAM_APDU [11:37:41]CAPDU: 80 13 01 00 [11:37:41]Write to MH i2c: E2 08 00 BF 2B 80 13 01 00 00 00 00 00 67 [11:37:41]Write i2c OK [11:37:41]MH_I2C_Read... [11:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:41]Read from MH i2c: E2 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 0E 00 [11:37:41]MH_I2C_Read... [11:37:41]Read from MH i2c: E2 0E 00 BF 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8B [11:37:41]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:37:41]wFMCommunicate OK [11:37:41]SAM_PROTO_GetShiftState done [11:37:41]FM_GetShiftState done [11:37:41]req_shift_opened done [11:37:41]requested_item shift.open_date is exist - process it [11:37:41]req_shift_open_date [11:37:41]req_shift_open_date done [11:37:41]produce_requested_data done [11:37:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186513,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:37:41]process_action_free close_receipt [11:37:41]json_value_free [11:37:41]json_value_free done [11:37:41]process_json_proto returns [11:37:41]Send response to host [11:37:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186513,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:37:41]free response buf [11:37:41]execute_script done [11:37:41]execute_script returns [11:37:41]free content buf [11:37:41]Sock 8.Close socket [11:37:41]Sock 8.Thread stoped [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:47]accept exits with 9 [11:39:47]New connection [11:39:47]New thread 3067358564 created [11:39:47]Thread 3067501924 joined [11:39:47]Waiting for new connection... [11:39:47] Sock 9.Parse request [11:39:47]Sock 9.Check first char [11:39:47]Sock 9.First char is OK [11:39:47]request: POST /json_proto HTTP/1.0 [11:39:47]Method: POST [11:39:47]URL: /json_proto [11:39:47]Method is POST - this is cgi request [11:39:47]url: /json_proto [11:39:47]query_string will be loaded in cgi processing [11:39:47]execute_cgi json_proto POST (null) [11:39:47]execute_cgi path=json_proto method=POST [11:39:47]POST find Content-Length [11:39:47]Host: 172.17.46.131:8080 [11:39:47]Content-Length: 677 [11:39:47]Content-Type: application/json [11:39:47] [11:39:47]POST finish read [11:39:47]Found Content-Length = 677 [11:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.340, "sum" : 150.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:47]execute_script... [11:39:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 2.340, "sum" : 150.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:47]POST & json_proto [11:39:47]process_json_proto [11:39:47]json parsed OK: [11:39:47]protocol is kg_v1.0 [11:39:47]action value=close_receipt [11:39:47]process_action close_receipt [11:39:47]cmd_close_receipt [11:39:47]MH_GetDate [11:39:47]Write to MH i2c: F0 00 00 C0 2B DA [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 09 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 09 00 C0 2B 00 08 20 B3 67 7E 41 4F 65 98 [11:39:47]GetLastDocTimeStamp 1739792262 [11:39:47]current date 1739792392 [11:39:47]FM_GetShiftState [11:39:47]SAM_PROTO_GetShiftState [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 13 01 00 [11:39:47]Write to MH i2c: E2 08 00 C1 2B 80 13 01 00 00 00 00 00 69 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 C1 2B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8D [11:39:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_GetShiftState done [11:39:47]FM_GetShiftState done [11:39:47]opened in 1739752571 [11:39:47]opened+sec_in_day 1739838971 [11:39:47]quantity*price = 15022 [11:39:47]sum+1 = 15024 [11:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.95 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 101 17.02.2025 11:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186514 ФПД: 37284686375060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186514&fm=37284686375060&tin=02508201610067®Number=0000000000091857&sum=15000 [11:39:48]StoreToDocumentArchive [11:39:48]shift 644 fd 186514 [11:39:48]save to /storage/0644/doc_00186514 [11:39:48]save last doc name /storage/0644/doc_00186514 to /storage/kkm_last_doc_name [11:39:48]save OK [11:39:48]Clear old archive folders... [11:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:48]tlvbuf is 02082270 [11:39:48]SAM_PROTO_ClearQueue [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 09 00 00 [11:39:48]Write to MH i2c: E2 08 00 CE 2B 80 09 00 00 00 00 00 00 6B [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 CE 2B 00 90 00 6D [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_ClearQueue done [11:39:48]KKMCreateOFDPacket [11:39:48]OFDProtocolAddRootSTLVToBuf [11:39:48]FM_MakeSignedData [11:39:48]FM_MakeSignedData [11:39:48]SAM_PROTO_SignData [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 01 02 [11:39:48]Write to MH i2c: E2 08 00 CF 2B 80 0D 01 02 00 00 00 00 73 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 CF 2B 00 90 00 6E [11:39:49]RAPDU: 90 00 [11:39:49]wFMCommunicate OK [11:39:49]wFMCommunicate request_size=255 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 08 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D8 02 00 35 04 06 00 21 [11:39:49]Write to MH i2c: E2 02 01 D0 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 08 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D8 02 00 35 04 06 00 21 00 00 E6 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 D0 2B 00 90 00 6F [11:39:49]RAPDU: 90 00 [11:39:49]wFMCommunicate OK [11:39:49]wFMCommunicate request_size=10 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 0D 02 02 05 E9 04 7C A8 94 [11:39:49]Write to MH i2c: E2 0D 00 D1 2B 80 0D 02 02 05 00 E9 04 7C A8 94 00 00 25 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 03 00 D1 2B 00 90 00 70 [11:39:49]RAPDU: 90 00 [11:39:49]wFMCommunicate OK [11:39:49]wFMCommunicate request_size=4 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 0D 03 02 [11:39:49]Write to MH i2c: E2 08 00 D2 2B 80 0D 03 02 00 00 00 00 78 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 0B 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 0B 00 D2 2B 00 79 B1 F9 F0 4D 7D 23 7F 90 00 F8 [11:39:49]RAPDU: 79 B1 F9 F0 4D 7D 23 7F 90 00 [11:39:49]wFMCommunicate OK [11:39:49]SAM_PROTO_SignData done [11:39:49]FM_MakeSignedData done [11:39:49]CreateOFDProtocolMessage [11:39:49]wFMCommunicate request_size=4 [11:39:49]MH_SAM_APDU [11:39:49]CAPDU: 80 11 00 00 [11:39:49]Write to MH i2c: E2 08 00 D3 2B 80 11 00 00 00 00 00 00 78 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 17 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 17 00 D3 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [11:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:39:49]wFMCommunicate OK [11:39:49]CreateOFDProtocolMessage done [11:39:49]OFDSenderStorePacket 186514 [11:39:49]StoreOFDPacket docnum=186514 [11:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 66 20 07 01 8B 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 08 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D8 02 00 35 04 06 00 21 E9 04 7C A8 94 79 B1 F9 F0 4D 7D 23 7F [11:39:49]CheckFolder [11:39:49]dirname=/storage/ofd_packets [11:39:49]CheckFolder done [11:39:49]ProducePacketName [11:39:49]name=ofd_packets/00186514 [11:39:49]NVStorageSaveData ofd_packets/00186514 [11:39:49]File name is /storage/ofd_packets/00186514 [11:39:49]Write 301 bytes [11:39:49]NVStorageSaveData done [11:39:49]OFDSenderStorePacket done [11:39:49]KKMCreateOFDPacket done [11:39:49]NVStorageSaveData kkm_last_timestamp [11:39:49]File name is /storage/kkm_last_timestamp [11:39:49]Write 4 bytes [11:39:49]NVStorageSaveData done [11:39:49]ExternCall_PrintAddStr [11:39:49]wPrintStart [11:39:49]Write to MH i2c: 01 00 00 D4 2B FF [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 D4 2B 00 00 00 00 00 FF 0F 14 [11:39:49]RasterBufferAndPrint [11:39:49]line Счет N : (1)411647 [11:39:49]line ИНН: 02508201610067 [11:39:49]line Контрольно-Кассовый Чек [11:39:49]line ПРОДАЖА [11:39:49]line ТРК (МРК, ГНК) : 32 [11:39:49]line Товар: 2710124130 [11:39:49]line Аи-92-К-2 [11:39:49]line 2.340 * 64.20 [11:39:49]line = 150.23 [11:39:49]line НДС 12% НСП 1% [11:39:49]line > о реализуемом товаре [11:39:49]line ОКРУГЛЕНИЕ: -0.23 [11:39:49]line ИТОГО: 150.00 [11:39:49]line Внесено: 150.00 [11:39:49]line СДАЧА: 0.00 [11:39:49]line НСП 1% : 1.33 [11:39:49]line НДС 12% : 15.95 [11:39:49]line Наличными: 150.00 [11:39:49]line Безнал.: 0.00 [11:39:49]line Место: АЗС № 92 "Партнер Нефть" [11:39:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:39:49]line СНО: Общий режим [11:39:49]line Чек 101 17.02.2025 11:39 [11:39:49]line Смена: 644 ФФД: 1.0 [11:39:49]line ЗНМ: 0300000118 [11:39:49]line РНМ: 0000000000091857 [11:39:49]line Версия ККМ: 001 [11:39:49]line ФМ: 0000000000871826 [11:39:49]line ФД: 186514 [11:39:49]line ФПД: 37284686375060 [11:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T113952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186514&fm=37284686375060&tin=02508201610067®Number=0000000000091857&sum=15000 [11:39:49]written 0, free lines is 4095 [11:39:49]OFD Sender: Processing packet 186514 [packets to send 49, broken 48] [11:39:49]ProducePacketName [11:39:49]name=ofd_packets/00186514 [11:39:49]OFD Sender: To server: pG, [11:39:49]CommunicateWithHost lk.salyk.kg:30040 [11:39:49]ConnectInit lk.salyk.kg [11:39:49]Connected sock=10 [11:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 66 20 07 01 8B 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 24 09 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 AF 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 08 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D8 02 00 35 04 06 00 21 E9 04 7C A8 94 79 B1 F9 F0 4D 7D 23 7F [11:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4D CD 47 00 ED 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 92 D8 02 00 F4 03 04 00 62 C6 B2 67 B6 04 01 00 00 6A 5E 36 F1 0A 68 07 33 [11:39:50]CommunicateWithHost err = 0 [11:39:50]CheckOFDResponse [11:39:50]1017 (14) - 77093643461234 [11:39:50]1041 (16) - 0000000000871826 [11:39:50]1040 (4) - 186514 [11:39:50]1012 (4) - 17.02.2025 05:17 [11:39:50]1206 (1) - 0 [11:39:50]OFD Sender: Remove packet 186514 [11:39:50]ProducePacketName [11:39:50]name=ofd_packets/00186514 [11:39:50]NVStorageDeleteData [11:39:50]Write to MH i2c: 01 00 00 FF 2B 2A [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: 01 07 00 FF 2B 00 00 00 00 00 E4 0C 21 [11:39:50]RasterBufferAndPrint [11:39:50]line [11:39:50]line [11:39:50]line [11:39:50]line [11:39:50]line [11:39:50]written 0, free lines is 3306 [11:39:50]MH_Cut [11:39:50]Write to MH i2c: D1 01 00 06 2C 01 04 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: D1 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: D1 01 00 [11:39:50]MH_I2C_Read... [11:39:50]Read from MH i2c: D1 01 00 06 2C 00 03 [11:39:50]Write to MH i2c: 01 00 00 07 2C 33 [11:39:50]Write i2c OK [11:39:50]MH_I2C_Read... [11:39:50]OFD Sender: No OFD packet to send [11:39:50]*** Cut start [11:39:50]*** Partial cut [11:39:50]*** CUTSNS_PIN = 1 [11:39:50]*** CUTSNS_PIN = 0 [11:39:51]*** Brake cut motor [11:39:51]Read from MH i2c: 01 [11:39:51]MH_I2C_Read... [11:39:51]*** Stop cut motor [11:39:51]*** Cut end [11:39:51]Read from MH i2c: 01 07 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 07 2C 00 00 00 00 00 FF 0F 48 [11:39:51]process_action close_receipt done [11:39:51]requested_data is exist [11:39:51]produce_requested_data [11:39:51]requested_item fm.sn is exist - process it [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 11 00 00 [11:39:51]Write to MH i2c: E2 08 00 08 2C 80 11 00 00 00 00 00 00 AE [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 08 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 01 [11:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:39:51]wFMCommunicate OK [11:39:51]requested_item fd.num is exist - process it [11:39:51]SAM_PROTO_GetFieldsCounters [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 13 00 00 [11:39:51]Write to MH i2c: E2 08 00 09 2C 80 13 00 00 00 00 00 00 B1 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 62 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 62 00 09 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [11:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 92 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_GetFieldsCounters done [11:39:51]requested_item shift.num is exist - process it [11:39:51]requested_item shift.opened is exist - process it [11:39:51]req_shift_opened [11:39:51]FM_GetShiftState [11:39:51]SAM_PROTO_GetShiftState [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 13 01 00 [11:39:51]Write to MH i2c: E2 08 00 0A 2C 80 13 01 00 00 00 00 00 B3 [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0E 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0E 00 0A 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D7 [11:39:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_GetShiftState done [11:39:51]FM_GetShiftState done [11:39:51]req_shift_opened done [11:39:51]requested_item shift.open_date is exist - process it [11:39:51]req_shift_open_date [11:39:51]req_shift_open_date done [11:39:51]produce_requested_data done [11:39:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186514,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:39:51]process_action_free close_receipt [11:39:51]json_value_free [11:39:51]json_value_free done [11:39:51]process_json_proto returns [11:39:51]Send response to host [11:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186514,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:39:51]free response buf [11:39:51]execute_script done [11:39:51]execute_script returns [11:39:51]free content buf [11:39:51]Sock 9.Close socket [11:39:51]Sock 9.Thread stoped [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:22]accept exits with 8 [11:41:22]New connection [11:41:22]New thread 3067501924 created [11:41:22]Thread 3067358564 joined [11:41:22]Waiting for new connection... [11:41:22] Sock 8.Parse request [11:41:22]Sock 8.Check first char [11:41:22]Sock 8.First char is OK [11:41:22]request: POST /json_proto HTTP/1.0 [11:41:22]Method: POST [11:41:22]URL: /json_proto [11:41:22]Method is POST - this is cgi request [11:41:22]url: /json_proto [11:41:22]query_string will be loaded in cgi processing [11:41:22]execute_cgi json_proto POST (null) [11:41:22]execute_cgi path=json_proto method=POST [11:41:22]POST find Content-Length [11:41:22]Host: 172.17.46.131:8080 [11:41:22]Content-Length: 677 [11:41:22]Content-Type: application/json [11:41:22] [11:41:22]POST finish read [11:41:22]Found Content-Length = 677 [11:41:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:22]execute_script... [11:41: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)411648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:22]POST & json_proto [11:41:22]process_json_proto [11:41:22]json parsed OK: [11:41:22]protocol is kg_v1.0 [11:41:22]action value=close_receipt [11:41:22]process_action close_receipt [11:41:22]cmd_close_receipt [11:41:22]MH_GetDate [11:41:22]Write to MH i2c: F0 00 00 0B 2C 26 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: F0 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: F0 09 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: F0 09 00 0B 2C 00 66 20 B3 67 7E 41 4F 65 42 [11:41:22]GetLastDocTimeStamp 1739792392 [11:41:22]current date 1739792486 [11:41:22]FM_GetShiftState [11:41:22]SAM_PROTO_GetShiftState [11:41:22]wFMCommunicate request_size=4 [11:41:22]MH_SAM_APDU [11:41:22]CAPDU: 80 13 01 00 [11:41:22]Write to MH i2c: E2 08 00 0C 2C 80 13 01 00 00 00 00 00 B5 [11:41:22]Write i2c OK [11:41:22]MH_I2C_Read... [11:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:22]Read from MH i2c: E2 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0E 00 [11:41:22]MH_I2C_Read... [11:41:22]Read from MH i2c: E2 0E 00 0C 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D9 [11:41:22]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:41:22]wFMCommunicate OK [11:41:22]SAM_PROTO_GetShiftState done [11:41:22]FM_GetShiftState done [11:41:22]opened in 1739752571 [11:41:22]opened+sec_in_day 1739838971 [11:41:22]quantity*price = 30045 [11:41:22]sum+1 = 30047 [11:41:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 102 17.02.2025 11:41 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186515 ФПД: 52124424041850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T114126&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186515&fm=52124424041850&tin=02508201610067®Number=0000000000091857&sum=30000 [11:41:23]StoreToDocumentArchive [11:41:23]shift 644 fd 186515 [11:41:23]save to /storage/0644/doc_00186515 [11:41:23]save last doc name /storage/0644/doc_00186515 to /storage/kkm_last_doc_name [11:41:23]save OK [11:41:23]Clear old archive folders... [11:41:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:23]tlvbuf is 02021B60 [11:41:23]SAM_PROTO_ClearQueue [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 09 00 00 [11:41:23]Write to MH i2c: E2 08 00 19 2C 80 09 00 00 00 00 00 00 B7 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 19 2C 00 90 00 B9 [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]SAM_PROTO_ClearQueue done [11:41:23]KKMCreateOFDPacket [11:41:23]OFDProtocolAddRootSTLVToBuf [11:41:23]FM_MakeSignedData [11:41:23]FM_MakeSignedData [11:41:23]SAM_PROTO_SignData [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 01 02 [11:41:23]Write to MH i2c: E2 08 00 1A 2C 80 0D 01 02 00 00 00 00 BF [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 1A 2C 00 90 00 BA [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=255 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 66 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D8 02 00 35 04 06 00 2F [11:41:23]Write to MH i2c: E2 02 01 1B 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 66 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D8 02 00 35 04 06 00 2F 00 00 25 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 1B 2C 00 90 00 BB [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=10 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 02 02 05 68 29 C7 75 7A [11:41:23]Write to MH i2c: E2 0D 00 1C 2C 80 0D 02 02 05 00 68 29 C7 75 7A 00 00 13 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 03 00 1C 2C 00 90 00 BC [11:41:23]RAPDU: 90 00 [11:41:23]wFMCommunicate OK [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 0D 03 02 [11:41:23]Write to MH i2c: E2 08 00 1D 2C 80 0D 03 02 00 00 00 00 C4 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 0B 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 0B 00 1D 2C 00 F2 44 2B CA AF 9F 97 7D 90 00 52 [11:41:23]RAPDU: F2 44 2B CA AF 9F 97 7D 90 00 [11:41:23]wFMCommunicate OK [11:41:23]SAM_PROTO_SignData done [11:41:23]FM_MakeSignedData done [11:41:23]CreateOFDProtocolMessage [11:41:23]wFMCommunicate request_size=4 [11:41:23]MH_SAM_APDU [11:41:23]CAPDU: 80 11 00 00 [11:41:23]Write to MH i2c: E2 08 00 1E 2C 80 11 00 00 00 00 00 00 C4 [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:23]Read from MH i2c: E2 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 17 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: E2 17 00 1E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [11:41:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:41:23]wFMCommunicate OK [11:41:23]CreateOFDProtocolMessage done [11:41:23]OFDSenderStorePacket 186515 [11:41:23]StoreOFDPacket docnum=186515 [11:41:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 13 07 01 4F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 66 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D8 02 00 35 04 06 00 2F 68 29 C7 75 7A F2 44 2B CA AF 9F 97 7D [11:41:23]CheckFolder [11:41:23]dirname=/storage/ofd_packets [11:41:23]CheckFolder done [11:41:23]ProducePacketName [11:41:23]name=ofd_packets/00186515 [11:41:23]NVStorageSaveData ofd_packets/00186515 [11:41:23]File name is /storage/ofd_packets/00186515 [11:41:23]Write 301 bytes [11:41:23]NVStorageSaveData done [11:41:23]OFDSenderStorePacket done [11:41:23]KKMCreateOFDPacket done [11:41:23]NVStorageSaveData kkm_last_timestamp [11:41:23]File name is /storage/kkm_last_timestamp [11:41:23]Write 4 bytes [11:41:23]NVStorageSaveData done [11:41:23]ExternCall_PrintAddStr [11:41:23]wPrintStart [11:41:23]Write to MH i2c: 01 00 00 1F 2C 4B [11:41:23]Write i2c OK [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 [11:41:23]MH_I2C_Read... [11:41:23]Read from MH i2c: 01 07 00 1F 2C 00 00 00 00 00 FF 0F 60 [11:41:23]RasterBufferAndPrint [11:41:23]line Счет N : (1)411648 [11:41:23]line ИНН: 02508201610067 [11:41:23]line Контрольно-Кассовый Чек [11:41:23]line ПРОДАЖА [11:41:23]line ТРК (МРК, ГНК) : 12 [11:41:23]line Товар: 2710124130 [11:41:23]line Аи-92-К-2 [11:41:23]line 4.680 * 64.20 [11:41:23]line = 300.46 [11:41:23]line НДС 12% НСП 1% [11:41:23]line > о реализуемом товаре [11:41:23]line ОКРУГЛЕНИЕ: -0.46 [11:41:23]line ИТОГО: 300.00 [11:41:23]line Внесено: 300.00 [11:41:23]line СДАЧА: 0.00 [11:41:23]line НСП 1% : 2.66 [11:41:23]line НДС 12% : 31.91 [11:41:23]line Наличными: 300.00 [11:41:23]line Безнал.: 0.00 [11:41:23]line Место: АЗС № 92 "Партнер Нефть" [11:41:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:41:23]line СНО: Общий режим [11:41:23]line Чек 102 17.02.2025 11:41 [11:41:23]line Смена: 644 ФФД: 1.0 [11:41:23]line ЗНМ: 0300000118 [11:41:23]line РНМ: 0000000000091857 [11:41:23]line Версия ККМ: 001 [11:41:23]line ФМ: 0000000000871826 [11:41:23]line ФД: 186515 [11:41:23]line ФПД: 52124424041850 [11:41:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T114126&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186515&fm=52124424041850&tin=02508201610067®Number=0000000000091857&sum=30000 [11:41:24]OFD Sender: Processing packet 186515 [packets to send 49, broken 48] [11:41:24]ProducePacketName [11:41:24]name=ofd_packets/00186515 [11:41:24]OFD Sender: To server: pG, [11:41:24]CommunicateWithHost lk.salyk.kg:30040 [11:41:24]ConnectInit lk.salyk.kg [11:41:24]written 0, free lines is 4095 [11:41:24]Connected sock=9 [11:41:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 0C 13 07 01 4F E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 66 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D8 02 00 35 04 06 00 2F 68 29 C7 75 7A F2 44 2B CA AF 9F 97 7D [11:41:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 70 0A 47 00 4A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 93 D8 02 00 F4 03 04 00 C0 C6 B2 67 B6 04 01 00 00 29 74 AD 21 5C EE 50 EA [11:41:24]CommunicateWithHost err = 0 [11:41:24]CheckOFDResponse [11:41:24]1017 (14) - 77093643461234 [11:41:24]1041 (16) - 0000000000871826 [11:41:24]1040 (4) - 186515 [11:41:24]1012 (4) - 17.02.2025 05:18 [11:41:24]1206 (1) - 0 [11:41:24]OFD Sender: Remove packet 186515 [11:41:24]ProducePacketName [11:41:24]name=ofd_packets/00186515 [11:41:24]NVStorageDeleteData [11:41:24]Write to MH i2c: 01 00 00 4A 2C 76 [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: 01 07 00 4A 2C 00 00 00 00 00 F6 0C 7F [11:41:24]RasterBufferAndPrint [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]line [11:41:24]written 0, free lines is 3324 [11:41:24]MH_Cut [11:41:24]Write to MH i2c: D1 01 00 51 2C 01 4F [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 01 00 [11:41:24]MH_I2C_Read... [11:41:24]Read from MH i2c: D1 01 00 51 2C 00 4E [11:41:24]Write to MH i2c: 01 00 00 52 2C 7E [11:41:24]Write i2c OK [11:41:24]MH_I2C_Read... [11:41:25]OFD Sender: No OFD packet to send [11:41:25]*** Cut start [11:41:25]*** Partial cut [11:41:25]*** CUTSNS_PIN = 1 [11:41:25]*** CUTSNS_PIN = 0 [11:41:25]*** Brake cut motor [11:41:26]Read from MH i2c: 01 [11:41:26]MH_I2C_Read... [11:41:26]*** Stop cut motor [11:41:26]*** Cut end [11:41:26]Read from MH i2c: 01 07 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 FF 0F 93 [11:41:26]process_action close_receipt done [11:41:26]requested_data is exist [11:41:26]produce_requested_data [11:41:26]requested_item fm.sn is exist - process it [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 11 00 00 [11:41:26]Write to MH i2c: E2 08 00 53 2C 80 11 00 00 00 00 00 00 F9 [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:26]Read from MH i2c: E2 17 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 17 00 53 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4C [11:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:41:26]wFMCommunicate OK [11:41:26]requested_item fd.num is exist - process it [11:41:26]SAM_PROTO_GetFieldsCounters [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 13 00 00 [11:41:26]Write to MH i2c: E2 08 00 54 2C 80 13 00 00 00 00 00 00 FC [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 62 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 62 00 54 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 93 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:26]wFMCommunicate OK [11:41:26]SAM_PROTO_GetFieldsCounters done [11:41:26]requested_item shift.num is exist - process it [11:41:26]requested_item shift.opened is exist - process it [11:41:26]req_shift_opened [11:41:26]FM_GetShiftState [11:41:26]SAM_PROTO_GetShiftState [11:41:26]wFMCommunicate request_size=4 [11:41:26]MH_SAM_APDU [11:41:26]CAPDU: 80 13 01 00 [11:41:26]Write to MH i2c: E2 08 00 55 2C 80 13 01 00 00 00 00 00 FE [11:41:26]Write i2c OK [11:41:26]MH_I2C_Read... [11:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:26]Read from MH i2c: E2 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0E 00 [11:41:26]MH_I2C_Read... [11:41:26]Read from MH i2c: E2 0E 00 55 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 22 [11:41:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:41:26]wFMCommunicate OK [11:41:26]SAM_PROTO_GetShiftState done [11:41:26]FM_GetShiftState done [11:41:26]req_shift_opened done [11:41:26]requested_item shift.open_date is exist - process it [11:41:26]req_shift_open_date [11:41:26]req_shift_open_date done [11:41:26]produce_requested_data done [11:41:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186515,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:41:26]process_action_free close_receipt [11:41:26]json_value_free [11:41:26]json_value_free done [11:41:26]process_json_proto returns [11:41:26]Send response to host [11:41:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186515,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:41:26]free response buf [11:41:26]execute_script done [11:41:26]execute_script returns [11:41:26]free content buf [11:41:26]Sock 8.Close socket [11:41:26]Sock 8.Thread stoped [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]accept exits with 10 [11:42:50]New connection [11:42:50]New thread 3067358564 created [11:42:50]Thread 3067501924 joined [11:42:50]Waiting for new connection... [11:42:50] Sock 10.Parse request [11:42:50]Sock 10.Check first char [11:42:50]Sock 10.First char is OK [11:42:50]request: POST /json_proto HTTP/1.0 [11:42:50]Method: POST [11:42:50]URL: /json_proto [11:42:50]Method is POST - this is cgi request [11:42:50]url: /json_proto [11:42:50]query_string will be loaded in cgi processing [11:42:50]execute_cgi json_proto POST (null) [11:42:50]execute_cgi path=json_proto method=POST [11:42:50]POST find Content-Length [11:42:50]Host: 172.17.46.131:8080 [11:42:50]Content-Length: 678 [11:42:50]Content-Type: application/json [11:42:50] [11:42:50]POST finish read [11:42:50]Found Content-Length = 678 [11:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:50]execute_script... [11:42:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:50]POST & json_proto [11:42:50]process_json_proto [11:42:50]json parsed OK: [11:42:50]protocol is kg_v1.0 [11:42:50]action value=close_receipt [11:42:50]process_action close_receipt [11:42:50]cmd_close_receipt [11:42:50]MH_GetDate [11:42:50]Write to MH i2c: F0 00 00 56 2C 71 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: F0 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: F0 09 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: F0 09 00 56 2C 00 BE 20 B3 67 7E 41 4F 65 E5 [11:42:50]GetLastDocTimeStamp 1739792486 [11:42:50]current date 1739792574 [11:42:50]FM_GetShiftState [11:42:50]SAM_PROTO_GetShiftState [11:42:50]wFMCommunicate request_size=4 [11:42:50]MH_SAM_APDU [11:42:50]CAPDU: 80 13 01 00 [11:42:50]Write to MH i2c: E2 08 00 57 2C 80 13 01 00 00 00 00 00 00 [11:42:50]Write i2c OK [11:42:50]MH_I2C_Read... [11:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:50]Read from MH i2c: E2 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 0E 00 [11:42:50]MH_I2C_Read... [11:42:50]Read from MH i2c: E2 0E 00 57 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 24 [11:42:50]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:42:50]wFMCommunicate OK [11:42:50]SAM_PROTO_GetShiftState done [11:42:50]FM_GetShiftState done [11:42:50]opened in 1739752571 [11:42:50]opened+sec_in_day 1739838971 [11:42:50]quantity*price = 65034 [11:42:50]sum+1 = 65036 [11:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 103 17.02.2025 11:42 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186516 ФПД: 211661140273510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T114254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186516&fm=211661140273510&tin=02508201610067®Number=0000000000091857&sum=65000 [11:42:51]StoreToDocumentArchive [11:42:51]shift 644 fd 186516 [11:42:51]save to /storage/0644/doc_00186516 [11:42:51]save last doc name /storage/0644/doc_00186516 to /storage/kkm_last_doc_name [11:42:51]save OK [11:42:51]Clear old archive folders... [11:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:51]tlvbuf is 01FCA320 [11:42:51]SAM_PROTO_ClearQueue [11:42:51]wFMCommunicate request_size=4 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 09 00 00 [11:42:51]Write to MH i2c: E2 08 00 64 2C 80 09 00 00 00 00 00 00 02 [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 64 2C 00 90 00 04 [11:42:51]RAPDU: 90 00 [11:42:51]wFMCommunicate OK [11:42:51]SAM_PROTO_ClearQueue done [11:42:51]KKMCreateOFDPacket [11:42:51]OFDProtocolAddRootSTLVToBuf [11:42:51]FM_MakeSignedData [11:42:51]FM_MakeSignedData [11:42:51]SAM_PROTO_SignData [11:42:51]wFMCommunicate request_size=4 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 0D 01 02 [11:42:51]Write to MH i2c: E2 08 00 65 2C 80 0D 01 02 00 00 00 00 0A [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 65 2C 00 90 00 05 [11:42:51]RAPDU: 90 00 [11:42:51]wFMCommunicate OK [11:42:51]wFMCommunicate request_size=255 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BE 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D8 02 00 35 04 06 00 C0 [11:42:51]Write to MH i2c: E2 02 01 66 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BE 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D8 02 00 35 04 06 00 C0 00 00 37 [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 66 2C 00 90 00 06 [11:42:51]RAPDU: 90 00 [11:42:51]wFMCommunicate OK [11:42:51]wFMCommunicate request_size=10 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 0D 02 02 05 81 33 14 29 66 [11:42:51]Write to MH i2c: E2 0D 00 67 2C 80 0D 02 02 05 00 81 33 14 29 66 00 00 6E [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 03 00 67 2C 00 90 00 07 [11:42:51]RAPDU: 90 00 [11:42:51]wFMCommunicate OK [11:42:51]wFMCommunicate request_size=4 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 0D 03 02 [11:42:51]Write to MH i2c: E2 08 00 68 2C 80 0D 03 02 00 00 00 00 0F [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0B 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 0B 00 68 2C 00 43 F0 BA 55 11 6E 1E D2 90 00 C1 [11:42:51]RAPDU: 43 F0 BA 55 11 6E 1E D2 90 00 [11:42:51]wFMCommunicate OK [11:42:51]SAM_PROTO_SignData done [11:42:51]FM_MakeSignedData done [11:42:51]CreateOFDProtocolMessage [11:42:51]wFMCommunicate request_size=4 [11:42:51]MH_SAM_APDU [11:42:51]CAPDU: 80 11 00 00 [11:42:51]Write to MH i2c: E2 08 00 69 2C 80 11 00 00 00 00 00 00 0F [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:51]Read from MH i2c: E2 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 17 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: E2 17 00 69 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [11:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:42:51]wFMCommunicate OK [11:42:51]CreateOFDProtocolMessage done [11:42:51]OFDSenderStorePacket 186516 [11:42:51]StoreOFDPacket docnum=186516 [11:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 29 07 01 DB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BE 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D8 02 00 35 04 06 00 C0 81 33 14 29 66 43 F0 BA 55 11 6E 1E D2 [11:42:51]CheckFolder [11:42:51]dirname=/storage/ofd_packets [11:42:51]CheckFolder done [11:42:51]ProducePacketName [11:42:51]name=ofd_packets/00186516 [11:42:51]NVStorageSaveData ofd_packets/00186516 [11:42:51]File name is /storage/ofd_packets/00186516 [11:42:51]Write 301 bytes [11:42:51]NVStorageSaveData done [11:42:51]OFDSenderStorePacket done [11:42:51]KKMCreateOFDPacket done [11:42:51]NVStorageSaveData kkm_last_timestamp [11:42:51]File name is /storage/kkm_last_timestamp [11:42:51]Write 4 bytes [11:42:51]NVStorageSaveData done [11:42:51]ExternCall_PrintAddStr [11:42:51]wPrintStart [11:42:51]Write to MH i2c: 01 00 00 6A 2C 96 [11:42:51]Write i2c OK [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: 01 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: 01 07 00 [11:42:51]MH_I2C_Read... [11:42:51]Read from MH i2c: 01 07 00 6A 2C 00 00 00 00 00 FF 0F AB [11:42:51]RasterBufferAndPrint [11:42:51]line Счет N : (1)411649 [11:42:51]line ИНН: 02508201610067 [11:42:51]line Контрольно-Кассовый Чек [11:42:51]line ПРОДАЖА [11:42:51]line ТРК (МРК, ГНК) : 42 [11:42:51]line Товар: 2710124130 [11:42:51]line Аи-92-К-2 [11:42:51]line 10.130 * 64.20 [11:42:51]line = 650.35 [11:42:51]line НДС 12% НСП 1% [11:42:51]line > о реализуемом товаре [11:42:51]line ОКРУГЛЕНИЕ: -0.35 [11:42:51]line ИТОГО: 650.00 [11:42:51]line Внесено: 650.00 [11:42:51]line СДАЧА: 0.00 [11:42:51]line НСП 1% : 5.75 [11:42:51]line НДС 12% : 69.06 [11:42:51]line Наличными: 650.00 [11:42:51]line Безнал.: 0.00 [11:42:51]line Место: АЗС № 92 "Партнер Нефть" [11:42:51]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:42:51]line СНО: Общий режим [11:42:51]line Чек 103 17.02.2025 11:42 [11:42:51]line Смена: 644 ФФД: 1.0 [11:42:51]line ЗНМ: 0300000118 [11:42:51]line РНМ: 0000000000091857 [11:42:51]line Версия ККМ: 001 [11:42:51]line ФМ: 0000000000871826 [11:42:51]line ФД: 186516 [11:42:51]line ФПД: 211661140273510 [11:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T114254&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186516&fm=211661140273510&tin=02508201610067®Number=0000000000091857&sum=65000 [11:42:52]written 0, free lines is 4095 [11:42:52]OFD Sender: Processing packet 186516 [packets to send 49, broken 48] [11:42:52]ProducePacketName [11:42:52]name=ofd_packets/00186516 [11:42:52]OFD Sender: To server: pG, [11:42:52]CommunicateWithHost lk.salyk.kg:30040 [11:42:52]ConnectInit lk.salyk.kg [11:42:52]Connected sock=9 [11:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 17 29 07 01 DB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 BE 20 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D8 02 00 35 04 06 00 C0 81 33 14 29 66 43 F0 BA 55 11 6E 1E D2 [11:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3A 1F 47 00 F9 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 94 D8 02 00 F4 03 04 00 18 C7 B2 67 B6 04 01 00 00 7B BD 17 65 52 3D 5B F3 [11:42:52]CommunicateWithHost err = 0 [11:42:52]CheckOFDResponse [11:42:52]1017 (14) - 77093643461234 [11:42:52]1041 (16) - 0000000000871826 [11:42:52]1040 (4) - 186516 [11:42:52]1012 (4) - 17.02.2025 05:20 [11:42:52]1206 (1) - 0 [11:42:52]OFD Sender: Remove packet 186516 [11:42:52]ProducePacketName [11:42:52]name=ofd_packets/00186516 [11:42:52]NVStorageDeleteData [11:42:52]Write to MH i2c: 01 00 00 95 2C C1 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: 01 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: 01 07 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: 01 07 00 95 2C 00 00 00 00 00 F7 0C CB [11:42:52]RasterBufferAndPrint [11:42:52]line [11:42:52]line [11:42:52]line [11:42:52]line [11:42:52]line [11:42:52]written 0, free lines is 3325 [11:42:52]MH_Cut [11:42:52]Write to MH i2c: D1 01 00 9C 2C 01 9A [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: D1 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: D1 01 00 [11:42:52]MH_I2C_Read... [11:42:52]Read from MH i2c: D1 01 00 9C 2C 00 99 [11:42:52]Write to MH i2c: 01 00 00 9D 2C C9 [11:42:52]Write i2c OK [11:42:52]MH_I2C_Read... [11:42:53]OFD Sender: No OFD packet to send [11:42:53]*** Cut start [11:42:53]*** Partial cut [11:42:53]*** CUTSNS_PIN = 1 [11:42:53]*** CUTSNS_PIN = 0 [11:42:53]*** Brake cut motor [11:42:54]Read from MH i2c: 01 [11:42:54]MH_I2C_Read... [11:42:54]*** Stop cut motor [11:42:54]*** Cut end [11:42:54]Read from MH i2c: 01 07 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: 01 07 00 9D 2C 00 00 00 00 00 FF 0F DE [11:42:54]process_action close_receipt done [11:42:54]requested_data is exist [11:42:54]produce_requested_data [11:42:54]requested_item fm.sn is exist - process it [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 11 00 00 [11:42:54]Write to MH i2c: E2 08 00 9E 2C 80 11 00 00 00 00 00 00 44 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 17 00 9E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [11:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:42:54]wFMCommunicate OK [11:42:54]requested_item fd.num is exist - process it [11:42:54]SAM_PROTO_GetFieldsCounters [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 13 00 00 [11:42:54]Write to MH i2c: E2 08 00 9F 2C 80 13 00 00 00 00 00 00 47 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 62 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 62 00 9F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [11:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 94 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_GetFieldsCounters done [11:42:54]requested_item shift.num is exist - process it [11:42:54]requested_item shift.opened is exist - process it [11:42:54]req_shift_opened [11:42:54]FM_GetShiftState [11:42:54]SAM_PROTO_GetShiftState [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 13 01 00 [11:42:54]Write to MH i2c: E2 08 00 A0 2C 80 13 01 00 00 00 00 00 49 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 A0 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6D [11:42:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_GetShiftState done [11:42:54]FM_GetShiftState done [11:42:54]req_shift_opened done [11:42:54]requested_item shift.open_date is exist - process it [11:42:54]req_shift_open_date [11:42:54]req_shift_open_date done [11:42:54]produce_requested_data done [11:42:54]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186516,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:42:54]process_action_free close_receipt [11:42:54]json_value_free [11:42:54]json_value_free done [11:42:54]process_json_proto returns [11:42:54]Send response to host [11:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186516,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:42:54]free response buf [11:42:54]execute_script done [11:42:54]execute_script returns [11:42:54]free content buf [11:42:54]Sock 10.Close socket [11:42:54]Sock 10.Thread stoped [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:55]accept exits with 8 [11:50:55]New connection [11:50:55]New thread 3067501924 created [11:50:55]Thread 3067358564 joined [11:50:55]Waiting for new connection... [11:50:55] Sock 8.Parse request [11:50:55]Sock 8.Check first char [11:50:55]Sock 8.First char is OK [11:50:55]request: POST /json_proto HTTP/1.0 [11:50:55]Method: POST [11:50:55]URL: /json_proto [11:50:55]Method is POST - this is cgi request [11:50:55]url: /json_proto [11:50:55]query_string will be loaded in cgi processing [11:50:55]execute_cgi json_proto POST (null) [11:50:55]execute_cgi path=json_proto method=POST [11:50:55]POST find Content-Length [11:50:55]Host: 172.17.46.131:8080 [11:50:55]Content-Length: 677 [11:50:55]Content-Type: application/json [11:50:55] [11:50:55]POST finish read [11:50:55]Found Content-Length = 677 [11:50:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:55]execute_script... [11:50: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)411651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:55]POST & json_proto [11:50:55]process_json_proto [11:50:55]json parsed OK: [11:50:55]protocol is kg_v1.0 [11:50:55]action value=close_receipt [11:50:55]process_action close_receipt [11:50:55]cmd_close_receipt [11:50:55]MH_GetDate [11:50:55]Write to MH i2c: F0 00 00 A1 2C BC [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: F0 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: F0 09 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: F0 09 00 A1 2C 00 A3 22 B3 67 7E 41 4F 65 17 [11:50:55]GetLastDocTimeStamp 1739792574 [11:50:55]current date 1739793059 [11:50:55]FM_GetShiftState [11:50:55]SAM_PROTO_GetShiftState [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 13 01 00 [11:50:55]Write to MH i2c: E2 08 00 A2 2C 80 13 01 00 00 00 00 00 4B [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0E 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0E 00 A2 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6F [11:50:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:50:55]wFMCommunicate OK [11:50:55]SAM_PROTO_GetShiftState done [11:50:55]FM_GetShiftState done [11:50:55]opened in 1739752571 [11:50:55]opened+sec_in_day 1739838971 [11:50:55]quantity*price = 20030 [11:50:55]sum+1 = 20031 [11:50:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 104 17.02.2025 11:50 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186517 ФПД: 68756498811579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186517&fm=68756498811579&tin=02508201610067®Number=0000000000091857&sum=20000 [11:50:56]StoreToDocumentArchive [11:50:56]shift 644 fd 186517 [11:50:56]save to /storage/0644/doc_00186517 [11:50:56]save last doc name /storage/0644/doc_00186517 to /storage/kkm_last_doc_name [11:50:56]save OK [11:50:56]Clear old archive folders... [11:50:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:56]tlvbuf is 02090E20 [11:50:56]SAM_PROTO_ClearQueue [11:50:56]wFMCommunicate request_size=4 [11:50:56]MH_SAM_APDU [11:50:56]CAPDU: 80 09 00 00 [11:50:56]Write to MH i2c: E2 08 00 AF 2C 80 09 00 00 00 00 00 00 4D [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:56]Read from MH i2c: E2 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 03 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 03 00 AF 2C 00 90 00 4F [11:50:56]RAPDU: 90 00 [11:50:56]wFMCommunicate OK [11:50:56]SAM_PROTO_ClearQueue done [11:50:56]KKMCreateOFDPacket [11:50:56]OFDProtocolAddRootSTLVToBuf [11:50:56]FM_MakeSignedData [11:50:56]FM_MakeSignedData [11:50:56]SAM_PROTO_SignData [11:50:56]wFMCommunicate request_size=4 [11:50:56]MH_SAM_APDU [11:50:56]CAPDU: 80 0D 01 02 [11:50:56]Write to MH i2c: E2 08 00 B0 2C 80 0D 01 02 00 00 00 00 55 [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:56]Read from MH i2c: E2 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 03 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: E2 03 00 B0 2C 00 90 00 50 [11:50:56]RAPDU: 90 00 [11:50:56]wFMCommunicate OK [11:50:56]wFMCommunicate request_size=255 [11:50:56]MH_SAM_APDU [11:50:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A3 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D8 02 00 35 04 06 00 3E [11:50:56]Write to MH i2c: E2 02 01 B1 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A3 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D8 02 00 35 04 06 00 3E 00 00 B4 [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 03 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 03 00 B1 2C 00 90 00 51 [11:50:57]RAPDU: 90 00 [11:50:57]wFMCommunicate OK [11:50:57]wFMCommunicate request_size=10 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 0D 02 02 05 88 9E B0 0A BB [11:50:57]Write to MH i2c: E2 0D 00 B2 2C 80 0D 02 02 05 00 88 9E B0 0A BB 00 00 FD [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 03 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 03 00 B2 2C 00 90 00 52 [11:50:57]RAPDU: 90 00 [11:50:57]wFMCommunicate OK [11:50:57]wFMCommunicate request_size=4 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 0D 03 02 [11:50:57]Write to MH i2c: E2 08 00 B3 2C 80 0D 03 02 00 00 00 00 5A [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 0B 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 0B 00 B3 2C 00 29 AD 2D 68 9F 75 65 B5 90 00 F4 [11:50:57]RAPDU: 29 AD 2D 68 9F 75 65 B5 90 00 [11:50:57]wFMCommunicate OK [11:50:57]SAM_PROTO_SignData done [11:50:57]FM_MakeSignedData done [11:50:57]CreateOFDProtocolMessage [11:50:57]wFMCommunicate request_size=4 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 11 00 00 [11:50:57]Write to MH i2c: E2 08 00 B4 2C 80 11 00 00 00 00 00 00 5A [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 17 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 17 00 B4 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [11:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:57]wFMCommunicate OK [11:50:57]CreateOFDProtocolMessage done [11:50:57]OFDSenderStorePacket 186517 [11:50:57]StoreOFDPacket docnum=186517 [11:50:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A 9F 07 01 41 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A3 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D8 02 00 35 04 06 00 3E 88 9E B0 0A BB 29 AD 2D 68 9F 75 65 B5 [11:50:57]CheckFolder [11:50:57]dirname=/storage/ofd_packets [11:50:57]CheckFolder done [11:50:57]ProducePacketName [11:50:57]name=ofd_packets/00186517 [11:50:57]NVStorageSaveData ofd_packets/00186517 [11:50:57]File name is /storage/ofd_packets/00186517 [11:50:57]Write 301 bytes [11:50:57]NVStorageSaveData done [11:50:57]OFDSenderStorePacket done [11:50:57]KKMCreateOFDPacket done [11:50:57]NVStorageSaveData kkm_last_timestamp [11:50:57]File name is /storage/kkm_last_timestamp [11:50:57]Write 4 bytes [11:50:57]NVStorageSaveData done [11:50:57]ExternCall_PrintAddStr [11:50:57]wPrintStart [11:50:57]Write to MH i2c: 01 00 00 B5 2C E1 [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 07 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 07 00 B5 2C 00 00 00 00 00 FF 0F F6 [11:50:57]RasterBufferAndPrint [11:50:57]line Счет N : (1)411651 [11:50:57]line ИНН: 02508201610067 [11:50:57]line Контрольно-Кассовый Чек [11:50:57]line ПРОДАЖА [11:50:57]line ТРК (МРК, ГНК) : 22 [11:50:57]line Товар: 2710124130 [11:50:57]line Аи-92-К-2 [11:50:57]line 3.120 * 64.20 [11:50:57]line = 200.30 [11:50:57]line НДС 12% НСП 1% [11:50:57]line > о реализуемом товаре [11:50:57]line ОКРУГЛЕНИЕ: -0.30 [11:50:57]line ИТОГО: 200.00 [11:50:57]line Внесено: 200.00 [11:50:57]line СДАЧА: 0.00 [11:50:57]line НСП 1% : 1.77 [11:50:57]line НДС 12% : 21.27 [11:50:57]line Наличными: 200.00 [11:50:57]line Безнал.: 0.00 [11:50:57]line Место: АЗС № 92 "Партнер Нефть" [11:50:57]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:50:57]line СНО: Общий режим [11:50:57]line Чек 104 17.02.2025 11:50 [11:50:57]line Смена: 644 ФФД: 1.0 [11:50:57]line ЗНМ: 0300000118 [11:50:57]line РНМ: 0000000000091857 [11:50:57]line Версия ККМ: 001 [11:50:57]line ФМ: 0000000000871826 [11:50:57]line ФД: 186517 [11:50:57]line ФПД: 68756498811579 [11:50:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115059&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186517&fm=68756498811579&tin=02508201610067®Number=0000000000091857&sum=20000 [11:50:57]written 0, free lines is 4095 [11:50:57]OFD Sender: Processing packet 186517 [packets to send 49, broken 48] [11:50:57]ProducePacketName [11:50:57]name=ofd_packets/00186517 [11:50:57]OFD Sender: To server: pG, [11:50:57]CommunicateWithHost lk.salyk.kg:30040 [11:50:57]ConnectInit lk.salyk.kg [11:50:57]Connected sock=10 [11:50:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2A 9F 07 01 41 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 A3 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 95 D8 02 00 35 04 06 00 3E 88 9E B0 0A BB 29 AD 2D 68 9F 75 65 B5 [11:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B3 BB 47 00 8A 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 31 38 32 36 10 04 04 00 95 D8 02 00 F4 03 04 00 FE C8 B2 67 B6 04 01 00 00 22 0E 0B 9D 8A C7 B8 17 [11:50:57]CommunicateWithHost err = 0 [11:50:57]CheckOFDResponse [11:50:57]1017 (14) - 77093643461234 [11:50:57]1041 (16) - 0000000000871826 [11:50:57]1040 (4) - 186517 [11:50:57]1012 (4) - 17.02.2025 05:28 [11:50:57]1206 (1) - 0 [11:50:57]OFD Sender: Remove packet 186517 [11:50:57]ProducePacketName [11:50:57]name=ofd_packets/00186517 [11:50:57]NVStorageDeleteData [11:50:57]Write to MH i2c: 01 00 00 E0 2C 0C [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 07 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 07 00 E0 2C 00 00 00 00 00 E7 0C 06 [11:50:57]RasterBufferAndPrint [11:50:57]line [11:50:57]line [11:50:57]line [11:50:57]line [11:50:57]line [11:50:57]written 0, free lines is 3310 [11:50:57]MH_Cut [11:50:57]Write to MH i2c: D1 01 00 E7 2C 01 E5 [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: D1 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: D1 01 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: D1 01 00 E7 2C 00 E4 [11:50:57]Write to MH i2c: 01 00 00 E8 2C 14 [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:58]OFD Sender: No OFD packet to send [11:50:58]*** Cut start [11:50:58]*** Partial cut [11:50:58]*** CUTSNS_PIN = 1 [11:50:58]*** CUTSNS_PIN = 0 [11:50:59]*** Brake cut motor [11:50:59]Read from MH i2c: 01 [11:50:59]MH_I2C_Read... [11:50:59]*** Stop cut motor [11:50:59]*** Cut end [11:50:59]Read from MH i2c: 01 07 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: 01 07 00 E8 2C 00 00 00 00 00 FF 0F 29 [11:50:59]process_action close_receipt done [11:50:59]requested_data is exist [11:50:59]produce_requested_data [11:50:59]requested_item fm.sn is exist - process it [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 11 00 00 [11:50:59]Write to MH i2c: E2 08 00 E9 2C 80 11 00 00 00 00 00 00 8F [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 17 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 17 00 E9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [11:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:50:59]wFMCommunicate OK [11:50:59]requested_item fd.num is exist - process it [11:50:59]SAM_PROTO_GetFieldsCounters [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 13 00 00 [11:50:59]Write to MH i2c: E2 08 00 EA 2C 80 13 00 00 00 00 00 00 92 [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 62 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 62 00 EA 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [11:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 95 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:59]wFMCommunicate OK [11:50:59]SAM_PROTO_GetFieldsCounters done [11:50:59]requested_item shift.num is exist - process it [11:50:59]requested_item shift.opened is exist - process it [11:50:59]req_shift_opened [11:50:59]FM_GetShiftState [11:50:59]SAM_PROTO_GetShiftState [11:50:59]wFMCommunicate request_size=4 [11:50:59]MH_SAM_APDU [11:50:59]CAPDU: 80 13 01 00 [11:50:59]Write to MH i2c: E2 08 00 EB 2C 80 13 01 00 00 00 00 00 94 [11:50:59]Write i2c OK [11:50:59]MH_I2C_Read... [11:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:59]Read from MH i2c: E2 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0E 00 [11:50:59]MH_I2C_Read... [11:50:59]Read from MH i2c: E2 0E 00 EB 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B8 [11:50:59]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:50:59]wFMCommunicate OK [11:50:59]SAM_PROTO_GetShiftState done [11:50:59]FM_GetShiftState done [11:50:59]req_shift_opened done [11:50:59]requested_item shift.open_date is exist - process it [11:50:59]req_shift_open_date [11:50:59]req_shift_open_date done [11:50:59]produce_requested_data done [11:50:59]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186517,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:50:59]process_action_free close_receipt [11:50:59]json_value_free [11:50:59]json_value_free done [11:50:59]process_json_proto returns [11:50:59]Send response to host [11:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186517,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:50:59]free response buf [11:50:59]execute_script done [11:50:59]execute_script returns [11:50:59]free content buf [11:50:59]Sock 8.Close socket [11:50:59]Sock 8.Thread stoped [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:02]accept exits with 9 [11:52:02]New connection [11:52:02]New thread 3067358564 created [11:52:02]Thread 3067501924 joined [11:52:02]Waiting for new connection... [11:52:02] Sock 9.Parse request [11:52:02]Sock 9.Check first char [11:52:02]Sock 9.First char is OK [11:52:02]request: POST /json_proto HTTP/1.0 [11:52:02]Method: POST [11:52:02]URL: /json_proto [11:52:02]Method is POST - this is cgi request [11:52:02]url: /json_proto [11:52:02]query_string will be loaded in cgi processing [11:52:02]execute_cgi json_proto POST (null) [11:52:02]execute_cgi path=json_proto method=POST [11:52:02]POST find Content-Length [11:52:02]Host: 172.17.46.131:8080 [11:52:02]Content-Length: 678 [11:52:02]Content-Type: application/json [11:52:02] [11:52:02]POST finish read [11:52:02]Found Content-Length = 678 [11:52:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:02]execute_script... [11:52:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:52:02]POST & json_proto [11:52:02]process_json_proto [11:52:02]json parsed OK: [11:52:02]protocol is kg_v1.0 [11:52:02]action value=close_receipt [11:52:02]process_action close_receipt [11:52:02]cmd_close_receipt [11:52:02]MH_GetDate [11:52:02]Write to MH i2c: F0 00 00 EC 2C 07 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: F0 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: F0 09 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: F0 09 00 EC 2C 00 E7 22 B3 67 7E 41 4F 65 A6 [11:52:02]GetLastDocTimeStamp 1739793059 [11:52:02]current date 1739793127 [11:52:02]FM_GetShiftState [11:52:02]SAM_PROTO_GetShiftState [11:52:02]wFMCommunicate request_size=4 [11:52:02]MH_SAM_APDU [11:52:02]CAPDU: 80 13 01 00 [11:52:02]Write to MH i2c: E2 08 00 ED 2C 80 13 01 00 00 00 00 00 96 [11:52:02]Write i2c OK [11:52:02]MH_I2C_Read... [11:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:02]Read from MH i2c: E2 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 0E 00 [11:52:02]MH_I2C_Read... [11:52:02]Read from MH i2c: E2 0E 00 ED 2C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BA [11:52:02]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:52:02]wFMCommunicate OK [11:52:02]SAM_PROTO_GetShiftState done [11:52:02]FM_GetShiftState done [11:52:02]opened in 1739752571 [11:52:02]opened+sec_in_day 1739838971 [11:52:02]quantity*price = 200013 [11:52:02]sum+1 = 200014 [11:52:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 105 17.02.2025 11:52 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186518 ФПД: 13957174509040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115207&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186518&fm=13957174509040&tin=02508201610067®Number=0000000000091857&sum=200000 [11:52:04]StoreToDocumentArchive [11:52:04]shift 644 fd 186518 [11:52:04]save to /storage/0644/doc_00186518 [11:52:04]save last doc name /storage/0644/doc_00186518 to /storage/kkm_last_doc_name [11:52:04]save OK [11:52:04]Clear old archive folders... [11:52:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:52:04]tlvbuf is 0205C8A0 [11:52:04]SAM_PROTO_ClearQueue [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 09 00 00 [11:52:04]Write to MH i2c: E2 08 00 FA 2C 80 09 00 00 00 00 00 00 98 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 FA 2C 00 90 00 9A [11:52:04]RAPDU: 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_ClearQueue done [11:52:04]KKMCreateOFDPacket [11:52:04]OFDProtocolAddRootSTLVToBuf [11:52:04]FM_MakeSignedData [11:52:04]FM_MakeSignedData [11:52:04]SAM_PROTO_SignData [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 0D 01 02 [11:52:04]Write to MH i2c: E2 08 00 FB 2C 80 0D 01 02 00 00 00 00 A0 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 FB 2C 00 90 00 9B [11:52:04]RAPDU: 90 00 [11:52:04]wFMCommunicate OK [11:52:04]wFMCommunicate request_size=255 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D8 02 00 35 04 06 00 0C B1 A8 6D [11:52:04]Write to MH i2c: E2 02 01 FC 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D8 02 00 35 04 06 00 0C B1 A8 6D 00 00 0E [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 FC 2C 00 90 00 9C [11:52:04]RAPDU: 90 00 [11:52:04]wFMCommunicate OK [11:52:04]wFMCommunicate request_size=7 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 0D 02 02 02 BD F0 [11:52:04]Write to MH i2c: E2 0A 00 FD 2C 80 0D 02 02 02 00 BD F0 00 00 54 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 03 00 FD 2C 00 90 00 9D [11:52:04]RAPDU: 90 00 [11:52:04]wFMCommunicate OK [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 0D 03 02 [11:52:04]Write to MH i2c: E2 08 00 FE 2C 80 0D 03 02 00 00 00 00 A5 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0B 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 0B 00 FE 2C 00 94 FF DD D9 87 28 6B B6 90 00 BF [11:52:04]RAPDU: 94 FF DD D9 87 28 6B B6 90 00 [11:52:04]wFMCommunicate OK [11:52:04]SAM_PROTO_SignData done [11:52:04]FM_MakeSignedData done [11:52:04]CreateOFDProtocolMessage [11:52:04]wFMCommunicate request_size=4 [11:52:04]MH_SAM_APDU [11:52:04]CAPDU: 80 11 00 00 [11:52:04]Write to MH i2c: E2 08 00 FF 2C 80 11 00 00 00 00 00 00 A5 [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:04]Read from MH i2c: E2 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: E2 17 00 FF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [11:52:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:52:04]wFMCommunicate OK [11:52:04]CreateOFDProtocolMessage done [11:52:04]OFDSenderStorePacket 186518 [11:52:04]StoreOFDPacket docnum=186518 [11:52:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3A 3B 04 01 6B C9 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D8 02 00 35 04 06 00 0C B1 A8 6D BD F0 94 FF DD D9 87 28 6B B6 [11:52:04]CheckFolder [11:52:04]dirname=/storage/ofd_packets [11:52:04]CheckFolder done [11:52:04]ProducePacketName [11:52:04]name=ofd_packets/00186518 [11:52:04]NVStorageSaveData ofd_packets/00186518 [11:52:04]File name is /storage/ofd_packets/00186518 [11:52:04]Write 298 bytes [11:52:04]NVStorageSaveData done [11:52:04]OFDSenderStorePacket done [11:52:04]KKMCreateOFDPacket done [11:52:04]NVStorageSaveData kkm_last_timestamp [11:52:04]File name is /storage/kkm_last_timestamp [11:52:04]Write 4 bytes [11:52:04]NVStorageSaveData done [11:52:04]ExternCall_PrintAddStr [11:52:04]wPrintStart [11:52:04]Write to MH i2c: 01 00 00 00 2D 2D [11:52:04]Write i2c OK [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 [11:52:04]MH_I2C_Read... [11:52:04]Read from MH i2c: 01 07 00 00 2D 00 00 00 00 00 FF 0F 42 [11:52:04]RasterBufferAndPrint [11:52:04]line Счет N : (1)411650 [11:52:04]line ИНН: 02508201610067 [11:52:04]line Контрольно-Кассовый Чек [11:52:04]line ПРОДАЖА [11:52:04]line ТРК (МРК, ГНК) : 5 [11:52:04]line Товар: 2710194210 [11:52:04]line ДТ-К-5 [11:52:04]line 27.550 * 72.60 [11:52:04]line = 2000.13 [11:52:04]line НДС 12% НСП 1% [11:52:04]line > о реализуемом товаре [11:52:04]line ОКРУГЛЕНИЕ: -0.13 [11:52:04]line ИТОГО: 2000.00 [11:52:04]line Внесено: 2000.00 [11:52:04]line СДАЧА: 0.00 [11:52:04]line НСП 1% : 17.70 [11:52:04]line НДС 12% : 212.40 [11:52:04]line Наличными: 2000.00 [11:52:04]line Безнал.: 0.00 [11:52:04]line Место: АЗС № 92 "Партнер Нефть" [11:52:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:52:04]line СНО: Общий режим [11:52:04]line Чек 105 17.02.2025 11:52 [11:52:04]line Смена: 644 ФФД: 1.0 [11:52:04]line ЗНМ: 0300000118 [11:52:04]line РНМ: 0000000000091857 [11:52:04]line Версия ККМ: 001 [11:52:04]line ФМ: 0000000000871826 [11:52:04]line ФД: 186518 [11:52:04]line ФПД: 13957174509040 [11:52:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115207&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186518&fm=13957174509040&tin=02508201610067®Number=0000000000091857&sum=200000 [11:52:04]OFD Sender: Processing packet 186518 [packets to send 49, broken 48] [11:52:04]ProducePacketName [11:52:04]name=ofd_packets/00186518 [11:52:04]OFD Sender: To server: pG, [11:52:04]CommunicateWithHost lk.salyk.kg:30040 [11:52:04]ConnectInit lk.salyk.kg [11:52:04]written 0, free lines is 4095 [11:52:04]Connected sock=10 [11:52:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3A 3B 04 01 6B C9 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E7 22 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D8 02 00 35 04 06 00 0C B1 A8 6D BD F0 94 FF DD D9 87 28 6B B6 [11:52:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 1D 47 00 B1 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 96 D8 02 00 F4 03 04 00 41 C9 B2 67 B6 04 01 00 00 C7 1B DC ED 07 7A C5 3E [11:52:05]CommunicateWithHost err = 0 [11:52:05]CheckOFDResponse [11:52:05]1017 (14) - 77093643461234 [11:52:05]1041 (16) - 0000000000871826 [11:52:05]1040 (4) - 186518 [11:52:05]1012 (4) - 17.02.2025 05:29 [11:52:05]1206 (1) - 0 [11:52:05]OFD Sender: Remove packet 186518 [11:52:05]ProducePacketName [11:52:05]name=ofd_packets/00186518 [11:52:05]NVStorageDeleteData [11:52:05]Write to MH i2c: 01 00 00 2B 2D 58 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: 01 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: 01 07 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: 01 07 00 2B 2D 00 00 00 00 00 E7 0C 52 [11:52:05]RasterBufferAndPrint [11:52:05]line [11:52:05]line [11:52:05]line [11:52:05]line [11:52:05]line [11:52:05]written 0, free lines is 3310 [11:52:05]MH_Cut [11:52:05]Write to MH i2c: D1 01 00 32 2D 01 31 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: D1 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: D1 01 00 [11:52:05]MH_I2C_Read... [11:52:05]Read from MH i2c: D1 01 00 32 2D 00 30 [11:52:05]Write to MH i2c: 01 00 00 33 2D 60 [11:52:05]Write i2c OK [11:52:05]MH_I2C_Read... [11:52:05]OFD Sender: No OFD packet to send [11:52:05]*** Cut start [11:52:05]*** Partial cut [11:52:05]*** CUTSNS_PIN = 1 [11:52:06]*** CUTSNS_PIN = 0 [11:52:06]*** Brake cut motor [11:52:06]Read from MH i2c: 01 [11:52:06]MH_I2C_Read... [11:52:06]*** Stop cut motor [11:52:06]*** Cut end [11:52:06]Read from MH i2c: 01 07 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: 01 07 00 33 2D 00 00 00 00 00 FF 0F 75 [11:52:06]process_action close_receipt done [11:52:06]requested_data is exist [11:52:06]produce_requested_data [11:52:06]requested_item fm.sn is exist - process it [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 11 00 00 [11:52:06]Write to MH i2c: E2 08 00 34 2D 80 11 00 00 00 00 00 00 DB [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 17 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 17 00 34 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2E [11:52:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:52:06]wFMCommunicate OK [11:52:06]requested_item fd.num is exist - process it [11:52:06]SAM_PROTO_GetFieldsCounters [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 00 00 [11:52:06]Write to MH i2c: E2 08 00 35 2D 80 13 00 00 00 00 00 00 DE [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 62 00 35 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [11:52:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 96 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetFieldsCounters done [11:52:06]requested_item shift.num is exist - process it [11:52:06]requested_item shift.opened is exist - process it [11:52:06]req_shift_opened [11:52:06]FM_GetShiftState [11:52:06]SAM_PROTO_GetShiftState [11:52:06]wFMCommunicate request_size=4 [11:52:06]MH_SAM_APDU [11:52:06]CAPDU: 80 13 01 00 [11:52:06]Write to MH i2c: E2 08 00 36 2D 80 13 01 00 00 00 00 00 E0 [11:52:06]Write i2c OK [11:52:06]MH_I2C_Read... [11:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:06]Read from MH i2c: E2 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 [11:52:06]MH_I2C_Read... [11:52:06]Read from MH i2c: E2 0E 00 36 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 04 [11:52:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:52:06]wFMCommunicate OK [11:52:06]SAM_PROTO_GetShiftState done [11:52:06]FM_GetShiftState done [11:52:06]req_shift_opened done [11:52:06]requested_item shift.open_date is exist - process it [11:52:06]req_shift_open_date [11:52:06]req_shift_open_date done [11:52:06]produce_requested_data done [11:52:06]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186518,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:52:06]process_action_free close_receipt [11:52:06]json_value_free [11:52:06]json_value_free done [11:52:06]process_json_proto returns [11:52:06]Send response to host [11:52:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186518,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:52:06]free response buf [11:52:06]execute_script done [11:52:06]execute_script returns [11:52:06]free content buf [11:52:06]Sock 9.Close socket [11:52:06]Sock 9.Thread stoped [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:43]accept exits with 8 [11:54:43]New connection [11:54:43]New thread 3067501924 created [11:54:43]Thread 3067358564 joined [11:54:43]Waiting for new connection... [11:54:43] Sock 8.Parse request [11:54:43]Sock 8.Check first char [11:54:43]Sock 8.First char is OK [11:54:43]request: POST /json_proto HTTP/1.0 [11:54:43]Method: POST [11:54:43]URL: /json_proto [11:54:43]Method is POST - this is cgi request [11:54:43]url: /json_proto [11:54:43]query_string will be loaded in cgi processing [11:54:43]execute_cgi json_proto POST (null) [11:54:43]execute_cgi path=json_proto method=POST [11:54:43]POST find Content-Length [11:54:43]Host: 172.17.46.131:8080 [11:54:43]Content-Length: 754 [11:54:43]Content-Type: application/json [11:54:43] [11:54:43]POST finish read [11:54:43]Found Content-Length = 754 [11:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 16.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:43]execute_script... [11:54:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 16.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30159190", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:43]POST & json_proto [11:54:43]process_json_proto [11:54:43]json parsed OK: [11:54:43]protocol is kg_v1.0 [11:54:43]action value=close_receipt [11:54:43]process_action close_receipt [11:54:43]cmd_close_receipt [11:54:43]MH_GetDate [11:54:43]Write to MH i2c: F0 00 00 37 2D 53 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: F0 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: F0 09 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: F0 09 00 37 2D 00 87 23 B3 67 7E 41 4F 65 93 [11:54:43]GetLastDocTimeStamp 1739793127 [11:54:43]current date 1739793287 [11:54:43]FM_GetShiftState [11:54:43]SAM_PROTO_GetShiftState [11:54:43]wFMCommunicate request_size=4 [11:54:43]MH_SAM_APDU [11:54:43]CAPDU: 80 13 01 00 [11:54:43]Write to MH i2c: E2 08 00 38 2D 80 13 01 00 00 00 00 00 E2 [11:54:43]Write i2c OK [11:54:43]MH_I2C_Read... [11:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:43]Read from MH i2c: E2 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0E 00 [11:54:43]MH_I2C_Read... [11:54:43]Read from MH i2c: E2 0E 00 38 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 06 [11:54:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:54:43]wFMCommunicate OK [11:54:43]SAM_PROTO_GetShiftState done [11:54:43]FM_GetShiftState done [11:54:43]opened in 1739752571 [11:54:43]opened+sec_in_day 1739838971 [11:54:43]quantity*price = 0 [11:54:43]sum+1 = 1 [11:54:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 106 17.02.2025 11:54 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30159190 ФМ: 0000000000871826 ФД: 186519 ФПД: 186159462468447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186519&fm=186159462468447&tin=02508201610067®Number=0000000000091857&sum=0 [11:54:44]StoreToDocumentArchive [11:54:44]shift 644 fd 186519 [11:54:44]save to /storage/0644/doc_00186519 [11:54:44]save last doc name /storage/0644/doc_00186519 to /storage/kkm_last_doc_name [11:54:44]save OK [11:54:44]Clear old archive folders... [11:54:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:54:44]tlvbuf is 01FCAAE0 [11:54:44]SAM_PROTO_ClearQueue [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 09 00 00 [11:54:44]Write to MH i2c: E2 08 00 45 2D 80 09 00 00 00 00 00 00 E4 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 45 2D 00 90 00 E6 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]SAM_PROTO_ClearQueue done [11:54:44]KKMCreateOFDPacket [11:54:44]OFDProtocolAddRootSTLVToBuf [11:54:44]FM_MakeSignedData [11:54:44]FM_MakeSignedData [11:54:44]SAM_PROTO_SignData [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 01 02 [11:54:44]Write to MH i2c: E2 08 00 46 2D 80 0D 01 02 00 00 00 00 EC [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 46 2D 00 90 00 E7 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=255 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 80 3E 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 6A 00 00 00 F4 03 04 00 87 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D8 02 00 35 04 06 00 A9 [11:54:44]Write to MH i2c: E2 02 01 47 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 80 3E 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 6A 00 00 00 F4 03 04 00 87 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D8 02 00 35 04 06 00 A9 00 00 84 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 47 2D 00 90 00 E8 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=10 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 02 02 05 4F A0 A1 CB 5F [11:54:44]Write to MH i2c: E2 0D 00 48 2D 80 0D 02 02 05 00 4F A0 A1 CB 5F 00 00 B3 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 03 00 48 2D 00 90 00 E9 [11:54:44]RAPDU: 90 00 [11:54:44]wFMCommunicate OK [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 0D 03 02 [11:54:44]Write to MH i2c: E2 08 00 49 2D 80 0D 03 02 00 00 00 00 F1 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 0B 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 0B 00 49 2D 00 AB D5 B9 D7 AC 86 89 02 90 00 BF [11:54:44]RAPDU: AB D5 B9 D7 AC 86 89 02 90 00 [11:54:44]wFMCommunicate OK [11:54:44]SAM_PROTO_SignData done [11:54:44]FM_MakeSignedData done [11:54:44]CreateOFDProtocolMessage [11:54:44]wFMCommunicate request_size=4 [11:54:44]MH_SAM_APDU [11:54:44]CAPDU: 80 11 00 00 [11:54:44]Write to MH i2c: E2 08 00 4A 2D 80 11 00 00 00 00 00 00 F1 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:44]Read from MH i2c: E2 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 17 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: E2 17 00 4A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [11:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:54:44]wFMCommunicate OK [11:54:44]CreateOFDProtocolMessage done [11:54:44]OFDSenderStorePacket 186519 [11:54:44]StoreOFDPacket docnum=186519 [11:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 2D 07 01 EA 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 80 3E 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 6A 00 00 00 F4 03 04 00 87 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D8 02 00 35 04 06 00 A9 4F A0 A1 CB 5F AB D5 B9 D7 AC 86 89 02 [11:54:44]CheckFolder [11:54:44]dirname=/storage/ofd_packets [11:54:44]CheckFolder done [11:54:44]ProducePacketName [11:54:44]name=ofd_packets/00186519 [11:54:44]NVStorageSaveData ofd_packets/00186519 [11:54:44]File name is /storage/ofd_packets/00186519 [11:54:44]Write 301 bytes [11:54:44]NVStorageSaveData done [11:54:44]OFDSenderStorePacket done [11:54:44]KKMCreateOFDPacket done [11:54:44]NVStorageSaveData kkm_last_timestamp [11:54:44]File name is /storage/kkm_last_timestamp [11:54:44]Write 4 bytes [11:54:44]NVStorageSaveData done [11:54:44]ExternCall_PrintAddStr [11:54:44]wPrintStart [11:54:44]Write to MH i2c: 01 00 00 4B 2D 78 [11:54:44]Write i2c OK [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 [11:54:44]MH_I2C_Read... [11:54:44]Read from MH i2c: 01 07 00 4B 2D 00 00 00 00 00 FF 0F 8D [11:54:44]RasterBufferAndPrint [11:54:44]line Счет N : (1)411653 [11:54:44]line ИНН: 02508201610067 [11:54:44]line Контрольно-Кассовый Чек [11:54:44]line ПРОДАЖА [11:54:44]line ТРК (МРК, ГНК) : 22 [11:54:44]line Товар: 2710124130 [11:54:44]line Аи-92-К-2 [11:54:44]line 16.000 * 0.00 [11:54:44]line = 0.00 [11:54:44]line НДС 12% НСП 1% [11:54:44]line > о реализуемом товаре [11:54:44]line ИТОГО: 0.00 [11:54:44]line НСП 1% : 0.00 [11:54:44]line НДС 12% : 0.00 [11:54:44]line Наличными: 0.00 [11:54:44]line Безнал.: 0.00 [11:54:44]line Место: АЗС № 92 "Партнер Нефть" [11:54:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:54:44]line СНО: Общий режим [11:54:44]line Чек 106 17.02.2025 11:54 [11:54:44]line Смена: 644 ФФД: 1.0 [11:54:44]line ЗНМ: 0300000118 [11:54:44]line РНМ: 0000000000091857 [11:54:44]line Версия ККМ: 001 [11:54:44]line Талоны: ТК ГПНА Online [11:54:44]line 30159190 [11:54:44]line ФМ: 0000000000871826 [11:54:44]line ФД: 186519 [11:54:44]line ФПД: 186159462468447 [11:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115447&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186519&fm=186159462468447&tin=02508201610067®Number=0000000000091857&sum=0 [11:54:44]written 0, free lines is 4095 [11:54:44]OFD Sender: Processing packet 186519 [packets to send 49, broken 48] [11:54:44]ProducePacketName [11:54:44]name=ofd_packets/00186519 [11:54:44]OFD Sender: To server: pG, [11:54:44]CommunicateWithHost lk.salyk.kg:30040 [11:54:44]ConnectInit lk.salyk.kg [11:54:44]Connected sock=10 [11:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 2D 07 01 EA 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 80 3E 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 6A 00 00 00 F4 03 04 00 87 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D8 02 00 35 04 06 00 A9 4F A0 A1 CB 5F AB D5 B9 D7 AC 86 89 02 [11:54:45]Write to MH i2c: 01 00 00 75 2D A2 [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 07 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: 01 07 00 75 2D 00 00 00 00 00 FD 0C B2 [11:54:45]RasterBufferAndPrint [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]line [11:54:45]written 0, free lines is 3331 [11:54:45]MH_Cut [11:54:45]Write to MH i2c: D1 01 00 7C 2D 01 7B [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 01 00 [11:54:45]MH_I2C_Read... [11:54:45]Read from MH i2c: D1 01 00 7C 2D 00 7A [11:54:45]Write to MH i2c: 01 00 00 7D 2D AA [11:54:45]Write i2c OK [11:54:45]MH_I2C_Read... [11:54:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 46 47 00 8B 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 97 D8 02 00 F4 03 04 00 E1 C9 B2 67 B6 04 01 00 00 0A D9 4D F2 7A 08 DA C7 [11:54:45]CommunicateWithHost err = 0 [11:54:45]CheckOFDResponse [11:54:45]1017 (14) - 77093643461234 [11:54:45]1041 (16) - 0000000000871826 [11:54:45]1040 (4) - 186519 [11:54:45]1012 (4) - 17.02.2025 05:32 [11:54:45]1206 (1) - 0 [11:54:45]OFD Sender: Remove packet 186519 [11:54:45]ProducePacketName [11:54:45]name=ofd_packets/00186519 [11:54:45]NVStorageDeleteData [11:54:45]OFD Sender: No OFD packet to send [11:54:45]*** Cut start [11:54:45]*** Partial cut [11:54:45]*** CUTSNS_PIN = 1 [11:54:45]*** CUTSNS_PIN = 0 [11:54:46]*** Brake cut motor [11:54:46]Read from MH i2c: 01 [11:54:46]MH_I2C_Read... [11:54:46]*** Stop cut motor [11:54:46]*** Cut end [11:54:46]Read from MH i2c: 01 07 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: 01 07 00 7D 2D 00 00 00 00 00 FF 0F BF [11:54:46]process_action close_receipt done [11:54:46]requested_data is exist [11:54:46]produce_requested_data [11:54:46]requested_item fm.sn is exist - process it [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 11 00 00 [11:54:46]Write to MH i2c: E2 08 00 7E 2D 80 11 00 00 00 00 00 00 25 [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 17 00 7E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 78 [11:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:54:46]wFMCommunicate OK [11:54:46]requested_item fd.num is exist - process it [11:54:46]SAM_PROTO_GetFieldsCounters [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 00 00 [11:54:46]Write to MH i2c: E2 08 00 7F 2D 80 13 00 00 00 00 00 00 28 [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 62 00 7F 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [11:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 97 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetFieldsCounters done [11:54:46]requested_item shift.num is exist - process it [11:54:46]requested_item shift.opened is exist - process it [11:54:46]req_shift_opened [11:54:46]FM_GetShiftState [11:54:46]SAM_PROTO_GetShiftState [11:54:46]wFMCommunicate request_size=4 [11:54:46]MH_SAM_APDU [11:54:46]CAPDU: 80 13 01 00 [11:54:46]Write to MH i2c: E2 08 00 80 2D 80 13 01 00 00 00 00 00 2A [11:54:46]Write i2c OK [11:54:46]MH_I2C_Read... [11:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:46]Read from MH i2c: E2 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 [11:54:46]MH_I2C_Read... [11:54:46]Read from MH i2c: E2 0E 00 80 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4E [11:54:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:54:46]wFMCommunicate OK [11:54:46]SAM_PROTO_GetShiftState done [11:54:46]FM_GetShiftState done [11:54:46]req_shift_opened done [11:54:46]requested_item shift.open_date is exist - process it [11:54:46]req_shift_open_date [11:54:46]req_shift_open_date done [11:54:46]produce_requested_data done [11:54:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186519,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:54:46]process_action_free close_receipt [11:54:46]json_value_free [11:54:46]json_value_free done [11:54:46]process_json_proto returns [11:54:46]Send response to host [11:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186519,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:54:46]free response buf [11:54:46]execute_script done [11:54:46]execute_script returns [11:54:46]free content buf [11:54:46]Sock 8.Close socket [11:54:46]Sock 8.Thread stoped [11:54:50]OFD Sender: No OFD packet to send [11:54:53]accept exits with 9 [11:54:53]New connection [11:54:53]New thread 3067358564 created [11:54:53]Thread 3067501924 joined [11:54:53]Waiting for new connection... [11:54:53] Sock 9.Parse request [11:54:53]Sock 9.Check first char [11:54:53]Sock 9.First char is OK [11:54:53]request: POST /json_proto HTTP/1.0 [11:54:53]Method: POST [11:54:53]URL: /json_proto [11:54:53]Method is POST - this is cgi request [11:54:53]url: /json_proto [11:54:53]query_string will be loaded in cgi processing [11:54:53]execute_cgi json_proto POST (null) [11:54:53]execute_cgi path=json_proto method=POST [11:54:53]POST find Content-Length [11:54:53]Host: 172.17.46.131:8080 [11:54:53]Content-Length: 678 [11:54:53]Content-Type: application/json [11:54:53] [11:54:53]POST finish read [11:54:53]Found Content-Length = 678 [11:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:53]execute_script... [11:54: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)411652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:53]POST & json_proto [11:54:53]process_json_proto [11:54:53]json parsed OK: [11:54:53]protocol is kg_v1.0 [11:54:53]action value=close_receipt [11:54:53]process_action close_receipt [11:54:53]cmd_close_receipt [11:54:53]MH_GetDate [11:54:53]Write to MH i2c: F0 00 00 81 2D 9D [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 09 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: F0 09 00 81 2D 00 92 23 B3 67 7E 41 4F 65 E8 [11:54:53]GetLastDocTimeStamp 1739793287 [11:54:53]current date 1739793298 [11:54:53]FM_GetShiftState [11:54:53]SAM_PROTO_GetShiftState [11:54:53]wFMCommunicate request_size=4 [11:54:53]MH_SAM_APDU [11:54:53]CAPDU: 80 13 01 00 [11:54:53]Write to MH i2c: E2 08 00 82 2D 80 13 01 00 00 00 00 00 2C [11:54:53]Write i2c OK [11:54:53]MH_I2C_Read... [11:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:53]Read from MH i2c: E2 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 0E 00 [11:54:53]MH_I2C_Read... [11:54:53]Read from MH i2c: E2 0E 00 82 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 50 [11:54:53]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:54:53]wFMCommunicate OK [11:54:53]SAM_PROTO_GetShiftState done [11:54:53]FM_GetShiftState done [11:54:53]opened in 1739752571 [11:54:53]opened+sec_in_day 1739838971 [11:54:53]quantity*price = 200013 [11:54:53]sum+1 = 200014 [11:54:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 107 17.02.2025 11:54 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186520 ФПД: 242131828181849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186520&fm=242131828181849&tin=02508201610067®Number=0000000000091857&sum=200000 [11:54:54]StoreToDocumentArchive [11:54:54]shift 644 fd 186520 [11:54:54]save to /storage/0644/doc_00186520 [11:54:54]save last doc name /storage/0644/doc_00186520 to /storage/kkm_last_doc_name [11:54:54]save OK [11:54:54]Clear old archive folders... [11:54:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:54:54]tlvbuf is B6F2EB90 [11:54:54]SAM_PROTO_ClearQueue [11:54:54]wFMCommunicate request_size=4 [11:54:54]MH_SAM_APDU [11:54:54]CAPDU: 80 09 00 00 [11:54:54]Write to MH i2c: E2 08 00 8F 2D 80 09 00 00 00 00 00 00 2E [11:54:54]Write i2c OK [11:54:54]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 8F 2D 00 90 00 30 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]SAM_PROTO_ClearQueue done [11:54:55]KKMCreateOFDPacket [11:54:55]OFDProtocolAddRootSTLVToBuf [11:54:55]FM_MakeSignedData [11:54:55]FM_MakeSignedData [11:54:55]SAM_PROTO_SignData [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 01 02 [11:54:55]Write to MH i2c: E2 08 00 90 2D 80 0D 01 02 00 00 00 00 36 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 90 2D 00 90 00 31 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=255 [11:54:55]MH_SAM_APDU [11:54:55]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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D8 02 00 35 04 06 00 DC 37 B5 9B [11:54:55]Write to MH i2c: E2 02 01 91 2D 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D8 02 00 35 04 06 00 DC 37 B5 9B 00 00 E5 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 91 2D 00 90 00 32 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=7 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 02 02 02 8B 59 [11:54:55]Write to MH i2c: E2 0A 00 92 2D 80 0D 02 02 02 00 8B 59 00 00 21 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 03 00 92 2D 00 90 00 33 [11:54:55]RAPDU: 90 00 [11:54:55]wFMCommunicate OK [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 0D 03 02 [11:54:55]Write to MH i2c: E2 08 00 93 2D 80 0D 03 02 00 00 00 00 3B [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 0B 00 93 2D 00 79 DD DF 67 4A 6B 36 7B 90 00 3E [11:54:55]RAPDU: 79 DD DF 67 4A 6B 36 7B 90 00 [11:54:55]wFMCommunicate OK [11:54:55]SAM_PROTO_SignData done [11:54:55]FM_MakeSignedData done [11:54:55]CreateOFDProtocolMessage [11:54:55]wFMCommunicate request_size=4 [11:54:55]MH_SAM_APDU [11:54:55]CAPDU: 80 11 00 00 [11:54:55]Write to MH i2c: E2 08 00 94 2D 80 11 00 00 00 00 00 00 3B [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:55]Read from MH i2c: E2 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: E2 17 00 94 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8E [11:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:54:55]wFMCommunicate OK [11:54:55]CreateOFDProtocolMessage done [11:54:55]OFDSenderStorePacket 186520 [11:54:55]StoreOFDPacket docnum=186520 [11:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DD 98 04 01 D5 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D8 02 00 35 04 06 00 DC 37 B5 9B 8B 59 79 DD DF 67 4A 6B 36 7B [11:54:55]CheckFolder [11:54:55]dirname=/storage/ofd_packets [11:54:55]CheckFolder done [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00186520 [11:54:55]NVStorageSaveData ofd_packets/00186520 [11:54:55]File name is /storage/ofd_packets/00186520 [11:54:55]Write 298 bytes [11:54:55]NVStorageSaveData done [11:54:55]OFDSenderStorePacket done [11:54:55]KKMCreateOFDPacket done [11:54:55]NVStorageSaveData kkm_last_timestamp [11:54:55]File name is /storage/kkm_last_timestamp [11:54:55]Write 4 bytes [11:54:55]NVStorageSaveData done [11:54:55]ExternCall_PrintAddStr [11:54:55]wPrintStart [11:54:55]Write to MH i2c: 01 00 00 95 2D C2 [11:54:55]Write i2c OK [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 [11:54:55]MH_I2C_Read... [11:54:55]Read from MH i2c: 01 07 00 95 2D 00 00 00 00 00 FF 0F D7 [11:54:55]RasterBufferAndPrint [11:54:55]line Счет N : (1)411652 [11:54:55]line ИНН: 02508201610067 [11:54:55]line Контрольно-Кассовый Чек [11:54:55]line ПРОДАЖА [11:54:55]line ТРК (МРК, ГНК) : 5 [11:54:55]line Товар: 2710194210 [11:54:55]line ДТ-К-5 [11:54:55]line 27.550 * 72.60 [11:54:55]line = 2000.13 [11:54:55]line НДС 12% НСП 1% [11:54:55]line > о реализуемом товаре [11:54:55]line ОКРУГЛЕНИЕ: -0.13 [11:54:55]line ИТОГО: 2000.00 [11:54:55]line Внесено: 2000.00 [11:54:55]line СДАЧА: 0.00 [11:54:55]line НСП 1% : 17.70 [11:54:55]line НДС 12% : 212.40 [11:54:55]line Наличными: 2000.00 [11:54:55]line Безнал.: 0.00 [11:54:55]line Место: АЗС № 92 "Партнер Нефть" [11:54:55]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:54:55]line СНО: Общий режим [11:54:55]line Чек 107 17.02.2025 11:54 [11:54:55]line Смена: 644 ФФД: 1.0 [11:54:55]line ЗНМ: 0300000118 [11:54:55]line РНМ: 0000000000091857 [11:54:55]line Версия ККМ: 001 [11:54:55]line ФМ: 0000000000871826 [11:54:55]line ФД: 186520 [11:54:55]line ФПД: 242131828181849 [11:54:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115458&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186520&fm=242131828181849&tin=02508201610067®Number=0000000000091857&sum=200000 [11:54:55]written 0, free lines is 4095 [11:54:55]OFD Sender: Processing packet 186520 [packets to send 49, broken 48] [11:54:55]ProducePacketName [11:54:55]name=ofd_packets/00186520 [11:54:55]OFD Sender: To server: pG, [11:54:55]CommunicateWithHost lk.salyk.kg:30040 [11:54:55]ConnectInit lk.salyk.kg [11:54:55]Connected sock=10 [11:54:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 DD 98 04 01 D5 32 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 92 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D8 02 00 35 04 06 00 DC 37 B5 9B 8B 59 79 DD DF 67 4A 6B 36 7B [11:54:56]Write to MH i2c: 01 00 00 C0 2D ED [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: 01 07 00 C0 2D 00 00 00 00 00 EB 0C EB [11:54:56]RasterBufferAndPrint [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]line [11:54:56]written 0, free lines is 3319 [11:54:56]MH_Cut [11:54:56]Write to MH i2c: D1 01 00 C7 2D 01 C6 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 01 00 [11:54:56]MH_I2C_Read... [11:54:56]Read from MH i2c: D1 01 00 C7 2D 00 C5 [11:54:56]Write to MH i2c: 01 00 00 C8 2D F5 [11:54:56]Write i2c OK [11:54:56]MH_I2C_Read... [11:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 20 FF 47 00 0C 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 98 D8 02 00 F4 03 04 00 EC C9 B2 67 B6 04 01 00 00 B5 A2 68 43 AE 50 E2 69 [11:54:56]CommunicateWithHost err = 0 [11:54:56]CheckOFDResponse [11:54:56]1017 (14) - 77093643461234 [11:54:56]1041 (16) - 0000000000871826 [11:54:56]1040 (4) - 186520 [11:54:56]1012 (4) - 17.02.2025 05:32 [11:54:56]1206 (1) - 0 [11:54:56]OFD Sender: Remove packet 186520 [11:54:56]ProducePacketName [11:54:56]name=ofd_packets/00186520 [11:54:56]NVStorageDeleteData [11:54:56]OFD Sender: No OFD packet to send [11:54:56]*** Cut start [11:54:56]*** Partial cut [11:54:56]*** CUTSNS_PIN = 1 [11:54:56]*** CUTSNS_PIN = 0 [11:54:57]*** Brake cut motor [11:54:57]Read from MH i2c: 01 [11:54:57]MH_I2C_Read... [11:54:57]*** Stop cut motor [11:54:57]*** Cut end [11:54:57]Read from MH i2c: 01 07 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: 01 07 00 C8 2D 00 00 00 00 00 FF 0F 0A [11:54:57]process_action close_receipt done [11:54:57]requested_data is exist [11:54:57]produce_requested_data [11:54:57]requested_item fm.sn is exist - process it [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 11 00 00 [11:54:57]Write to MH i2c: E2 08 00 C9 2D 80 11 00 00 00 00 00 00 70 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 17 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 17 00 C9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C3 [11:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:54:57]wFMCommunicate OK [11:54:57]requested_item fd.num is exist - process it [11:54:57]SAM_PROTO_GetFieldsCounters [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 13 00 00 [11:54:57]Write to MH i2c: E2 08 00 CA 2D 80 13 00 00 00 00 00 00 73 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 62 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 62 00 CA 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [11:54:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 98 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:57]wFMCommunicate OK [11:54:57]SAM_PROTO_GetFieldsCounters done [11:54:57]requested_item shift.num is exist - process it [11:54:57]requested_item shift.opened is exist - process it [11:54:57]req_shift_opened [11:54:57]FM_GetShiftState [11:54:57]SAM_PROTO_GetShiftState [11:54:57]wFMCommunicate request_size=4 [11:54:57]MH_SAM_APDU [11:54:57]CAPDU: 80 13 01 00 [11:54:57]Write to MH i2c: E2 08 00 CB 2D 80 13 01 00 00 00 00 00 75 [11:54:57]Write i2c OK [11:54:57]MH_I2C_Read... [11:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:57]Read from MH i2c: E2 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 [11:54:57]MH_I2C_Read... [11:54:57]Read from MH i2c: E2 0E 00 CB 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 99 [11:54:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:54:57]wFMCommunicate OK [11:54:57]SAM_PROTO_GetShiftState done [11:54:57]FM_GetShiftState done [11:54:57]req_shift_opened done [11:54:57]requested_item shift.open_date is exist - process it [11:54:57]req_shift_open_date [11:54:57]req_shift_open_date done [11:54:57]produce_requested_data done [11:54:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186520,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:54:57]process_action_free close_receipt [11:54:57]json_value_free [11:54:57]json_value_free done [11:54:57]process_json_proto returns [11:54:57]Send response to host [11:54:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186520,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:54:57]free response buf [11:54:57]execute_script done [11:54:57]execute_script returns [11:54:57]free content buf [11:54:57]Sock 9.Close socket [11:54:57]Sock 9.Thread stoped [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:06]accept exits with 8 [11:55:06]New connection [11:55:06]New thread 3067501924 created [11:55:06]Thread 3067358564 joined [11:55:06]Waiting for new connection... [11:55:06] Sock 8.Parse request [11:55:06]Sock 8.Check first char [11:55:06]Sock 8.First char is OK [11:55:06]request: POST /json_proto HTTP/1.0 [11:55:06]Method: POST [11:55:06]URL: /json_proto [11:55:06]Method is POST - this is cgi request [11:55:06]url: /json_proto [11:55:06]query_string will be loaded in cgi processing [11:55:06]execute_cgi json_proto POST (null) [11:55:06]execute_cgi path=json_proto method=POST [11:55:06]POST find Content-Length [11:55:06]Host: 172.17.46.131:8080 [11:55:06]Content-Length: 673 [11:55:06]Content-Type: application/json [11:55:06] [11:55:06]POST finish read [11:55:06]Found Content-Length = 673 [11:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:06]execute_script... [11:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 9.650, "sum" : 700.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:06]POST & json_proto [11:55:06]process_json_proto [11:55:06]json parsed OK: [11:55:06]protocol is kg_v1.0 [11:55:06]action value=close_receipt [11:55:06]process_action close_receipt [11:55:06]cmd_close_receipt [11:55:06]MH_GetDate [11:55:06]Write to MH i2c: F0 00 00 CC 2D E8 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: F0 09 00 CC 2D 00 9F 23 B3 67 7E 41 4F 65 40 [11:55:06]GetLastDocTimeStamp 1739793298 [11:55:06]current date 1739793311 [11:55:06]FM_GetShiftState [11:55:06]SAM_PROTO_GetShiftState [11:55:06]wFMCommunicate request_size=4 [11:55:06]MH_SAM_APDU [11:55:06]CAPDU: 80 13 01 00 [11:55:06]Write to MH i2c: E2 08 00 CD 2D 80 13 01 00 00 00 00 00 77 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:06]Read from MH i2c: E2 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: E2 0E 00 CD 2D 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9B [11:55:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:55:06]wFMCommunicate OK [11:55:06]SAM_PROTO_GetShiftState done [11:55:06]FM_GetShiftState done [11:55:06]opened in 1739752571 [11:55:06]opened+sec_in_day 1739838971 [11:55:06]quantity*price = 70059 [11:55:06]sum+1 = 70060 [11:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 108 17.02.2025 11:55 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186521 ФПД: 134338900167807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186521&fm=134338900167807&tin=02508201610067®Number=0000000000091857&sum=70000 [11:55:07]StoreToDocumentArchive [11:55:07]shift 644 fd 186521 [11:55:07]save to /storage/0644/doc_00186521 [11:55:07]save last doc name /storage/0644/doc_00186521 to /storage/kkm_last_doc_name [11:55:07]save OK [11:55:07]Clear old archive folders... [11:55:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:08]tlvbuf is 02081FD0 [11:55:08]SAM_PROTO_ClearQueue [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 09 00 00 [11:55:08]Write to MH i2c: E2 08 00 DA 2D 80 09 00 00 00 00 00 00 79 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 DA 2D 00 90 00 7B [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]SAM_PROTO_ClearQueue done [11:55:08]KKMCreateOFDPacket [11:55:08]OFDProtocolAddRootSTLVToBuf [11:55:08]FM_MakeSignedData [11:55:08]FM_MakeSignedData [11:55:08]SAM_PROTO_SignData [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 01 02 [11:55:08]Write to MH i2c: E2 08 00 DB 2D 80 0D 01 02 00 00 00 00 81 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 DB 2D 00 90 00 7C [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=255 [11:55:08]MH_SAM_APDU [11:55:08]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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D8 02 00 35 04 06 00 7A 2E 36 6C [11:55:08]Write to MH i2c: E2 02 01 DC 2D 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D8 02 00 35 04 06 00 7A 2E 36 6C 00 00 19 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 DC 2D 00 90 00 7D [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=7 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 02 02 02 8C 7F [11:55:08]Write to MH i2c: E2 0A 00 DD 2D 80 0D 02 02 02 00 8C 7F 00 00 93 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 03 00 DD 2D 00 90 00 7E [11:55:08]RAPDU: 90 00 [11:55:08]wFMCommunicate OK [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 0D 03 02 [11:55:08]Write to MH i2c: E2 08 00 DE 2D 80 0D 03 02 00 00 00 00 86 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 0B 00 DE 2D 00 44 2F 2C 95 4A 39 AF 23 90 00 10 [11:55:08]RAPDU: 44 2F 2C 95 4A 39 AF 23 90 00 [11:55:08]wFMCommunicate OK [11:55:08]SAM_PROTO_SignData done [11:55:08]FM_MakeSignedData done [11:55:08]CreateOFDProtocolMessage [11:55:08]wFMCommunicate request_size=4 [11:55:08]MH_SAM_APDU [11:55:08]CAPDU: 80 11 00 00 [11:55:08]Write to MH i2c: E2 08 00 DF 2D 80 11 00 00 00 00 00 00 86 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:08]Read from MH i2c: E2 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: E2 17 00 DF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [11:55:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:55:08]wFMCommunicate OK [11:55:08]CreateOFDProtocolMessage done [11:55:08]OFDSenderStorePacket 186521 [11:55:08]StoreOFDPacket docnum=186521 [11:55:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BF 88 04 01 86 13 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D8 02 00 35 04 06 00 7A 2E 36 6C 8C 7F 44 2F 2C 95 4A 39 AF 23 [11:55:08]CheckFolder [11:55:08]dirname=/storage/ofd_packets [11:55:08]CheckFolder done [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00186521 [11:55:08]NVStorageSaveData ofd_packets/00186521 [11:55:08]File name is /storage/ofd_packets/00186521 [11:55:08]Write 298 bytes [11:55:08]NVStorageSaveData done [11:55:08]OFDSenderStorePacket done [11:55:08]KKMCreateOFDPacket done [11:55:08]NVStorageSaveData kkm_last_timestamp [11:55:08]File name is /storage/kkm_last_timestamp [11:55:08]Write 4 bytes [11:55:08]NVStorageSaveData done [11:55:08]ExternCall_PrintAddStr [11:55:08]wPrintStart [11:55:08]Write to MH i2c: 01 00 00 E0 2D 0D [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 E0 2D 00 00 00 00 00 FF 0F 22 [11:55:08]RasterBufferAndPrint [11:55:08]line Счет N : (1)411654 [11:55:08]line ИНН: 02508201610067 [11:55:08]line Контрольно-Кассовый Чек [11:55:08]line ПРОДАЖА [11:55:08]line ТРК (МРК, ГНК) : 6 [11:55:08]line Товар: 2710194210 [11:55:08]line ДТ-К-5 [11:55:08]line 9.650 * 72.60 [11:55:08]line = 700.59 [11:55:08]line НДС 12% НСП 1% [11:55:08]line > о реализуемом товаре [11:55:08]line ОКРУГЛЕНИЕ: -0.59 [11:55:08]line ИТОГО: 700.00 [11:55:08]line Внесено: 700.00 [11:55:08]line СДАЧА: 0.00 [11:55:08]line НСП 1% : 6.20 [11:55:08]line НДС 12% : 74.40 [11:55:08]line Наличными: 700.00 [11:55:08]line Безнал.: 0.00 [11:55:08]line Место: АЗС № 92 "Партнер Нефть" [11:55:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:55:08]line СНО: Общий режим [11:55:08]line Чек 108 17.02.2025 11:55 [11:55:08]line Смена: 644 ФФД: 1.0 [11:55:08]line ЗНМ: 0300000118 [11:55:08]line РНМ: 0000000000091857 [11:55:08]line Версия ККМ: 001 [11:55:08]line ФМ: 0000000000871826 [11:55:08]line ФД: 186521 [11:55:08]line ФПД: 134338900167807 [11:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115511&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186521&fm=134338900167807&tin=02508201610067®Number=0000000000091857&sum=70000 [11:55:08]OFD Sender: Processing packet 186521 [packets to send 49, broken 48] [11:55:08]ProducePacketName [11:55:08]name=ofd_packets/00186521 [11:55:08]OFD Sender: To server: pG, [11:55:08]CommunicateWithHost lk.salyk.kg:30040 [11:55:08]ConnectInit lk.salyk.kg [11:55:08]written 0, free lines is 4095 [11:55:08]Connected sock=10 [11:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BF 88 04 01 86 13 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 B2 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AB 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D8 02 00 35 04 06 00 7A 2E 36 6C 8C 7F 44 2F 2C 95 4A 39 AF 23 [11:55:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 05 E9 47 00 E0 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 99 D8 02 00 F4 03 04 00 F9 C9 B2 67 B6 04 01 00 00 5F 4B 0C 51 1D 18 08 0E [11:55:09]CommunicateWithHost err = 0 [11:55:09]CheckOFDResponse [11:55:09]1017 (14) - 77093643461234 [11:55:09]1041 (16) - 0000000000871826 [11:55:09]1040 (4) - 186521 [11:55:09]1012 (4) - 17.02.2025 05:32 [11:55:09]1206 (1) - 0 [11:55:09]OFD Sender: Remove packet 186521 [11:55:09]ProducePacketName [11:55:09]name=ofd_packets/00186521 [11:55:09]NVStorageDeleteData [11:55:09]Write to MH i2c: 01 00 00 0B 2E 39 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 0B 2E 00 00 00 00 00 F8 0C 44 [11:55:09]RasterBufferAndPrint [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]line [11:55:09]written 0, free lines is 3332 [11:55:09]MH_Cut [11:55:09]Write to MH i2c: D1 01 00 12 2E 01 12 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 01 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: D1 01 00 12 2E 00 11 [11:55:09]Write to MH i2c: 01 00 00 13 2E 41 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]OFD Sender: No OFD packet to send [11:55:09]*** Cut start [11:55:09]*** Partial cut [11:55:09]*** CUTSNS_PIN = 1 [11:55:09]*** CUTSNS_PIN = 0 [11:55:10]*** Brake cut motor [11:55:10]Read from MH i2c: 01 [11:55:10]MH_I2C_Read... [11:55:10]*** Stop cut motor [11:55:10]*** Cut end [11:55:10]Read from MH i2c: 01 07 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: 01 07 00 13 2E 00 00 00 00 00 FF 0F 56 [11:55:10]process_action close_receipt done [11:55:10]requested_data is exist [11:55:10]produce_requested_data [11:55:10]requested_item fm.sn is exist - process it [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 11 00 00 [11:55:10]Write to MH i2c: E2 08 00 14 2E 80 11 00 00 00 00 00 00 BC [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 17 00 14 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [11:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:55:10]wFMCommunicate OK [11:55:10]requested_item fd.num is exist - process it [11:55:10]SAM_PROTO_GetFieldsCounters [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 00 00 [11:55:10]Write to MH i2c: E2 08 00 15 2E 80 13 00 00 00 00 00 00 BF [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 62 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 62 00 15 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [11:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 99 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetFieldsCounters done [11:55:10]requested_item shift.num is exist - process it [11:55:10]requested_item shift.opened is exist - process it [11:55:10]req_shift_opened [11:55:10]FM_GetShiftState [11:55:10]SAM_PROTO_GetShiftState [11:55:10]wFMCommunicate request_size=4 [11:55:10]MH_SAM_APDU [11:55:10]CAPDU: 80 13 01 00 [11:55:10]Write to MH i2c: E2 08 00 16 2E 80 13 01 00 00 00 00 00 C1 [11:55:10]Write i2c OK [11:55:10]MH_I2C_Read... [11:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:10]Read from MH i2c: E2 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 [11:55:10]MH_I2C_Read... [11:55:10]Read from MH i2c: E2 0E 00 16 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E5 [11:55:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:55:10]wFMCommunicate OK [11:55:10]SAM_PROTO_GetShiftState done [11:55:10]FM_GetShiftState done [11:55:10]req_shift_opened done [11:55:10]requested_item shift.open_date is exist - process it [11:55:10]req_shift_open_date [11:55:10]req_shift_open_date done [11:55:10]produce_requested_data done [11:55:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186521,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:55:10]process_action_free close_receipt [11:55:10]json_value_free [11:55:10]json_value_free done [11:55:10]process_json_proto returns [11:55:10]Send response to host [11:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186521,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:55:10]free response buf [11:55:10]execute_script done [11:55:10]execute_script returns [11:55:10]free content buf [11:55:10]Sock 8.Close socket [11:55:10]Sock 8.Thread stoped [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:40]accept exits with 9 [11:56:40]New connection [11:56:40]New thread 3067358564 created [11:56:40]Thread 3067501924 joined [11:56:40]Waiting for new connection... [11:56:40] Sock 9.Parse request [11:56:40]Sock 9.Check first char [11:56:40]Sock 9.First char is OK [11:56:40]request: POST /json_proto HTTP/1.0 [11:56:40]Method: POST [11:56:40]URL: /json_proto [11:56:40]Method is POST - this is cgi request [11:56:40]url: /json_proto [11:56:40]query_string will be loaded in cgi processing [11:56:40]execute_cgi json_proto POST (null) [11:56:40]execute_cgi path=json_proto method=POST [11:56:40]POST find Content-Length [11:56:40]Host: 172.17.46.131:8080 [11:56:40]Content-Length: 682 [11:56:40]Content-Type: application/json [11:56:40] [11:56:40]POST finish read [11:56:40]Found Content-Length = 682 [11:56:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:40]execute_script... [11:56:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:40]POST & json_proto [11:56:40]process_json_proto [11:56:40]json parsed OK: [11:56:40]protocol is kg_v1.0 [11:56:40]action value=close_receipt [11:56:40]process_action close_receipt [11:56:40]cmd_close_receipt [11:56:40]MH_GetDate [11:56:40]Write to MH i2c: F0 00 00 17 2E 34 [11:56:40]Write i2c OK [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 09 00 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: F0 09 00 17 2E 00 FC 23 B3 67 7E 41 4F 65 E9 [11:56:40]GetLastDocTimeStamp 1739793311 [11:56:40]current date 1739793404 [11:56:40]FM_GetShiftState [11:56:40]SAM_PROTO_GetShiftState [11:56:40]wFMCommunicate request_size=4 [11:56:40]MH_SAM_APDU [11:56:40]CAPDU: 80 13 01 00 [11:56:40]Write to MH i2c: E2 08 00 18 2E 80 13 01 00 00 00 00 00 C3 [11:56:40]Write i2c OK [11:56:40]MH_I2C_Read... [11:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:40]Read from MH i2c: E2 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: E2 0E 00 [11:56:40]MH_I2C_Read... [11:56:40]Read from MH i2c: E2 0E 00 18 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E7 [11:56:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:56:40]wFMCommunicate OK [11:56:40]SAM_PROTO_GetShiftState done [11:56:40]FM_GetShiftState done [11:56:40]opened in 1739752571 [11:56:40]opened+sec_in_day 1739838971 [11:56:40]quantity*price = 120001 [11:56:40]sum+1 = 120002 [11:56:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 109 17.02.2025 11:56 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186522 ФПД: 254378414939903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186522&fm=254378414939903&tin=02508201610067®Number=0000000000091857&sum=120000 [11:56:41]StoreToDocumentArchive [11:56:41]shift 644 fd 186522 [11:56:41]save to /storage/0644/doc_00186522 [11:56:41]save last doc name /storage/0644/doc_00186522 to /storage/kkm_last_doc_name [11:56:41]save OK [11:56:41]Clear old archive folders... [11:56:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:41]tlvbuf is 0209E690 [11:56:41]SAM_PROTO_ClearQueue [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 09 00 00 [11:56:41]Write to MH i2c: E2 08 00 25 2E 80 09 00 00 00 00 00 00 C5 [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 25 2E 00 90 00 C7 [11:56:41]RAPDU: 90 00 [11:56:41]wFMCommunicate OK [11:56:41]SAM_PROTO_ClearQueue done [11:56:41]KKMCreateOFDPacket [11:56:41]OFDProtocolAddRootSTLVToBuf [11:56:41]FM_MakeSignedData [11:56:41]FM_MakeSignedData [11:56:41]SAM_PROTO_SignData [11:56:41]wFMCommunicate request_size=4 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 0D 01 02 [11:56:41]Write to MH i2c: E2 08 00 26 2E 80 0D 01 02 00 00 00 00 CD [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:41]Read from MH i2c: E2 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 [11:56:41]MH_I2C_Read... [11:56:41]Read from MH i2c: E2 03 00 26 2E 00 90 00 C8 [11:56:41]RAPDU: 90 00 [11:56:41]wFMCommunicate OK [11:56:41]wFMCommunicate request_size=255 [11:56:41]MH_SAM_APDU [11:56:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FC 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D8 02 00 35 04 06 00 E7 [11:56:41]Write to MH i2c: E2 02 01 27 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FC 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D8 02 00 35 04 06 00 E7 00 00 EE [11:56:41]Write i2c OK [11:56:41]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 27 2E 00 90 00 C9 [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=10 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 02 02 05 5B 17 0F 9E FF [11:56:42]Write to MH i2c: E2 0D 00 28 2E 80 0D 02 02 05 00 5B 17 0F 9E FF 00 00 F8 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 03 00 28 2E 00 90 00 CA [11:56:42]RAPDU: 90 00 [11:56:42]wFMCommunicate OK [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 0D 03 02 [11:56:42]Write to MH i2c: E2 08 00 29 2E 80 0D 03 02 00 00 00 00 D2 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 0B 00 29 2E 00 90 8A B8 38 6D 7E 2C 48 90 00 3C [11:56:42]RAPDU: 90 8A B8 38 6D 7E 2C 48 90 00 [11:56:42]wFMCommunicate OK [11:56:42]SAM_PROTO_SignData done [11:56:42]FM_MakeSignedData done [11:56:42]CreateOFDProtocolMessage [11:56:42]wFMCommunicate request_size=4 [11:56:42]MH_SAM_APDU [11:56:42]CAPDU: 80 11 00 00 [11:56:42]Write to MH i2c: E2 08 00 2A 2E 80 11 00 00 00 00 00 00 D2 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:42]Read from MH i2c: E2 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: E2 17 00 2A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 25 [11:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:56:42]wFMCommunicate OK [11:56:42]CreateOFDProtocolMessage done [11:56:42]OFDSenderStorePacket 186522 [11:56:42]StoreOFDPacket docnum=186522 [11:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 A2 07 01 4C 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FC 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D8 02 00 35 04 06 00 E7 5B 17 0F 9E FF 90 8A B8 38 6D 7E 2C 48 [11:56:42]CheckFolder [11:56:42]dirname=/storage/ofd_packets [11:56:42]CheckFolder done [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00186522 [11:56:42]NVStorageSaveData ofd_packets/00186522 [11:56:42]File name is /storage/ofd_packets/00186522 [11:56:42]Write 301 bytes [11:56:42]NVStorageSaveData done [11:56:42]OFDSenderStorePacket done [11:56:42]KKMCreateOFDPacket done [11:56:42]NVStorageSaveData kkm_last_timestamp [11:56:42]File name is /storage/kkm_last_timestamp [11:56:42]Write 4 bytes [11:56:42]NVStorageSaveData done [11:56:42]ExternCall_PrintAddStr [11:56:42]wPrintStart [11:56:42]Write to MH i2c: 01 00 00 2B 2E 59 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 2B 2E 00 00 00 00 00 FF 0F 6E [11:56:42]RasterBufferAndPrint [11:56:42]line Счет N : (1)411655 [11:56:42]line ИНН: 02508201610067 [11:56:42]line Контрольно-Кассовый Чек [11:56:42]line ПРОДАЖА [11:56:42]line ТРК (МРК, ГНК) : 43 [11:56:42]line Товар: 2710124500 [11:56:42]line Аи-95-К-5 [11:56:42]line 16.690 * 71.90 [11:56:42]line = 1200.01 [11:56:42]line НДС 12% НСП 1% [11:56:42]line > о реализуемом товаре [11:56:42]line ОКРУГЛЕНИЕ: -0.01 [11:56:42]line ИТОГО: 1200.00 [11:56:42]line Внесено: 1200.00 [11:56:42]line СДАЧА: 0.00 [11:56:42]line НСП 1% : 10.62 [11:56:42]line НДС 12% : 127.43 [11:56:42]line Наличными: 1200.00 [11:56:42]line Безнал.: 0.00 [11:56:42]line Место: АЗС № 92 "Партнер Нефть" [11:56:42]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:56:42]line СНО: Общий режим [11:56:42]line Чек 109 17.02.2025 11:56 [11:56:42]line Смена: 644 ФФД: 1.0 [11:56:42]line ЗНМ: 0300000118 [11:56:42]line РНМ: 0000000000091857 [11:56:42]line Версия ККМ: 001 [11:56:42]line ФМ: 0000000000871826 [11:56:42]line ФД: 186522 [11:56:42]line ФПД: 254378414939903 [11:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115644&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186522&fm=254378414939903&tin=02508201610067®Number=0000000000091857&sum=120000 [11:56:42]OFD Sender: Processing packet 186522 [packets to send 49, broken 48] [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00186522 [11:56:42]OFD Sender: To server: pG, [11:56:42]CommunicateWithHost lk.salyk.kg:30040 [11:56:42]ConnectInit lk.salyk.kg [11:56:42]written 0, free lines is 4095 [11:56:42]Connected sock=10 [11:56:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 A2 07 01 4C 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 FC 23 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D8 02 00 35 04 06 00 E7 5B 17 0F 9E FF 90 8A B8 38 6D 7E 2C 48 [11:56:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 84 70 47 00 CC 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9A D8 02 00 F4 03 04 00 57 CA B2 67 B6 04 01 00 00 AE E8 B1 39 F0 FC 7D F6 [11:56:42]CommunicateWithHost err = 0 [11:56:42]CheckOFDResponse [11:56:42]1017 (14) - 77093643461234 [11:56:42]1041 (16) - 0000000000871826 [11:56:42]1040 (4) - 186522 [11:56:42]1012 (4) - 17.02.2025 05:34 [11:56:42]1206 (1) - 0 [11:56:42]OFD Sender: Remove packet 186522 [11:56:42]ProducePacketName [11:56:42]name=ofd_packets/00186522 [11:56:42]NVStorageDeleteData [11:56:42]Write to MH i2c: 01 00 00 56 2E 84 [11:56:42]Write i2c OK [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 [11:56:42]MH_I2C_Read... [11:56:42]Read from MH i2c: 01 07 00 56 2E 00 00 00 00 00 FC 0C 93 [11:56:42]RasterBufferAndPrint [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]line [11:56:43]written 0, free lines is 3330 [11:56:43]MH_Cut [11:56:43]Write to MH i2c: D1 01 00 5D 2E 01 5D [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 01 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: D1 01 00 5D 2E 00 5C [11:56:43]Write to MH i2c: 01 00 00 5E 2E 8C [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]OFD Sender: No OFD packet to send [11:56:43]*** Cut start [11:56:43]*** Partial cut [11:56:43]*** CUTSNS_PIN = 1 [11:56:43]*** CUTSNS_PIN = 0 [11:56:44]*** Brake cut motor [11:56:44]Read from MH i2c: 01 [11:56:44]MH_I2C_Read... [11:56:44]*** Stop cut motor [11:56:44]*** Cut end [11:56:44]Read from MH i2c: 01 07 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: 01 07 00 5E 2E 00 00 00 00 00 FF 0F A1 [11:56:44]process_action close_receipt done [11:56:44]requested_data is exist [11:56:44]produce_requested_data [11:56:44]requested_item fm.sn is exist - process it [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 11 00 00 [11:56:44]Write to MH i2c: E2 08 00 5F 2E 80 11 00 00 00 00 00 00 07 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 17 00 5F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [11:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:56:44]wFMCommunicate OK [11:56:44]requested_item fd.num is exist - process it [11:56:44]SAM_PROTO_GetFieldsCounters [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 00 00 [11:56:44]Write to MH i2c: E2 08 00 60 2E 80 13 00 00 00 00 00 00 0A [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 62 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 62 00 60 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [11:56:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9A D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetFieldsCounters done [11:56:44]requested_item shift.num is exist - process it [11:56:44]requested_item shift.opened is exist - process it [11:56:44]req_shift_opened [11:56:44]FM_GetShiftState [11:56:44]SAM_PROTO_GetShiftState [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 01 00 [11:56:44]Write to MH i2c: E2 08 00 61 2E 80 13 01 00 00 00 00 00 0C [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 61 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 30 [11:56:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetShiftState done [11:56:44]FM_GetShiftState done [11:56:44]req_shift_opened done [11:56:44]requested_item shift.open_date is exist - process it [11:56:44]req_shift_open_date [11:56:44]req_shift_open_date done [11:56:44]produce_requested_data done [11:56:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186522,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:56:44]process_action_free close_receipt [11:56:44]json_value_free [11:56:44]json_value_free done [11:56:44]process_json_proto returns [11:56:44]Send response to host [11:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186522,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:56:44]free response buf [11:56:44]execute_script done [11:56:44]execute_script returns [11:56:44]free content buf [11:56:44]Sock 9.Close socket [11:56:44]Sock 9.Thread stoped [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:54]accept exits with 8 [11:59:54]New connection [11:59:54]New thread 3067501924 created [11:59:54]Thread 3067358564 joined [11:59:54]Waiting for new connection... [11:59:54] Sock 8.Parse request [11:59:54]Sock 8.Check first char [11:59:54]Sock 8.First char is OK [11:59:54]request: POST /json_proto HTTP/1.0 [11:59:54]Method: POST [11:59:54]URL: /json_proto [11:59:54]Method is POST - this is cgi request [11:59:54]url: /json_proto [11:59:54]query_string will be loaded in cgi processing [11:59:54]execute_cgi json_proto POST (null) [11:59:54]execute_cgi path=json_proto method=POST [11:59:54]POST find Content-Length [11:59:54]Host: 172.17.46.131:8080 [11:59:54]Content-Length: 677 [11:59:54]Content-Type: application/json [11:59:54] [11:59:54]POST finish read [11:59:54]Found Content-Length = 677 [11:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:54]execute_script... [11:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:54]POST & json_proto [11:59:54]process_json_proto [11:59:54]json parsed OK: [11:59:54]protocol is kg_v1.0 [11:59:54]action value=close_receipt [11:59:54]process_action close_receipt [11:59:54]cmd_close_receipt [11:59:54]MH_GetDate [11:59:54]Write to MH i2c: F0 00 00 62 2E 7F [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 09 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: F0 09 00 62 2E 00 BE 24 B3 67 7E 41 4F 65 F7 [11:59:54]GetLastDocTimeStamp 1739793404 [11:59:54]current date 1739793598 [11:59:54]FM_GetShiftState [11:59:54]SAM_PROTO_GetShiftState [11:59:54]wFMCommunicate request_size=4 [11:59:54]MH_SAM_APDU [11:59:54]CAPDU: 80 13 01 00 [11:59:54]Write to MH i2c: E2 08 00 63 2E 80 13 01 00 00 00 00 00 0E [11:59:54]Write i2c OK [11:59:54]MH_I2C_Read... [11:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:54]Read from MH i2c: E2 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 [11:59:54]MH_I2C_Read... [11:59:54]Read from MH i2c: E2 0E 00 63 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 32 [11:59:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:59:54]wFMCommunicate OK [11:59:54]SAM_PROTO_GetShiftState done [11:59:54]FM_GetShiftState done [11:59:54]opened in 1739752571 [11:59:54]opened+sec_in_day 1739838971 [11:59:54]quantity*price = 50042 [11:59:54]sum+1 = 50043 [11:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 110 17.02.2025 11:59 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186523 ФПД: 45537796051614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115958&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186523&fm=45537796051614&tin=02508201610067®Number=0000000000091857&sum=50000 [11:59:55]StoreToDocumentArchive [11:59:55]shift 644 fd 186523 [11:59:55]save to /storage/0644/doc_00186523 [11:59:55]save last doc name /storage/0644/doc_00186523 to /storage/kkm_last_doc_name [11:59:55]save OK [11:59:55]Clear old archive folders... [11:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:55]tlvbuf is 02012DF0 [11:59:55]SAM_PROTO_ClearQueue [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 09 00 00 [11:59:55]Write to MH i2c: E2 08 00 70 2E 80 09 00 00 00 00 00 00 10 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 70 2E 00 90 00 12 [11:59:55]RAPDU: 90 00 [11:59:55]wFMCommunicate OK [11:59:55]SAM_PROTO_ClearQueue done [11:59:55]KKMCreateOFDPacket [11:59:55]OFDProtocolAddRootSTLVToBuf [11:59:55]FM_MakeSignedData [11:59:55]FM_MakeSignedData [11:59:55]SAM_PROTO_SignData [11:59:55]wFMCommunicate request_size=4 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 0D 01 02 [11:59:55]Write to MH i2c: E2 08 00 71 2E 80 0D 01 02 00 00 00 00 18 [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:55]Read from MH i2c: E2 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 [11:59:55]MH_I2C_Read... [11:59:55]Read from MH i2c: E2 03 00 71 2E 00 90 00 13 [11:59:55]RAPDU: 90 00 [11:59:55]wFMCommunicate OK [11:59:55]wFMCommunicate request_size=255 [11:59:55]MH_SAM_APDU [11:59:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BE 24 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D8 02 00 35 04 06 00 29 [11:59:55]Write to MH i2c: E2 02 01 72 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BE 24 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D8 02 00 35 04 06 00 29 00 00 2B [11:59:55]Write i2c OK [11:59:55]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 72 2E 00 90 00 14 [11:59:56]RAPDU: 90 00 [11:59:56]wFMCommunicate OK [11:59:56]wFMCommunicate request_size=10 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 0D 02 02 05 6A 98 28 52 9E [11:59:56]Write to MH i2c: E2 0D 00 73 2E 80 0D 02 02 05 00 6A 98 28 52 9E 00 00 3F [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 03 00 73 2E 00 90 00 15 [11:59:56]RAPDU: 90 00 [11:59:56]wFMCommunicate OK [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 0D 03 02 [11:59:56]Write to MH i2c: E2 08 00 74 2E 80 0D 03 02 00 00 00 00 1D [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0B 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 0B 00 74 2E 00 13 2C 0B DE 10 E0 A0 4D 90 00 23 [11:59:56]RAPDU: 13 2C 0B DE 10 E0 A0 4D 90 00 [11:59:56]wFMCommunicate OK [11:59:56]SAM_PROTO_SignData done [11:59:56]FM_MakeSignedData done [11:59:56]CreateOFDProtocolMessage [11:59:56]wFMCommunicate request_size=4 [11:59:56]MH_SAM_APDU [11:59:56]CAPDU: 80 11 00 00 [11:59:56]Write to MH i2c: E2 08 00 75 2E 80 11 00 00 00 00 00 00 1D [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:56]Read from MH i2c: E2 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 17 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: E2 17 00 75 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [11:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:59:56]wFMCommunicate OK [11:59:56]CreateOFDProtocolMessage done [11:59:56]OFDSenderStorePacket 186523 [11:59:56]StoreOFDPacket docnum=186523 [11:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 27 98 07 01 3E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BE 24 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D8 02 00 35 04 06 00 29 6A 98 28 52 9E 13 2C 0B DE 10 E0 A0 4D [11:59:56]CheckFolder [11:59:56]dirname=/storage/ofd_packets [11:59:56]CheckFolder done [11:59:56]ProducePacketName [11:59:56]name=ofd_packets/00186523 [11:59:56]NVStorageSaveData ofd_packets/00186523 [11:59:56]File name is /storage/ofd_packets/00186523 [11:59:56]Write 301 bytes [11:59:56]NVStorageSaveData done [11:59:56]OFDSenderStorePacket done [11:59:56]KKMCreateOFDPacket done [11:59:56]NVStorageSaveData kkm_last_timestamp [11:59:56]File name is /storage/kkm_last_timestamp [11:59:56]Write 4 bytes [11:59:56]NVStorageSaveData done [11:59:56]ExternCall_PrintAddStr [11:59:56]wPrintStart [11:59:56]Write to MH i2c: 01 00 00 76 2E A4 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 76 2E 00 00 00 00 00 FF 0F B9 [11:59:56]RasterBufferAndPrint [11:59:56]line Счет N : (1)411656 [11:59:56]line ИНН: 02508201610067 [11:59:56]line Контрольно-Кассовый Чек [11:59:56]line ПРОДАЖА [11:59:56]line ТРК (МРК, ГНК) : 13 [11:59:56]line Товар: 2710124500 [11:59:56]line Аи-95-К-5 [11:59:56]line 6.960 * 71.90 [11:59:56]line = 500.42 [11:59:56]line НДС 12% НСП 1% [11:59:56]line > о реализуемом товаре [11:59:56]line ОКРУГЛЕНИЕ: -0.42 [11:59:56]line ИТОГО: 500.00 [11:59:56]line Внесено: 500.00 [11:59:56]line СДАЧА: 0.00 [11:59:56]line НСП 1% : 4.43 [11:59:56]line НДС 12% : 53.14 [11:59:56]line Наличными: 500.00 [11:59:56]line Безнал.: 0.00 [11:59:56]line Место: АЗС № 92 "Партнер Нефть" [11:59:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [11:59:56]line СНО: Общий режим [11:59:56]line Чек 110 17.02.2025 11:59 [11:59:56]line Смена: 644 ФФД: 1.0 [11:59:56]line ЗНМ: 0300000118 [11:59:56]line РНМ: 0000000000091857 [11:59:56]line Версия ККМ: 001 [11:59:56]line ФМ: 0000000000871826 [11:59:56]line ФД: 186523 [11:59:56]line ФПД: 45537796051614 [11:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T115958&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186523&fm=45537796051614&tin=02508201610067®Number=0000000000091857&sum=50000 [11:59:56]OFD Sender: Processing packet 186523 [packets to send 49, broken 48] [11:59:56]ProducePacketName [11:59:56]name=ofd_packets/00186523 [11:59:56]OFD Sender: To server: pG, [11:59:56]CommunicateWithHost lk.salyk.kg:30040 [11:59:56]ConnectInit lk.salyk.kg [11:59:56]written 0, free lines is 4095 [11:59:56]Connected sock=10 [11:59:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 27 98 07 01 3E E0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 BE 24 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D8 02 00 35 04 06 00 29 6A 98 28 52 9E 13 2C 0B DE 10 E0 A0 4D [11:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 BC FA 47 00 5F 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9B D8 02 00 F4 03 04 00 19 CB B2 67 B6 04 01 00 00 14 6C 71 1F 26 7B 46 EC [11:59:56]CommunicateWithHost err = 0 [11:59:56]CheckOFDResponse [11:59:56]1017 (14) - 77093643461234 [11:59:56]1041 (16) - 0000000000871826 [11:59:56]1040 (4) - 186523 [11:59:56]1012 (4) - 17.02.2025 05:37 [11:59:56]1206 (1) - 0 [11:59:56]OFD Sender: Remove packet 186523 [11:59:56]ProducePacketName [11:59:56]name=ofd_packets/00186523 [11:59:56]NVStorageDeleteData [11:59:56]Write to MH i2c: 01 00 00 A1 2E CF [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: 01 07 00 A1 2E 00 00 00 00 00 E3 0C C5 [11:59:56]RasterBufferAndPrint [11:59:56]line [11:59:56]line [11:59:56]line [11:59:56]line [11:59:56]line [11:59:56]written 0, free lines is 3305 [11:59:56]MH_Cut [11:59:56]Write to MH i2c: D1 01 00 A8 2E 01 A8 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: D1 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: D1 01 00 [11:59:56]MH_I2C_Read... [11:59:56]Read from MH i2c: D1 01 00 A8 2E 00 A7 [11:59:56]Write to MH i2c: 01 00 00 A9 2E D7 [11:59:56]Write i2c OK [11:59:56]MH_I2C_Read... [11:59:57]OFD Sender: No OFD packet to send [11:59:57]*** Cut start [11:59:57]*** Partial cut [11:59:57]*** CUTSNS_PIN = 1 [11:59:57]*** CUTSNS_PIN = 0 [11:59:58]*** Brake cut motor [11:59:58]Read from MH i2c: 01 [11:59:58]MH_I2C_Read... [11:59:58]*** Stop cut motor [11:59:58]*** Cut end [11:59:58]Read from MH i2c: 01 07 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: 01 07 00 A9 2E 00 00 00 00 00 FF 0F EC [11:59:58]process_action close_receipt done [11:59:58]requested_data is exist [11:59:58]produce_requested_data [11:59:58]requested_item fm.sn is exist - process it [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 11 00 00 [11:59:58]Write to MH i2c: E2 08 00 AA 2E 80 11 00 00 00 00 00 00 52 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 17 00 AA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [11:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [11:59:58]wFMCommunicate OK [11:59:58]requested_item fd.num is exist - process it [11:59:58]SAM_PROTO_GetFieldsCounters [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 13 00 00 [11:59:58]Write to MH i2c: E2 08 00 AB 2E 80 13 00 00 00 00 00 00 55 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 62 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 62 00 AB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [11:59:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9B D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_GetFieldsCounters done [11:59:58]requested_item shift.num is exist - process it [11:59:58]requested_item shift.opened is exist - process it [11:59:58]req_shift_opened [11:59:58]FM_GetShiftState [11:59:58]SAM_PROTO_GetShiftState [11:59:58]wFMCommunicate request_size=4 [11:59:58]MH_SAM_APDU [11:59:58]CAPDU: 80 13 01 00 [11:59:58]Write to MH i2c: E2 08 00 AC 2E 80 13 01 00 00 00 00 00 57 [11:59:58]Write i2c OK [11:59:58]MH_I2C_Read... [11:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:58]Read from MH i2c: E2 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0E 00 [11:59:58]MH_I2C_Read... [11:59:58]Read from MH i2c: E2 0E 00 AC 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7B [11:59:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [11:59:58]wFMCommunicate OK [11:59:58]SAM_PROTO_GetShiftState done [11:59:58]FM_GetShiftState done [11:59:58]req_shift_opened done [11:59:58]requested_item shift.open_date is exist - process it [11:59:58]req_shift_open_date [11:59:58]req_shift_open_date done [11:59:58]produce_requested_data done [11:59:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186523,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [11:59:58]process_action_free close_receipt [11:59:58]json_value_free [11:59:58]json_value_free done [11:59:58]process_json_proto returns [11:59:58]Send response to host [11:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186523,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [11:59:58]free response buf [11:59:58]execute_script done [11:59:58]execute_script returns [11:59:58]free content buf [11:59:58]Sock 8.Close socket [11:59:58]Sock 8.Thread stoped [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:43]accept exits with 9 [12:01:43]New connection [12:01:43]New thread 3067358564 created [12:01:43]Thread 3067501924 joined [12:01:43]Waiting for new connection... [12:01:43] Sock 9.Parse request [12:01:43]Sock 9.Check first char [12:01:43]Sock 9.First char is OK [12:01:43]request: POST /json_proto HTTP/1.0 [12:01:43]Method: POST [12:01:43]URL: /json_proto [12:01:43]Method is POST - this is cgi request [12:01:43]url: /json_proto [12:01:43]query_string will be loaded in cgi processing [12:01:43]execute_cgi json_proto POST (null) [12:01:43]execute_cgi path=json_proto method=POST [12:01:43]POST find Content-Length [12:01:43]Host: 172.17.46.131:8080 [12:01:43]Content-Length: 678 [12:01:43]Content-Type: application/json [12:01:43] [12:01:43]POST finish read [12:01:43]Found Content-Length = 678 [12:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:43]execute_script... [12:01:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:43]POST & json_proto [12:01:43]process_json_proto [12:01:43]json parsed OK: [12:01:43]protocol is kg_v1.0 [12:01:43]action value=close_receipt [12:01:43]process_action close_receipt [12:01:43]cmd_close_receipt [12:01:43]MH_GetDate [12:01:43]Write to MH i2c: F0 00 00 AD 2E CA [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: F0 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: F0 09 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: F0 09 00 AD 2E 00 2C 25 B3 67 7E 41 4F 65 B1 [12:01:43]GetLastDocTimeStamp 1739793598 [12:01:43]current date 1739793708 [12:01:43]FM_GetShiftState [12:01:43]SAM_PROTO_GetShiftState [12:01:43]wFMCommunicate request_size=4 [12:01:43]MH_SAM_APDU [12:01:43]CAPDU: 80 13 01 00 [12:01:43]Write to MH i2c: E2 08 00 AE 2E 80 13 01 00 00 00 00 00 59 [12:01:43]Write i2c OK [12:01:43]MH_I2C_Read... [12:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:43]Read from MH i2c: E2 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 [12:01:43]MH_I2C_Read... [12:01:43]Read from MH i2c: E2 0E 00 AE 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7D [12:01:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:01:43]wFMCommunicate OK [12:01:43]SAM_PROTO_GetShiftState done [12:01:43]FM_GetShiftState done [12:01:43]opened in 1739752571 [12:01:43]opened+sec_in_day 1739838971 [12:01:43]quantity*price = 100042 [12:01:43]sum+1 = 100044 [12:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 111 17.02.2025 12:01 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186524 ФПД: 43434752299524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T120148&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186524&fm=43434752299524&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:45]StoreToDocumentArchive [12:01:45]shift 644 fd 186524 [12:01:45]save to /storage/0644/doc_00186524 [12:01:45]save last doc name /storage/0644/doc_00186524 to /storage/kkm_last_doc_name [12:01:45]save OK [12:01:45]Clear old archive folders... [12:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:45]tlvbuf is 01FCA6B0 [12:01:45]SAM_PROTO_ClearQueue [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 09 00 00 [12:01:45]Write to MH i2c: E2 08 00 BB 2E 80 09 00 00 00 00 00 00 5B [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 BB 2E 00 90 00 5D [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]SAM_PROTO_ClearQueue done [12:01:45]KKMCreateOFDPacket [12:01:45]OFDProtocolAddRootSTLVToBuf [12:01:45]FM_MakeSignedData [12:01:45]FM_MakeSignedData [12:01:45]SAM_PROTO_SignData [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 01 02 [12:01:45]Write to MH i2c: E2 08 00 BC 2E 80 0D 01 02 00 00 00 00 63 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 BC 2E 00 90 00 5E [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=255 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C 25 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D8 02 00 35 04 06 00 27 80 F0 FB [12:01:45]Write to MH i2c: E2 02 01 BD 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C 25 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D8 02 00 35 04 06 00 27 80 F0 FB 00 00 6F [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 BD 2E 00 90 00 5F [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=7 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 02 02 02 52 04 [12:01:45]Write to MH i2c: E2 0A 00 BE 2E 80 0D 02 02 02 00 52 04 00 00 C0 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 BE 2E 00 90 00 60 [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 03 02 [12:01:45]Write to MH i2c: E2 08 00 BF 2E 80 0D 03 02 00 00 00 00 68 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 0B 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 0B 00 BF 2E 00 11 7D 73 30 90 8C B2 68 90 00 D0 [12:01:45]RAPDU: 11 7D 73 30 90 8C B2 68 90 00 [12:01:45]wFMCommunicate OK [12:01:45]SAM_PROTO_SignData done [12:01:45]FM_MakeSignedData done [12:01:45]CreateOFDProtocolMessage [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 11 00 00 [12:01:45]Write to MH i2c: E2 08 00 C0 2E 80 11 00 00 00 00 00 00 68 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 17 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 17 00 C0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [12:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:45]wFMCommunicate OK [12:01:45]CreateOFDProtocolMessage done [12:01:45]OFDSenderStorePacket 186524 [12:01:45]StoreOFDPacket docnum=186524 [12:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 64 E2 04 01 31 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C 25 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D8 02 00 35 04 06 00 27 80 F0 FB 52 04 11 7D 73 30 90 8C B2 68 [12:01:45]CheckFolder [12:01:45]dirname=/storage/ofd_packets [12:01:45]CheckFolder done [12:01:45]ProducePacketName [12:01:45]name=ofd_packets/00186524 [12:01:45]NVStorageSaveData ofd_packets/00186524 [12:01:45]File name is /storage/ofd_packets/00186524 [12:01:45]Write 298 bytes [12:01:45]NVStorageSaveData done [12:01:45]OFDSenderStorePacket done [12:01:45]KKMCreateOFDPacket done [12:01:45]NVStorageSaveData kkm_last_timestamp [12:01:45]File name is /storage/kkm_last_timestamp [12:01:45]Write 4 bytes [12:01:45]NVStorageSaveData done [12:01:45]ExternCall_PrintAddStr [12:01:45]wPrintStart [12:01:45]Write to MH i2c: 01 00 00 C1 2E EF [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 07 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 07 00 C1 2E 00 00 00 00 00 FF 0F 04 [12:01:45]RasterBufferAndPrint [12:01:45]line Счет N : (1)411657 [12:01:45]line ИНН: 02508201610067 [12:01:45]line Контрольно-Кассовый Чек [12:01:45]line ПРОДАЖА [12:01:45]line ТРК (МРК, ГНК) : 5 [12:01:45]line Товар: 2710194210 [12:01:45]line ДТ-К-5 [12:01:45]line 13.780 * 72.60 [12:01:45]line = 1000.43 [12:01:45]line НДС 12% НСП 1% [12:01:45]line > о реализуемом товаре [12:01:45]line ОКРУГЛЕНИЕ: -0.43 [12:01:45]line ИТОГО: 1000.00 [12:01:45]line Внесено: 1000.00 [12:01:45]line СДАЧА: 0.00 [12:01:45]line НСП 1% : 8.85 [12:01:45]line НДС 12% : 106.24 [12:01:45]line Наличными: 1000.00 [12:01:45]line Безнал.: 0.00 [12:01:45]line Место: АЗС № 92 "Партнер Нефть" [12:01:45]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:01:45]line СНО: Общий режим [12:01:45]line Чек 111 17.02.2025 12:01 [12:01:45]line Смена: 644 ФФД: 1.0 [12:01:45]line ЗНМ: 0300000118 [12:01:45]line РНМ: 0000000000091857 [12:01:45]line Версия ККМ: 001 [12:01:45]line ФМ: 0000000000871826 [12:01:45]line ФД: 186524 [12:01:45]line ФПД: 43434752299524 [12:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T120148&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186524&fm=43434752299524&tin=02508201610067®Number=0000000000091857&sum=100000 [12:01:45]OFD Sender: Processing packet 186524 [packets to send 49, broken 48] [12:01:45]ProducePacketName [12:01:45]name=ofd_packets/00186524 [12:01:45]OFD Sender: To server: pG, [12:01:45]CommunicateWithHost lk.salyk.kg:30040 [12:01:45]ConnectInit lk.salyk.kg [12:01:45]written 0, free lines is 4095 [12:01:46]Connected sock=10 [12:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 64 E2 04 01 31 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 2C 25 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D8 02 00 35 04 06 00 27 80 F0 FB 52 04 11 7D 73 30 90 8C B2 68 [12:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 F5 47 00 A5 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9C D8 02 00 F4 03 04 00 86 CB B2 67 B6 04 01 00 00 72 15 75 60 D4 3E 93 6E [12:01:46]CommunicateWithHost err = 0 [12:01:46]CheckOFDResponse [12:01:46]1017 (14) - 77093643461234 [12:01:46]1041 (16) - 0000000000871826 [12:01:46]1040 (4) - 186524 [12:01:46]1012 (4) - 17.02.2025 05:39 [12:01:46]1206 (1) - 0 [12:01:46]OFD Sender: Remove packet 186524 [12:01:46]ProducePacketName [12:01:46]name=ofd_packets/00186524 [12:01:46]NVStorageDeleteData [12:01:46]Write to MH i2c: 01 00 00 EC 2E 1A [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 07 00 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 07 00 EC 2E 00 00 00 00 00 E3 0C 10 [12:01:46]RasterBufferAndPrint [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]written 0, free lines is 3305 [12:01:46]MH_Cut [12:01:46]Write to MH i2c: D1 01 00 F3 2E 01 F3 [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: D1 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: D1 01 00 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: D1 01 00 F3 2E 00 F2 [12:01:46]Write to MH i2c: 01 00 00 F4 2E 22 [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]OFD Sender: No OFD packet to send [12:01:47]*** Cut start [12:01:47]*** Partial cut [12:01:47]*** CUTSNS_PIN = 1 [12:01:47]*** CUTSNS_PIN = 0 [12:01:47]*** Brake cut motor [12:01:47]Read from MH i2c: 01 [12:01:47]MH_I2C_Read... [12:01:47]*** Stop cut motor [12:01:47]*** Cut end [12:01:47]Read from MH i2c: 01 07 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: 01 07 00 F4 2E 00 00 00 00 00 FF 0F 37 [12:01:47]process_action close_receipt done [12:01:47]requested_data is exist [12:01:47]produce_requested_data [12:01:47]requested_item fm.sn is exist - process it [12:01:47]wFMCommunicate request_size=4 [12:01:47]MH_SAM_APDU [12:01:47]CAPDU: 80 11 00 00 [12:01:47]Write to MH i2c: E2 08 00 F5 2E 80 11 00 00 00 00 00 00 9D [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 [12:01:47]MH_I2C_Read... [12:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:47]Read from MH i2c: E2 17 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 17 00 F5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F0 [12:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:01:47]wFMCommunicate OK [12:01:47]requested_item fd.num is exist - process it [12:01:47]SAM_PROTO_GetFieldsCounters [12:01:47]wFMCommunicate request_size=4 [12:01:47]MH_SAM_APDU [12:01:47]CAPDU: 80 13 00 00 [12:01:47]Write to MH i2c: E2 08 00 F6 2E 80 13 00 00 00 00 00 00 A0 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:47]Read from MH i2c: E2 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 62 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 62 00 F6 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9C D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:47]wFMCommunicate OK [12:01:47]SAM_PROTO_GetFieldsCounters done [12:01:47]requested_item shift.num is exist - process it [12:01:47]requested_item shift.opened is exist - process it [12:01:47]req_shift_opened [12:01:47]FM_GetShiftState [12:01:47]SAM_PROTO_GetShiftState [12:01:47]wFMCommunicate request_size=4 [12:01:47]MH_SAM_APDU [12:01:47]CAPDU: 80 13 01 00 [12:01:47]Write to MH i2c: E2 08 00 F7 2E 80 13 01 00 00 00 00 00 A2 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:48]Read from MH i2c: E2 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 [12:01:48]MH_I2C_Read... [12:01:48]Read from MH i2c: E2 0E 00 F7 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C6 [12:01:48]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:01:48]wFMCommunicate OK [12:01:48]SAM_PROTO_GetShiftState done [12:01:48]FM_GetShiftState done [12:01:48]req_shift_opened done [12:01:48]requested_item shift.open_date is exist - process it [12:01:48]req_shift_open_date [12:01:48]req_shift_open_date done [12:01:48]produce_requested_data done [12:01:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186524,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:01:48]process_action_free close_receipt [12:01:48]json_value_free [12:01:48]json_value_free done [12:01:48]process_json_proto returns [12:01:48]Send response to host [12:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186524,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:01:48]free response buf [12:01:48]execute_script done [12:01:48]execute_script returns [12:01:48]free content buf [12:01:48]Sock 9.Close socket [12:01:48]Sock 9.Thread stoped [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:32]OFD Sender: No OFD packet to send [12:07:37]OFD Sender: No OFD packet to send [12:07:42]OFD Sender: No OFD packet to send [12:07:47]OFD Sender: No OFD packet to send [12:07:52]OFD Sender: No OFD packet to send [12:07:57]OFD Sender: No OFD packet to send [12:08:02]OFD Sender: No OFD packet to send [12:08:07]OFD Sender: No OFD packet to send [12:08:12]OFD Sender: No OFD packet to send [12:08:17]OFD Sender: No OFD packet to send [12:08:22]OFD Sender: No OFD packet to send [12:08:27]OFD Sender: No OFD packet to send [12:08:32]OFD Sender: No OFD packet to send [12:08:37]OFD Sender: No OFD packet to send [12:08:42]OFD Sender: No OFD packet to send [12:08:47]OFD Sender: No OFD packet to send [12:08:52]OFD Sender: No OFD packet to send [12:08:57]OFD Sender: No OFD packet to send [12:09:02]OFD Sender: No OFD packet to send [12:09:07]OFD Sender: No OFD packet to send [12:09:12]OFD Sender: No OFD packet to send [12:09:17]OFD Sender: No OFD packet to send [12:09:22]OFD Sender: No OFD packet to send [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:52]OFD Sender: No OFD packet to send [12:09:57]OFD Sender: No OFD packet to send [12:10:02]OFD Sender: No OFD packet to send [12:10:07]OFD Sender: No OFD packet to send [12:10:12]OFD Sender: No OFD packet to send [12:10:17]OFD Sender: No OFD packet to send [12:10:22]OFD Sender: No OFD packet to send [12:10:27]OFD Sender: No OFD packet to send [12:10:32]OFD Sender: No OFD packet to send [12:10:37]OFD Sender: No OFD packet to send [12:10:42]OFD Sender: No OFD packet to send [12:10:47]OFD Sender: No OFD packet to send [12:10:52]OFD Sender: No OFD packet to send [12:10:57]OFD Sender: No OFD packet to send [12:11:02]OFD Sender: No OFD packet to send [12:11:07]OFD Sender: No OFD packet to send [12:11:12]OFD Sender: No OFD packet to send [12:11:17]OFD Sender: No OFD packet to send [12:11:22]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:34]accept exits with 8 [12:11:34]New connection [12:11:34]New thread 3067501924 created [12:11:34]Thread 3067358564 joined [12:11:34]Waiting for new connection... [12:11:34] Sock 8.Parse request [12:11:34]Sock 8.Check first char [12:11:34]Sock 8.First char is OK [12:11:34]request: POST /json_proto HTTP/1.0 [12:11:34]Method: POST [12:11:34]URL: /json_proto [12:11:34]Method is POST - this is cgi request [12:11:34]url: /json_proto [12:11:34]query_string will be loaded in cgi processing [12:11:34]execute_cgi json_proto POST (null) [12:11:34]execute_cgi path=json_proto method=POST [12:11:34]POST find Content-Length [12:11:34]Host: 172.17.46.131:8080 [12:11:34]Content-Length: 677 [12:11:34]Content-Type: application/json [12:11:34] [12:11:34]POST finish read [12:11:34]Found Content-Length = 677 [12:11:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:34]execute_script... [12:11: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)411658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:34]POST & json_proto [12:11:34]process_json_proto [12:11:34]json parsed OK: [12:11:34]protocol is kg_v1.0 [12:11:34]action value=close_receipt [12:11:34]process_action close_receipt [12:11:34]cmd_close_receipt [12:11:34]MH_GetDate [12:11:34]Write to MH i2c: F0 00 00 F8 2E 15 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 09 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: F0 09 00 F8 2E 00 7A 27 B3 67 7E 41 4F 65 4C [12:11:34]GetLastDocTimeStamp 1739793708 [12:11:34]current date 1739794298 [12:11:34]FM_GetShiftState [12:11:34]SAM_PROTO_GetShiftState [12:11:34]wFMCommunicate request_size=4 [12:11:34]MH_SAM_APDU [12:11:34]CAPDU: 80 13 01 00 [12:11:34]Write to MH i2c: E2 08 00 F9 2E 80 13 01 00 00 00 00 00 A4 [12:11:34]Write i2c OK [12:11:34]MH_I2C_Read... [12:11:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:34]Read from MH i2c: E2 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 [12:11:34]MH_I2C_Read... [12:11:34]Read from MH i2c: E2 0E 00 F9 2E 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C8 [12:11:34]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:11:34]wFMCommunicate OK [12:11:34]SAM_PROTO_GetShiftState done [12:11:34]FM_GetShiftState done [12:11:34]opened in 1739752571 [12:11:34]opened+sec_in_day 1739838971 [12:11:34]quantity*price = 30045 [12:11:34]sum+1 = 30047 [12:11:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 112 17.02.2025 12:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186525 ФПД: 144997686401236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121139&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186525&fm=144997686401236&tin=02508201610067®Number=0000000000091857&sum=30000 [12:11:35]StoreToDocumentArchive [12:11:35]shift 644 fd 186525 [12:11:35]save to /storage/0644/doc_00186525 [12:11:35]save last doc name /storage/0644/doc_00186525 to /storage/kkm_last_doc_name [12:11:35]save OK [12:11:35]Clear old archive folders... [12:11:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:35]tlvbuf is 0201EB40 [12:11:35]SAM_PROTO_ClearQueue [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 09 00 00 [12:11:35]Write to MH i2c: E2 08 00 06 2F 80 09 00 00 00 00 00 00 A7 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 06 2F 00 90 00 A9 [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]SAM_PROTO_ClearQueue done [12:11:35]KKMCreateOFDPacket [12:11:35]OFDProtocolAddRootSTLVToBuf [12:11:35]FM_MakeSignedData [12:11:35]FM_MakeSignedData [12:11:35]SAM_PROTO_SignData [12:11:35]wFMCommunicate request_size=4 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 0D 01 02 [12:11:35]Write to MH i2c: E2 08 00 07 2F 80 0D 01 02 00 00 00 00 AF [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:35]Read from MH i2c: E2 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 [12:11:35]MH_I2C_Read... [12:11:35]Read from MH i2c: E2 03 00 07 2F 00 90 00 AA [12:11:35]RAPDU: 90 00 [12:11:35]wFMCommunicate OK [12:11:35]wFMCommunicate request_size=255 [12:11:35]MH_SAM_APDU [12:11:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7B 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D8 02 00 35 04 06 00 83 [12:11:35]Write to MH i2c: E2 02 01 08 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7B 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D8 02 00 35 04 06 00 83 00 00 99 [12:11:35]Write i2c OK [12:11:35]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 03 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 03 00 08 2F 00 90 00 AB [12:11:36]RAPDU: 90 00 [12:11:36]wFMCommunicate OK [12:11:36]wFMCommunicate request_size=10 [12:11:36]MH_SAM_APDU [12:11:36]CAPDU: 80 0D 02 02 05 DF E7 97 58 D4 [12:11:36]Write to MH i2c: E2 0D 00 09 2F 80 0D 02 02 05 00 DF E7 97 58 D4 00 00 45 [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 03 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 03 00 09 2F 00 90 00 AC [12:11:36]RAPDU: 90 00 [12:11:36]wFMCommunicate OK [12:11:36]wFMCommunicate request_size=4 [12:11:36]MH_SAM_APDU [12:11:36]CAPDU: 80 0D 03 02 [12:11:36]Write to MH i2c: E2 08 00 0A 2F 80 0D 03 02 00 00 00 00 B4 [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0B 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 0B 00 0A 2F 00 23 06 B5 F3 AB 0E 6B F0 90 00 9A [12:11:36]RAPDU: 23 06 B5 F3 AB 0E 6B F0 90 00 [12:11:36]wFMCommunicate OK [12:11:36]SAM_PROTO_SignData done [12:11:36]FM_MakeSignedData done [12:11:36]CreateOFDProtocolMessage [12:11:36]wFMCommunicate request_size=4 [12:11:36]MH_SAM_APDU [12:11:36]CAPDU: 80 11 00 00 [12:11:36]Write to MH i2c: E2 08 00 0B 2F 80 11 00 00 00 00 00 00 B4 [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:36]Read from MH i2c: E2 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 17 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: E2 17 00 0B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [12:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:36]wFMCommunicate OK [12:11:36]CreateOFDProtocolMessage done [12:11:36]OFDSenderStorePacket 186525 [12:11:36]StoreOFDPacket docnum=186525 [12:11:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 72 46 07 01 F4 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7B 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D8 02 00 35 04 06 00 83 DF E7 97 58 D4 23 06 B5 F3 AB 0E 6B F0 [12:11:36]CheckFolder [12:11:36]dirname=/storage/ofd_packets [12:11:36]CheckFolder done [12:11:36]ProducePacketName [12:11:36]name=ofd_packets/00186525 [12:11:36]NVStorageSaveData ofd_packets/00186525 [12:11:36]File name is /storage/ofd_packets/00186525 [12:11:36]Write 301 bytes [12:11:36]NVStorageSaveData done [12:11:36]OFDSenderStorePacket done [12:11:36]KKMCreateOFDPacket done [12:11:36]NVStorageSaveData kkm_last_timestamp [12:11:36]File name is /storage/kkm_last_timestamp [12:11:36]Write 4 bytes [12:11:36]NVStorageSaveData done [12:11:36]ExternCall_PrintAddStr [12:11:36]wPrintStart [12:11:36]Write to MH i2c: 01 00 00 0C 2F 3B [12:11:36]Write i2c OK [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 [12:11:36]MH_I2C_Read... [12:11:36]Read from MH i2c: 01 07 00 0C 2F 00 00 00 00 00 FF 0F 50 [12:11:36]RasterBufferAndPrint [12:11:36]line Счет N : (1)411658 [12:11:36]line ИНН: 02508201610067 [12:11:36]line Контрольно-Кассовый Чек [12:11:36]line ПРОДАЖА [12:11:36]line ТРК (МРК, ГНК) : 22 [12:11:36]line Товар: 2710124130 [12:11:36]line Аи-92-К-2 [12:11:36]line 4.680 * 64.20 [12:11:36]line = 300.46 [12:11:36]line НДС 12% НСП 1% [12:11:36]line > о реализуемом товаре [12:11:36]line ОКРУГЛЕНИЕ: -0.46 [12:11:36]line ИТОГО: 300.00 [12:11:36]line Внесено: 300.00 [12:11:36]line СДАЧА: 0.00 [12:11:36]line НСП 1% : 2.66 [12:11:36]line НДС 12% : 31.91 [12:11:36]line Наличными: 300.00 [12:11:36]line Безнал.: 0.00 [12:11:36]line Место: АЗС № 92 "Партнер Нефть" [12:11:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:11:36]line СНО: Общий режим [12:11:36]line Чек 112 17.02.2025 12:11 [12:11:36]line Смена: 644 ФФД: 1.0 [12:11:36]line ЗНМ: 0300000118 [12:11:36]line РНМ: 0000000000091857 [12:11:36]line Версия ККМ: 001 [12:11:36]line ФМ: 0000000000871826 [12:11:36]line ФД: 186525 [12:11:36]line ФПД: 144997686401236 [12:11:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121139&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186525&fm=144997686401236&tin=02508201610067®Number=0000000000091857&sum=30000 [12:11:36]written 0, free lines is 4095 [12:11:36]OFD Sender: Processing packet 186525 [packets to send 49, broken 48] [12:11:36]ProducePacketName [12:11:36]name=ofd_packets/00186525 [12:11:36]OFD Sender: To server: pG, [12:11:36]CommunicateWithHost lk.salyk.kg:30040 [12:11:36]ConnectInit lk.salyk.kg [12:11:36]Connected sock=10 [12:11:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 72 46 07 01 F4 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 7B 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D8 02 00 35 04 06 00 83 DF E7 97 58 D4 23 06 B5 F3 AB 0E 6B F0 [12:11:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 82 6E 47 00 1C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9D D8 02 00 F4 03 04 00 D5 CD B2 67 B6 04 01 00 00 F6 0A A3 6A 3C 6A 49 DE [12:11:37]CommunicateWithHost err = 0 [12:11:37]CheckOFDResponse [12:11:37]1017 (14) - 77093643461234 [12:11:37]1041 (16) - 0000000000871826 [12:11:37]1040 (4) - 186525 [12:11:37]1012 (4) - 17.02.2025 05:49 [12:11:37]1206 (1) - 0 [12:11:37]OFD Sender: Remove packet 186525 [12:11:37]ProducePacketName [12:11:37]name=ofd_packets/00186525 [12:11:37]NVStorageDeleteData [12:11:37]Write to MH i2c: 01 00 00 37 2F 66 [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: 01 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: 01 07 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: 01 07 00 37 2F 00 00 00 00 00 F3 0C 6C [12:11:37]RasterBufferAndPrint [12:11:37]line [12:11:37]line [12:11:37]line [12:11:37]line [12:11:37]line [12:11:37]written 0, free lines is 3321 [12:11:37]MH_Cut [12:11:37]Write to MH i2c: D1 01 00 3E 2F 01 3F [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: D1 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: D1 01 00 [12:11:37]MH_I2C_Read... [12:11:37]Read from MH i2c: D1 01 00 3E 2F 00 3E [12:11:37]Write to MH i2c: 01 00 00 3F 2F 6E [12:11:37]Write i2c OK [12:11:37]MH_I2C_Read... [12:11:37]OFD Sender: No OFD packet to send [12:11:37]*** Cut start [12:11:37]*** Partial cut [12:11:37]*** CUTSNS_PIN = 1 [12:11:37]*** CUTSNS_PIN = 0 [12:11:38]*** Brake cut motor [12:11:38]Read from MH i2c: 01 [12:11:38]MH_I2C_Read... [12:11:38]*** Stop cut motor [12:11:38]*** Cut end [12:11:38]Read from MH i2c: 01 07 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: 01 07 00 3F 2F 00 00 00 00 00 FF 0F 83 [12:11:38]process_action close_receipt done [12:11:38]requested_data is exist [12:11:38]produce_requested_data [12:11:38]requested_item fm.sn is exist - process it [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 11 00 00 [12:11:38]Write to MH i2c: E2 08 00 40 2F 80 11 00 00 00 00 00 00 E9 [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 17 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 17 00 40 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [12:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:38]wFMCommunicate OK [12:11:38]requested_item fd.num is exist - process it [12:11:38]SAM_PROTO_GetFieldsCounters [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 00 00 [12:11:38]Write to MH i2c: E2 08 00 41 2F 80 13 00 00 00 00 00 00 EC [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 62 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 62 00 41 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12:11:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9D D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetFieldsCounters done [12:11:38]requested_item shift.num is exist - process it [12:11:38]requested_item shift.opened is exist - process it [12:11:38]req_shift_opened [12:11:38]FM_GetShiftState [12:11:38]SAM_PROTO_GetShiftState [12:11:38]wFMCommunicate request_size=4 [12:11:38]MH_SAM_APDU [12:11:38]CAPDU: 80 13 01 00 [12:11:38]Write to MH i2c: E2 08 00 42 2F 80 13 01 00 00 00 00 00 EE [12:11:38]Write i2c OK [12:11:38]MH_I2C_Read... [12:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:38]Read from MH i2c: E2 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 [12:11:38]MH_I2C_Read... [12:11:38]Read from MH i2c: E2 0E 00 42 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 12 [12:11:38]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:11:38]wFMCommunicate OK [12:11:38]SAM_PROTO_GetShiftState done [12:11:38]FM_GetShiftState done [12:11:38]req_shift_opened done [12:11:38]requested_item shift.open_date is exist - process it [12:11:38]req_shift_open_date [12:11:38]req_shift_open_date done [12:11:38]produce_requested_data done [12:11:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186525,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:11:38]process_action_free close_receipt [12:11:38]json_value_free [12:11:38]json_value_free done [12:11:38]process_json_proto returns [12:11:38]Send response to host [12:11:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186525,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:11:38]free response buf [12:11:38]execute_script done [12:11:38]execute_script returns [12:11:38]free content buf [12:11:38]Sock 8.Close socket [12:11:38]Sock 8.Thread stoped [12:11:39]accept exits with 9 [12:11:39]New connection [12:11:39]New thread 3067358564 created [12:11:39]Thread 3067501924 joined [12:11:39]Waiting for new connection... [12:11:39] Sock 9.Parse request [12:11:39]Sock 9.Check first char [12:11:39]Sock 9.First char is OK [12:11:39]request: POST /json_proto HTTP/1.0 [12:11:39]Method: POST [12:11:39]URL: /json_proto [12:11:39]Method is POST - this is cgi request [12:11:39]url: /json_proto [12:11:39]query_string will be loaded in cgi processing [12:11:39]execute_cgi json_proto POST (null) [12:11:39]execute_cgi path=json_proto method=POST [12:11:39]POST find Content-Length [12:11:39]Host: 172.17.46.131:8080 [12:11:39]Content-Length: 677 [12:11:39]Content-Type: application/json [12:11:39] [12:11:39]POST finish read [12:11:39]Found Content-Length = 677 [12:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 7.240, "sum" : 520.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:39]execute_script... [12:11:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 7.240, "sum" : 520.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:39]POST & json_proto [12:11:39]process_json_proto [12:11:39]json parsed OK: [12:11:39]protocol is kg_v1.0 [12:11:39]action value=close_receipt [12:11:39]process_action close_receipt [12:11:39]cmd_close_receipt [12:11:39]MH_GetDate [12:11:39]Write to MH i2c: F0 00 00 43 2F 61 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 09 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: F0 09 00 43 2F 00 80 27 B3 67 7E 41 4F 65 9E [12:11:39]GetLastDocTimeStamp 1739794299 [12:11:39]current date 1739794304 [12:11:39]FM_GetShiftState [12:11:39]SAM_PROTO_GetShiftState [12:11:39]wFMCommunicate request_size=4 [12:11:39]MH_SAM_APDU [12:11:39]CAPDU: 80 13 01 00 [12:11:39]Write to MH i2c: E2 08 00 44 2F 80 13 01 00 00 00 00 00 F0 [12:11:39]Write i2c OK [12:11:39]MH_I2C_Read... [12:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:39]Read from MH i2c: E2 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0E 00 [12:11:39]MH_I2C_Read... [12:11:39]Read from MH i2c: E2 0E 00 44 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 14 [12:11:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:11:39]wFMCommunicate OK [12:11:39]SAM_PROTO_GetShiftState done [12:11:39]FM_GetShiftState done [12:11:39]opened in 1739752571 [12:11:39]opened+sec_in_day 1739838971 [12:11:39]quantity*price = 52055 [12:11:39]sum+1 = 52057 [12:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.28 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 113 17.02.2025 12:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186526 ФПД: 257321850604680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186526&fm=257321850604680&tin=02508201610067®Number=0000000000091857&sum=52000 [12:11:41]StoreToDocumentArchive [12:11:41]shift 644 fd 186526 [12:11:41]save to /storage/0644/doc_00186526 [12:11:41]save last doc name /storage/0644/doc_00186526 to /storage/kkm_last_doc_name [12:11:41]save OK [12:11:41]Clear old archive folders... [12:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:41]tlvbuf is 020BC8F0 [12:11:41]SAM_PROTO_ClearQueue [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 09 00 00 [12:11:41]Write to MH i2c: E2 08 00 51 2F 80 09 00 00 00 00 00 00 F2 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 51 2F 00 90 00 F4 [12:11:41]RAPDU: 90 00 [12:11:41]wFMCommunicate OK [12:11:41]SAM_PROTO_ClearQueue done [12:11:41]KKMCreateOFDPacket [12:11:41]OFDProtocolAddRootSTLVToBuf [12:11:41]FM_MakeSignedData [12:11:41]FM_MakeSignedData [12:11:41]SAM_PROTO_SignData [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 0D 01 02 [12:11:41]Write to MH i2c: E2 08 00 52 2F 80 0D 01 02 00 00 00 00 FA [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 52 2F 00 90 00 F5 [12:11:41]RAPDU: 90 00 [12:11:41]wFMCommunicate OK [12:11:41]wFMCommunicate request_size=255 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 80 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D8 02 00 35 04 06 00 EA [12:11:41]Write to MH i2c: E2 02 01 53 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 80 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D8 02 00 35 04 06 00 EA 00 00 31 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 53 2F 00 90 00 F6 [12:11:41]RAPDU: 90 00 [12:11:41]wFMCommunicate OK [12:11:41]wFMCommunicate request_size=10 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 0D 02 02 05 08 69 7F 8C 88 [12:11:41]Write to MH i2c: E2 0D 00 54 2F 80 0D 02 02 05 00 08 69 7F 8C 88 00 00 0B [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 03 00 54 2F 00 90 00 F7 [12:11:41]RAPDU: 90 00 [12:11:41]wFMCommunicate OK [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 0D 03 02 [12:11:41]Write to MH i2c: E2 08 00 55 2F 80 0D 03 02 00 00 00 00 FF [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0B 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 0B 00 55 2F 00 99 47 CD AC FA 17 B5 8F 90 00 AE [12:11:41]RAPDU: 99 47 CD AC FA 17 B5 8F 90 00 [12:11:41]wFMCommunicate OK [12:11:41]SAM_PROTO_SignData done [12:11:41]FM_MakeSignedData done [12:11:41]CreateOFDProtocolMessage [12:11:41]wFMCommunicate request_size=4 [12:11:41]MH_SAM_APDU [12:11:41]CAPDU: 80 11 00 00 [12:11:41]Write to MH i2c: E2 08 00 56 2F 80 11 00 00 00 00 00 00 FF [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:41]Read from MH i2c: E2 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 17 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: E2 17 00 56 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 52 [12:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:41]wFMCommunicate OK [12:11:41]CreateOFDProtocolMessage done [12:11:41]OFDSenderStorePacket 186526 [12:11:41]StoreOFDPacket docnum=186526 [12:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 B8 07 01 75 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 80 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D8 02 00 35 04 06 00 EA 08 69 7F 8C 88 99 47 CD AC FA 17 B5 8F [12:11:41]CheckFolder [12:11:41]dirname=/storage/ofd_packets [12:11:41]CheckFolder done [12:11:41]ProducePacketName [12:11:41]name=ofd_packets/00186526 [12:11:41]NVStorageSaveData ofd_packets/00186526 [12:11:41]File name is /storage/ofd_packets/00186526 [12:11:41]Write 301 bytes [12:11:41]NVStorageSaveData done [12:11:41]OFDSenderStorePacket done [12:11:41]KKMCreateOFDPacket done [12:11:41]NVStorageSaveData kkm_last_timestamp [12:11:41]File name is /storage/kkm_last_timestamp [12:11:41]Write 4 bytes [12:11:41]NVStorageSaveData done [12:11:41]ExternCall_PrintAddStr [12:11:41]wPrintStart [12:11:41]Write to MH i2c: 01 00 00 57 2F 86 [12:11:41]Write i2c OK [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 [12:11:41]MH_I2C_Read... [12:11:41]Read from MH i2c: 01 07 00 57 2F 00 00 00 00 00 FF 0F 9B [12:11:41]RasterBufferAndPrint [12:11:41]line Счет N : (1)411659 [12:11:41]line ИНН: 02508201610067 [12:11:41]line Контрольно-Кассовый Чек [12:11:41]line ПРОДАЖА [12:11:41]line ТРК (МРК, ГНК) : 33 [12:11:41]line Товар: 2710124500 [12:11:41]line Аи-95-К-5 [12:11:41]line 7.240 * 71.90 [12:11:41]line = 520.56 [12:11:41]line НДС 12% НСП 1% [12:11:41]line > о реализуемом товаре [12:11:41]line ОКРУГЛЕНИЕ: -0.56 [12:11:41]line ИТОГО: 520.00 [12:11:41]line Внесено: 520.00 [12:11:41]line СДАЧА: 0.00 [12:11:41]line НСП 1% : 4.61 [12:11:41]line НДС 12% : 55.28 [12:11:41]line Наличными: 520.00 [12:11:41]line Безнал.: 0.00 [12:11:41]line Место: АЗС № 92 "Партнер Нефть" [12:11:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:11:41]line СНО: Общий режим [12:11:41]line Чек 113 17.02.2025 12:11 [12:11:41]line Смена: 644 ФФД: 1.0 [12:11:41]line ЗНМ: 0300000118 [12:11:41]line РНМ: 0000000000091857 [12:11:41]line Версия ККМ: 001 [12:11:41]line ФМ: 0000000000871826 [12:11:41]line ФД: 186526 [12:11:41]line ФПД: 257321850604680 [12:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121144&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186526&fm=257321850604680&tin=02508201610067®Number=0000000000091857&sum=52000 [12:11:41]written 0, free lines is 4095 [12:11:42]OFD Sender: Processing packet 186526 [packets to send 49, broken 48] [12:11:42]ProducePacketName [12:11:42]name=ofd_packets/00186526 [12:11:42]OFD Sender: To server: pG, [12:11:42]CommunicateWithHost lk.salyk.kg:30040 [12:11:42]ConnectInit lk.salyk.kg [12:11:42]Connected sock=10 [12:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 B8 07 01 75 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 48 1C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 58 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 80 27 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D8 02 00 35 04 06 00 EA 08 69 7F 8C 88 99 47 CD AC FA 17 B5 8F [12:11:42]Write to MH i2c: 01 00 00 82 2F B1 [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: 01 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: 01 07 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: 01 07 00 82 2F 00 00 00 00 00 F2 0C B6 [12:11:42]RasterBufferAndPrint [12:11:42]line [12:11:42]line [12:11:42]line [12:11:42]line [12:11:42]line [12:11:42]written 0, free lines is 3329 [12:11:42]MH_Cut [12:11:42]Write to MH i2c: D1 01 00 89 2F 01 8A [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: D1 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: D1 01 00 [12:11:42]MH_I2C_Read... [12:11:42]Read from MH i2c: D1 01 00 89 2F 00 89 [12:11:42]Write to MH i2c: 01 00 00 8A 2F B9 [12:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C9 8C 47 00 ED 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9E D8 02 00 F4 03 04 00 DA CD B2 67 B6 04 01 00 00 07 AC 26 9F 91 AC 25 15 [12:11:42]CommunicateWithHost err = 0 [12:11:42]CheckOFDResponse [12:11:42]1017 (14) - 77093643461234 [12:11:42]1041 (16) - 0000000000871826 [12:11:42]1040 (4) - 186526 [12:11:42]1012 (4) - 17.02.2025 05:49 [12:11:42]1206 (1) - 0 [12:11:42]OFD Sender: Remove packet 186526 [12:11:42]ProducePacketName [12:11:42]name=ofd_packets/00186526 [12:11:42]NVStorageDeleteData [12:11:42]Write i2c OK [12:11:42]MH_I2C_Read... [12:11:43]OFD Sender: No OFD packet to send [12:11:43]*** Cut start [12:11:43]*** Partial cut [12:11:43]*** CUTSNS_PIN = 1 [12:11:43]*** CUTSNS_PIN = 0 [12:11:43]*** Brake cut motor [12:11:43]Read from MH i2c: 01 [12:11:43]MH_I2C_Read... [12:11:43]*** Stop cut motor [12:11:43]*** Cut end [12:11:43]Read from MH i2c: 01 07 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: 01 07 00 8A 2F 00 00 00 00 00 FF 0F CE [12:11:43]process_action close_receipt done [12:11:43]requested_data is exist [12:11:43]produce_requested_data [12:11:43]requested_item fm.sn is exist - process it [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 11 00 00 [12:11:43]Write to MH i2c: E2 08 00 8B 2F 80 11 00 00 00 00 00 00 34 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 17 00 8B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 87 [12:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:11:43]wFMCommunicate OK [12:11:43]requested_item fd.num is exist - process it [12:11:43]SAM_PROTO_GetFieldsCounters [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 00 00 [12:11:43]Write to MH i2c: E2 08 00 8C 2F 80 13 00 00 00 00 00 00 37 [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 62 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 62 00 8C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9E D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetFieldsCounters done [12:11:44]requested_item shift.num is exist - process it [12:11:44]requested_item shift.opened is exist - process it [12:11:44]req_shift_opened [12:11:44]FM_GetShiftState [12:11:44]SAM_PROTO_GetShiftState [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 13 01 00 [12:11:44]Write to MH i2c: E2 08 00 8D 2F 80 13 01 00 00 00 00 00 39 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0E 00 8D 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5D [12:11:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_GetShiftState done [12:11:44]FM_GetShiftState done [12:11:44]req_shift_opened done [12:11:44]requested_item shift.open_date is exist - process it [12:11:44]req_shift_open_date [12:11:44]req_shift_open_date done [12:11:44]produce_requested_data done [12:11:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186526,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:11:44]process_action_free close_receipt [12:11:44]json_value_free [12:11:44]json_value_free done [12:11:44]process_json_proto returns [12:11:44]Send response to host [12:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186526,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:11:44]free response buf [12:11:44]execute_script done [12:11:44]execute_script returns [12:11:44]free content buf [12:11:44]Sock 9.Close socket [12:11:44]Sock 9.Thread stoped [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:18]accept exits with 8 [12:15:18]New connection [12:15:18]New thread 3067501924 created [12:15:18]Thread 3067358564 joined [12:15:18]Waiting for new connection... [12:15:18] Sock 8.Parse request [12:15:18]Sock 8.Check first char [12:15:18]Sock 8.First char is OK [12:15:18]request: POST /json_proto HTTP/1.0 [12:15:18]Method: POST [12:15:18]URL: /json_proto [12:15:18]Method is POST - this is cgi request [12:15:18]url: /json_proto [12:15:18]query_string will be loaded in cgi processing [12:15:18]execute_cgi json_proto POST (null) [12:15:18]execute_cgi path=json_proto method=POST [12:15:18]POST find Content-Length [12:15:18]Host: 172.17.46.131:8080 [12:15:18]Content-Length: 682 [12:15:18]Content-Type: application/json [12:15:18] [12:15:18]POST finish read [12:15:18]Found Content-Length = 682 [12:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:18]execute_script... [12:15:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 15.300, "sum" : 1100.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:18]POST & json_proto [12:15:18]process_json_proto [12:15:18]json parsed OK: [12:15:18]protocol is kg_v1.0 [12:15:18]action value=close_receipt [12:15:18]process_action close_receipt [12:15:18]cmd_close_receipt [12:15:18]MH_GetDate [12:15:18]Write to MH i2c: F0 00 00 8E 2F AC [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 09 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: F0 09 00 8E 2F 00 5B 28 B3 67 7E 41 4F 65 C5 [12:15:18]GetLastDocTimeStamp 1739794304 [12:15:18]current date 1739794523 [12:15:18]FM_GetShiftState [12:15:18]SAM_PROTO_GetShiftState [12:15:18]wFMCommunicate request_size=4 [12:15:18]MH_SAM_APDU [12:15:18]CAPDU: 80 13 01 00 [12:15:18]Write to MH i2c: E2 08 00 8F 2F 80 13 01 00 00 00 00 00 3B [12:15:18]Write i2c OK [12:15:18]MH_I2C_Read... [12:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:18]Read from MH i2c: E2 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 0E 00 [12:15:18]MH_I2C_Read... [12:15:18]Read from MH i2c: E2 0E 00 8F 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5F [12:15:18]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:15:18]wFMCommunicate OK [12:15:18]SAM_PROTO_GetShiftState done [12:15:18]FM_GetShiftState done [12:15:18]opened in 1739752571 [12:15:18]opened+sec_in_day 1739838971 [12:15:18]quantity*price = 110007 [12:15:18]sum+1 = 110008 [12:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.73 НДС 12% : 116.82 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 114 17.02.2025 12:15 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186527 ФПД: 213902315487673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121523&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186527&fm=213902315487673&tin=02508201610067®Number=0000000000091857&sum=110000 [12:15:19]StoreToDocumentArchive [12:15:19]shift 644 fd 186527 [12:15:19]save to /storage/0644/doc_00186527 [12:15:19]save last doc name /storage/0644/doc_00186527 to /storage/kkm_last_doc_name [12:15:19]save OK [12:15:19]Clear old archive folders... [12:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:19]tlvbuf is 020218E0 [12:15:19]SAM_PROTO_ClearQueue [12:15:19]wFMCommunicate request_size=4 [12:15:19]MH_SAM_APDU [12:15:19]CAPDU: 80 09 00 00 [12:15:19]Write to MH i2c: E2 08 00 9C 2F 80 09 00 00 00 00 00 00 3D [12:15:19]Write i2c OK [12:15:19]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 9C 2F 00 90 00 3F [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]SAM_PROTO_ClearQueue done [12:15:20]KKMCreateOFDPacket [12:15:20]OFDProtocolAddRootSTLVToBuf [12:15:20]FM_MakeSignedData [12:15:20]FM_MakeSignedData [12:15:20]SAM_PROTO_SignData [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 01 02 [12:15:20]Write to MH i2c: E2 08 00 9D 2F 80 0D 01 02 00 00 00 00 45 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 9D 2F 00 90 00 40 [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=255 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5B 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D8 02 00 35 04 06 00 C2 [12:15:20]Write to MH i2c: E2 02 01 9E 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5B 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D8 02 00 35 04 06 00 C2 00 00 19 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 9E 2F 00 90 00 41 [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=10 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 02 02 05 8B 03 88 01 B9 [12:15:20]Write to MH i2c: E2 0D 00 9F 2F 80 0D 02 02 05 00 8B 03 88 01 B9 00 00 22 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 03 00 9F 2F 00 90 00 42 [12:15:20]RAPDU: 90 00 [12:15:20]wFMCommunicate OK [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 0D 03 02 [12:15:20]Write to MH i2c: E2 08 00 A0 2F 80 0D 03 02 00 00 00 00 4A [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 0B 00 A0 2F 00 67 82 65 20 44 B3 E6 D5 90 00 6B [12:15:20]RAPDU: 67 82 65 20 44 B3 E6 D5 90 00 [12:15:20]wFMCommunicate OK [12:15:20]SAM_PROTO_SignData done [12:15:20]FM_MakeSignedData done [12:15:20]CreateOFDProtocolMessage [12:15:20]wFMCommunicate request_size=4 [12:15:20]MH_SAM_APDU [12:15:20]CAPDU: 80 11 00 00 [12:15:20]Write to MH i2c: E2 08 00 A1 2F 80 11 00 00 00 00 00 00 4A [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:20]Read from MH i2c: E2 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: E2 17 00 A1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9D [12:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:15:20]wFMCommunicate OK [12:15:20]CreateOFDProtocolMessage done [12:15:20]OFDSenderStorePacket 186527 [12:15:20]StoreOFDPacket docnum=186527 [12:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 5B 07 01 05 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5B 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D8 02 00 35 04 06 00 C2 8B 03 88 01 B9 67 82 65 20 44 B3 E6 D5 [12:15:20]CheckFolder [12:15:20]dirname=/storage/ofd_packets [12:15:20]CheckFolder done [12:15:20]ProducePacketName [12:15:20]name=ofd_packets/00186527 [12:15:20]NVStorageSaveData ofd_packets/00186527 [12:15:20]File name is /storage/ofd_packets/00186527 [12:15:20]Write 301 bytes [12:15:20]NVStorageSaveData done [12:15:20]OFDSenderStorePacket done [12:15:20]KKMCreateOFDPacket done [12:15:20]NVStorageSaveData kkm_last_timestamp [12:15:20]File name is /storage/kkm_last_timestamp [12:15:20]Write 4 bytes [12:15:20]NVStorageSaveData done [12:15:20]ExternCall_PrintAddStr [12:15:20]wPrintStart [12:15:20]Write to MH i2c: 01 00 00 A2 2F D1 [12:15:20]Write i2c OK [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 [12:15:20]MH_I2C_Read... [12:15:20]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 FF 0F E6 [12:15:20]RasterBufferAndPrint [12:15:20]line Счет N : (1)411660 [12:15:20]line ИНН: 02508201610067 [12:15:20]line Контрольно-Кассовый Чек [12:15:20]line ПРОДАЖА [12:15:20]line ТРК (МРК, ГНК) : 33 [12:15:20]line Товар: 2710124500 [12:15:20]line Аи-95-К-5 [12:15:20]line 15.300 * 71.90 [12:15:20]line = 1100.07 [12:15:20]line НДС 12% НСП 1% [12:15:20]line > о реализуемом товаре [12:15:20]line ОКРУГЛЕНИЕ: -0.07 [12:15:20]line ИТОГО: 1100.00 [12:15:20]line Внесено: 1100.00 [12:15:20]line СДАЧА: 0.00 [12:15:20]line НСП 1% : 9.73 [12:15:20]line НДС 12% : 116.82 [12:15:20]line Наличными: 1100.00 [12:15:20]line Безнал.: 0.00 [12:15:20]line Место: АЗС № 92 "Партнер Нефть" [12:15:20]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:15:20]line СНО: Общий режим [12:15:20]line Чек 114 17.02.2025 12:15 [12:15:20]line Смена: 644 ФФД: 1.0 [12:15:20]line ЗНМ: 0300000118 [12:15:20]line РНМ: 0000000000091857 [12:15:20]line Версия ККМ: 001 [12:15:20]line ФМ: 0000000000871826 [12:15:20]line ФД: 186527 [12:15:20]line ФПД: 213902315487673 [12:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121523&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186527&fm=213902315487673&tin=02508201610067®Number=0000000000091857&sum=110000 [12:15:20]OFD Sender: Processing packet 186527 [packets to send 49, broken 48] [12:15:20]ProducePacketName [12:15:20]name=ofd_packets/00186527 [12:15:20]OFD Sender: To server: pG, [12:15:20]CommunicateWithHost lk.salyk.kg:30040 [12:15:20]ConnectInit lk.salyk.kg [12:15:20]written 0, free lines is 4095 [12:15:21]Connected sock=10 [12:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 5B 07 01 05 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 B7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 5B 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D8 02 00 35 04 06 00 C2 8B 03 88 01 B9 67 82 65 20 44 B3 E6 D5 [12:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B2 7C 47 00 E2 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 9F D8 02 00 F4 03 04 00 B5 CE B2 67 B6 04 01 00 00 02 1C B4 E2 53 79 82 6F [12:15:21]CommunicateWithHost err = 0 [12:15:21]CheckOFDResponse [12:15:21]1017 (14) - 77093643461234 [12:15:21]1041 (16) - 0000000000871826 [12:15:21]1040 (4) - 186527 [12:15:21]1012 (4) - 17.02.2025 05:52 [12:15:21]1206 (1) - 0 [12:15:21]OFD Sender: Remove packet 186527 [12:15:21]ProducePacketName [12:15:21]name=ofd_packets/00186527 [12:15:21]NVStorageDeleteData [12:15:21]Write to MH i2c: 01 00 00 CD 2F FC [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: 01 07 00 CD 2F 00 00 00 00 00 FF 0C 0E [12:15:21]RasterBufferAndPrint [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]line [12:15:21]written 0, free lines is 3333 [12:15:21]MH_Cut [12:15:21]Write to MH i2c: D1 01 00 D4 2F 01 D5 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 [12:15:21]MH_I2C_Read... [12:15:21]Read from MH i2c: D1 01 00 D4 2F 00 D4 [12:15:21]Write to MH i2c: 01 00 00 D5 2F 04 [12:15:21]Write i2c OK [12:15:21]MH_I2C_Read... [12:15:21]OFD Sender: No OFD packet to send [12:15:21]*** Cut start [12:15:21]*** Partial cut [12:15:21]*** CUTSNS_PIN = 1 [12:15:22]*** CUTSNS_PIN = 0 [12:15:22]*** Brake cut motor [12:15:22]Read from MH i2c: 01 [12:15:22]MH_I2C_Read... [12:15:22]*** Stop cut motor [12:15:22]*** Cut end [12:15:22]Read from MH i2c: 01 07 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: 01 07 00 D5 2F 00 00 00 00 00 FF 0F 19 [12:15:22]process_action close_receipt done [12:15:22]requested_data is exist [12:15:22]produce_requested_data [12:15:22]requested_item fm.sn is exist - process it [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 11 00 00 [12:15:22]Write to MH i2c: E2 08 00 D6 2F 80 11 00 00 00 00 00 00 7F [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 17 00 D6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [12:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:15:22]wFMCommunicate OK [12:15:22]requested_item fd.num is exist - process it [12:15:22]SAM_PROTO_GetFieldsCounters [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 00 00 [12:15:22]Write to MH i2c: E2 08 00 D7 2F 80 13 00 00 00 00 00 00 82 [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 62 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 62 00 D7 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 9F D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetFieldsCounters done [12:15:22]requested_item shift.num is exist - process it [12:15:22]requested_item shift.opened is exist - process it [12:15:22]req_shift_opened [12:15:22]FM_GetShiftState [12:15:22]SAM_PROTO_GetShiftState [12:15:22]wFMCommunicate request_size=4 [12:15:22]MH_SAM_APDU [12:15:22]CAPDU: 80 13 01 00 [12:15:22]Write to MH i2c: E2 08 00 D8 2F 80 13 01 00 00 00 00 00 84 [12:15:22]Write i2c OK [12:15:22]MH_I2C_Read... [12:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:22]Read from MH i2c: E2 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 [12:15:22]MH_I2C_Read... [12:15:22]Read from MH i2c: E2 0E 00 D8 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A8 [12:15:22]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:15:22]wFMCommunicate OK [12:15:22]SAM_PROTO_GetShiftState done [12:15:22]FM_GetShiftState done [12:15:22]req_shift_opened done [12:15:22]requested_item shift.open_date is exist - process it [12:15:22]req_shift_open_date [12:15:22]req_shift_open_date done [12:15:22]produce_requested_data done [12:15:22]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186527,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:15:22]process_action_free close_receipt [12:15:22]json_value_free [12:15:22]json_value_free done [12:15:22]process_json_proto returns [12:15:22]Send response to host [12:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186527,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:15:22]free response buf [12:15:22]execute_script done [12:15:22]execute_script returns [12:15:22]free content buf [12:15:22]Sock 8.Close socket [12:15:22]Sock 8.Thread stoped [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]accept exits with 9 [12:16:21]New connection [12:16:21]New thread 3067358564 created [12:16:21]Thread 3067501924 joined [12:16:21]Waiting for new connection... [12:16:21] Sock 9.Parse request [12:16:21]Sock 9.Check first char [12:16:21]Sock 9.First char is OK [12:16:21]request: POST /json_proto HTTP/1.0 [12:16:21]Method: POST [12:16:21]URL: /json_proto [12:16:21]Method is POST - this is cgi request [12:16:21]url: /json_proto [12:16:21]query_string will be loaded in cgi processing [12:16:21]execute_cgi json_proto POST (null) [12:16:21]execute_cgi path=json_proto method=POST [12:16:21]POST find Content-Length [12:16:21]Host: 172.17.46.131:8080 [12:16:21]Content-Length: 677 [12:16:21]Content-Type: application/json [12:16:21] [12:16:21]POST finish read [12:16:21]Found Content-Length = 677 [12:16:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:21]execute_script... [12:16:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 5.460, "sum" : 350.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:21]POST & json_proto [12:16:21]process_json_proto [12:16:21]json parsed OK: [12:16:21]protocol is kg_v1.0 [12:16:21]action value=close_receipt [12:16:21]process_action close_receipt [12:16:21]cmd_close_receipt [12:16:21]MH_GetDate [12:16:21]Write to MH i2c: F0 00 00 D9 2F F7 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: F0 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: F0 09 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: F0 09 00 D9 2F 00 99 28 B3 67 7E 41 4F 65 4E [12:16:21]GetLastDocTimeStamp 1739794523 [12:16:21]current date 1739794585 [12:16:21]FM_GetShiftState [12:16:21]SAM_PROTO_GetShiftState [12:16:21]wFMCommunicate request_size=4 [12:16:21]MH_SAM_APDU [12:16:21]CAPDU: 80 13 01 00 [12:16:21]Write to MH i2c: E2 08 00 DA 2F 80 13 01 00 00 00 00 00 86 [12:16:21]Write i2c OK [12:16:21]MH_I2C_Read... [12:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:21]Read from MH i2c: E2 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0E 00 [12:16:21]MH_I2C_Read... [12:16:21]Read from MH i2c: E2 0E 00 DA 2F 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AA [12:16:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:16:21]wFMCommunicate OK [12:16:21]SAM_PROTO_GetShiftState done [12:16:21]FM_GetShiftState done [12:16:21]opened in 1739752571 [12:16:21]opened+sec_in_day 1739838971 [12:16:21]quantity*price = 35053 [12:16:21]sum+1 = 35054 [12:16:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.22 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 115 17.02.2025 12:16 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186528 ФПД: 9115153306200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186528&fm=9115153306200&tin=02508201610067®Number=0000000000091857&sum=35000 [12:16:22]StoreToDocumentArchive [12:16:22]shift 644 fd 186528 [12:16:22]save to /storage/0644/doc_00186528 [12:16:22]save last doc name /storage/0644/doc_00186528 to /storage/kkm_last_doc_name [12:16:22]save OK [12:16:22]Clear old archive folders... [12:16:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:22]tlvbuf is 01FC37C0 [12:16:22]SAM_PROTO_ClearQueue [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 09 00 00 [12:16:22]Write to MH i2c: E2 08 00 E7 2F 80 09 00 00 00 00 00 00 88 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 E7 2F 00 90 00 8A [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]SAM_PROTO_ClearQueue done [12:16:22]KKMCreateOFDPacket [12:16:22]OFDProtocolAddRootSTLVToBuf [12:16:22]FM_MakeSignedData [12:16:22]FM_MakeSignedData [12:16:22]SAM_PROTO_SignData [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 01 02 [12:16:22]Write to MH i2c: E2 08 00 E8 2F 80 0D 01 02 00 00 00 00 90 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 E8 2F 00 90 00 8B [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]wFMCommunicate request_size=255 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 99 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D8 02 00 35 04 06 00 08 [12:16:22]Write to MH i2c: E2 02 01 E9 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 99 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D8 02 00 35 04 06 00 08 00 00 4C [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 E9 2F 00 90 00 8C [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]wFMCommunicate request_size=10 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 02 02 05 4A 49 79 92 58 [12:16:22]Write to MH i2c: E2 0D 00 EA 2F 80 0D 02 02 05 00 4A 49 79 92 58 00 00 93 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:22]Read from MH i2c: E2 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 [12:16:22]MH_I2C_Read... [12:16:22]Read from MH i2c: E2 03 00 EA 2F 00 90 00 8D [12:16:22]RAPDU: 90 00 [12:16:22]wFMCommunicate OK [12:16:22]wFMCommunicate request_size=4 [12:16:22]MH_SAM_APDU [12:16:22]CAPDU: 80 0D 03 02 [12:16:22]Write to MH i2c: E2 08 00 EB 2F 80 0D 03 02 00 00 00 00 95 [12:16:22]Write i2c OK [12:16:22]MH_I2C_Read... [12:16:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:23]Read from MH i2c: E2 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 0B 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 0B 00 EB 2F 00 61 A8 D5 76 55 1A C7 64 90 00 84 [12:16:23]RAPDU: 61 A8 D5 76 55 1A C7 64 90 00 [12:16:23]wFMCommunicate OK [12:16:23]SAM_PROTO_SignData done [12:16:23]FM_MakeSignedData done [12:16:23]CreateOFDProtocolMessage [12:16:23]wFMCommunicate request_size=4 [12:16:23]MH_SAM_APDU [12:16:23]CAPDU: 80 11 00 00 [12:16:23]Write to MH i2c: E2 08 00 EC 2F 80 11 00 00 00 00 00 00 95 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:23]Read from MH i2c: E2 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 17 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: E2 17 00 EC 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E8 [12:16:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:16:23]wFMCommunicate OK [12:16:23]CreateOFDProtocolMessage done [12:16:23]OFDSenderStorePacket 186528 [12:16:23]StoreOFDPacket docnum=186528 [12:16:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A5 31 07 01 FC C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 99 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D8 02 00 35 04 06 00 08 4A 49 79 92 58 61 A8 D5 76 55 1A C7 64 [12:16:23]CheckFolder [12:16:23]dirname=/storage/ofd_packets [12:16:23]CheckFolder done [12:16:23]ProducePacketName [12:16:23]name=ofd_packets/00186528 [12:16:23]NVStorageSaveData ofd_packets/00186528 [12:16:23]File name is /storage/ofd_packets/00186528 [12:16:23]Write 301 bytes [12:16:23]NVStorageSaveData done [12:16:23]OFDSenderStorePacket done [12:16:23]KKMCreateOFDPacket done [12:16:23]NVStorageSaveData kkm_last_timestamp [12:16:23]File name is /storage/kkm_last_timestamp [12:16:23]Write 4 bytes [12:16:23]OFD Sender: Processing packet 186528 [packets to send 49, broken 48] [12:16:23]ProducePacketName [12:16:23]name=ofd_packets/00186528 [12:16:23]OFD Sender: To server: pG, [12:16:23]CommunicateWithHost lk.salyk.kg:30040 [12:16:23]ConnectInit lk.salyk.kg [12:16:23]NVStorageSaveData done [12:16:23]ExternCall_PrintAddStr [12:16:23]wPrintStart [12:16:23]Write to MH i2c: 01 00 00 ED 2F 1C [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 ED 2F 00 00 00 00 00 FF 0F 31 [12:16:23]RasterBufferAndPrint [12:16:23]line Счет N : (1)411663 [12:16:23]line ИНН: 02508201610067 [12:16:23]line Контрольно-Кассовый Чек [12:16:23]line ПРОДАЖА [12:16:23]line ТРК (МРК, ГНК) : 42 [12:16:23]line Товар: 2710124130 [12:16:23]line Аи-92-К-2 [12:16:23]line 5.460 * 64.20 [12:16:23]line = 350.53 [12:16:23]line НДС 12% НСП 1% [12:16:23]line > о реализуемом товаре [12:16:23]line ОКРУГЛЕНИЕ: -0.53 [12:16:23]line ИТОГО: 350.00 [12:16:23]line Внесено: 350.00 [12:16:23]line СДАЧА: 0.00 [12:16:23]line НСП 1% : 3.10 [12:16:23]line НДС 12% : 37.22 [12:16:23]line Наличными: 350.00 [12:16:23]line Безнал.: 0.00 [12:16:23]line Место: АЗС № 92 "Партнер Нефть" [12:16:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:16:23]line СНО: Общий режим [12:16:23]line Чек 115 17.02.2025 12:16 [12:16:23]line Смена: 644 ФФД: 1.0 [12:16:23]line ЗНМ: 0300000118 [12:16:23]line РНМ: 0000000000091857 [12:16:23]line Версия ККМ: 001 [12:16:23]line ФМ: 0000000000871826 [12:16:23]line ФД: 186528 [12:16:23]line ФПД: 9115153306200 [12:16:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121625&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186528&fm=9115153306200&tin=02508201610067®Number=0000000000091857&sum=35000 [12:16:23]Connected sock=11 [12:16:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A5 31 07 01 FC C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 54 15 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 ED 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 99 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D8 02 00 35 04 06 00 08 4A 49 79 92 58 61 A8 D5 76 55 1A C7 64 [12:16:23]written 0, free lines is 4095 [12:16:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 9F 47 00 BB E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A0 D8 02 00 F4 03 04 00 F3 CE B2 67 B6 04 01 00 00 69 13 4C 13 61 37 87 8C [12:16:23]CommunicateWithHost err = 0 [12:16:23]CheckOFDResponse [12:16:23]1017 (14) - 77093643461234 [12:16:23]1041 (16) - 0000000000871826 [12:16:23]1040 (4) - 186528 [12:16:23]1012 (4) - 17.02.2025 05:53 [12:16:23]1206 (1) - 0 [12:16:23]OFD Sender: Remove packet 186528 [12:16:23]ProducePacketName [12:16:23]name=ofd_packets/00186528 [12:16:23]NVStorageDeleteData [12:16:23]Write to MH i2c: 01 00 00 18 30 48 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: 01 07 00 18 30 00 00 00 00 00 F7 0C 52 [12:16:23]RasterBufferAndPrint [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]line [12:16:23]written 0, free lines is 3326 [12:16:23]MH_Cut [12:16:23]Write to MH i2c: D1 01 00 1F 30 01 21 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 01 00 [12:16:23]MH_I2C_Read... [12:16:23]Read from MH i2c: D1 01 00 1F 30 00 20 [12:16:23]Write to MH i2c: 01 00 00 20 30 50 [12:16:23]Write i2c OK [12:16:23]MH_I2C_Read... [12:16:24]OFD Sender: No OFD packet to send [12:16:24]*** Cut start [12:16:24]*** Partial cut [12:16:24]*** CUTSNS_PIN = 1 [12:16:24]*** CUTSNS_PIN = 0 [12:16:24]*** Brake cut motor [12:16:25]Read from MH i2c: 01 [12:16:25]MH_I2C_Read... [12:16:25]*** Stop cut motor [12:16:25]*** Cut end [12:16:25]Read from MH i2c: 01 07 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: 01 07 00 20 30 00 00 00 00 00 FF 0F 65 [12:16:25]process_action close_receipt done [12:16:25]requested_data is exist [12:16:25]produce_requested_data [12:16:25]requested_item fm.sn is exist - process it [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 11 00 00 [12:16:25]Write to MH i2c: E2 08 00 21 30 80 11 00 00 00 00 00 00 CB [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 17 00 21 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [12:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:16:25]wFMCommunicate OK [12:16:25]requested_item fd.num is exist - process it [12:16:25]SAM_PROTO_GetFieldsCounters [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 13 00 00 [12:16:25]Write to MH i2c: E2 08 00 22 30 80 13 00 00 00 00 00 00 CE [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 62 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 62 00 22 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:16:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_GetFieldsCounters done [12:16:25]requested_item shift.num is exist - process it [12:16:25]requested_item shift.opened is exist - process it [12:16:25]req_shift_opened [12:16:25]FM_GetShiftState [12:16:25]SAM_PROTO_GetShiftState [12:16:25]wFMCommunicate request_size=4 [12:16:25]MH_SAM_APDU [12:16:25]CAPDU: 80 13 01 00 [12:16:25]Write to MH i2c: E2 08 00 23 30 80 13 01 00 00 00 00 00 D0 [12:16:25]Write i2c OK [12:16:25]MH_I2C_Read... [12:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:25]Read from MH i2c: E2 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 0E 00 [12:16:25]MH_I2C_Read... [12:16:25]Read from MH i2c: E2 0E 00 23 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F4 [12:16:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:16:25]wFMCommunicate OK [12:16:25]SAM_PROTO_GetShiftState done [12:16:25]FM_GetShiftState done [12:16:25]req_shift_opened done [12:16:25]requested_item shift.open_date is exist - process it [12:16:25]req_shift_open_date [12:16:25]req_shift_open_date done [12:16:25]produce_requested_data done [12:16:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186528,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:16:25]process_action_free close_receipt [12:16:25]json_value_free [12:16:25]json_value_free done [12:16:25]process_json_proto returns [12:16:25]Send response to host [12:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186528,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:16:25]free response buf [12:16:25]execute_script done [12:16:25]execute_script returns [12:16:25]free content buf [12:16:25]Sock 9.Close socket [12:16:25]Sock 9.Thread stoped [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:29]accept exits with 8 [12:17:29]New connection [12:17:29]New thread 3067501924 created [12:17:29]Thread 3067358564 joined [12:17:29]Waiting for new connection... [12:17:29] Sock 8.Parse request [12:17:29]Sock 8.Check first char [12:17:29]Sock 8.First char is OK [12:17:29]request: POST /json_proto HTTP/1.0 [12:17:29]Method: POST [12:17:29]URL: /json_proto [12:17:29]Method is POST - this is cgi request [12:17:29]url: /json_proto [12:17:29]query_string will be loaded in cgi processing [12:17:29]execute_cgi json_proto POST (null) [12:17:29]execute_cgi path=json_proto method=POST [12:17:29]POST find Content-Length [12:17:29]Host: 172.17.46.131:8080 [12:17:29]Content-Length: 799 [12:17:29]Content-Type: application/json [12:17:29] [12:17:29]POST finish read [12:17:29]Found Content-Length = 799 [12:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:29]execute_script... [12:17:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:29]POST & json_proto [12:17:29]process_json_proto [12:17:29]json parsed OK: [12:17:29]protocol is kg_v1.0 [12:17:29]action value=close_receipt [12:17:29]process_action close_receipt [12:17:29]cmd_close_receipt [12:17:29]MH_GetDate [12:17:29]Write to MH i2c: F0 00 00 24 30 43 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 09 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: F0 09 00 24 30 00 DD 28 B3 67 7E 41 4F 65 DE [12:17:29]GetLastDocTimeStamp 1739794585 [12:17:29]current date 1739794653 [12:17:29]FM_GetShiftState [12:17:29]SAM_PROTO_GetShiftState [12:17:29]wFMCommunicate request_size=4 [12:17:29]MH_SAM_APDU [12:17:29]CAPDU: 80 13 01 00 [12:17:29]Write to MH i2c: E2 08 00 25 30 80 13 01 00 00 00 00 00 D2 [12:17:29]Write i2c OK [12:17:29]MH_I2C_Read... [12:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:29]Read from MH i2c: E2 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0E 00 [12:17:29]MH_I2C_Read... [12:17:29]Read from MH i2c: E2 0E 00 25 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F6 [12:17:29]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:17:29]wFMCommunicate OK [12:17:29]SAM_PROTO_GetShiftState done [12:17:29]FM_GetShiftState done [12:17:29]opened in 1739752571 [12:17:29]opened+sec_in_day 1739838971 [12:17:29]quantity*price = 400026 [12:17:29]sum+1 = 400027 [12:17:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 116 17.02.2025 12:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186529 ФПД: 37637088835944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186529&fm=37637088835944&tin=02508201610067®Number=0000000000091857&sum=400026 [12:17:30]StoreToDocumentArchive [12:17:30]shift 644 fd 186529 [12:17:30]save to /storage/0644/doc_00186529 [12:17:30]save last doc name /storage/0644/doc_00186529 to /storage/kkm_last_doc_name [12:17:30]save OK [12:17:30]Clear old archive folders... [12:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:17:30]tlvbuf is 02050010 [12:17:30]SAM_PROTO_ClearQueue [12:17:30]wFMCommunicate request_size=4 [12:17:30]MH_SAM_APDU [12:17:30]CAPDU: 80 09 00 00 [12:17:30]Write to MH i2c: E2 08 00 32 30 80 09 00 00 00 00 00 00 D4 [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:30]Read from MH i2c: E2 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 32 30 00 90 00 D6 [12:17:30]RAPDU: 90 00 [12:17:30]wFMCommunicate OK [12:17:30]SAM_PROTO_ClearQueue done [12:17:30]KKMCreateOFDPacket [12:17:30]OFDProtocolAddRootSTLVToBuf [12:17:30]FM_MakeSignedData [12:17:30]FM_MakeSignedData [12:17:30]SAM_PROTO_SignData [12:17:30]wFMCommunicate request_size=4 [12:17:30]MH_SAM_APDU [12:17:30]CAPDU: 80 0D 01 02 [12:17:30]Write to MH i2c: E2 08 00 33 30 80 0D 01 02 00 00 00 00 DC [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:30]Read from MH i2c: E2 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 33 30 00 90 00 D7 [12:17:30]RAPDU: 90 00 [12:17:30]wFMCommunicate OK [12:17:30]wFMCommunicate request_size=255 [12:17:30]MH_SAM_APDU [12:17:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DD 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D8 02 00 35 04 06 00 22 3B 11 4F [12:17:30]Write to MH i2c: E2 02 01 34 30 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DD 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D8 02 00 35 04 06 00 22 3B 11 4F 00 00 BF [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:30]Read from MH i2c: E2 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 03 00 34 30 00 90 00 D8 [12:17:30]RAPDU: 90 00 [12:17:30]wFMCommunicate OK [12:17:30]wFMCommunicate request_size=7 [12:17:30]MH_SAM_APDU [12:17:30]CAPDU: 80 0D 02 02 02 79 68 [12:17:30]Write to MH i2c: E2 0A 00 35 30 80 0D 02 02 02 00 79 68 00 00 C4 [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 35 30 00 90 00 D9 [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 03 02 [12:17:31]Write to MH i2c: E2 08 00 36 30 80 0D 03 02 00 00 00 00 E1 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 36 30 00 F5 98 CE 77 AF C7 04 4D 90 00 7B [12:17:31]RAPDU: F5 98 CE 77 AF C7 04 4D 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_SignData done [12:17:31]FM_MakeSignedData done [12:17:31]CreateOFDProtocolMessage [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 11 00 00 [12:17:31]Write to MH i2c: E2 08 00 37 30 80 11 00 00 00 00 00 00 E1 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 37 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [12:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:17:31]wFMCommunicate OK [12:17:31]CreateOFDProtocolMessage done [12:17:31]OFDSenderStorePacket 186529 [12:17:31]StoreOFDPacket docnum=186529 [12:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FA 85 04 01 6A 04 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DD 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D8 02 00 35 04 06 00 22 3B 11 4F 79 68 F5 98 CE 77 AF C7 04 4D [12:17:31]CheckFolder [12:17:31]dirname=/storage/ofd_packets [12:17:31]CheckFolder done [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00186529 [12:17:31]NVStorageSaveData ofd_packets/00186529 [12:17:31]File name is /storage/ofd_packets/00186529 [12:17:31]Write 298 bytes [12:17:31]NVStorageSaveData done [12:17:31]OFDSenderStorePacket done [12:17:31]KKMCreateOFDPacket done [12:17:31]NVStorageSaveData kkm_last_timestamp [12:17:31]File name is /storage/kkm_last_timestamp [12:17:31]Write 4 bytes [12:17:31]NVStorageSaveData done [12:17:31]ExternCall_PrintAddStr [12:17:31]wPrintStart [12:17:31]Write to MH i2c: 01 00 00 38 30 68 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 38 30 00 00 00 00 00 FF 0F 7D [12:17:31]RasterBufferAndPrint [12:17:31]line Счет N : (1)411662 [12:17:31]line ИНН: 02508201610067 [12:17:31]line Контрольно-Кассовый Чек [12:17:31]line ПРОДАЖА [12:17:31]line ТРК (МРК, ГНК) : 5 [12:17:31]line Товар: 2710194210 [12:17:31]line ДТ-К-5 [12:17:31]line 55.100 * 72.60 [12:17:31]line = 4000.26 [12:17:31]line НДС 12% НСП 1% [12:17:31]line > о реализуемом товаре [12:17:31]line ИТОГО: 4000.26 [12:17:31]line НСП 1% : 35.40 [12:17:31]line НДС 12% : 424.81 [12:17:31]line Наличными: 0.00 [12:17:31]line Безнал.: 4000.26 [12:17:31]line Место: АЗС № 92 "Партнер Нефть" [12:17:31]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:17:31]line СНО: Общий режим [12:17:31]line Чек 116 17.02.2025 12:17 [12:17:31]line Смена: 644 ФФД: 1.0 [12:17:31]line ЗНМ: 0300000118 [12:17:31]line РНМ: 0000000000091857 [12:17:31]line Версия ККМ: 001 [12:17:31]line Платежная система: O! деньги [12:17:31]line ФМ: 0000000000871826 [12:17:31]line ФД: 186529 [12:17:31]line ФПД: 37637088835944 [12:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T121733&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186529&fm=37637088835944&tin=02508201610067®Number=0000000000091857&sum=400026 [12:17:31]written 0, free lines is 4095 [12:17:31]OFD Sender: Processing packet 186529 [packets to send 49, broken 48] [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00186529 [12:17:31]OFD Sender: To server: pG, [12:17:31]CommunicateWithHost lk.salyk.kg:30040 [12:17:31]ConnectInit lk.salyk.kg [12:17:31]Connected sock=10 [12:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FA 85 04 01 6A 04 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DD 28 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D8 02 00 35 04 06 00 22 3B 11 4F 79 68 F5 98 CE 77 AF C7 04 4D [12:17:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2D 6D 47 00 1B C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A1 D8 02 00 F4 03 04 00 37 CF B2 67 B6 04 01 00 00 11 19 FC 25 29 FF 9F B7 [12:17:31]CommunicateWithHost err = 0 [12:17:31]CheckOFDResponse [12:17:31]1017 (14) - 77093643461234 [12:17:31]1041 (16) - 0000000000871826 [12:17:31]1040 (4) - 186529 [12:17:31]1012 (4) - 17.02.2025 05:55 [12:17:31]1206 (1) - 0 [12:17:31]OFD Sender: Remove packet 186529 [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00186529 [12:17:31]NVStorageDeleteData [12:17:31]Write to MH i2c: 01 00 00 62 30 92 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 62 30 00 00 00 00 00 0F 0D B5 [12:17:31]RasterBufferAndPrint [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]line [12:17:31]written 0, free lines is 3350 [12:17:31]MH_Cut [12:17:31]Write to MH i2c: D1 01 00 69 30 01 6B [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: D1 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: D1 01 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: D1 01 00 69 30 00 6A [12:17:31]Write to MH i2c: 01 00 00 6A 30 9A [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:32]OFD Sender: No OFD packet to send [12:17:32]*** Cut start [12:17:32]*** Partial cut [12:17:32]*** CUTSNS_PIN = 1 [12:17:32]*** CUTSNS_PIN = 0 [12:17:32]*** Brake cut motor [12:17:32]Read from MH i2c: 01 [12:17:32]MH_I2C_Read... [12:17:32]*** Stop cut motor [12:17:32]*** Cut end [12:17:32]Read from MH i2c: 01 07 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 6A 30 00 00 00 00 00 FF 0F AF [12:17:32]process_action close_receipt done [12:17:32]requested_data is exist [12:17:32]produce_requested_data [12:17:32]requested_item fm.sn is exist - process it [12:17:32]wFMCommunicate request_size=4 [12:17:32]MH_SAM_APDU [12:17:32]CAPDU: 80 11 00 00 [12:17:32]Write to MH i2c: E2 08 00 6B 30 80 11 00 00 00 00 00 00 15 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 17 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 17 00 6B 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 68 [12:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:17:33]wFMCommunicate OK [12:17:33]requested_item fd.num is exist - process it [12:17:33]SAM_PROTO_GetFieldsCounters [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 13 00 00 [12:17:33]Write to MH i2c: E2 08 00 6C 30 80 13 00 00 00 00 00 00 18 [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 62 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 62 00 6C 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:33]wFMCommunicate OK [12:17:33]SAM_PROTO_GetFieldsCounters done [12:17:33]requested_item shift.num is exist - process it [12:17:33]requested_item shift.opened is exist - process it [12:17:33]req_shift_opened [12:17:33]FM_GetShiftState [12:17:33]SAM_PROTO_GetShiftState [12:17:33]wFMCommunicate request_size=4 [12:17:33]MH_SAM_APDU [12:17:33]CAPDU: 80 13 01 00 [12:17:33]Write to MH i2c: E2 08 00 6D 30 80 13 01 00 00 00 00 00 1A [12:17:33]Write i2c OK [12:17:33]MH_I2C_Read... [12:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:33]Read from MH i2c: E2 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 0E 00 [12:17:33]MH_I2C_Read... [12:17:33]Read from MH i2c: E2 0E 00 6D 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3E [12:17:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:17:33]wFMCommunicate OK [12:17:33]SAM_PROTO_GetShiftState done [12:17:33]FM_GetShiftState done [12:17:33]req_shift_opened done [12:17:33]requested_item shift.open_date is exist - process it [12:17:33]req_shift_open_date [12:17:33]req_shift_open_date done [12:17:33]produce_requested_data done [12:17:33]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186529,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:17:33]process_action_free close_receipt [12:17:33]json_value_free [12:17:33]json_value_free done [12:17:33]process_json_proto returns [12:17:33]Send response to host [12:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186529,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:17:33]free response buf [12:17:33]execute_script done [12:17:33]execute_script returns [12:17:33]free content buf [12:17:33]Sock 8.Close socket [12:17:33]Sock 8.Thread stoped [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:33]accept exits with 9 [12:23:33]New connection [12:23:33]New thread 3067358564 created [12:23:33]Thread 3067501924 joined [12:23:33]Waiting for new connection... [12:23:33] Sock 9.Parse request [12:23:33]Sock 9.Check first char [12:23:33]Sock 9.First char is OK [12:23:33]request: POST /json_proto HTTP/1.0 [12:23:33]Method: POST [12:23:33]URL: /json_proto [12:23:33]Method is POST - this is cgi request [12:23:33]url: /json_proto [12:23:33]query_string will be loaded in cgi processing [12:23:33]execute_cgi json_proto POST (null) [12:23:33]execute_cgi path=json_proto method=POST [12:23:33]POST find Content-Length [12:23:33]Host: 172.17.46.131:8080 [12:23:33]Content-Length: 677 [12:23:33]Content-Type: application/json [12:23:33] [12:23:33]POST finish read [12:23:33]Found Content-Length = 677 [12:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.740, "sum" : 240.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:33]execute_script... [12:23:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.740, "sum" : 240.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:33]POST & json_proto [12:23:33]process_json_proto [12:23:33]json parsed OK: [12:23:33]protocol is kg_v1.0 [12:23:33]action value=close_receipt [12:23:33]process_action close_receipt [12:23:33]cmd_close_receipt [12:23:33]MH_GetDate [12:23:33]Write to MH i2c: F0 00 00 6E 30 8D [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: F0 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: F0 09 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: F0 09 00 6E 30 00 49 2A B3 67 7E 41 4F 65 96 [12:23:33]GetLastDocTimeStamp 1739794653 [12:23:33]current date 1739795017 [12:23:33]FM_GetShiftState [12:23:33]SAM_PROTO_GetShiftState [12:23:33]wFMCommunicate request_size=4 [12:23:33]MH_SAM_APDU [12:23:33]CAPDU: 80 13 01 00 [12:23:33]Write to MH i2c: E2 08 00 6F 30 80 13 01 00 00 00 00 00 1C [12:23:33]Write i2c OK [12:23:33]MH_I2C_Read... [12:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:33]Read from MH i2c: E2 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 0E 00 [12:23:33]MH_I2C_Read... [12:23:33]Read from MH i2c: E2 0E 00 6F 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 40 [12:23:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:23:33]wFMCommunicate OK [12:23:33]SAM_PROTO_GetShiftState done [12:23:33]FM_GetShiftState done [12:23:33]opened in 1739752571 [12:23:33]opened+sec_in_day 1739838971 [12:23:33]quantity*price = 24010 [12:23:33]sum+1 = 24012 [12:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.50 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 117 17.02.2025 12:23 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186530 ФПД: 75991949271581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122337&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186530&fm=75991949271581&tin=02508201610067®Number=0000000000091857&sum=24000 [12:23:34]StoreToDocumentArchive [12:23:34]shift 644 fd 186530 [12:23:34]save to /storage/0644/doc_00186530 [12:23:34]save last doc name /storage/0644/doc_00186530 to /storage/kkm_last_doc_name [12:23:34]save OK [12:23:34]Clear old archive folders... [12:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:23:34]tlvbuf is 0200E540 [12:23:34]SAM_PROTO_ClearQueue [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 09 00 00 [12:23:34]Write to MH i2c: E2 08 00 7C 30 80 09 00 00 00 00 00 00 1E [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 7C 30 00 90 00 20 [12:23:34]RAPDU: 90 00 [12:23:34]wFMCommunicate OK [12:23:34]SAM_PROTO_ClearQueue done [12:23:34]KKMCreateOFDPacket [12:23:34]OFDProtocolAddRootSTLVToBuf [12:23:34]FM_MakeSignedData [12:23:34]FM_MakeSignedData [12:23:34]SAM_PROTO_SignData [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 0D 01 02 [12:23:34]Write to MH i2c: E2 08 00 7D 30 80 0D 01 02 00 00 00 00 26 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 7D 30 00 90 00 21 [12:23:34]RAPDU: 90 00 [12:23:34]wFMCommunicate OK [12:23:34]wFMCommunicate request_size=255 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 49 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D8 02 00 35 04 06 00 45 [12:23:34]Write to MH i2c: E2 02 01 7E 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 49 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D8 02 00 35 04 06 00 45 00 00 87 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 7E 30 00 90 00 22 [12:23:34]RAPDU: 90 00 [12:23:34]wFMCommunicate OK [12:23:34]wFMCommunicate request_size=10 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 0D 02 02 05 1D 41 24 62 1D [12:23:34]Write to MH i2c: E2 0D 00 7F 30 80 0D 02 02 05 00 1D 41 24 62 1D 00 00 34 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 03 00 7F 30 00 90 00 23 [12:23:34]RAPDU: 90 00 [12:23:34]wFMCommunicate OK [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 0D 03 02 [12:23:34]Write to MH i2c: E2 08 00 80 30 80 0D 03 02 00 00 00 00 2B [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0B 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 0B 00 80 30 00 53 57 B8 04 53 66 D6 55 90 00 76 [12:23:34]RAPDU: 53 57 B8 04 53 66 D6 55 90 00 [12:23:34]wFMCommunicate OK [12:23:34]SAM_PROTO_SignData done [12:23:34]FM_MakeSignedData done [12:23:34]CreateOFDProtocolMessage [12:23:34]wFMCommunicate request_size=4 [12:23:34]MH_SAM_APDU [12:23:34]CAPDU: 80 11 00 00 [12:23:34]Write to MH i2c: E2 08 00 81 30 80 11 00 00 00 00 00 00 2B [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:34]Read from MH i2c: E2 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 17 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: E2 17 00 81 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7E [12:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:23:34]wFMCommunicate OK [12:23:34]CreateOFDProtocolMessage done [12:23:34]OFDSenderStorePacket 186530 [12:23:34]StoreOFDPacket docnum=186530 [12:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 38 CA 07 01 2D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 49 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D8 02 00 35 04 06 00 45 1D 41 24 62 1D 53 57 B8 04 53 66 D6 55 [12:23:34]CheckFolder [12:23:34]dirname=/storage/ofd_packets [12:23:34]CheckFolder done [12:23:34]ProducePacketName [12:23:34]name=ofd_packets/00186530 [12:23:34]NVStorageSaveData ofd_packets/00186530 [12:23:34]File name is /storage/ofd_packets/00186530 [12:23:34]Write 301 bytes [12:23:34]NVStorageSaveData done [12:23:34]OFDSenderStorePacket done [12:23:34]KKMCreateOFDPacket done [12:23:34]NVStorageSaveData kkm_last_timestamp [12:23:34]File name is /storage/kkm_last_timestamp [12:23:34]Write 4 bytes [12:23:34]NVStorageSaveData done [12:23:34]ExternCall_PrintAddStr [12:23:34]wPrintStart [12:23:34]Write to MH i2c: 01 00 00 82 30 B2 [12:23:34]Write i2c OK [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: 01 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: 01 07 00 [12:23:34]MH_I2C_Read... [12:23:34]Read from MH i2c: 01 07 00 82 30 00 00 00 00 00 FF 0F C7 [12:23:34]RasterBufferAndPrint [12:23:34]line Счет N : (1)411664 [12:23:34]line ИНН: 02508201610067 [12:23:34]line Контрольно-Кассовый Чек [12:23:34]line ПРОДАЖА [12:23:34]line ТРК (МРК, ГНК) : 22 [12:23:34]line Товар: 2710124130 [12:23:34]line Аи-92-К-2 [12:23:34]line 3.740 * 64.20 [12:23:34]line = 240.11 [12:23:34]line НДС 12% НСП 1% [12:23:34]line > о реализуемом товаре [12:23:34]line ОКРУГЛЕНИЕ: -0.11 [12:23:34]line ИТОГО: 240.00 [12:23:34]line Внесено: 240.00 [12:23:34]line СДАЧА: 0.00 [12:23:34]line НСП 1% : 2.12 [12:23:34]line НДС 12% : 25.50 [12:23:34]line Наличными: 240.00 [12:23:34]line Безнал.: 0.00 [12:23:34]line Место: АЗС № 92 "Партнер Нефть" [12:23:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:23:34]line СНО: Общий режим [12:23:34]line Чек 117 17.02.2025 12:23 [12:23:34]line Смена: 644 ФФД: 1.0 [12:23:34]line ЗНМ: 0300000118 [12:23:34]line РНМ: 0000000000091857 [12:23:34]line Версия ККМ: 001 [12:23:34]line ФМ: 0000000000871826 [12:23:34]line ФД: 186530 [12:23:34]line ФПД: 75991949271581 [12:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122337&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186530&fm=75991949271581&tin=02508201610067®Number=0000000000091857&sum=24000 [12:23:35]written 0, free lines is 4095 [12:23:35]OFD Sender: Processing packet 186530 [packets to send 49, broken 48] [12:23:35]ProducePacketName [12:23:35]name=ofd_packets/00186530 [12:23:35]OFD Sender: To server: pG, [12:23:35]CommunicateWithHost lk.salyk.kg:30040 [12:23:35]ConnectInit lk.salyk.kg [12:23:35]Connected sock=10 [12:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 38 CA 07 01 2D B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F6 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 49 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D8 02 00 35 04 06 00 45 1D 41 24 62 1D 53 57 B8 04 53 66 D6 55 [12:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B9 42 47 00 88 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A2 D8 02 00 F4 03 04 00 A3 D0 B2 67 B6 04 01 00 00 53 5D FE 3B 96 50 E7 A4 [12:23:35]CommunicateWithHost err = 0 [12:23:35]CheckOFDResponse [12:23:35]1017 (14) - 77093643461234 [12:23:35]1041 (16) - 0000000000871826 [12:23:35]1040 (4) - 186530 [12:23:35]1012 (4) - 17.02.2025 06:01 [12:23:35]1206 (1) - 0 [12:23:35]OFD Sender: Remove packet 186530 [12:23:35]ProducePacketName [12:23:35]name=ofd_packets/00186530 [12:23:35]NVStorageDeleteData [12:23:35]Write to MH i2c: 01 00 00 AD 30 DD [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: 01 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: 01 07 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: 01 07 00 AD 30 00 00 00 00 00 F6 0C E6 [12:23:35]RasterBufferAndPrint [12:23:35]line [12:23:35]line [12:23:35]line [12:23:35]line [12:23:35]line [12:23:35]written 0, free lines is 3328 [12:23:35]MH_Cut [12:23:35]Write to MH i2c: D1 01 00 B4 30 01 B6 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: D1 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: D1 01 00 [12:23:35]MH_I2C_Read... [12:23:35]Read from MH i2c: D1 01 00 B4 30 00 B5 [12:23:35]Write to MH i2c: 01 00 00 B5 30 E5 [12:23:35]Write i2c OK [12:23:35]MH_I2C_Read... [12:23:36]OFD Sender: No OFD packet to send [12:23:36]*** Cut start [12:23:36]*** Partial cut [12:23:36]*** CUTSNS_PIN = 1 [12:23:36]*** CUTSNS_PIN = 0 [12:23:36]*** Brake cut motor [12:23:37]Read from MH i2c: 01 [12:23:37]MH_I2C_Read... [12:23:37]*** Stop cut motor [12:23:37]*** Cut end [12:23:37]Read from MH i2c: 01 07 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: 01 07 00 B5 30 00 00 00 00 00 FF 0F FA [12:23:37]process_action close_receipt done [12:23:37]requested_data is exist [12:23:37]produce_requested_data [12:23:37]requested_item fm.sn is exist - process it [12:23:37]wFMCommunicate request_size=4 [12:23:37]MH_SAM_APDU [12:23:37]CAPDU: 80 11 00 00 [12:23:37]Write to MH i2c: E2 08 00 B6 30 80 11 00 00 00 00 00 00 60 [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:37]Read from MH i2c: E2 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 17 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 17 00 B6 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B3 [12:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:23:37]wFMCommunicate OK [12:23:37]requested_item fd.num is exist - process it [12:23:37]SAM_PROTO_GetFieldsCounters [12:23:37]wFMCommunicate request_size=4 [12:23:37]MH_SAM_APDU [12:23:37]CAPDU: 80 13 00 00 [12:23:37]Write to MH i2c: E2 08 00 B7 30 80 13 00 00 00 00 00 00 63 [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:37]Read from MH i2c: E2 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 62 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 62 00 B7 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [12:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A2 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:37]wFMCommunicate OK [12:23:37]SAM_PROTO_GetFieldsCounters done [12:23:37]requested_item shift.num is exist - process it [12:23:37]requested_item shift.opened is exist - process it [12:23:37]req_shift_opened [12:23:37]FM_GetShiftState [12:23:37]SAM_PROTO_GetShiftState [12:23:37]wFMCommunicate request_size=4 [12:23:37]MH_SAM_APDU [12:23:37]CAPDU: 80 13 01 00 [12:23:37]Write to MH i2c: E2 08 00 B8 30 80 13 01 00 00 00 00 00 65 [12:23:37]Write i2c OK [12:23:37]MH_I2C_Read... [12:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:37]Read from MH i2c: E2 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 0E 00 [12:23:37]MH_I2C_Read... [12:23:37]Read from MH i2c: E2 0E 00 B8 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 89 [12:23:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:23:37]wFMCommunicate OK [12:23:37]SAM_PROTO_GetShiftState done [12:23:37]FM_GetShiftState done [12:23:37]req_shift_opened done [12:23:37]requested_item shift.open_date is exist - process it [12:23:37]req_shift_open_date [12:23:37]req_shift_open_date done [12:23:37]produce_requested_data done [12:23:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186530,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:23:37]process_action_free close_receipt [12:23:37]json_value_free [12:23:37]json_value_free done [12:23:37]process_json_proto returns [12:23:37]Send response to host [12:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186530,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:23:37]free response buf [12:23:37]execute_script done [12:23:37]execute_script returns [12:23:37]free content buf [12:23:37]Sock 9.Close socket [12:23:37]Sock 9.Thread stoped [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:32]accept exits with 8 [12:24:32]New connection [12:24:32]New thread 3067501924 created [12:24:32]Thread 3067358564 joined [12:24:32]Waiting for new connection... [12:24:32] Sock 8.Parse request [12:24:32]Sock 8.Check first char [12:24:32]Sock 8.First char is OK [12:24:32]request: POST /json_proto HTTP/1.0 [12:24:32]Method: POST [12:24:32]URL: /json_proto [12:24:32]Method is POST - this is cgi request [12:24:32]url: /json_proto [12:24:32]query_string will be loaded in cgi processing [12:24:32]execute_cgi json_proto POST (null) [12:24:32]execute_cgi path=json_proto method=POST [12:24:32]POST find Content-Length [12:24:32]Host: 172.17.46.131:8080 [12:24:32]Content-Length: 677 [12:24:32]Content-Type: application/json [12:24:32] [12:24:32]POST finish read [12:24:32]Found Content-Length = 677 [12:24:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:32]execute_script... [12:24:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:32]POST & json_proto [12:24:32]process_json_proto [12:24:32]json parsed OK: [12:24:32]protocol is kg_v1.0 [12:24:32]action value=close_receipt [12:24:32]process_action close_receipt [12:24:32]cmd_close_receipt [12:24:32]MH_GetDate [12:24:32]Write to MH i2c: F0 00 00 B9 30 D8 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: F0 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: F0 09 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: F0 09 00 B9 30 00 85 2A B3 67 7E 41 4F 65 1D [12:24:32]GetLastDocTimeStamp 1739795017 [12:24:32]current date 1739795077 [12:24:32]FM_GetShiftState [12:24:32]SAM_PROTO_GetShiftState [12:24:32]wFMCommunicate request_size=4 [12:24:32]MH_SAM_APDU [12:24:32]CAPDU: 80 13 01 00 [12:24:32]Write to MH i2c: E2 08 00 BA 30 80 13 01 00 00 00 00 00 67 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:32]Read from MH i2c: E2 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: E2 0E 00 BA 30 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8B [12:24:32]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:24:32]wFMCommunicate OK [12:24:32]SAM_PROTO_GetShiftState done [12:24:32]FM_GetShiftState done [12:24:32]opened in 1739752571 [12:24:32]opened+sec_in_day 1739838971 [12:24:32]quantity*price = 50011 [12:24:32]sum+1 = 50013 [12:24:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 118 17.02.2025 12:24 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186531 ФПД: 116592300084922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122437&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186531&fm=116592300084922&tin=02508201610067®Number=0000000000091857&sum=50000 [12:24:33]StoreToDocumentArchive [12:24:33]shift 644 fd 186531 [12:24:33]save to /storage/0644/doc_00186531 [12:24:33]save last doc name /storage/0644/doc_00186531 to /storage/kkm_last_doc_name [12:24:33]save OK [12:24:33]Clear old archive folders... [12:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:33]tlvbuf is 02090490 [12:24:33]SAM_PROTO_ClearQueue [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 09 00 00 [12:24:33]Write to MH i2c: E2 08 00 C7 30 80 09 00 00 00 00 00 00 69 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 03 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 03 00 C7 30 00 90 00 6B [12:24:33]RAPDU: 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_ClearQueue done [12:24:33]KKMCreateOFDPacket [12:24:33]OFDProtocolAddRootSTLVToBuf [12:24:33]FM_MakeSignedData [12:24:33]FM_MakeSignedData [12:24:33]SAM_PROTO_SignData [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 0D 01 02 [12:24:33]Write to MH i2c: E2 08 00 C8 30 80 0D 01 02 00 00 00 00 71 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 C8 30 00 90 00 6C [12:24:34]RAPDU: 90 00 [12:24:34]wFMCommunicate OK [12:24:34]wFMCommunicate request_size=255 [12:24:34]MH_SAM_APDU [12:24:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 85 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D8 02 00 35 04 06 00 6A [12:24:34]Write to MH i2c: E2 02 01 C9 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 85 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D8 02 00 35 04 06 00 6A 00 00 B6 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 C9 30 00 90 00 6D [12:24:34]RAPDU: 90 00 [12:24:34]wFMCommunicate OK [12:24:34]wFMCommunicate request_size=10 [12:24:34]MH_SAM_APDU [12:24:34]CAPDU: 80 0D 02 02 05 0A 42 A1 4E BA [12:24:34]Write to MH i2c: E2 0D 00 CA 30 80 0D 02 02 05 00 0A 42 A1 4E BA 00 00 73 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 03 00 CA 30 00 90 00 6E [12:24:34]RAPDU: 90 00 [12:24:34]wFMCommunicate OK [12:24:34]wFMCommunicate request_size=4 [12:24:34]MH_SAM_APDU [12:24:34]CAPDU: 80 0D 03 02 [12:24:34]Write to MH i2c: E2 08 00 CB 30 80 0D 03 02 00 00 00 00 76 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 0B 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 0B 00 CB 30 00 89 BD 75 20 65 28 EB 83 90 00 4D [12:24:34]RAPDU: 89 BD 75 20 65 28 EB 83 90 00 [12:24:34]wFMCommunicate OK [12:24:34]SAM_PROTO_SignData done [12:24:34]FM_MakeSignedData done [12:24:34]CreateOFDProtocolMessage [12:24:34]wFMCommunicate request_size=4 [12:24:34]MH_SAM_APDU [12:24:34]CAPDU: 80 11 00 00 [12:24:34]Write to MH i2c: E2 08 00 CC 30 80 11 00 00 00 00 00 00 76 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:34]Read from MH i2c: E2 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 17 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: E2 17 00 CC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C9 [12:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:24:34]wFMCommunicate OK [12:24:34]CreateOFDProtocolMessage done [12:24:34]OFDSenderStorePacket 186531 [12:24:34]StoreOFDPacket docnum=186531 [12:24:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 47 4F 07 01 47 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 85 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D8 02 00 35 04 06 00 6A 0A 42 A1 4E BA 89 BD 75 20 65 28 EB 83 [12:24:34]CheckFolder [12:24:34]dirname=/storage/ofd_packets [12:24:34]CheckFolder done [12:24:34]ProducePacketName [12:24:34]name=ofd_packets/00186531 [12:24:34]NVStorageSaveData ofd_packets/00186531 [12:24:34]File name is /storage/ofd_packets/00186531 [12:24:34]Write 301 bytes [12:24:34]NVStorageSaveData done [12:24:34]OFDSenderStorePacket done [12:24:34]KKMCreateOFDPacket done [12:24:34]NVStorageSaveData kkm_last_timestamp [12:24:34]File name is /storage/kkm_last_timestamp [12:24:34]Write 4 bytes [12:24:34]NVStorageSaveData done [12:24:34]ExternCall_PrintAddStr [12:24:34]wPrintStart [12:24:34]Write to MH i2c: 01 00 00 CD 30 FD [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 07 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 07 00 CD 30 00 00 00 00 00 FF 0F 12 [12:24:34]RasterBufferAndPrint [12:24:34]line Счет N : (1)411665 [12:24:34]line ИНН: 02508201610067 [12:24:34]line Контрольно-Кассовый Чек [12:24:34]line ПРОДАЖА [12:24:34]line ТРК (МРК, ГНК) : 12 [12:24:34]line Товар: 2710124130 [12:24:34]line Аи-92-К-2 [12:24:34]line 7.790 * 64.20 [12:24:34]line = 500.12 [12:24:34]line НДС 12% НСП 1% [12:24:34]line > о реализуемом товаре [12:24:34]line ОКРУГЛЕНИЕ: -0.12 [12:24:34]line ИТОГО: 500.00 [12:24:34]line Внесено: 500.00 [12:24:34]line СДАЧА: 0.00 [12:24:34]line НСП 1% : 4.43 [12:24:34]line НДС 12% : 53.11 [12:24:34]line Наличными: 500.00 [12:24:34]line Безнал.: 0.00 [12:24:34]line Место: АЗС № 92 "Партнер Нефть" [12:24:34]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:24:34]line СНО: Общий режим [12:24:34]line Чек 118 17.02.2025 12:24 [12:24:34]line Смена: 644 ФФД: 1.0 [12:24:34]line ЗНМ: 0300000118 [12:24:34]line РНМ: 0000000000091857 [12:24:34]line Версия ККМ: 001 [12:24:34]line ФМ: 0000000000871826 [12:24:34]line ФД: 186531 [12:24:34]line ФПД: 116592300084922 [12:24:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122437&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186531&fm=116592300084922&tin=02508201610067®Number=0000000000091857&sum=50000 [12:24:34]written 0, free lines is 4095 [12:24:34]OFD Sender: Processing packet 186531 [packets to send 49, broken 48] [12:24:34]ProducePacketName [12:24:34]name=ofd_packets/00186531 [12:24:34]OFD Sender: To server: pG, [12:24:34]CommunicateWithHost lk.salyk.kg:30040 [12:24:34]ConnectInit lk.salyk.kg [12:24:34]Connected sock=10 [12:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 47 4F 07 01 47 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 85 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D8 02 00 35 04 06 00 6A 0A 42 A1 4E BA 89 BD 75 20 65 28 EB 83 [12:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8E 4C 47 00 24 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A3 D8 02 00 F4 03 04 00 DF D0 B2 67 B6 04 01 00 00 A7 0F 6F 5B 5E E5 F8 88 [12:24:34]CommunicateWithHost err = 0 [12:24:34]CheckOFDResponse [12:24:34]1017 (14) - 77093643461234 [12:24:34]1041 (16) - 0000000000871826 [12:24:34]1040 (4) - 186531 [12:24:34]1012 (4) - 17.02.2025 06:02 [12:24:34]1206 (1) - 0 [12:24:34]OFD Sender: Remove packet 186531 [12:24:34]ProducePacketName [12:24:34]name=ofd_packets/00186531 [12:24:34]NVStorageDeleteData [12:24:34]Write to MH i2c: 01 00 00 F8 30 28 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 07 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: 01 07 00 F8 30 00 00 00 00 00 FD 0C 38 [12:24:34]RasterBufferAndPrint [12:24:34]line [12:24:34]line [12:24:34]line [12:24:34]line [12:24:34]line [12:24:34]written 0, free lines is 3334 [12:24:34]MH_Cut [12:24:34]Write to MH i2c: D1 01 00 FF 30 01 01 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: D1 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: D1 01 00 [12:24:34]MH_I2C_Read... [12:24:34]Read from MH i2c: D1 01 00 FF 30 00 00 [12:24:34]Write to MH i2c: 01 00 00 00 31 31 [12:24:34]Write i2c OK [12:24:34]MH_I2C_Read... [12:24:35]OFD Sender: No OFD packet to send [12:24:35]*** Cut start [12:24:35]*** Partial cut [12:24:35]*** CUTSNS_PIN = 1 [12:24:35]*** CUTSNS_PIN = 0 [12:24:35]*** Brake cut motor [12:24:36]Read from MH i2c: 01 [12:24:36]MH_I2C_Read... [12:24:36]*** Stop cut motor [12:24:36]*** Cut end [12:24:36]Read from MH i2c: 01 07 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: 01 07 00 00 31 00 00 00 00 00 FF 0F 46 [12:24:36]process_action close_receipt done [12:24:36]requested_data is exist [12:24:36]produce_requested_data [12:24:36]requested_item fm.sn is exist - process it [12:24:36]wFMCommunicate request_size=4 [12:24:36]MH_SAM_APDU [12:24:36]CAPDU: 80 11 00 00 [12:24:36]Write to MH i2c: E2 08 00 01 31 80 11 00 00 00 00 00 00 AC [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:36]Read from MH i2c: E2 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 17 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 17 00 01 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FF [12:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:24:36]wFMCommunicate OK [12:24:36]requested_item fd.num is exist - process it [12:24:36]SAM_PROTO_GetFieldsCounters [12:24:36]wFMCommunicate request_size=4 [12:24:36]MH_SAM_APDU [12:24:36]CAPDU: 80 13 00 00 [12:24:36]Write to MH i2c: E2 08 00 02 31 80 13 00 00 00 00 00 00 AF [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:36]Read from MH i2c: E2 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 62 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 62 00 02 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:24:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:36]wFMCommunicate OK [12:24:36]SAM_PROTO_GetFieldsCounters done [12:24:36]requested_item shift.num is exist - process it [12:24:36]requested_item shift.opened is exist - process it [12:24:36]req_shift_opened [12:24:36]FM_GetShiftState [12:24:36]SAM_PROTO_GetShiftState [12:24:36]wFMCommunicate request_size=4 [12:24:36]MH_SAM_APDU [12:24:36]CAPDU: 80 13 01 00 [12:24:36]Write to MH i2c: E2 08 00 03 31 80 13 01 00 00 00 00 00 B1 [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:36]Read from MH i2c: E2 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 03 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D5 [12:24:36]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:24:36]wFMCommunicate OK [12:24:36]SAM_PROTO_GetShiftState done [12:24:36]FM_GetShiftState done [12:24:36]req_shift_opened done [12:24:36]requested_item shift.open_date is exist - process it [12:24:36]req_shift_open_date [12:24:36]req_shift_open_date done [12:24:36]produce_requested_data done [12:24:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186531,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:24:36]process_action_free close_receipt [12:24:36]json_value_free [12:24:36]json_value_free done [12:24:36]process_json_proto returns [12:24:36]Send response to host [12:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186531,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:24:36]free response buf [12:24:36]execute_script done [12:24:36]execute_script returns [12:24:36]free content buf [12:24:36]Sock 8.Close socket [12:24:36]Sock 8.Thread stoped [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:28]accept exits with 9 [12:26:28]New connection [12:26:28]New thread 3067358564 created [12:26:28]Thread 3067501924 joined [12:26:28]Waiting for new connection... [12:26:28] Sock 9.Parse request [12:26:28]Sock 9.Check first char [12:26:28]Sock 9.First char is OK [12:26:28]request: POST /json_proto HTTP/1.0 [12:26:28]Method: POST [12:26:28]URL: /json_proto [12:26:28]Method is POST - this is cgi request [12:26:28]url: /json_proto [12:26:28]query_string will be loaded in cgi processing [12:26:28]execute_cgi json_proto POST (null) [12:26:28]execute_cgi path=json_proto method=POST [12:26:28]POST find Content-Length [12:26:28]Host: 172.17.46.131:8080 [12:26:28]Content-Length: 677 [12:26:28]Content-Type: application/json [12:26:28] [12:26:28]POST finish read [12:26:28]Found Content-Length = 677 [12:26:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:28]execute_script... [12:26:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:28]POST & json_proto [12:26:28]process_json_proto [12:26:28]json parsed OK: [12:26:28]protocol is kg_v1.0 [12:26:28]action value=close_receipt [12:26:28]process_action close_receipt [12:26:28]cmd_close_receipt [12:26:28]MH_GetDate [12:26:28]Write to MH i2c: F0 00 00 04 31 24 [12:26:28]Write i2c OK [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 09 00 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: F0 09 00 04 31 00 F8 2A B3 67 7E 41 4F 65 DC [12:26:28]GetLastDocTimeStamp 1739795077 [12:26:28]current date 1739795192 [12:26:28]FM_GetShiftState [12:26:28]SAM_PROTO_GetShiftState [12:26:28]wFMCommunicate request_size=4 [12:26:28]MH_SAM_APDU [12:26:28]CAPDU: 80 13 01 00 [12:26:28]Write to MH i2c: E2 08 00 05 31 80 13 01 00 00 00 00 00 B3 [12:26:28]Write i2c OK [12:26:28]MH_I2C_Read... [12:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:28]Read from MH i2c: E2 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: E2 0E 00 [12:26:28]MH_I2C_Read... [12:26:28]Read from MH i2c: E2 0E 00 05 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D7 [12:26:28]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:26:28]wFMCommunicate OK [12:26:28]SAM_PROTO_GetShiftState done [12:26:28]FM_GetShiftState done [12:26:28]opened in 1739752571 [12:26:28]opened+sec_in_day 1739838971 [12:26:28]quantity*price = 50011 [12:26:28]sum+1 = 50013 [12:26:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 119 17.02.2025 12:26 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186532 ФПД: 249414060144165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122632&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186532&fm=249414060144165&tin=02508201610067®Number=0000000000091857&sum=50000 [12:26:29]StoreToDocumentArchive [12:26:29]shift 644 fd 186532 [12:26:29]save to /storage/0644/doc_00186532 [12:26:29]save last doc name /storage/0644/doc_00186532 to /storage/kkm_last_doc_name [12:26:29]save OK [12:26:29]Clear old archive folders... [12:26:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:29]tlvbuf is 01FC3A10 [12:26:29]SAM_PROTO_ClearQueue [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 09 00 00 [12:26:29]Write to MH i2c: E2 08 00 12 31 80 09 00 00 00 00 00 00 B5 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 12 31 00 90 00 B7 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_ClearQueue done [12:26:29]KKMCreateOFDPacket [12:26:29]OFDProtocolAddRootSTLVToBuf [12:26:29]FM_MakeSignedData [12:26:29]FM_MakeSignedData [12:26:29]SAM_PROTO_SignData [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 01 02 [12:26:29]Write to MH i2c: E2 08 00 13 31 80 0D 01 02 00 00 00 00 BD [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 13 31 00 90 00 B8 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=255 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D8 02 00 35 04 06 00 E2 [12:26:29]Write to MH i2c: E2 02 01 14 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D8 02 00 35 04 06 00 E2 00 00 EF [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 14 31 00 90 00 B9 [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=10 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 02 02 05 D7 3C 74 F6 25 [12:26:29]Write to MH i2c: E2 0D 00 15 31 80 0D 02 02 05 00 D7 3C 74 F6 25 00 00 6C [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 03 00 15 31 00 90 00 BA [12:26:29]RAPDU: 90 00 [12:26:29]wFMCommunicate OK [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 0D 03 02 [12:26:29]Write to MH i2c: E2 08 00 16 31 80 0D 03 02 00 00 00 00 C2 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0B 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0B 00 16 31 00 8A 8A 5B 16 51 88 19 D5 90 00 0F [12:26:29]RAPDU: 8A 8A 5B 16 51 88 19 D5 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_SignData done [12:26:29]FM_MakeSignedData done [12:26:29]CreateOFDProtocolMessage [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 11 00 00 [12:26:29]Write to MH i2c: E2 08 00 17 31 80 11 00 00 00 00 00 00 C2 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 17 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 17 00 17 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 15 [12:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:26:29]wFMCommunicate OK [12:26:29]CreateOFDProtocolMessage done [12:26:29]OFDSenderStorePacket 186532 [12:26:29]StoreOFDPacket docnum=186532 [12:26:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D BB 07 01 50 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D8 02 00 35 04 06 00 E2 D7 3C 74 F6 25 8A 8A 5B 16 51 88 19 D5 [12:26:29]CheckFolder [12:26:29]dirname=/storage/ofd_packets [12:26:29]CheckFolder done [12:26:29]ProducePacketName [12:26:29]name=ofd_packets/00186532 [12:26:29]NVStorageSaveData ofd_packets/00186532 [12:26:29]File name is /storage/ofd_packets/00186532 [12:26:29]Write 301 bytes [12:26:29]NVStorageSaveData done [12:26:29]OFDSenderStorePacket done [12:26:29]KKMCreateOFDPacket done [12:26:29]NVStorageSaveData kkm_last_timestamp [12:26:29]File name is /storage/kkm_last_timestamp [12:26:29]Write 4 bytes [12:26:29]NVStorageSaveData done [12:26:29]ExternCall_PrintAddStr [12:26:29]wPrintStart [12:26:29]Write to MH i2c: 01 00 00 18 31 49 [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: 01 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: 01 07 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: 01 07 00 18 31 00 00 00 00 00 FF 0F 5E [12:26:29]RasterBufferAndPrint [12:26:29]line Счет N : (1)411666 [12:26:29]line ИНН: 02508201610067 [12:26:29]line Контрольно-Кассовый Чек [12:26:29]line ПРОДАЖА [12:26:29]line ТРК (МРК, ГНК) : 32 [12:26:29]line Товар: 2710124130 [12:26:29]line Аи-92-К-2 [12:26:29]line 7.790 * 64.20 [12:26:29]line = 500.12 [12:26:29]line НДС 12% НСП 1% [12:26:29]line > о реализуемом товаре [12:26:29]line ОКРУГЛЕНИЕ: -0.12 [12:26:29]line ИТОГО: 500.00 [12:26:29]line Внесено: 500.00 [12:26:29]line СДАЧА: 0.00 [12:26:29]line НСП 1% : 4.43 [12:26:29]line НДС 12% : 53.11 [12:26:29]line Наличными: 500.00 [12:26:29]line Безнал.: 0.00 [12:26:29]line Место: АЗС № 92 "Партнер Нефть" [12:26:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:26:29]line СНО: Общий режим [12:26:29]line Чек 119 17.02.2025 12:26 [12:26:29]line Смена: 644 ФФД: 1.0 [12:26:29]line ЗНМ: 0300000118 [12:26:29]line РНМ: 0000000000091857 [12:26:29]line Версия ККМ: 001 [12:26:29]line ФМ: 0000000000871826 [12:26:29]line ФД: 186532 [12:26:29]line ФПД: 249414060144165 [12:26:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122632&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186532&fm=249414060144165&tin=02508201610067®Number=0000000000091857&sum=50000 [12:26:30]OFD Sender: Processing packet 186532 [packets to send 49, broken 48] [12:26:30]ProducePacketName [12:26:30]name=ofd_packets/00186532 [12:26:30]OFD Sender: To server: pG, [12:26:30]CommunicateWithHost lk.salyk.kg:30040 [12:26:30]ConnectInit lk.salyk.kg [12:26:30]written 0, free lines is 4095 [12:26:30]Connected sock=10 [12:26:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6D BB 07 01 50 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 F8 2A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D8 02 00 35 04 06 00 E2 D7 3C 74 F6 25 8A 8A 5B 16 51 88 19 D5 [12:26:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B C8 47 00 79 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A4 D8 02 00 F4 03 04 00 52 D1 B2 67 B6 04 01 00 00 78 FC A4 EE C7 08 BF DE [12:26:30]CommunicateWithHost err = 0 [12:26:30]CheckOFDResponse [12:26:30]1017 (14) - 77093643461234 [12:26:30]1041 (16) - 0000000000871826 [12:26:30]1040 (4) - 186532 [12:26:30]1012 (4) - 17.02.2025 06:04 [12:26:30]1206 (1) - 0 [12:26:30]OFD Sender: Remove packet 186532 [12:26:30]ProducePacketName [12:26:30]name=ofd_packets/00186532 [12:26:30]NVStorageDeleteData [12:26:30]Write to MH i2c: 01 00 00 43 31 74 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: 01 07 00 43 31 00 00 00 00 00 00 0D 88 [12:26:30]RasterBufferAndPrint [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]line [12:26:30]written 0, free lines is 3334 [12:26:30]MH_Cut [12:26:30]Write to MH i2c: D1 01 00 4A 31 01 4D [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 01 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: D1 01 00 4A 31 00 4C [12:26:30]Write to MH i2c: 01 00 00 4B 31 7C [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]OFD Sender: No OFD packet to send [12:26:31]*** Cut start [12:26:31]*** Partial cut [12:26:31]*** CUTSNS_PIN = 1 [12:26:31]*** CUTSNS_PIN = 0 [12:26:31]*** Brake cut motor [12:26:31]Read from MH i2c: 01 [12:26:31]MH_I2C_Read... [12:26:31]*** Stop cut motor [12:26:31]*** Cut end [12:26:31]Read from MH i2c: 01 07 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: 01 07 00 4B 31 00 00 00 00 00 FF 0F 91 [12:26:31]process_action close_receipt done [12:26:31]requested_data is exist [12:26:31]produce_requested_data [12:26:31]requested_item fm.sn is exist - process it [12:26:31]wFMCommunicate request_size=4 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 11 00 00 [12:26:31]Write to MH i2c: E2 08 00 4C 31 80 11 00 00 00 00 00 00 F7 [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:31]Read from MH i2c: E2 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 17 00 [12:26:31]MH_I2C_Read... [12:26:31]Read from MH i2c: E2 17 00 4C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [12:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:26:31]wFMCommunicate OK [12:26:31]requested_item fd.num is exist - process it [12:26:31]SAM_PROTO_GetFieldsCounters [12:26:31]wFMCommunicate request_size=4 [12:26:31]MH_SAM_APDU [12:26:31]CAPDU: 80 13 00 00 [12:26:31]Write to MH i2c: E2 08 00 4D 31 80 13 00 00 00 00 00 00 FA [12:26:31]Write i2c OK [12:26:31]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 62 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 62 00 4D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:26:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A4 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetFieldsCounters done [12:26:32]requested_item shift.num is exist - process it [12:26:32]requested_item shift.opened is exist - process it [12:26:32]req_shift_opened [12:26:32]FM_GetShiftState [12:26:32]SAM_PROTO_GetShiftState [12:26:32]wFMCommunicate request_size=4 [12:26:32]MH_SAM_APDU [12:26:32]CAPDU: 80 13 01 00 [12:26:32]Write to MH i2c: E2 08 00 4E 31 80 13 01 00 00 00 00 00 FC [12:26:32]Write i2c OK [12:26:32]MH_I2C_Read... [12:26:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:32]Read from MH i2c: E2 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 [12:26:32]MH_I2C_Read... [12:26:32]Read from MH i2c: E2 0E 00 4E 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 20 [12:26:32]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:26:32]wFMCommunicate OK [12:26:32]SAM_PROTO_GetShiftState done [12:26:32]FM_GetShiftState done [12:26:32]req_shift_opened done [12:26:32]requested_item shift.open_date is exist - process it [12:26:32]req_shift_open_date [12:26:32]req_shift_open_date done [12:26:32]produce_requested_data done [12:26:32]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186532,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:26:32]process_action_free close_receipt [12:26:32]json_value_free [12:26:32]json_value_free done [12:26:32]process_json_proto returns [12:26:32]Send response to host [12:26:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186532,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:26:32]free response buf [12:26:32]execute_script done [12:26:32]execute_script returns [12:26:32]free content buf [12:26:32]Sock 9.Close socket [12:26:32]Sock 9.Thread stoped [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:05]accept exits with 8 [12:29:05]New connection [12:29:05]New thread 3067501924 created [12:29:05]Thread 3067358564 joined [12:29:05]Waiting for new connection... [12:29:05] Sock 8.Parse request [12:29:05]Sock 8.Check first char [12:29:05]Sock 8.First char is OK [12:29:05]request: POST /json_proto HTTP/1.0 [12:29:05]Method: POST [12:29:05]URL: /json_proto [12:29:05]Method is POST - this is cgi request [12:29:05]url: /json_proto [12:29:05]query_string will be loaded in cgi processing [12:29:05]execute_cgi json_proto POST (null) [12:29:05]execute_cgi path=json_proto method=POST [12:29:05]POST find Content-Length [12:29:05]Host: 172.17.46.131:8080 [12:29:05]Content-Length: 674 [12:29:05]Content-Type: application/json [12:29:05] [12:29:05]POST finish read [12:29:05]Found Content-Length = 674 [12:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:05]execute_script... [12:29:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:05]POST & json_proto [12:29:05]process_json_proto [12:29:05]json parsed OK: [12:29:05]protocol is kg_v1.0 [12:29:05]action value=close_receipt [12:29:05]process_action close_receipt [12:29:05]cmd_close_receipt [12:29:05]MH_GetDate [12:29:05]Write to MH i2c: F0 00 00 4F 31 6F [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 09 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: F0 09 00 4F 31 00 95 2B B3 67 7E 41 4F 65 C5 [12:29:05]GetLastDocTimeStamp 1739795192 [12:29:05]current date 1739795349 [12:29:05]FM_GetShiftState [12:29:05]SAM_PROTO_GetShiftState [12:29:05]wFMCommunicate request_size=4 [12:29:05]MH_SAM_APDU [12:29:05]CAPDU: 80 13 01 00 [12:29:05]Write to MH i2c: E2 08 00 50 31 80 13 01 00 00 00 00 00 FE [12:29:05]Write i2c OK [12:29:05]MH_I2C_Read... [12:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:05]Read from MH i2c: E2 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 [12:29:05]MH_I2C_Read... [12:29:05]Read from MH i2c: E2 0E 00 50 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 22 [12:29:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:29:05]wFMCommunicate OK [12:29:05]SAM_PROTO_GetShiftState done [12:29:05]FM_GetShiftState done [12:29:05]opened in 1739752571 [12:29:05]opened+sec_in_day 1739838971 [12:29:05]quantity*price = 80005 [12:29:05]sum+1 = 80006 [12:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 120 17.02.2025 12:29 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186533 ФПД: 265709571306971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186533&fm=265709571306971&tin=02508201610067®Number=0000000000091857&sum=80000 [12:29:06]StoreToDocumentArchive [12:29:06]shift 644 fd 186533 [12:29:06]save to /storage/0644/doc_00186533 [12:29:06]save last doc name /storage/0644/doc_00186533 to /storage/kkm_last_doc_name [12:29:06]save OK [12:29:06]Clear old archive folders... [12:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:06]tlvbuf is 02081940 [12:29:06]SAM_PROTO_ClearQueue [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 09 00 00 [12:29:06]Write to MH i2c: E2 08 00 5D 31 80 09 00 00 00 00 00 00 00 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 5D 31 00 90 00 02 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]SAM_PROTO_ClearQueue done [12:29:06]KKMCreateOFDPacket [12:29:06]OFDProtocolAddRootSTLVToBuf [12:29:06]FM_MakeSignedData [12:29:06]FM_MakeSignedData [12:29:06]SAM_PROTO_SignData [12:29:06]wFMCommunicate request_size=4 [12:29:06]MH_SAM_APDU [12:29:06]CAPDU: 80 0D 01 02 [12:29:06]Write to MH i2c: E2 08 00 5E 31 80 0D 01 02 00 00 00 00 08 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:06]Read from MH i2c: E2 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 [12:29:06]MH_I2C_Read... [12:29:06]Read from MH i2c: E2 03 00 5E 31 00 90 00 03 [12:29:06]RAPDU: 90 00 [12:29:06]wFMCommunicate OK [12:29:06]wFMCommunicate request_size=255 [12:29:06]MH_SAM_APDU [12:29:06]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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 96 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D8 02 00 35 04 06 00 F1 A9 54 9C [12:29:06]Write to MH i2c: E2 02 01 5F 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 96 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D8 02 00 35 04 06 00 F1 A9 54 9C 00 00 42 [12:29:06]Write i2c OK [12:29:06]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 5F 31 00 90 00 04 [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]wFMCommunicate request_size=7 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 02 02 02 75 DB [12:29:07]Write to MH i2c: E2 0A 00 60 31 80 0D 02 02 02 00 75 DB 00 00 5F [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 03 00 60 31 00 90 00 05 [12:29:07]RAPDU: 90 00 [12:29:07]wFMCommunicate OK [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 0D 03 02 [12:29:07]Write to MH i2c: E2 08 00 61 31 80 0D 03 02 00 00 00 00 0D [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0B 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0B 00 61 31 00 8B 1C FA A6 45 E6 C4 A7 90 00 EB [12:29:07]RAPDU: 8B 1C FA A6 45 E6 C4 A7 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_SignData done [12:29:07]FM_MakeSignedData done [12:29:07]CreateOFDProtocolMessage [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 11 00 00 [12:29:07]Write to MH i2c: E2 08 00 62 31 80 11 00 00 00 00 00 00 0D [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 62 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 60 [12:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:07]wFMCommunicate OK [12:29:07]CreateOFDProtocolMessage done [12:29:07]OFDSenderStorePacket 186533 [12:29:07]StoreOFDPacket docnum=186533 [12:29:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0E 06 04 01 2A E5 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 96 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D8 02 00 35 04 06 00 F1 A9 54 9C 75 DB 8B 1C FA A6 45 E6 C4 A7 [12:29:07]CheckFolder [12:29:07]dirname=/storage/ofd_packets [12:29:07]CheckFolder done [12:29:07]ProducePacketName [12:29:07]name=ofd_packets/00186533 [12:29:07]NVStorageSaveData ofd_packets/00186533 [12:29:07]File name is /storage/ofd_packets/00186533 [12:29:07]Write 298 bytes [12:29:07]NVStorageSaveData done [12:29:07]OFDSenderStorePacket done [12:29:07]KKMCreateOFDPacket done [12:29:07]NVStorageSaveData kkm_last_timestamp [12:29:07]File name is /storage/kkm_last_timestamp [12:29:07]Write 4 bytes [12:29:07]NVStorageSaveData done [12:29:07]ExternCall_PrintAddStr [12:29:07]wPrintStart [12:29:07]Write to MH i2c: 01 00 00 63 31 94 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 63 31 00 00 00 00 00 FF 0F A9 [12:29:07]RasterBufferAndPrint [12:29:07]line Счет N : (1)411668 [12:29:07]line ИНН: 02508201610067 [12:29:07]line Контрольно-Кассовый Чек [12:29:07]line ПРОДАЖА [12:29:07]line ТРК (МРК, ГНК) : 6 [12:29:07]line Товар: 2710194210 [12:29:07]line ДТ-К-5 [12:29:07]line 11.020 * 72.60 [12:29:07]line = 800.05 [12:29:07]line НДС 12% НСП 1% [12:29:07]line > о реализуемом товаре [12:29:07]line ОКРУГЛЕНИЕ: -0.05 [12:29:07]line ИТОГО: 800.00 [12:29:07]line Внесено: 800.00 [12:29:07]line СДАЧА: 0.00 [12:29:07]line НСП 1% : 7.08 [12:29:07]line НДС 12% : 84.96 [12:29:07]line Наличными: 800.00 [12:29:07]line Безнал.: 0.00 [12:29:07]line Место: АЗС № 92 "Партнер Нефть" [12:29:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:29:07]line СНО: Общий режим [12:29:07]line Чек 120 17.02.2025 12:29 [12:29:07]line Смена: 644 ФФД: 1.0 [12:29:07]line ЗНМ: 0300000118 [12:29:07]line РНМ: 0000000000091857 [12:29:07]line Версия ККМ: 001 [12:29:07]line ФМ: 0000000000871826 [12:29:07]line ФД: 186533 [12:29:07]line ФПД: 265709571306971 [12:29:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122910&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186533&fm=265709571306971&tin=02508201610067®Number=0000000000091857&sum=80000 [12:29:07]written 0, free lines is 4095 [12:29:07]OFD Sender: Processing packet 186533 [packets to send 49, broken 48] [12:29:07]ProducePacketName [12:29:07]name=ofd_packets/00186533 [12:29:07]OFD Sender: To server: pG, [12:29:07]CommunicateWithHost lk.salyk.kg:30040 [12:29:07]ConnectInit lk.salyk.kg [12:29:07]Connected sock=10 [12:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0E 06 04 01 2A E5 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 96 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D8 02 00 35 04 06 00 F1 A9 54 9C 75 DB 8B 1C FA A6 45 E6 C4 A7 [12:29:07]Write to MH i2c: 01 00 00 8E 31 BF [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 8E 31 00 00 00 00 00 F0 0C C2 [12:29:07]RasterBufferAndPrint [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]line [12:29:07]written 0, free lines is 3318 [12:29:07]MH_Cut [12:29:07]Write to MH i2c: D1 01 00 95 31 01 98 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: D1 01 00 95 31 00 97 [12:29:07]Write to MH i2c: 01 00 00 96 31 C7 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 EB 47 00 9F 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A5 D8 02 00 F4 03 04 00 F0 D1 B2 67 B6 04 01 00 00 41 8B CB 0D B8 76 DB AC [12:29:07]CommunicateWithHost err = 0 [12:29:07]CheckOFDResponse [12:29:07]1017 (14) - 77093643461234 [12:29:07]1041 (16) - 0000000000871826 [12:29:07]1040 (4) - 186533 [12:29:07]1012 (4) - 17.02.2025 06:06 [12:29:07]1206 (1) - 0 [12:29:07]OFD Sender: Remove packet 186533 [12:29:07]ProducePacketName [12:29:07]name=ofd_packets/00186533 [12:29:07]NVStorageDeleteData [12:29:08]OFD Sender: No OFD packet to send [12:29:08]*** Cut start [12:29:08]*** Partial cut [12:29:08]*** CUTSNS_PIN = 1 [12:29:08]*** CUTSNS_PIN = 0 [12:29:08]*** Brake cut motor [12:29:09]Read from MH i2c: 01 [12:29:09]MH_I2C_Read... [12:29:09]*** Stop cut motor [12:29:09]*** Cut end [12:29:09]Read from MH i2c: 01 07 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: 01 07 00 96 31 00 00 00 00 00 FF 0F DC [12:29:09]process_action close_receipt done [12:29:09]requested_data is exist [12:29:09]produce_requested_data [12:29:09]requested_item fm.sn is exist - process it [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 11 00 00 [12:29:09]Write to MH i2c: E2 08 00 97 31 80 11 00 00 00 00 00 00 42 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 17 00 97 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 95 [12:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:09]wFMCommunicate OK [12:29:09]requested_item fd.num is exist - process it [12:29:09]SAM_PROTO_GetFieldsCounters [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 13 00 00 [12:29:09]Write to MH i2c: E2 08 00 98 31 80 13 00 00 00 00 00 00 45 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 62 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 62 00 98 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A5 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_GetFieldsCounters done [12:29:09]requested_item shift.num is exist - process it [12:29:09]requested_item shift.opened is exist - process it [12:29:09]req_shift_opened [12:29:09]FM_GetShiftState [12:29:09]SAM_PROTO_GetShiftState [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 13 01 00 [12:29:09]Write to MH i2c: E2 08 00 99 31 80 13 01 00 00 00 00 00 47 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 99 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6B [12:29:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_GetShiftState done [12:29:09]FM_GetShiftState done [12:29:09]req_shift_opened done [12:29:09]requested_item shift.open_date is exist - process it [12:29:09]req_shift_open_date [12:29:09]req_shift_open_date done [12:29:09]produce_requested_data done [12:29:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186533,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:29:09]process_action_free close_receipt [12:29:09]json_value_free [12:29:09]json_value_free done [12:29:09]process_json_proto returns [12:29:09]Send response to host [12:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186533,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:29:09]free response buf [12:29:09]execute_script done [12:29:09]execute_script returns [12:29:09]free content buf [12:29:09]Sock 8.Close socket [12:29:09]Sock 8.Thread stoped [12:29:09]accept exits with 9 [12:29:09]New connection [12:29:09]New thread 3067358564 created [12:29:09]Thread 3067501924 joined [12:29:09]Waiting for new connection... [12:29:09] Sock 9.Parse request [12:29:09]Sock 9.Check first char [12:29:09]Sock 9.First char is OK [12:29:09]request: POST /json_proto HTTP/1.0 [12:29:09]Method: POST [12:29:09]URL: /json_proto [12:29:09]Method is POST - this is cgi request [12:29:09]url: /json_proto [12:29:09]query_string will be loaded in cgi processing [12:29:09]execute_cgi json_proto POST (null) [12:29:09]execute_cgi path=json_proto method=POST [12:29:09]POST find Content-Length [12:29:09]Host: 172.17.46.131:8080 [12:29:09]Content-Length: 799 [12:29:09]Content-Type: application/json [12:29:09] [12:29:09]POST finish read [12:29:09]Found Content-Length = 799 [12:29:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]execute_script... [12:29:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:09]POST & json_proto [12:29:09]process_json_proto [12:29:09]json parsed OK: [12:29:09]protocol is kg_v1.0 [12:29:09]action value=close_receipt [12:29:09]process_action close_receipt [12:29:09]cmd_close_receipt [12:29:09]MH_GetDate [12:29:09]Write to MH i2c: F0 00 00 9A 31 BA [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: F0 09 00 9A 31 00 9A 2B B3 67 7E 41 4F 65 15 [12:29:09]GetLastDocTimeStamp 1739795350 [12:29:09]current date 1739795354 [12:29:09]FM_GetShiftState [12:29:09]SAM_PROTO_GetShiftState [12:29:09]wFMCommunicate request_size=4 [12:29:09]MH_SAM_APDU [12:29:09]CAPDU: 80 13 01 00 [12:29:09]Write to MH i2c: E2 08 00 9B 31 80 13 01 00 00 00 00 00 49 [12:29:09]Write i2c OK [12:29:09]MH_I2C_Read... [12:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:09]Read from MH i2c: E2 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 [12:29:09]MH_I2C_Read... [12:29:09]Read from MH i2c: E2 0E 00 9B 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6D [12:29:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:29:09]wFMCommunicate OK [12:29:09]SAM_PROTO_GetShiftState done [12:29:09]FM_GetShiftState done [12:29:09]opened in 1739752571 [12:29:09]opened+sec_in_day 1739838971 [12:29:09]quantity*price = 200013 [12:29:09]sum+1 = 200014 [12:29:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 121 17.02.2025 12:29 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186534 ФПД: 202441047163678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186534&fm=202441047163678&tin=02508201610067®Number=0000000000091857&sum=200013 [12:29:10]StoreToDocumentArchive [12:29:10]shift 644 fd 186534 [12:29:11]save to /storage/0644/doc_00186534 [12:29:11]save last doc name /storage/0644/doc_00186534 to /storage/kkm_last_doc_name [12:29:11]save OK [12:29:11]Clear old archive folders... [12:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:29:11]tlvbuf is 02021970 [12:29:11]SAM_PROTO_ClearQueue [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 09 00 00 [12:29:11]Write to MH i2c: E2 08 00 A8 31 80 09 00 00 00 00 00 00 4B [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 A8 31 00 90 00 4D [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_ClearQueue done [12:29:11]KKMCreateOFDPacket [12:29:11]OFDProtocolAddRootSTLVToBuf [12:29:11]FM_MakeSignedData [12:29:11]FM_MakeSignedData [12:29:11]SAM_PROTO_SignData [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 01 02 [12:29:11]Write to MH i2c: E2 08 00 A9 31 80 0D 01 02 00 00 00 00 53 [12:29:11]Write i2c OK [12:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 A9 31 00 90 00 4E [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=255 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9A 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D8 02 00 35 04 06 00 B8 1E 7A B4 [12:29:11]Write to MH i2c: E2 02 01 AA 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9A 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D8 02 00 35 04 06 00 B8 1E 7A B4 00 00 E9 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 AA 31 00 90 00 4F [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=7 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 02 02 02 43 1E [12:29:11]Write to MH i2c: E2 0A 00 AB 31 80 0D 02 02 02 00 43 1E 00 00 BB [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 03 00 AB 31 00 90 00 50 [12:29:11]RAPDU: 90 00 [12:29:11]wFMCommunicate OK [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 0D 03 02 [12:29:11]Write to MH i2c: E2 08 00 AC 31 80 0D 03 02 00 00 00 00 58 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 0B 00 AC 31 00 D7 55 00 09 80 EB 6E FC 90 00 63 [12:29:11]RAPDU: D7 55 00 09 80 EB 6E FC 90 00 [12:29:11]wFMCommunicate OK [12:29:11]SAM_PROTO_SignData done [12:29:11]FM_MakeSignedData done [12:29:11]CreateOFDProtocolMessage [12:29:11]wFMCommunicate request_size=4 [12:29:11]MH_SAM_APDU [12:29:11]CAPDU: 80 11 00 00 [12:29:11]Write to MH i2c: E2 08 00 AD 31 80 11 00 00 00 00 00 00 58 [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:11]Read from MH i2c: E2 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: E2 17 00 AD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AB [12:29:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:11]wFMCommunicate OK [12:29:11]CreateOFDProtocolMessage done [12:29:11]OFDSenderStorePacket 186534 [12:29:11]StoreOFDPacket docnum=186534 [12:29:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 59 45 04 01 DB 39 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9A 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D8 02 00 35 04 06 00 B8 1E 7A B4 43 1E D7 55 00 09 80 EB 6E FC [12:29:11]CheckFolder [12:29:11]dirname=/storage/ofd_packets [12:29:11]CheckFolder done [12:29:11]ProducePacketName [12:29:11]name=ofd_packets/00186534 [12:29:11]NVStorageSaveData ofd_packets/00186534 [12:29:11]File name is /storage/ofd_packets/00186534 [12:29:11]Write 298 bytes [12:29:11]NVStorageSaveData done [12:29:11]OFDSenderStorePacket done [12:29:11]KKMCreateOFDPacket done [12:29:11]NVStorageSaveData kkm_last_timestamp [12:29:11]File name is /storage/kkm_last_timestamp [12:29:11]Write 4 bytes [12:29:11]NVStorageSaveData done [12:29:11]ExternCall_PrintAddStr [12:29:11]wPrintStart [12:29:11]Write to MH i2c: 01 00 00 AE 31 DF [12:29:11]Write i2c OK [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 [12:29:11]MH_I2C_Read... [12:29:11]Read from MH i2c: 01 07 00 AE 31 00 00 00 00 00 FF 0F F4 [12:29:11]RasterBufferAndPrint [12:29:11]line Счет N : (1)411667 [12:29:11]line ИНН: 02508201610067 [12:29:11]line Контрольно-Кассовый Чек [12:29:11]line ПРОДАЖА [12:29:11]line ТРК (МРК, ГНК) : 5 [12:29:11]line Товар: 2710194210 [12:29:11]line ДТ-К-5 [12:29:11]line 27.550 * 72.60 [12:29:11]line = 2000.13 [12:29:11]line НДС 12% НСП 1% [12:29:11]line > о реализуемом товаре [12:29:11]line ИТОГО: 2000.13 [12:29:11]line НСП 1% : 17.70 [12:29:11]line НДС 12% : 212.40 [12:29:11]line Наличными: 0.00 [12:29:11]line Безнал.: 2000.13 [12:29:11]line Место: АЗС № 92 "Партнер Нефть" [12:29:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:29:12]line СНО: Общий режим [12:29:12]line Чек 121 17.02.2025 12:29 [12:29:12]line Смена: 644 ФФД: 1.0 [12:29:12]line ЗНМ: 0300000118 [12:29:12]line РНМ: 0000000000091857 [12:29:12]line Версия ККМ: 001 [12:29:12]line Платежная система: O! деньги [12:29:12]line ФМ: 0000000000871826 [12:29:12]line ФД: 186534 [12:29:12]line ФПД: 202441047163678 [12:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T122914&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186534&fm=202441047163678&tin=02508201610067®Number=0000000000091857&sum=200013 [12:29:12]OFD Sender: Processing packet 186534 [packets to send 49, broken 48] [12:29:12]ProducePacketName [12:29:12]name=ofd_packets/00186534 [12:29:12]OFD Sender: To server: pG, [12:29:12]CommunicateWithHost lk.salyk.kg:30040 [12:29:12]ConnectInit lk.salyk.kg [12:29:12]written 0, free lines is 4095 [12:29:12]Connected sock=10 [12:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 59 45 04 01 DB 39 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 9A 2B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D8 02 00 35 04 06 00 B8 1E 7A B4 43 1E D7 55 00 09 80 EB 6E FC [12:29:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 B4 F7 47 00 6C 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A6 D8 02 00 F4 03 04 00 F4 D1 B2 67 B6 04 01 00 00 89 F9 72 6C 8C 18 88 36 [12:29:12]CommunicateWithHost err = 0 [12:29:12]CheckOFDResponse [12:29:12]1017 (14) - 77093643461234 [12:29:12]1041 (16) - 0000000000871826 [12:29:12]1040 (4) - 186534 [12:29:12]1012 (4) - 17.02.2025 06:06 [12:29:12]1206 (1) - 0 [12:29:12]OFD Sender: Remove packet 186534 [12:29:12]ProducePacketName [12:29:12]name=ofd_packets/00186534 [12:29:12]NVStorageDeleteData [12:29:12]Write to MH i2c: 01 00 00 D8 31 09 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: 01 07 00 D8 31 00 00 00 00 00 10 0D 2D [12:29:12]RasterBufferAndPrint [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]line [12:29:12]written 0, free lines is 3357 [12:29:12]MH_Cut [12:29:12]Write to MH i2c: D1 01 00 DF 31 01 E2 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 [12:29:12]MH_I2C_Read... [12:29:12]Read from MH i2c: D1 01 00 DF 31 00 E1 [12:29:12]Write to MH i2c: 01 00 00 E0 31 11 [12:29:12]Write i2c OK [12:29:12]MH_I2C_Read... [12:29:13]OFD Sender: No OFD packet to send [12:29:13]*** Cut start [12:29:13]*** Partial cut [12:29:13]*** CUTSNS_PIN = 1 [12:29:13]*** CUTSNS_PIN = 0 [12:29:13]*** Brake cut motor [12:29:14]Read from MH i2c: 01 [12:29:14]MH_I2C_Read... [12:29:14]*** Stop cut motor [12:29:14]*** Cut end [12:29:14]Read from MH i2c: 01 07 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: 01 07 00 E0 31 00 00 00 00 00 FF 0F 26 [12:29:14]process_action close_receipt done [12:29:14]requested_data is exist [12:29:14]produce_requested_data [12:29:14]requested_item fm.sn is exist - process it [12:29:14]wFMCommunicate request_size=4 [12:29:14]MH_SAM_APDU [12:29:14]CAPDU: 80 11 00 00 [12:29:14]Write to MH i2c: E2 08 00 E1 31 80 11 00 00 00 00 00 00 8C [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:14]Read from MH i2c: E2 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 17 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 17 00 E1 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [12:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:29:14]wFMCommunicate OK [12:29:14]requested_item fd.num is exist - process it [12:29:14]SAM_PROTO_GetFieldsCounters [12:29:14]wFMCommunicate request_size=4 [12:29:14]MH_SAM_APDU [12:29:14]CAPDU: 80 13 00 00 [12:29:14]Write to MH i2c: E2 08 00 E2 31 80 13 00 00 00 00 00 00 8F [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:14]Read from MH i2c: E2 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 62 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 62 00 E2 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [12:29:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A6 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:14]wFMCommunicate OK [12:29:14]SAM_PROTO_GetFieldsCounters done [12:29:14]requested_item shift.num is exist - process it [12:29:14]requested_item shift.opened is exist - process it [12:29:14]req_shift_opened [12:29:14]FM_GetShiftState [12:29:14]SAM_PROTO_GetShiftState [12:29:14]wFMCommunicate request_size=4 [12:29:14]MH_SAM_APDU [12:29:14]CAPDU: 80 13 01 00 [12:29:14]Write to MH i2c: E2 08 00 E3 31 80 13 01 00 00 00 00 00 91 [12:29:14]Write i2c OK [12:29:14]MH_I2C_Read... [12:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:14]Read from MH i2c: E2 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 0E 00 [12:29:14]MH_I2C_Read... [12:29:14]Read from MH i2c: E2 0E 00 E3 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B5 [12:29:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:29:14]wFMCommunicate OK [12:29:14]SAM_PROTO_GetShiftState done [12:29:14]FM_GetShiftState done [12:29:14]req_shift_opened done [12:29:14]requested_item shift.open_date is exist - process it [12:29:14]req_shift_open_date [12:29:14]req_shift_open_date done [12:29:14]produce_requested_data done [12:29:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186534,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:29:14]process_action_free close_receipt [12:29:14]json_value_free [12:29:14]json_value_free done [12:29:14]process_json_proto returns [12:29:14]Send response to host [12:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186534,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:29:14]free response buf [12:29:14]execute_script done [12:29:14]execute_script returns [12:29:14]free content buf [12:29:14]Sock 9.Close socket [12:29:14]Sock 9.Thread stoped [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]OFD Sender: No OFD packet to send [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:01]accept exits with 8 [12:32:01]New connection [12:32:01]New thread 3067501924 created [12:32:01]Thread 3067358564 joined [12:32:01]Waiting for new connection... [12:32:01] Sock 8.Parse request [12:32:01]Sock 8.Check first char [12:32:01]Sock 8.First char is OK [12:32:01]request: POST /json_proto HTTP/1.0 [12:32:01]Method: POST [12:32:01]URL: /json_proto [12:32:01]Method is POST - this is cgi request [12:32:01]url: /json_proto [12:32:01]query_string will be loaded in cgi processing [12:32:01]execute_cgi json_proto POST (null) [12:32:01]execute_cgi path=json_proto method=POST [12:32:01]POST find Content-Length [12:32:01]Host: 172.17.46.131:8080 [12:32:01]Content-Length: 799 [12:32:01]Content-Type: application/json [12:32:01] [12:32:01]POST finish read [12:32:01]Found Content-Length = 799 [12:32:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:01]execute_script... [12:32:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:01]POST & json_proto [12:32:01]process_json_proto [12:32:01]json parsed OK: [12:32:01]protocol is kg_v1.0 [12:32:01]action value=close_receipt [12:32:01]process_action close_receipt [12:32:01]cmd_close_receipt [12:32:01]MH_GetDate [12:32:01]Write to MH i2c: F0 00 00 E4 31 04 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 09 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: F0 09 00 E4 31 00 46 2C B3 67 7E 41 4F 65 0C [12:32:01]GetLastDocTimeStamp 1739795354 [12:32:01]current date 1739795526 [12:32:01]FM_GetShiftState [12:32:01]SAM_PROTO_GetShiftState [12:32:01]wFMCommunicate request_size=4 [12:32:01]MH_SAM_APDU [12:32:01]CAPDU: 80 13 01 00 [12:32:01]Write to MH i2c: E2 08 00 E5 31 80 13 01 00 00 00 00 00 93 [12:32:01]Write i2c OK [12:32:01]MH_I2C_Read... [12:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:01]Read from MH i2c: E2 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 0E 00 [12:32:01]MH_I2C_Read... [12:32:01]Read from MH i2c: E2 0E 00 E5 31 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B7 [12:32:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:32:01]wFMCommunicate OK [12:32:01]SAM_PROTO_GetShiftState done [12:32:01]FM_GetShiftState done [12:32:01]opened in 1739752571 [12:32:01]opened+sec_in_day 1739838971 [12:32:01]quantity*price = 400026 [12:32:01]sum+1 = 400027 [12:32:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 122 17.02.2025 12:32 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186535 ФПД: 213281420348948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T123206&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186535&fm=213281420348948&tin=02508201610067®Number=0000000000091857&sum=400026 [12:32:02]StoreToDocumentArchive [12:32:02]shift 644 fd 186535 [12:32:02]save to /storage/0644/doc_00186535 [12:32:02]save last doc name /storage/0644/doc_00186535 to /storage/kkm_last_doc_name [12:32:02]save OK [12:32:02]Clear old archive folders... [12:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:32:02]tlvbuf is 02090BD0 [12:32:02]SAM_PROTO_ClearQueue [12:32:02]wFMCommunicate request_size=4 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 09 00 00 [12:32:02]Write to MH i2c: E2 08 00 F2 31 80 09 00 00 00 00 00 00 95 [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:02]Read from MH i2c: E2 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 F2 31 00 90 00 97 [12:32:02]RAPDU: 90 00 [12:32:02]wFMCommunicate OK [12:32:02]SAM_PROTO_ClearQueue done [12:32:02]KKMCreateOFDPacket [12:32:02]OFDProtocolAddRootSTLVToBuf [12:32:02]FM_MakeSignedData [12:32:02]FM_MakeSignedData [12:32:02]SAM_PROTO_SignData [12:32:02]wFMCommunicate request_size=4 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 0D 01 02 [12:32:02]Write to MH i2c: E2 08 00 F3 31 80 0D 01 02 00 00 00 00 9D [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:02]Read from MH i2c: E2 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 [12:32:02]MH_I2C_Read... [12:32:02]Read from MH i2c: E2 03 00 F3 31 00 90 00 98 [12:32:02]RAPDU: 90 00 [12:32:02]wFMCommunicate OK [12:32:02]wFMCommunicate request_size=255 [12:32:02]MH_SAM_APDU [12:32:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 46 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D8 02 00 35 04 06 00 C1 FA 73 4C [12:32:02]Write to MH i2c: E2 02 01 F4 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 46 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D8 02 00 35 04 06 00 C1 FA 73 4C 00 00 B6 [12:32:02]Write i2c OK [12:32:02]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 F4 31 00 90 00 99 [12:32:03]RAPDU: 90 00 [12:32:03]wFMCommunicate OK [12:32:03]wFMCommunicate request_size=7 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 0D 02 02 02 0E 14 [12:32:03]Write to MH i2c: E2 0A 00 F5 31 80 0D 02 02 02 00 0E 14 00 00 C6 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 03 00 F5 31 00 90 00 9A [12:32:03]RAPDU: 90 00 [12:32:03]wFMCommunicate OK [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 0D 03 02 [12:32:03]Write to MH i2c: E2 08 00 F6 31 80 0D 03 02 00 00 00 00 A2 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0B 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 0B 00 F6 31 00 5A 1D B8 7B 5A EE 91 14 90 00 3A [12:32:03]RAPDU: 5A 1D B8 7B 5A EE 91 14 90 00 [12:32:03]wFMCommunicate OK [12:32:03]SAM_PROTO_SignData done [12:32:03]FM_MakeSignedData done [12:32:03]CreateOFDProtocolMessage [12:32:03]wFMCommunicate request_size=4 [12:32:03]MH_SAM_APDU [12:32:03]CAPDU: 80 11 00 00 [12:32:03]Write to MH i2c: E2 08 00 F7 31 80 11 00 00 00 00 00 00 A2 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]OFD Sender: No OFD packet to send [12:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:03]Read from MH i2c: E2 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: E2 17 00 F7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F5 [12:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:32:03]wFMCommunicate OK [12:32:03]CreateOFDProtocolMessage done [12:32:03]OFDSenderStorePacket 186535 [12:32:03]StoreOFDPacket docnum=186535 [12:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 30 C2 04 01 84 E9 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 46 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D8 02 00 35 04 06 00 C1 FA 73 4C 0E 14 5A 1D B8 7B 5A EE 91 14 [12:32:03]CheckFolder [12:32:03]dirname=/storage/ofd_packets [12:32:03]CheckFolder done [12:32:03]ProducePacketName [12:32:03]name=ofd_packets/00186535 [12:32:03]NVStorageSaveData ofd_packets/00186535 [12:32:03]File name is /storage/ofd_packets/00186535 [12:32:03]Write 298 bytes [12:32:03]NVStorageSaveData done [12:32:03]OFDSenderStorePacket done [12:32:03]KKMCreateOFDPacket done [12:32:03]NVStorageSaveData kkm_last_timestamp [12:32:03]File name is /storage/kkm_last_timestamp [12:32:03]Write 4 bytes [12:32:03]NVStorageSaveData done [12:32:03]ExternCall_PrintAddStr [12:32:03]wPrintStart [12:32:03]Write to MH i2c: 01 00 00 F8 31 29 [12:32:03]Write i2c OK [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 [12:32:03]MH_I2C_Read... [12:32:03]Read from MH i2c: 01 07 00 F8 31 00 00 00 00 00 FF 0F 3E [12:32:03]RasterBufferAndPrint [12:32:03]line Счет N : (1)411669 [12:32:03]line ИНН: 02508201610067 [12:32:03]line Контрольно-Кассовый Чек [12:32:03]line ПРОДАЖА [12:32:03]line ТРК (МРК, ГНК) : 5 [12:32:03]line Товар: 2710194210 [12:32:03]line ДТ-К-5 [12:32:03]line 55.100 * 72.60 [12:32:03]line = 4000.26 [12:32:03]line НДС 12% НСП 1% [12:32:03]line > о реализуемом товаре [12:32:03]line ИТОГО: 4000.26 [12:32:03]line НСП 1% : 35.40 [12:32:03]line НДС 12% : 424.81 [12:32:03]line Наличными: 0.00 [12:32:03]line Безнал.: 4000.26 [12:32:03]line Место: АЗС № 92 "Партнер Нефть" [12:32:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:32:03]line СНО: Общий режим [12:32:03]line Чек 122 17.02.2025 12:32 [12:32:03]line Смена: 644 ФФД: 1.0 [12:32:03]line ЗНМ: 0300000118 [12:32:03]line РНМ: 0000000000091857 [12:32:03]line Версия ККМ: 001 [12:32:03]line Платежная система: O! деньги [12:32:03]line ФМ: 0000000000871826 [12:32:03]line ФД: 186535 [12:32:03]line ФПД: 213281420348948 [12:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T123206&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186535&fm=213281420348948&tin=02508201610067®Number=0000000000091857&sum=400026 [12:32:03]written 0, free lines is 4095 [12:32:03]OFD Sender: Processing packet 186535 [packets to send 49, broken 48] [12:32:03]ProducePacketName [12:32:03]name=ofd_packets/00186535 [12:32:03]OFD Sender: To server: pG, [12:32:03]CommunicateWithHost lk.salyk.kg:30040 [12:32:03]ConnectInit lk.salyk.kg [12:32:03]Connected sock=11 [12:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 30 C2 04 01 84 E9 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 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 46 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D8 02 00 35 04 06 00 C1 FA 73 4C 0E 14 5A 1D B8 7B 5A EE 91 14 [12:32:04]Write to MH i2c: 01 00 00 22 32 54 [12:32:04]Write i2c OK [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: 01 [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: 01 07 00 [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: 01 07 00 22 32 00 00 00 00 00 03 0D 6B [12:32:04]RasterBufferAndPrint [12:32:04]line [12:32:04]line [12:32:04]line [12:32:04]line [12:32:04]line [12:32:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AC A8 47 00 FD 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A7 D8 02 00 F4 03 04 00 A0 D2 B2 67 B6 04 01 00 00 FF 33 D2 7E 9A EA 15 60 [12:32:04]CommunicateWithHost err = 0 [12:32:04]CheckOFDResponse [12:32:04]1017 (14) - 77093643461234 [12:32:04]1041 (16) - 0000000000871826 [12:32:04]1040 (4) - 186535 [12:32:04]1012 (4) - 17.02.2025 06:09 [12:32:04]1206 (1) - 0 [12:32:04]OFD Sender: Remove packet 186535 [12:32:04]ProducePacketName [12:32:04]name=ofd_packets/00186535 [12:32:04]NVStorageDeleteData [12:32:04]written 0, free lines is 3343 [12:32:04]MH_Cut [12:32:04]Write to MH i2c: D1 01 00 29 32 01 2D [12:32:04]Write i2c OK [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: D1 [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: D1 01 00 [12:32:04]MH_I2C_Read... [12:32:04]Read from MH i2c: D1 01 00 29 32 00 2C [12:32:04]Write to MH i2c: 01 00 00 2A 32 5C [12:32:04]Write i2c OK [12:32:04]MH_I2C_Read... [12:32:04]OFD Sender: No OFD packet to send [12:32:04]*** Cut start [12:32:04]*** Partial cut [12:32:04]*** CUTSNS_PIN = 1 [12:32:04]*** CUTSNS_PIN = 0 [12:32:05]*** Brake cut motor [12:32:05]Read from MH i2c: 01 [12:32:05]MH_I2C_Read... [12:32:05]*** Stop cut motor [12:32:05]*** Cut end [12:32:05]Read from MH i2c: 01 07 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: 01 07 00 2A 32 00 00 00 00 00 FF 0F 71 [12:32:05]process_action close_receipt done [12:32:05]requested_data is exist [12:32:05]produce_requested_data [12:32:05]requested_item fm.sn is exist - process it [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 11 00 00 [12:32:05]Write to MH i2c: E2 08 00 2B 32 80 11 00 00 00 00 00 00 D7 [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 17 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 17 00 2B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2A [12:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:32:05]wFMCommunicate OK [12:32:05]requested_item fd.num is exist - process it [12:32:05]SAM_PROTO_GetFieldsCounters [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 13 00 00 [12:32:05]Write to MH i2c: E2 08 00 2C 32 80 13 00 00 00 00 00 00 DA [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 62 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 62 00 2C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [12:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A7 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:05]wFMCommunicate OK [12:32:05]SAM_PROTO_GetFieldsCounters done [12:32:05]requested_item shift.num is exist - process it [12:32:05]requested_item shift.opened is exist - process it [12:32:05]req_shift_opened [12:32:05]FM_GetShiftState [12:32:05]SAM_PROTO_GetShiftState [12:32:05]wFMCommunicate request_size=4 [12:32:05]MH_SAM_APDU [12:32:05]CAPDU: 80 13 01 00 [12:32:05]Write to MH i2c: E2 08 00 2D 32 80 13 01 00 00 00 00 00 DC [12:32:05]Write i2c OK [12:32:05]MH_I2C_Read... [12:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:05]Read from MH i2c: E2 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 [12:32:05]MH_I2C_Read... [12:32:05]Read from MH i2c: E2 0E 00 2D 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 00 [12:32:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:32:05]wFMCommunicate OK [12:32:05]SAM_PROTO_GetShiftState done [12:32:05]FM_GetShiftState done [12:32:05]req_shift_opened done [12:32:05]requested_item shift.open_date is exist - process it [12:32:05]req_shift_open_date [12:32:05]req_shift_open_date done [12:32:05]produce_requested_data done [12:32:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186535,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:32:05]process_action_free close_receipt [12:32:05]json_value_free [12:32:05]json_value_free done [12:32:05]process_json_proto returns [12:32:05]Send response to host [12:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186535,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:32:05]free response buf [12:32:05]execute_script done [12:32:05]execute_script returns [12:32:05]free content buf [12:32:05]Sock 8.Close socket [12:32:05]Sock 8.Thread stoped [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:05]accept exits with 9 [12:35:05]New connection [12:35:05]New thread 3067358564 created [12:35:05]Thread 3067501924 joined [12:35:05]Waiting for new connection... [12:35:05] Sock 9.Parse request [12:35:05]Sock 9.Check first char [12:35:05]Sock 9.First char is OK [12:35:05]request: POST /json_proto HTTP/1.0 [12:35:05]Method: POST [12:35:05]URL: /json_proto [12:35:05]Method is POST - this is cgi request [12:35:05]url: /json_proto [12:35:05]query_string will be loaded in cgi processing [12:35:05]execute_cgi json_proto POST (null) [12:35:05]execute_cgi path=json_proto method=POST [12:35:05]POST find Content-Length [12:35:05]Host: 172.17.46.131:8080 [12:35:05]Content-Length: 812 [12:35:05]Content-Type: application/json [12:35:05] [12:35:05]POST finish read [12:35:05]Found Content-Length = 812 [12:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4696067 4696068 4696106", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:05]execute_script... [12:35:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4696067 4696068 4696106", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:05]POST & json_proto [12:35:05]process_json_proto [12:35:05]json parsed OK: [12:35:05]protocol is kg_v1.0 [12:35:05]action value=close_receipt [12:35:05]process_action close_receipt [12:35:05]cmd_close_receipt [12:35:05]MH_GetDate [12:35:05]Write to MH i2c: F0 00 00 2E 32 4F [12:35:05]Write i2c OK [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 09 00 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: F0 09 00 2E 32 00 FE 2C B3 67 7E 41 4F 65 0F [12:35:05]GetLastDocTimeStamp 1739795526 [12:35:05]current date 1739795710 [12:35:05]FM_GetShiftState [12:35:05]SAM_PROTO_GetShiftState [12:35:05]wFMCommunicate request_size=4 [12:35:05]MH_SAM_APDU [12:35:05]CAPDU: 80 13 01 00 [12:35:05]Write to MH i2c: E2 08 00 2F 32 80 13 01 00 00 00 00 00 DE [12:35:05]Write i2c OK [12:35:05]MH_I2C_Read... [12:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:05]Read from MH i2c: E2 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: E2 0E 00 [12:35:05]MH_I2C_Read... [12:35:05]Read from MH i2c: E2 0E 00 2F 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 02 [12:35:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:35:05]wFMCommunicate OK [12:35:05]SAM_PROTO_GetShiftState done [12:35:05]FM_GetShiftState done [12:35:05]opened in 1739752571 [12:35:05]opened+sec_in_day 1739838971 [12:35:05]quantity*price = 0 [12:35:05]sum+1 = 1 [12:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 123 17.02.2025 12:35 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4696067 4696068 4696106 ФМ: 0000000000871826 ФД: 186536 ФПД: 76822748138800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T123510&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186536&fm=76822748138800&tin=02508201610067®Number=0000000000091857&sum=0 [12:35:06]StoreToDocumentArchive [12:35:06]shift 644 fd 186536 [12:35:06]save to /storage/0644/doc_00186536 [12:35:06]save last doc name /storage/0644/doc_00186536 to /storage/kkm_last_doc_name [12:35:06]save OK [12:35:06]Clear old archive folders... [12:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:35:06]tlvbuf is 01FCA270 [12:35:06]SAM_PROTO_ClearQueue [12:35:06]wFMCommunicate request_size=4 [12:35:06]MH_SAM_APDU [12:35:06]CAPDU: 80 09 00 00 [12:35:06]Write to MH i2c: E2 08 00 3C 32 80 09 00 00 00 00 00 00 E0 [12:35:06]Write i2c OK [12:35:06]MH_I2C_Read... [12:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:06]Read from MH i2c: E2 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 03 00 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 03 00 3C 32 00 90 00 E2 [12:35:06]RAPDU: 90 00 [12:35:06]wFMCommunicate OK [12:35:06]SAM_PROTO_ClearQueue done [12:35:06]KKMCreateOFDPacket [12:35:06]OFDProtocolAddRootSTLVToBuf [12:35:06]FM_MakeSignedData [12:35:06]FM_MakeSignedData [12:35:06]SAM_PROTO_SignData [12:35:06]wFMCommunicate request_size=4 [12:35:06]MH_SAM_APDU [12:35:06]CAPDU: 80 0D 01 02 [12:35:06]Write to MH i2c: E2 08 00 3D 32 80 0D 01 02 00 00 00 00 E8 [12:35:06]Write i2c OK [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 [12:35:06]MH_I2C_Read... [12:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:06]Read from MH i2c: E2 03 00 [12:35:06]MH_I2C_Read... [12:35:06]Read from MH i2c: E2 03 00 3D 32 00 90 00 E3 [12:35:06]RAPDU: 90 00 [12:35:06]wFMCommunicate OK [12:35:06]wFMCommunicate request_size=255 [12:35:06]MH_SAM_APDU [12:35:06]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 60 EA 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 7B 00 00 00 F4 03 04 00 FE 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D8 02 00 35 04 06 00 45 DE B0 9D [12:35:06]Write to MH i2c: E2 02 01 3E 32 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 60 EA 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 7B 00 00 00 F4 03 04 00 FE 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D8 02 00 35 04 06 00 45 DE B0 9D 00 00 CB [12:35:06]Write i2c OK [12:35:06]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 3E 32 00 90 00 E4 [12:35:07]RAPDU: 90 00 [12:35:07]wFMCommunicate OK [12:35:07]wFMCommunicate request_size=7 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 0D 02 02 02 0D 30 [12:35:07]Write to MH i2c: E2 0A 00 3F 32 80 0D 02 02 02 00 0D 30 00 00 2C [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 03 00 3F 32 00 90 00 E5 [12:35:07]RAPDU: 90 00 [12:35:07]wFMCommunicate OK [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 0D 03 02 [12:35:07]Write to MH i2c: E2 08 00 40 32 80 0D 03 02 00 00 00 00 ED [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0B 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 0B 00 40 32 00 D3 1A 99 7F 67 80 E6 A5 90 00 65 [12:35:07]RAPDU: D3 1A 99 7F 67 80 E6 A5 90 00 [12:35:07]wFMCommunicate OK [12:35:07]SAM_PROTO_SignData done [12:35:07]FM_MakeSignedData done [12:35:07]CreateOFDProtocolMessage [12:35:07]wFMCommunicate request_size=4 [12:35:07]MH_SAM_APDU [12:35:07]CAPDU: 80 11 00 00 [12:35:07]Write to MH i2c: E2 08 00 41 32 80 11 00 00 00 00 00 00 ED [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:07]Read from MH i2c: E2 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: E2 17 00 41 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 40 [12:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:35:07]wFMCommunicate OK [12:35:07]CreateOFDProtocolMessage done [12:35:07]OFDSenderStorePacket 186536 [12:35:07]StoreOFDPacket docnum=186536 [12:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 60 86 04 01 06 3C 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 60 EA 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 7B 00 00 00 F4 03 04 00 FE 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D8 02 00 35 04 06 00 45 DE B0 9D 0D 30 D3 1A 99 7F 67 80 E6 A5 [12:35:07]CheckFolder [12:35:07]dirname=/storage/ofd_packets [12:35:07]CheckFolder done [12:35:07]ProducePacketName [12:35:07]name=ofd_packets/00186536 [12:35:07]NVStorageSaveData ofd_packets/00186536 [12:35:07]File name is /storage/ofd_packets/00186536 [12:35:07]Write 298 bytes [12:35:07]NVStorageSaveData done [12:35:07]OFDSenderStorePacket done [12:35:07]KKMCreateOFDPacket done [12:35:07]NVStorageSaveData kkm_last_timestamp [12:35:07]File name is /storage/kkm_last_timestamp [12:35:07]Write 4 bytes [12:35:07]NVStorageSaveData done [12:35:07]ExternCall_PrintAddStr [12:35:07]wPrintStart [12:35:07]Write to MH i2c: 01 00 00 42 32 74 [12:35:07]Write i2c OK [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 07 00 [12:35:07]MH_I2C_Read... [12:35:07]Read from MH i2c: 01 07 00 42 32 00 00 00 00 00 FF 0F 89 [12:35:07]RasterBufferAndPrint [12:35:07]line Счет N : (1)411670 [12:35:07]line ИНН: 02508201610067 [12:35:07]line Контрольно-Кассовый Чек [12:35:07]line ПРОДАЖА [12:35:07]line ТРК (МРК, ГНК) : 6 [12:35:07]line Товар: 2710194210 [12:35:07]line ДТ-К-5 [12:35:07]line 60.000 * 0.00 [12:35:07]line = 0.00 [12:35:07]line НДС 12% НСП 1% [12:35:07]line > о реализуемом товаре [12:35:07]line ИТОГО: 0.00 [12:35:07]line НСП 1% : 0.00 [12:35:07]line НДС 12% : 0.00 [12:35:07]line Наличными: 0.00 [12:35:07]line Безнал.: 0.00 [12:35:07]line Место: АЗС № 92 "Партнер Нефть" [12:35:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:35:07]line СНО: Общий режим [12:35:07]line Чек 123 17.02.2025 12:35 [12:35:07]line Смена: 644 ФФД: 1.0 [12:35:07]line ЗНМ: 0300000118 [12:35:07]line РНМ: 0000000000091857 [12:35:07]line Версия ККМ: 001 [12:35:07]line Талоны: Топливные Талоны [12:35:07]line 4696067 4696068 4696106 [12:35:07]line ФМ: 0000000000871826 [12:35:07]line ФД: 186536 [12:35:07]line ФПД: 76822748138800 [12:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T123510&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186536&fm=76822748138800&tin=02508201610067®Number=0000000000091857&sum=0 [12:35:07]OFD Sender: Processing packet 186536 [packets to send 49, broken 48] [12:35:07]ProducePacketName [12:35:07]name=ofd_packets/00186536 [12:35:07]OFD Sender: To server: pG, [12:35:07]CommunicateWithHost lk.salyk.kg:30040 [12:35:07]ConnectInit lk.salyk.kg [12:35:07]written 0, free lines is 4095 [12:35:07]Connected sock=10 [12:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 60 86 04 01 06 3C 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 60 EA 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 7B 00 00 00 F4 03 04 00 FE 2C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D8 02 00 35 04 06 00 45 DE B0 9D 0D 30 D3 1A 99 7F 67 80 E6 A5 [12:35:08]Write to MH i2c: 01 00 00 6C 32 9E [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: 01 07 00 6C 32 00 00 00 00 00 11 0D C3 [12:35:08]RasterBufferAndPrint [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]line [12:35:08]written 0, free lines is 3351 [12:35:08]MH_Cut [12:35:08]Write to MH i2c: D1 01 00 73 32 01 77 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 01 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: D1 01 00 73 32 00 76 [12:35:08]Write to MH i2c: 01 00 00 74 32 A6 [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 95 A2 47 00 2D 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A8 D8 02 00 F4 03 04 00 58 D3 B2 67 B6 04 01 00 00 75 E1 8D D0 E8 F9 78 DC [12:35:08]CommunicateWithHost err = 0 [12:35:08]CheckOFDResponse [12:35:08]1017 (14) - 77093643461234 [12:35:08]1041 (16) - 0000000000871826 [12:35:08]1040 (4) - 186536 [12:35:08]1012 (4) - 17.02.2025 06:12 [12:35:08]1206 (1) - 0 [12:35:08]OFD Sender: Remove packet 186536 [12:35:08]ProducePacketName [12:35:08]name=ofd_packets/00186536 [12:35:08]NVStorageDeleteData [12:35:08]OFD Sender: No OFD packet to send [12:35:08]*** Cut start [12:35:08]*** Partial cut [12:35:08]*** CUTSNS_PIN = 1 [12:35:08]*** CUTSNS_PIN = 0 [12:35:09]*** Brake cut motor [12:35:09]Read from MH i2c: 01 [12:35:09]MH_I2C_Read... [12:35:09]*** Stop cut motor [12:35:09]*** Cut end [12:35:09]Read from MH i2c: 01 07 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: 01 07 00 74 32 00 00 00 00 00 FF 0F BB [12:35:09]process_action close_receipt done [12:35:09]requested_data is exist [12:35:09]produce_requested_data [12:35:09]requested_item fm.sn is exist - process it [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 11 00 00 [12:35:09]Write to MH i2c: E2 08 00 75 32 80 11 00 00 00 00 00 00 21 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 17 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 17 00 75 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [12:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:35:09]wFMCommunicate OK [12:35:09]requested_item fd.num is exist - process it [12:35:09]SAM_PROTO_GetFieldsCounters [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 13 00 00 [12:35:09]Write to MH i2c: E2 08 00 76 32 80 13 00 00 00 00 00 00 24 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 62 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 62 00 76 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:35:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A8 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_GetFieldsCounters done [12:35:09]requested_item shift.num is exist - process it [12:35:09]requested_item shift.opened is exist - process it [12:35:09]req_shift_opened [12:35:09]FM_GetShiftState [12:35:09]SAM_PROTO_GetShiftState [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 13 01 00 [12:35:09]Write to MH i2c: E2 08 00 77 32 80 13 01 00 00 00 00 00 26 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 0E 00 77 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4A [12:35:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_GetShiftState done [12:35:09]FM_GetShiftState done [12:35:09]req_shift_opened done [12:35:09]requested_item shift.open_date is exist - process it [12:35:09]req_shift_open_date [12:35:09]req_shift_open_date done [12:35:09]produce_requested_data done [12:35:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186536,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:35:09]process_action_free close_receipt [12:35:09]json_value_free [12:35:09]json_value_free done [12:35:09]process_json_proto returns [12:35:09]Send response to host [12:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186536,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:35:09]free response buf [12:35:09]execute_script done [12:35:09]execute_script returns [12:35:09]free content buf [12:35:09]Sock 9.Close socket [12:35:09]Sock 9.Thread stoped [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:42]accept exits with 8 [12:40:42]New connection [12:40:42]New thread 3067501924 created [12:40:42]Thread 3067358564 joined [12:40:42]Waiting for new connection... [12:40:42] Sock 8.Parse request [12:40:42]Sock 8.Check first char [12:40:42]Sock 8.First char is OK [12:40:42]request: POST /json_proto HTTP/1.0 [12:40:42]Method: POST [12:40:42]URL: /json_proto [12:40:42]Method is POST - this is cgi request [12:40:42]url: /json_proto [12:40:42]query_string will be loaded in cgi processing [12:40:42]execute_cgi json_proto POST (null) [12:40:42]execute_cgi path=json_proto method=POST [12:40:42]POST find Content-Length [12:40:42]Host: 172.17.46.131:8080 [12:40:42]Content-Length: 677 [12:40:42]Content-Type: application/json [12:40:42] [12:40:42]POST finish read [12:40:42]Found Content-Length = 677 [12:40:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:42]execute_script... [12:40:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:42]POST & json_proto [12:40:42]process_json_proto [12:40:42]json parsed OK: [12:40:42]protocol is kg_v1.0 [12:40:42]action value=close_receipt [12:40:42]process_action close_receipt [12:40:42]cmd_close_receipt [12:40:42]MH_GetDate [12:40:42]Write to MH i2c: F0 00 00 78 32 99 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 09 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: F0 09 00 78 32 00 4E 2E B3 67 7E 41 4F 65 AB [12:40:42]GetLastDocTimeStamp 1739795710 [12:40:42]current date 1739796046 [12:40:42]FM_GetShiftState [12:40:42]SAM_PROTO_GetShiftState [12:40:42]wFMCommunicate request_size=4 [12:40:42]MH_SAM_APDU [12:40:42]CAPDU: 80 13 01 00 [12:40:42]Write to MH i2c: E2 08 00 79 32 80 13 01 00 00 00 00 00 28 [12:40:42]Write i2c OK [12:40:42]MH_I2C_Read... [12:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:42]Read from MH i2c: E2 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: E2 0E 00 [12:40:42]MH_I2C_Read... [12:40:42]Read from MH i2c: E2 0E 00 79 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4C [12:40:42]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:40:42]wFMCommunicate OK [12:40:42]SAM_PROTO_GetShiftState done [12:40:42]FM_GetShiftState done [12:40:42]opened in 1739752571 [12:40:42]opened+sec_in_day 1739838971 [12:40:42]quantity*price = 30045 [12:40:42]sum+1 = 30047 [12:40:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 124 17.02.2025 12:40 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186537 ФПД: 130362432377095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124046&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186537&fm=130362432377095&tin=02508201610067®Number=0000000000091857&sum=30000 [12:40:43]StoreToDocumentArchive [12:40:43]shift 644 fd 186537 [12:40:43]save to /storage/0644/doc_00186537 [12:40:43]save last doc name /storage/0644/doc_00186537 to /storage/kkm_last_doc_name [12:40:43]save OK [12:40:43]Clear old archive folders... [12:40:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:43]tlvbuf is 020273D0 [12:40:43]SAM_PROTO_ClearQueue [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 09 00 00 [12:40:43]Write to MH i2c: E2 08 00 86 32 80 09 00 00 00 00 00 00 2A [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 86 32 00 90 00 2C [12:40:43]RAPDU: 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_ClearQueue done [12:40:43]KKMCreateOFDPacket [12:40:43]OFDProtocolAddRootSTLVToBuf [12:40:43]FM_MakeSignedData [12:40:43]FM_MakeSignedData [12:40:43]SAM_PROTO_SignData [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 0D 01 02 [12:40:43]Write to MH i2c: E2 08 00 87 32 80 0D 01 02 00 00 00 00 32 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 87 32 00 90 00 2D [12:40:43]RAPDU: 90 00 [12:40:43]wFMCommunicate OK [12:40:43]wFMCommunicate request_size=255 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4E 2E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D8 02 00 35 04 06 00 76 [12:40:43]Write to MH i2c: E2 02 01 88 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4E 2E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D8 02 00 35 04 06 00 76 00 00 01 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [12:40:43]RAPDU: 90 00 [12:40:43]wFMCommunicate OK [12:40:43]wFMCommunicate request_size=10 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 0D 02 02 05 90 5E 79 51 07 [12:40:43]Write to MH i2c: E2 0D 00 89 32 80 0D 02 02 05 00 90 5E 79 51 07 00 00 FE [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [12:40:43]RAPDU: 90 00 [12:40:43]wFMCommunicate OK [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 0D 03 02 [12:40:43]Write to MH i2c: E2 08 00 8A 32 80 0D 03 02 00 00 00 00 37 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0B 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0B 00 8A 32 00 25 A1 56 07 30 93 0F 69 90 00 96 [12:40:43]RAPDU: 25 A1 56 07 30 93 0F 69 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_SignData done [12:40:43]FM_MakeSignedData done [12:40:43]CreateOFDProtocolMessage [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 11 00 00 [12:40:43]Write to MH i2c: E2 08 00 8B 32 80 11 00 00 00 00 00 00 37 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 8B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8A [12:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:40:43]wFMCommunicate OK [12:40:43]CreateOFDProtocolMessage done [12:40:43]OFDSenderStorePacket 186537 [12:40:43]StoreOFDPacket docnum=186537 [12:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9C 0B 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4E 2E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D8 02 00 35 04 06 00 76 90 5E 79 51 07 25 A1 56 07 30 93 0F 69 [12:40:43]CheckFolder [12:40:43]dirname=/storage/ofd_packets [12:40:43]CheckFolder done [12:40:43]ProducePacketName [12:40:43]name=ofd_packets/00186537 [12:40:43]NVStorageSaveData ofd_packets/00186537 [12:40:43]File name is /storage/ofd_packets/00186537 [12:40:43]Write 301 bytes [12:40:43]NVStorageSaveData done [12:40:43]OFDSenderStorePacket done [12:40:43]KKMCreateOFDPacket done [12:40:43]NVStorageSaveData kkm_last_timestamp [12:40:43]File name is /storage/kkm_last_timestamp [12:40:43]Write 4 bytes [12:40:43]NVStorageSaveData done [12:40:43]ExternCall_PrintAddStr [12:40:43]wPrintStart [12:40:43]Write to MH i2c: 01 00 00 8C 32 BE [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 07 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [12:40:43]RasterBufferAndPrint [12:40:43]line Счет N : (1)411671 [12:40:43]line ИНН: 02508201610067 [12:40:43]line Контрольно-Кассовый Чек [12:40:43]line ПРОДАЖА [12:40:43]line ТРК (МРК, ГНК) : 32 [12:40:43]line Товар: 2710124130 [12:40:43]line Аи-92-К-2 [12:40:43]line 4.680 * 64.20 [12:40:43]line = 300.46 [12:40:43]line НДС 12% НСП 1% [12:40:43]line > о реализуемом товаре [12:40:43]line ОКРУГЛЕНИЕ: -0.46 [12:40:43]line ИТОГО: 300.00 [12:40:43]line Внесено: 300.00 [12:40:43]line СДАЧА: 0.00 [12:40:43]line НСП 1% : 2.66 [12:40:43]line НДС 12% : 31.91 [12:40:43]line Наличными: 300.00 [12:40:43]line Безнал.: 0.00 [12:40:43]line Место: АЗС № 92 "Партнер Нефть" [12:40:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:40:43]line СНО: Общий режим [12:40:43]line Чек 124 17.02.2025 12:40 [12:40:43]line Смена: 644 ФФД: 1.0 [12:40:43]line ЗНМ: 0300000118 [12:40:43]line РНМ: 0000000000091857 [12:40:43]line Версия ККМ: 001 [12:40:43]line ФМ: 0000000000871826 [12:40:43]line ФД: 186537 [12:40:43]line ФПД: 130362432377095 [12:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124046&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186537&fm=130362432377095&tin=02508201610067®Number=0000000000091857&sum=30000 [12:40:44]written 0, free lines is 4095 [12:40:44]OFD Sender: Processing packet 186537 [packets to send 49, broken 48] [12:40:44]ProducePacketName [12:40:44]name=ofd_packets/00186537 [12:40:44]OFD Sender: To server: pG, [12:40:44]CommunicateWithHost lk.salyk.kg:30040 [12:40:44]ConnectInit lk.salyk.kg [12:40:44]Connected sock=10 [12:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9C 0B 07 01 DD 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 4E 2E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D8 02 00 35 04 06 00 76 90 5E 79 51 07 25 A1 56 07 30 93 0F 69 [12:40:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CC F1 47 00 96 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 A9 D8 02 00 F4 03 04 00 A9 D4 B2 67 B6 04 01 00 00 E9 C9 C1 57 B7 95 E2 F2 [12:40:44]CommunicateWithHost err = 0 [12:40:44]CheckOFDResponse [12:40:44]1017 (14) - 77093643461234 [12:40:44]1041 (16) - 0000000000871826 [12:40:44]1040 (4) - 186537 [12:40:44]1012 (4) - 17.02.2025 06:18 [12:40:44]1206 (1) - 0 [12:40:44]OFD Sender: Remove packet 186537 [12:40:44]ProducePacketName [12:40:44]name=ofd_packets/00186537 [12:40:44]NVStorageDeleteData [12:40:44]Write to MH i2c: 01 00 00 B7 32 E9 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: 01 07 00 B7 32 00 00 00 00 00 EF 0C EB [12:40:44]RasterBufferAndPrint [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]line [12:40:44]written 0, free lines is 3317 [12:40:44]MH_Cut [12:40:44]Write to MH i2c: D1 01 00 BE 32 01 C2 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 01 00 [12:40:44]MH_I2C_Read... [12:40:44]Read from MH i2c: D1 01 00 BE 32 00 C1 [12:40:44]Write to MH i2c: 01 00 00 BF 32 F1 [12:40:44]Write i2c OK [12:40:44]MH_I2C_Read... [12:40:45]OFD Sender: No OFD packet to send [12:40:45]*** Cut start [12:40:45]*** Partial cut [12:40:45]*** CUTSNS_PIN = 1 [12:40:45]*** CUTSNS_PIN = 0 [12:40:45]*** Brake cut motor [12:40:46]Read from MH i2c: 01 [12:40:46]MH_I2C_Read... [12:40:46]*** Stop cut motor [12:40:46]*** Cut end [12:40:46]Read from MH i2c: 01 07 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: 01 07 00 BF 32 00 00 00 00 00 FF 0F 06 [12:40:46]process_action close_receipt done [12:40:46]requested_data is exist [12:40:46]produce_requested_data [12:40:46]requested_item fm.sn is exist - process it [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 11 00 00 [12:40:46]Write to MH i2c: E2 08 00 C0 32 80 11 00 00 00 00 00 00 6C [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 17 00 C0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BF [12:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:40:46]wFMCommunicate OK [12:40:46]requested_item fd.num is exist - process it [12:40:46]SAM_PROTO_GetFieldsCounters [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 13 00 00 [12:40:46]Write to MH i2c: E2 08 00 C1 32 80 13 00 00 00 00 00 00 6F [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 62 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 62 00 C1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [12:40:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 A9 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetFieldsCounters done [12:40:46]requested_item shift.num is exist - process it [12:40:46]requested_item shift.opened is exist - process it [12:40:46]req_shift_opened [12:40:46]FM_GetShiftState [12:40:46]SAM_PROTO_GetShiftState [12:40:46]wFMCommunicate request_size=4 [12:40:46]MH_SAM_APDU [12:40:46]CAPDU: 80 13 01 00 [12:40:46]Write to MH i2c: E2 08 00 C2 32 80 13 01 00 00 00 00 00 71 [12:40:46]Write i2c OK [12:40:46]MH_I2C_Read... [12:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:46]Read from MH i2c: E2 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 [12:40:46]MH_I2C_Read... [12:40:46]Read from MH i2c: E2 0E 00 C2 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 95 [12:40:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:40:46]wFMCommunicate OK [12:40:46]SAM_PROTO_GetShiftState done [12:40:46]FM_GetShiftState done [12:40:46]req_shift_opened done [12:40:46]requested_item shift.open_date is exist - process it [12:40:46]req_shift_open_date [12:40:46]req_shift_open_date done [12:40:46]produce_requested_data done [12:40:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186537,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:40:46]process_action_free close_receipt [12:40:46]json_value_free [12:40:46]json_value_free done [12:40:46]process_json_proto returns [12:40:46]Send response to host [12:40:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186537,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:40:46]free response buf [12:40:46]execute_script done [12:40:46]execute_script returns [12:40:46]free content buf [12:40:46]Sock 8.Close socket [12:40:46]Sock 8.Thread stoped [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:48]accept exits with 9 [12:49:48]New connection [12:49:48]New thread 3067358564 created [12:49:48]Thread 3067501924 joined [12:49:48]Waiting for new connection... [12:49:48] Sock 9.Parse request [12:49:48]Sock 9.Check first char [12:49:48]Sock 9.First char is OK [12:49:48]request: POST /json_proto HTTP/1.0 [12:49:48]Method: POST [12:49:48]URL: /json_proto [12:49:48]Method is POST - this is cgi request [12:49:48]url: /json_proto [12:49:48]query_string will be loaded in cgi processing [12:49:48]execute_cgi json_proto POST (null) [12:49:48]execute_cgi path=json_proto method=POST [12:49:48]POST find Content-Length [12:49:48]Host: 172.17.46.131:8080 [12:49:48]Content-Length: 678 [12:49:48]Content-Type: application/json [12:49:48] [12:49:48]POST finish read [12:49:48]Found Content-Length = 678 [12:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:48]execute_script... [12:49:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.130, "sum" : 650.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:48]POST & json_proto [12:49:48]process_json_proto [12:49:48]json parsed OK: [12:49:48]protocol is kg_v1.0 [12:49:48]action value=close_receipt [12:49:48]process_action close_receipt [12:49:48]cmd_close_receipt [12:49:48]MH_GetDate [12:49:48]Write to MH i2c: F0 00 00 C3 32 E4 [12:49:48]Write i2c OK [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: F0 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: F0 09 00 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: F0 09 00 C3 32 00 70 30 B3 67 7E 41 4F 65 1A [12:49:48]GetLastDocTimeStamp 1739796046 [12:49:48]current date 1739796592 [12:49:48]FM_GetShiftState [12:49:48]SAM_PROTO_GetShiftState [12:49:48]wFMCommunicate request_size=4 [12:49:48]MH_SAM_APDU [12:49:48]CAPDU: 80 13 01 00 [12:49:48]Write to MH i2c: E2 08 00 C4 32 80 13 01 00 00 00 00 00 73 [12:49:48]Write i2c OK [12:49:48]MH_I2C_Read... [12:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:48]Read from MH i2c: E2 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 0E 00 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 0E 00 C4 32 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 97 [12:49:48]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:49:48]wFMCommunicate OK [12:49:48]SAM_PROTO_GetShiftState done [12:49:48]FM_GetShiftState done [12:49:48]opened in 1739752571 [12:49:48]opened+sec_in_day 1739838971 [12:49:48]quantity*price = 65034 [12:49:48]sum+1 = 65036 [12:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.06 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 125 17.02.2025 12:49 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186538 ФПД: 200659668025501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186538&fm=200659668025501&tin=02508201610067®Number=0000000000091857&sum=65000 [12:49:49]StoreToDocumentArchive [12:49:49]shift 644 fd 186538 [12:49:49]save to /storage/0644/doc_00186538 [12:49:49]save last doc name /storage/0644/doc_00186538 to /storage/kkm_last_doc_name [12:49:49]save OK [12:49:49]Clear old archive folders... [12:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:49]tlvbuf is 020217A0 [12:49:49]SAM_PROTO_ClearQueue [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 09 00 00 [12:49:49]Write to MH i2c: E2 08 00 D1 32 80 09 00 00 00 00 00 00 75 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]SAM_PROTO_ClearQueue done [12:49:49]KKMCreateOFDPacket [12:49:49]OFDProtocolAddRootSTLVToBuf [12:49:49]FM_MakeSignedData [12:49:49]FM_MakeSignedData [12:49:49]SAM_PROTO_SignData [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 01 02 [12:49:49]Write to MH i2c: E2 08 00 D2 32 80 0D 01 02 00 00 00 00 7D [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=255 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 70 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D8 02 00 35 04 06 00 B6 [12:49:49]Write to MH i2c: E2 02 01 D3 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 70 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D8 02 00 35 04 06 00 B6 00 00 8E [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 D3 32 00 90 00 79 [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=10 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 02 02 05 7F B8 3B C0 9D [12:49:49]Write to MH i2c: E2 0D 00 D4 32 80 0D 02 02 05 00 7F B8 3B C0 9D 00 00 59 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 03 00 D4 32 00 90 00 7A [12:49:49]RAPDU: 90 00 [12:49:49]wFMCommunicate OK [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 0D 03 02 [12:49:49]Write to MH i2c: E2 08 00 D5 32 80 0D 03 02 00 00 00 00 82 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 0B 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 0B 00 D5 32 00 88 1B 28 0D E9 86 E5 9D 90 00 4C [12:49:49]RAPDU: 88 1B 28 0D E9 86 E5 9D 90 00 [12:49:49]wFMCommunicate OK [12:49:49]SAM_PROTO_SignData done [12:49:49]FM_MakeSignedData done [12:49:49]CreateOFDProtocolMessage [12:49:49]wFMCommunicate request_size=4 [12:49:49]MH_SAM_APDU [12:49:49]CAPDU: 80 11 00 00 [12:49:49]Write to MH i2c: E2 08 00 D6 32 80 11 00 00 00 00 00 00 82 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:49]Read from MH i2c: E2 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 17 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: E2 17 00 D6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D5 [12:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:49:49]wFMCommunicate OK [12:49:49]CreateOFDProtocolMessage done [12:49:49]OFDSenderStorePacket 186538 [12:49:49]StoreOFDPacket docnum=186538 [12:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 E7 07 01 A1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 70 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D8 02 00 35 04 06 00 B6 7F B8 3B C0 9D 88 1B 28 0D E9 86 E5 9D [12:49:49]CheckFolder [12:49:49]dirname=/storage/ofd_packets [12:49:49]CheckFolder done [12:49:49]ProducePacketName [12:49:49]name=ofd_packets/00186538 [12:49:49]NVStorageSaveData ofd_packets/00186538 [12:49:49]File name is /storage/ofd_packets/00186538 [12:49:49]Write 301 bytes [12:49:49]NVStorageSaveData done [12:49:49]OFDSenderStorePacket done [12:49:49]KKMCreateOFDPacket done [12:49:49]NVStorageSaveData kkm_last_timestamp [12:49:49]File name is /storage/kkm_last_timestamp [12:49:49]Write 4 bytes [12:49:49]NVStorageSaveData done [12:49:49]ExternCall_PrintAddStr [12:49:49]wPrintStart [12:49:49]Write to MH i2c: 01 00 00 D7 32 09 [12:49:49]Write i2c OK [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 07 00 [12:49:49]MH_I2C_Read... [12:49:49]Read from MH i2c: 01 07 00 D7 32 00 00 00 00 00 FF 0F 1E [12:49:49]RasterBufferAndPrint [12:49:49]line Счет N : (1)411672 [12:49:49]line ИНН: 02508201610067 [12:49:49]line Контрольно-Кассовый Чек [12:49:49]line ПРОДАЖА [12:49:49]line ТРК (МРК, ГНК) : 32 [12:49:49]line Товар: 2710124130 [12:49:49]line Аи-92-К-2 [12:49:49]line 10.130 * 64.20 [12:49:49]line = 650.35 [12:49:49]line НДС 12% НСП 1% [12:49:49]line > о реализуемом товаре [12:49:49]line ОКРУГЛЕНИЕ: -0.35 [12:49:49]line ИТОГО: 650.00 [12:49:49]line Внесено: 650.00 [12:49:49]line СДАЧА: 0.00 [12:49:49]line НСП 1% : 5.75 [12:49:49]line НДС 12% : 69.06 [12:49:49]line Наличными: 650.00 [12:49:49]line Безнал.: 0.00 [12:49:49]line Место: АЗС № 92 "Партнер Нефть" [12:49:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:49:49]line СНО: Общий режим [12:49:49]line Чек 125 17.02.2025 12:49 [12:49:49]line Смена: 644 ФФД: 1.0 [12:49:49]line ЗНМ: 0300000118 [12:49:49]line РНМ: 0000000000091857 [12:49:49]line Версия ККМ: 001 [12:49:49]line ФМ: 0000000000871826 [12:49:49]line ФД: 186538 [12:49:49]line ФПД: 200659668025501 [12:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124952&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186538&fm=200659668025501&tin=02508201610067®Number=0000000000091857&sum=65000 [12:49:50]OFD Sender: Processing packet 186538 [packets to send 49, broken 48] [12:49:50]ProducePacketName [12:49:50]name=ofd_packets/00186538 [12:49:50]OFD Sender: To server: pG, [12:49:50]CommunicateWithHost lk.salyk.kg:30040 [12:49:50]ConnectInit lk.salyk.kg [12:49:50]written 0, free lines is 4095 [12:49:50]Connected sock=11 [12:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 E7 07 01 A1 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 70 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D8 02 00 35 04 06 00 B6 7F B8 3B C0 9D 88 1B 28 0D E9 86 E5 9D [12:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 47 1C 47 00 D0 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AA D8 02 00 F4 03 04 00 CA D6 B2 67 B6 04 01 00 00 CD 4A D0 75 1B 6F 5E D9 [12:49:50]CommunicateWithHost err = 0 [12:49:50]CheckOFDResponse [12:49:50]1017 (14) - 77093643461234 [12:49:50]1041 (16) - 0000000000871826 [12:49:50]1040 (4) - 186538 [12:49:50]1012 (4) - 17.02.2025 06:27 [12:49:50]1206 (1) - 0 [12:49:50]OFD Sender: Remove packet 186538 [12:49:50]ProducePacketName [12:49:50]name=ofd_packets/00186538 [12:49:50]NVStorageDeleteData [12:49:50]Write to MH i2c: 01 00 00 02 33 35 [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 07 00 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: 01 07 00 02 33 00 00 00 00 00 FF 0C 47 [12:49:50]RasterBufferAndPrint [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]line [12:49:50]written 0, free lines is 3333 [12:49:50]MH_Cut [12:49:50]Write to MH i2c: D1 01 00 09 33 01 0E [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 01 00 [12:49:50]MH_I2C_Read... [12:49:50]Read from MH i2c: D1 01 00 09 33 00 0D [12:49:50]Write to MH i2c: 01 00 00 0A 33 3D [12:49:50]Write i2c OK [12:49:50]MH_I2C_Read... [12:49:51]OFD Sender: No OFD packet to send [12:49:51]*** Cut start [12:49:51]*** Partial cut [12:49:51]*** CUTSNS_PIN = 1 [12:49:51]*** CUTSNS_PIN = 0 [12:49:51]*** Brake cut motor [12:49:52]Read from MH i2c: 01 [12:49:52]MH_I2C_Read... [12:49:52]*** Stop cut motor [12:49:52]*** Cut end [12:49:52]Read from MH i2c: 01 07 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 FF 0F 52 [12:49:52]process_action close_receipt done [12:49:52]requested_data is exist [12:49:52]produce_requested_data [12:49:52]requested_item fm.sn is exist - process it [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 11 00 00 [12:49:52]Write to MH i2c: E2 08 00 0B 33 80 11 00 00 00 00 00 00 B8 [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 17 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 17 00 0B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0B [12:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:49:52]wFMCommunicate OK [12:49:52]requested_item fd.num is exist - process it [12:49:52]SAM_PROTO_GetFieldsCounters [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 13 00 00 [12:49:52]Write to MH i2c: E2 08 00 0C 33 80 13 00 00 00 00 00 00 BB [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 62 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 62 00 0C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AA D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_GetFieldsCounters done [12:49:52]requested_item shift.num is exist - process it [12:49:52]requested_item shift.opened is exist - process it [12:49:52]req_shift_opened [12:49:52]FM_GetShiftState [12:49:52]SAM_PROTO_GetShiftState [12:49:52]wFMCommunicate request_size=4 [12:49:52]MH_SAM_APDU [12:49:52]CAPDU: 80 13 01 00 [12:49:52]Write to MH i2c: E2 08 00 0D 33 80 13 01 00 00 00 00 00 BD [12:49:52]Write i2c OK [12:49:52]MH_I2C_Read... [12:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:52]Read from MH i2c: E2 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 [12:49:52]MH_I2C_Read... [12:49:52]Read from MH i2c: E2 0E 00 0D 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E1 [12:49:52]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:49:52]wFMCommunicate OK [12:49:52]SAM_PROTO_GetShiftState done [12:49:52]FM_GetShiftState done [12:49:52]req_shift_opened done [12:49:52]requested_item shift.open_date is exist - process it [12:49:52]req_shift_open_date [12:49:52]req_shift_open_date done [12:49:52]produce_requested_data done [12:49:52]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186538,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:49:52]process_action_free close_receipt [12:49:52]json_value_free [12:49:52]json_value_free done [12:49:52]process_json_proto returns [12:49:52]Send response to host [12:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186538,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:49:52]free response buf [12:49:52]execute_script done [12:49:52]execute_script returns [12:49:52]free content buf [12:49:52]Sock 9.Close socket [12:49:52]Sock 9.Thread stoped [12:49:54]accept exits with 8 [12:49:54]New connection [12:49:54]New thread 3067501924 created [12:49:54]Thread 3067358564 joined [12:49:54]Waiting for new connection... [12:49:54] Sock 8.Parse request [12:49:54]Sock 8.Check first char [12:49:54]Sock 8.First char is OK [12:49:54]request: POST /json_proto HTTP/1.0 [12:49:54]Method: POST [12:49:54]URL: /json_proto [12:49:54]Method is POST - this is cgi request [12:49:54]url: /json_proto [12:49:54]query_string will be loaded in cgi processing [12:49:54]execute_cgi json_proto POST (null) [12:49:54]execute_cgi path=json_proto method=POST [12:49:54]POST find Content-Length [12:49:54]Host: 172.17.46.131:8080 [12:49:54]Content-Length: 800 [12:49:54]Content-Type: application/json [12:49:54] [12:49:54]POST finish read [12:49:54]Found Content-Length = 800 [12:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:54]execute_script... [12:49:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:54]POST & json_proto [12:49:54]process_json_proto [12:49:54]json parsed OK: [12:49:54]protocol is kg_v1.0 [12:49:54]action value=close_receipt [12:49:54]process_action close_receipt [12:49:54]cmd_close_receipt [12:49:54]MH_GetDate [12:49:54]Write to MH i2c: F0 00 00 0E 33 30 [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 09 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: F0 09 00 0E 33 00 77 30 B3 67 7E 41 4F 65 6D [12:49:54]GetLastDocTimeStamp 1739796592 [12:49:54]current date 1739796599 [12:49:54]FM_GetShiftState [12:49:54]SAM_PROTO_GetShiftState [12:49:54]wFMCommunicate request_size=4 [12:49:54]MH_SAM_APDU [12:49:54]CAPDU: 80 13 01 00 [12:49:54]Write to MH i2c: E2 08 00 0F 33 80 13 01 00 00 00 00 00 BF [12:49:54]Write i2c OK [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 [12:49:54]MH_I2C_Read... [12:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:54]Read from MH i2c: E2 0E 00 [12:49:54]MH_I2C_Read... [12:49:54]Read from MH i2c: E2 0E 00 0F 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E3 [12:49:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:49:54]wFMCommunicate OK [12:49:54]SAM_PROTO_GetShiftState done [12:49:54]FM_GetShiftState done [12:49:54]opened in 1739752571 [12:49:54]opened+sec_in_day 1739838971 [12:49:54]quantity*price = 30045 [12:49:54]sum+1 = 30047 [12:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 126 17.02.2025 12:49 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186539 ФПД: 235522049333414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186539&fm=235522049333414&tin=02508201610067®Number=0000000000091857&sum=30046 [12:49:55]StoreToDocumentArchive [12:49:55]shift 644 fd 186539 [12:49:55]save to /storage/0644/doc_00186539 [12:49:55]save last doc name /storage/0644/doc_00186539 to /storage/kkm_last_doc_name [12:49:55]save OK [12:49:55]Clear old archive folders... [12:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:56]tlvbuf is 01FC3AB0 [12:49:56]SAM_PROTO_ClearQueue [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 09 00 00 [12:49:56]Write to MH i2c: E2 08 00 1C 33 80 09 00 00 00 00 00 00 C1 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 1C 33 00 90 00 C3 [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_ClearQueue done [12:49:56]KKMCreateOFDPacket [12:49:56]OFDProtocolAddRootSTLVToBuf [12:49:56]FM_MakeSignedData [12:49:56]FM_MakeSignedData [12:49:56]SAM_PROTO_SignData [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 01 02 [12:49:56]Write to MH i2c: E2 08 00 1D 33 80 0D 01 02 00 00 00 00 C9 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 1D 33 00 90 00 C4 [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=255 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 77 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D8 02 00 35 04 06 00 D6 [12:49:56]Write to MH i2c: E2 02 01 1E 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 77 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D8 02 00 35 04 06 00 D6 00 00 83 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]OFD Sender: No OFD packet to send [12:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=10 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 02 02 05 34 C0 16 58 A6 [12:49:56]Write to MH i2c: E2 0D 00 1F 33 80 0D 02 02 05 00 34 C0 16 58 A6 00 00 DE [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [12:49:56]RAPDU: 90 00 [12:49:56]wFMCommunicate OK [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 0D 03 02 [12:49:56]Write to MH i2c: E2 08 00 20 33 80 0D 03 02 00 00 00 00 CE [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0B 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 0B 00 20 33 00 BC 6D E5 E3 DC D5 2A 97 90 00 32 [12:49:56]RAPDU: BC 6D E5 E3 DC D5 2A 97 90 00 [12:49:56]wFMCommunicate OK [12:49:56]SAM_PROTO_SignData done [12:49:56]FM_MakeSignedData done [12:49:56]CreateOFDProtocolMessage [12:49:56]wFMCommunicate request_size=4 [12:49:56]MH_SAM_APDU [12:49:56]CAPDU: 80 11 00 00 [12:49:56]Write to MH i2c: E2 08 00 21 33 80 11 00 00 00 00 00 00 CE [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:56]Read from MH i2c: E2 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: E2 17 00 21 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 21 [12:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:49:56]wFMCommunicate OK [12:49:56]CreateOFDProtocolMessage done [12:49:56]OFDSenderStorePacket 186539 [12:49:56]StoreOFDPacket docnum=186539 [12:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F 59 07 01 4B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 77 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D8 02 00 35 04 06 00 D6 34 C0 16 58 A6 BC 6D E5 E3 DC D5 2A 97 [12:49:56]CheckFolder [12:49:56]dirname=/storage/ofd_packets [12:49:56]CheckFolder done [12:49:56]ProducePacketName [12:49:56]name=ofd_packets/00186539 [12:49:56]NVStorageSaveData ofd_packets/00186539 [12:49:56]File name is /storage/ofd_packets/00186539 [12:49:56]Write 301 bytes [12:49:56]NVStorageSaveData done [12:49:56]OFDSenderStorePacket done [12:49:56]KKMCreateOFDPacket done [12:49:56]NVStorageSaveData kkm_last_timestamp [12:49:56]File name is /storage/kkm_last_timestamp [12:49:56]Write 4 bytes [12:49:56]NVStorageSaveData done [12:49:56]ExternCall_PrintAddStr [12:49:56]wPrintStart [12:49:56]Write to MH i2c: 01 00 00 22 33 55 [12:49:56]Write i2c OK [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 [12:49:56]MH_I2C_Read... [12:49:56]Read from MH i2c: 01 07 00 22 33 00 00 00 00 00 FF 0F 6A [12:49:56]RasterBufferAndPrint [12:49:56]line Счет N : (1)411673 [12:49:56]line ИНН: 02508201610067 [12:49:56]line Контрольно-Кассовый Чек [12:49:56]line ПРОДАЖА [12:49:56]line ТРК (МРК, ГНК) : 42 [12:49:56]line Товар: 2710124130 [12:49:56]line Аи-92-К-2 [12:49:56]line 4.680 * 64.20 [12:49:56]line = 300.46 [12:49:56]line НДС 12% НСП 1% [12:49:56]line > о реализуемом товаре [12:49:56]line ИТОГО: 300.46 [12:49:56]line НСП 1% : 2.66 [12:49:56]line НДС 12% : 31.91 [12:49:56]line Наличными: 0.00 [12:49:56]line Безнал.: 300.46 [12:49:56]line Место: АЗС № 92 "Партнер Нефть" [12:49:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:49:56]line СНО: Общий режим [12:49:56]line Чек 126 17.02.2025 12:49 [12:49:56]line Смена: 644 ФФД: 1.0 [12:49:56]line ЗНМ: 0300000118 [12:49:56]line РНМ: 0000000000091857 [12:49:56]line Версия ККМ: 001 [12:49:56]line Платежная система: O! деньги [12:49:56]line ФМ: 0000000000871826 [12:49:56]line ФД: 186539 [12:49:56]line ФПД: 235522049333414 [12:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T124959&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186539&fm=235522049333414&tin=02508201610067®Number=0000000000091857&sum=30046 [12:49:56]OFD Sender: Processing packet 186539 [packets to send 49, broken 48] [12:49:56]ProducePacketName [12:49:56]name=ofd_packets/00186539 [12:49:56]OFD Sender: To server: pG, [12:49:56]CommunicateWithHost lk.salyk.kg:30040 [12:49:56]ConnectInit lk.salyk.kg [12:49:56]written 0, free lines is 4095 [12:49:56]Connected sock=10 [12:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F 59 07 01 4B 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 77 30 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D8 02 00 35 04 06 00 D6 34 C0 16 58 A6 BC 6D E5 E3 DC D5 2A 97 [12:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4F D4 47 00 09 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AB D8 02 00 F4 03 04 00 D1 D6 B2 67 B6 04 01 00 00 08 72 0C B5 03 C2 5A 21 [12:49:56]CommunicateWithHost err = 0 [12:49:56]CheckOFDResponse [12:49:56]1017 (14) - 77093643461234 [12:49:56]1041 (16) - 0000000000871826 [12:49:56]1040 (4) - 186539 [12:49:56]1012 (4) - 17.02.2025 06:27 [12:49:56]1206 (1) - 0 [12:49:56]OFD Sender: Remove packet 186539 [12:49:56]ProducePacketName [12:49:56]name=ofd_packets/00186539 [12:49:56]NVStorageDeleteData [12:49:57]Write to MH i2c: 01 00 00 4C 33 7F [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 19 0D AC [12:49:57]RasterBufferAndPrint [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]line [12:49:57]written 0, free lines is 3365 [12:49:57]MH_Cut [12:49:57]Write to MH i2c: D1 01 00 53 33 01 58 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 01 00 [12:49:57]MH_I2C_Read... [12:49:57]Read from MH i2c: D1 01 00 53 33 00 57 [12:49:57]Write to MH i2c: 01 00 00 54 33 87 [12:49:57]Write i2c OK [12:49:57]MH_I2C_Read... [12:49:57]OFD Sender: No OFD packet to send [12:49:57]*** Cut start [12:49:57]*** Partial cut [12:49:57]*** CUTSNS_PIN = 1 [12:49:57]*** CUTSNS_PIN = 0 [12:49:58]*** Brake cut motor [12:49:58]Read from MH i2c: 01 [12:49:58]MH_I2C_Read... [12:49:58]*** Stop cut motor [12:49:58]*** Cut end [12:49:58]Read from MH i2c: 01 07 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 FF 0F 9C [12:49:58]process_action close_receipt done [12:49:58]requested_data is exist [12:49:58]produce_requested_data [12:49:58]requested_item fm.sn is exist - process it [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 11 00 00 [12:49:58]Write to MH i2c: E2 08 00 55 33 80 11 00 00 00 00 00 00 02 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 17 00 55 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 55 [12:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:49:58]wFMCommunicate OK [12:49:58]requested_item fd.num is exist - process it [12:49:58]SAM_PROTO_GetFieldsCounters [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 13 00 00 [12:49:58]Write to MH i2c: E2 08 00 56 33 80 13 00 00 00 00 00 00 05 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 62 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 62 00 56 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [12:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AB D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_GetFieldsCounters done [12:49:58]requested_item shift.num is exist - process it [12:49:58]requested_item shift.opened is exist - process it [12:49:58]req_shift_opened [12:49:58]FM_GetShiftState [12:49:58]SAM_PROTO_GetShiftState [12:49:58]wFMCommunicate request_size=4 [12:49:58]MH_SAM_APDU [12:49:58]CAPDU: 80 13 01 00 [12:49:58]Write to MH i2c: E2 08 00 57 33 80 13 01 00 00 00 00 00 07 [12:49:58]Write i2c OK [12:49:58]MH_I2C_Read... [12:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:58]Read from MH i2c: E2 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 [12:49:58]MH_I2C_Read... [12:49:58]Read from MH i2c: E2 0E 00 57 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2B [12:49:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:49:58]wFMCommunicate OK [12:49:58]SAM_PROTO_GetShiftState done [12:49:58]FM_GetShiftState done [12:49:58]req_shift_opened done [12:49:58]requested_item shift.open_date is exist - process it [12:49:58]req_shift_open_date [12:49:58]req_shift_open_date done [12:49:58]produce_requested_data done [12:49:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186539,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:49:58]process_action_free close_receipt [12:49:58]json_value_free [12:49:58]json_value_free done [12:49:58]process_json_proto returns [12:49:58]Send response to host [12:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186539,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:49:58]free response buf [12:49:58]execute_script done [12:49:58]execute_script returns [12:49:58]free content buf [12:49:58]Sock 8.Close socket [12:49:58]Sock 8.Thread stoped [12:50:02]OFD Sender: No OFD packet to send [12:50:07]OFD Sender: No OFD packet to send [12:50:12]OFD Sender: No OFD packet to send [12:50:17]OFD Sender: No OFD packet to send [12:50:22]OFD Sender: No OFD packet to send [12:50:27]OFD Sender: No OFD packet to send [12:50:32]OFD Sender: No OFD packet to send [12:50:37]OFD Sender: No OFD packet to send [12:50:42]OFD Sender: No OFD packet to send [12:50:47]OFD Sender: No OFD packet to send [12:50:52]OFD Sender: No OFD packet to send [12:50:57]OFD Sender: No OFD packet to send [12:51:02]OFD Sender: No OFD packet to send [12:51:07]OFD Sender: No OFD packet to send [12:51:12]OFD Sender: No OFD packet to send [12:51:17]OFD Sender: No OFD packet to send [12:51:22]OFD Sender: No OFD packet to send [12:51:27]OFD Sender: No OFD packet to send [12:51:32]OFD Sender: No OFD packet to send [12:51:37]OFD Sender: No OFD packet to send [12:51:42]OFD Sender: No OFD packet to send [12:51:47]OFD Sender: No OFD packet to send [12:51:52]OFD Sender: No OFD packet to send [12:51:57]OFD Sender: No OFD packet to send [12:52:02]OFD Sender: No OFD packet to send [12:52:07]OFD Sender: No OFD packet to send [12:52:12]OFD Sender: No OFD packet to send [12:52:17]OFD Sender: No OFD packet to send [12:52:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]accept exits with 9 [12:55:47]New connection [12:55:47]New thread 3067358564 created [12:55:47]Thread 3067501924 joined [12:55:47]Waiting for new connection... [12:55:47] Sock 9.Parse request [12:55:47]Sock 9.Check first char [12:55:47]Sock 9.First char is OK [12:55:47]request: POST /json_proto HTTP/1.0 [12:55:47]Method: POST [12:55:47]URL: /json_proto [12:55:47]Method is POST - this is cgi request [12:55:47]url: /json_proto [12:55:47]query_string will be loaded in cgi processing [12:55:47]execute_cgi json_proto POST (null) [12:55:47]execute_cgi path=json_proto method=POST [12:55:47]POST find Content-Length [12:55:47]Host: 172.17.46.131:8080 [12:55:47]Content-Length: 678 [12:55:47]Content-Type: application/json [12:55:47] [12:55:47]POST finish read [12:55:47]Found Content-Length = 678 [12:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:47]execute_script... [12:55:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:47]POST & json_proto [12:55:47]process_json_proto [12:55:47]json parsed OK: [12:55:47]protocol is kg_v1.0 [12:55:47]action value=close_receipt [12:55:47]process_action close_receipt [12:55:47]cmd_close_receipt [12:55:47]MH_GetDate [12:55:47]Write to MH i2c: F0 00 00 58 33 7A [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: F0 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: F0 09 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: F0 09 00 58 33 00 D8 31 B3 67 7E 41 4F 65 19 [12:55:47]GetLastDocTimeStamp 1739796599 [12:55:47]current date 1739796952 [12:55:47]FM_GetShiftState [12:55:47]SAM_PROTO_GetShiftState [12:55:47]wFMCommunicate request_size=4 [12:55:47]MH_SAM_APDU [12:55:47]CAPDU: 80 13 01 00 [12:55:47]Write to MH i2c: E2 08 00 59 33 80 13 01 00 00 00 00 00 09 [12:55:47]Write i2c OK [12:55:47]MH_I2C_Read... [12:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:47]Read from MH i2c: E2 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 0E 00 [12:55:47]MH_I2C_Read... [12:55:47]Read from MH i2c: E2 0E 00 59 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2D [12:55:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:55:47]wFMCommunicate OK [12:55:47]SAM_PROTO_GetShiftState done [12:55:47]FM_GetShiftState done [12:55:47]opened in 1739752571 [12:55:47]opened+sec_in_day 1739838971 [12:55:47]quantity*price = 70042 [12:55:47]sum+1 = 70043 [12:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 127 17.02.2025 12:55 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186540 ФПД: 265658260218824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T125552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186540&fm=265658260218824&tin=02508201610067®Number=0000000000091857&sum=70000 [12:55:48]StoreToDocumentArchive [12:55:48]shift 644 fd 186540 [12:55:48]save to /storage/0644/doc_00186540 [12:55:48]save last doc name /storage/0644/doc_00186540 to /storage/kkm_last_doc_name [12:55:48]save OK [12:55:48]Clear old archive folders... [12:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:48]tlvbuf is 01FCA710 [12:55:48]SAM_PROTO_ClearQueue [12:55:48]wFMCommunicate request_size=4 [12:55:48]MH_SAM_APDU [12:55:48]CAPDU: 80 09 00 00 [12:55:48]Write to MH i2c: E2 08 00 66 33 80 09 00 00 00 00 00 00 0B [12:55:48]Write i2c OK [12:55:48]MH_I2C_Read... [12:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:48]Read from MH i2c: E2 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 66 33 00 90 00 0D [12:55:48]RAPDU: 90 00 [12:55:48]wFMCommunicate OK [12:55:48]SAM_PROTO_ClearQueue done [12:55:48]KKMCreateOFDPacket [12:55:48]OFDProtocolAddRootSTLVToBuf [12:55:48]FM_MakeSignedData [12:55:48]FM_MakeSignedData [12:55:48]SAM_PROTO_SignData [12:55:48]wFMCommunicate request_size=4 [12:55:48]MH_SAM_APDU [12:55:48]CAPDU: 80 0D 01 02 [12:55:48]Write to MH i2c: E2 08 00 67 33 80 0D 01 02 00 00 00 00 13 [12:55:48]Write i2c OK [12:55:48]MH_I2C_Read... [12:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:48]Read from MH i2c: E2 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [12:55:48]RAPDU: 90 00 [12:55:48]wFMCommunicate OK [12:55:48]wFMCommunicate request_size=255 [12:55:48]MH_SAM_APDU [12:55:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D8 31 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D8 02 00 35 04 06 00 F1 [12:55:48]Write to MH i2c: E2 02 01 68 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D8 31 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D8 02 00 35 04 06 00 F1 00 00 FC [12:55:48]Write i2c OK [12:55:48]MH_I2C_Read... [12:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:48]Read from MH i2c: E2 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 [12:55:48]MH_I2C_Read... [12:55:48]Read from MH i2c: E2 03 00 68 33 00 90 00 0F [12:55:48]RAPDU: 90 00 [12:55:48]wFMCommunicate OK [12:55:48]wFMCommunicate request_size=10 [12:55:48]MH_SAM_APDU [12:55:48]CAPDU: 80 0D 02 02 05 9D 62 3B 63 C8 [12:55:48]Write to MH i2c: E2 0D 00 69 33 80 0D 02 02 05 00 9D 62 3B 63 C8 00 00 85 [12:55:48]Write i2c OK [12:55:48]MH_I2C_Read... [12:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:49]Read from MH i2c: E2 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 03 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 03 00 69 33 00 90 00 10 [12:55:49]RAPDU: 90 00 [12:55:49]wFMCommunicate OK [12:55:49]wFMCommunicate request_size=4 [12:55:49]MH_SAM_APDU [12:55:49]CAPDU: 80 0D 03 02 [12:55:49]Write to MH i2c: E2 08 00 6A 33 80 0D 03 02 00 00 00 00 18 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:49]Read from MH i2c: E2 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0B 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 0B 00 6A 33 00 6B F7 5E 04 F2 74 19 1A 90 00 76 [12:55:49]RAPDU: 6B F7 5E 04 F2 74 19 1A 90 00 [12:55:49]wFMCommunicate OK [12:55:49]SAM_PROTO_SignData done [12:55:49]FM_MakeSignedData done [12:55:49]CreateOFDProtocolMessage [12:55:49]wFMCommunicate request_size=4 [12:55:49]MH_SAM_APDU [12:55:49]CAPDU: 80 11 00 00 [12:55:49]Write to MH i2c: E2 08 00 6B 33 80 11 00 00 00 00 00 00 18 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:49]Read from MH i2c: E2 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 17 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: E2 17 00 6B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6B [12:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:55:49]wFMCommunicate OK [12:55:49]CreateOFDProtocolMessage done [12:55:49]OFDSenderStorePacket 186540 [12:55:49]StoreOFDPacket docnum=186540 [12:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 09 07 01 FC E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D8 31 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D8 02 00 35 04 06 00 F1 9D 62 3B 63 C8 6B F7 5E 04 F2 74 19 1A [12:55:49]CheckFolder [12:55:49]dirname=/storage/ofd_packets [12:55:49]CheckFolder done [12:55:49]ProducePacketName [12:55:49]name=ofd_packets/00186540 [12:55:49]NVStorageSaveData ofd_packets/00186540 [12:55:49]File name is /storage/ofd_packets/00186540 [12:55:49]Write 301 bytes [12:55:49]NVStorageSaveData done [12:55:49]OFDSenderStorePacket done [12:55:49]KKMCreateOFDPacket done [12:55:49]NVStorageSaveData kkm_last_timestamp [12:55:49]File name is /storage/kkm_last_timestamp [12:55:49]Write 4 bytes [12:55:49]NVStorageSaveData done [12:55:49]ExternCall_PrintAddStr [12:55:49]wPrintStart [12:55:49]Write to MH i2c: 01 00 00 6C 33 9F [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 6C 33 00 00 00 00 00 FF 0F B4 [12:55:49]RasterBufferAndPrint [12:55:49]line Счет N : (1)411674 [12:55:49]line ИНН: 02508201610067 [12:55:49]line Контрольно-Кассовый Чек [12:55:49]line ПРОДАЖА [12:55:49]line ТРК (МРК, ГНК) : 12 [12:55:49]line Товар: 2710124130 [12:55:49]line Аи-92-К-2 [12:55:49]line 10.910 * 64.20 [12:55:49]line = 700.42 [12:55:49]line НДС 12% НСП 1% [12:55:49]line > о реализуемом товаре [12:55:49]line ОКРУГЛЕНИЕ: -0.42 [12:55:49]line ИТОГО: 700.00 [12:55:49]line Внесено: 700.00 [12:55:49]line СДАЧА: 0.00 [12:55:49]line НСП 1% : 6.20 [12:55:49]line НДС 12% : 74.38 [12:55:49]line Наличными: 700.00 [12:55:49]line Безнал.: 0.00 [12:55:49]line Место: АЗС № 92 "Партнер Нефть" [12:55:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [12:55:49]line СНО: Общий режим [12:55:49]line Чек 127 17.02.2025 12:55 [12:55:49]line Смена: 644 ФФД: 1.0 [12:55:49]line ЗНМ: 0300000118 [12:55:49]line РНМ: 0000000000091857 [12:55:49]line Версия ККМ: 001 [12:55:49]line ФМ: 0000000000871826 [12:55:49]line ФД: 186540 [12:55:49]line ФПД: 265658260218824 [12:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T125552&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186540&fm=265658260218824&tin=02508201610067®Number=0000000000091857&sum=70000 [12:55:49]OFD Sender: Processing packet 186540 [packets to send 49, broken 48] [12:55:49]ProducePacketName [12:55:49]name=ofd_packets/00186540 [12:55:49]OFD Sender: To server: pG, [12:55:49]CommunicateWithHost lk.salyk.kg:30040 [12:55:49]ConnectInit lk.salyk.kg [12:55:49]written 0, free lines is 4095 [12:55:49]Connected sock=10 [12:55:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 09 07 01 FC E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 D8 31 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D8 02 00 35 04 06 00 F1 9D 62 3B 63 C8 6B F7 5E 04 F2 74 19 1A [12:55:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 67 17 47 00 D9 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AC D8 02 00 F4 03 04 00 32 D8 B2 67 B6 04 01 00 00 BD 44 1B 56 D9 3A 84 E5 [12:55:49]CommunicateWithHost err = 0 [12:55:49]CheckOFDResponse [12:55:49]1017 (14) - 77093643461234 [12:55:49]1041 (16) - 0000000000871826 [12:55:49]1040 (4) - 186540 [12:55:49]1012 (4) - 17.02.2025 06:33 [12:55:49]1206 (1) - 0 [12:55:49]OFD Sender: Remove packet 186540 [12:55:49]ProducePacketName [12:55:49]name=ofd_packets/00186540 [12:55:49]NVStorageDeleteData [12:55:49]Write to MH i2c: 01 00 00 97 33 CA [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 97 33 00 00 00 00 00 EC 0C C9 [12:55:49]RasterBufferAndPrint [12:55:49]line [12:55:49]line [12:55:49]line [12:55:49]line [12:55:49]line [12:55:49]written 0, free lines is 3314 [12:55:49]MH_Cut [12:55:49]Write to MH i2c: D1 01 00 9E 33 01 A3 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: D1 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: D1 01 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: D1 01 00 9E 33 00 A2 [12:55:49]Write to MH i2c: 01 00 00 9F 33 D2 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:50]OFD Sender: No OFD packet to send [12:55:50]*** Cut start [12:55:50]*** Partial cut [12:55:50]*** CUTSNS_PIN = 1 [12:55:50]*** CUTSNS_PIN = 0 [12:55:50]*** Brake cut motor [12:55:51]Read from MH i2c: 01 [12:55:51]MH_I2C_Read... [12:55:51]*** Stop cut motor [12:55:51]*** Cut end [12:55:51]Read from MH i2c: 01 07 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 FF 0F E7 [12:55:51]process_action close_receipt done [12:55:51]requested_data is exist [12:55:51]produce_requested_data [12:55:51]requested_item fm.sn is exist - process it [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 11 00 00 [12:55:51]Write to MH i2c: E2 08 00 A0 33 80 11 00 00 00 00 00 00 4D [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 17 00 A0 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A0 [12:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [12:55:51]wFMCommunicate OK [12:55:51]requested_item fd.num is exist - process it [12:55:51]SAM_PROTO_GetFieldsCounters [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 13 00 00 [12:55:51]Write to MH i2c: E2 08 00 A1 33 80 13 00 00 00 00 00 00 50 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 62 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 62 00 A1 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AC D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:51]wFMCommunicate OK [12:55:51]SAM_PROTO_GetFieldsCounters done [12:55:51]requested_item shift.num is exist - process it [12:55:51]requested_item shift.opened is exist - process it [12:55:51]req_shift_opened [12:55:51]FM_GetShiftState [12:55:51]SAM_PROTO_GetShiftState [12:55:51]wFMCommunicate request_size=4 [12:55:51]MH_SAM_APDU [12:55:51]CAPDU: 80 13 01 00 [12:55:51]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [12:55:51]Write i2c OK [12:55:51]MH_I2C_Read... [12:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:51]Read from MH i2c: E2 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0E 00 [12:55:51]MH_I2C_Read... [12:55:51]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 76 [12:55:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [12:55:51]wFMCommunicate OK [12:55:51]SAM_PROTO_GetShiftState done [12:55:51]FM_GetShiftState done [12:55:51]req_shift_opened done [12:55:51]requested_item shift.open_date is exist - process it [12:55:51]req_shift_open_date [12:55:51]req_shift_open_date done [12:55:51]produce_requested_data done [12:55:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186540,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [12:55:51]process_action_free close_receipt [12:55:51]json_value_free [12:55:51]json_value_free done [12:55:51]process_json_proto returns [12:55:51]Send response to host [12:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186540,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [12:55:51]free response buf [12:55:51]execute_script done [12:55:51]execute_script returns [12:55:51]free content buf [12:55:51]Sock 9.Close socket [12:55:51]Sock 9.Thread stoped [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:05]accept exits with 8 [13:00:05]New connection [13:00:05]New thread 3067501924 created [13:00:05]Thread 3067358564 joined [13:00:05]Waiting for new connection... [13:00:05] Sock 8.Parse request [13:00:05]Sock 8.Check first char [13:00:05]Sock 8.First char is OK [13:00:05]request: POST /json_proto HTTP/1.0 [13:00:05]Method: POST [13:00:05]URL: /json_proto [13:00:05]Method is POST - this is cgi request [13:00:05]url: /json_proto [13:00:05]query_string will be loaded in cgi processing [13:00:05]execute_cgi json_proto POST (null) [13:00:05]execute_cgi path=json_proto method=POST [13:00:05]POST find Content-Length [13:00:05]Host: 172.17.46.131:8080 [13:00:05]Content-Length: 678 [13:00:05]Content-Type: application/json [13:00:05] [13:00:05]POST finish read [13:00:05]Found Content-Length = 678 [13:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]execute_script... [13:00:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:05]POST & json_proto [13:00:05]process_json_proto [13:00:05]json parsed OK: [13:00:05]protocol is kg_v1.0 [13:00:05]action value=close_receipt [13:00:05]process_action close_receipt [13:00:05]cmd_close_receipt [13:00:05]MH_GetDate [13:00:05]Write to MH i2c: F0 00 00 A3 33 C5 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: F0 09 00 A3 33 00 DA 32 B3 67 7E 41 4F 65 67 [13:00:05]GetLastDocTimeStamp 1739796952 [13:00:05]current date 1739797210 [13:00:05]FM_GetShiftState [13:00:05]SAM_PROTO_GetShiftState [13:00:05]wFMCommunicate request_size=4 [13:00:05]MH_SAM_APDU [13:00:05]CAPDU: 80 13 01 00 [13:00:05]Write to MH i2c: E2 08 00 A4 33 80 13 01 00 00 00 00 00 54 [13:00:05]Write i2c OK [13:00:05]MH_I2C_Read... [13:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:05]Read from MH i2c: E2 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 [13:00:05]MH_I2C_Read... [13:00:05]Read from MH i2c: E2 0E 00 A4 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 78 [13:00:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:00:05]wFMCommunicate OK [13:00:05]SAM_PROTO_GetShiftState done [13:00:05]FM_GetShiftState done [13:00:05]opened in 1739752571 [13:00:05]opened+sec_in_day 1739838971 [13:00:05]quantity*price = 70042 [13:00:05]sum+1 = 70043 [13:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 128 17.02.2025 13:00 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186541 ФПД: 71025242131312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130010&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186541&fm=71025242131312&tin=02508201610067®Number=0000000000091857&sum=70000 [13:00:06]StoreToDocumentArchive [13:00:06]shift 644 fd 186541 [13:00:06]save to /storage/0644/doc_00186541 [13:00:06]save last doc name /storage/0644/doc_00186541 to /storage/kkm_last_doc_name [13:00:06]save OK [13:00:06]Clear old archive folders... [13:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:06]tlvbuf is 02081A30 [13:00:06]SAM_PROTO_ClearQueue [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 09 00 00 [13:00:06]Write to MH i2c: E2 08 00 B1 33 80 09 00 00 00 00 00 00 56 [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]SAM_PROTO_ClearQueue done [13:00:06]KKMCreateOFDPacket [13:00:06]OFDProtocolAddRootSTLVToBuf [13:00:06]FM_MakeSignedData [13:00:06]FM_MakeSignedData [13:00:06]SAM_PROTO_SignData [13:00:06]wFMCommunicate request_size=4 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 01 02 [13:00:06]Write to MH i2c: E2 08 00 B2 33 80 0D 01 02 00 00 00 00 5E [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:06]Read from MH i2c: E2 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 [13:00:06]MH_I2C_Read... [13:00:06]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [13:00:06]RAPDU: 90 00 [13:00:06]wFMCommunicate OK [13:00:06]wFMCommunicate request_size=255 [13:00:06]MH_SAM_APDU [13:00:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 DA 32 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D8 02 00 35 04 06 00 40 [13:00:06]Write to MH i2c: E2 02 01 B3 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 DA 32 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D8 02 00 35 04 06 00 40 00 00 9B [13:00:06]Write i2c OK [13:00:06]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 B3 33 00 90 00 5A [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=10 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 02 02 05 98 DA 53 CB 70 [13:00:07]Write to MH i2c: E2 0D 00 B4 33 80 0D 02 02 05 00 98 DA 53 CB 70 00 00 6B [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 03 00 B4 33 00 90 00 5B [13:00:07]RAPDU: 90 00 [13:00:07]wFMCommunicate OK [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 0D 03 02 [13:00:07]Write to MH i2c: E2 08 00 B5 33 80 0D 03 02 00 00 00 00 63 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 0B 00 B5 33 00 83 CF 33 A8 7E E5 B8 81 90 00 2D [13:00:07]RAPDU: 83 CF 33 A8 7E E5 B8 81 90 00 [13:00:07]wFMCommunicate OK [13:00:07]SAM_PROTO_SignData done [13:00:07]FM_MakeSignedData done [13:00:07]CreateOFDProtocolMessage [13:00:07]wFMCommunicate request_size=4 [13:00:07]MH_SAM_APDU [13:00:07]CAPDU: 80 11 00 00 [13:00:07]Write to MH i2c: E2 08 00 B6 33 80 11 00 00 00 00 00 00 63 [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:07]Read from MH i2c: E2 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: E2 17 00 B6 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B6 [13:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:00:07]wFMCommunicate OK [13:00:07]CreateOFDProtocolMessage done [13:00:07]OFDSenderStorePacket 186541 [13:00:07]StoreOFDPacket docnum=186541 [13:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FB C0 07 01 6B EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 DA 32 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D8 02 00 35 04 06 00 40 98 DA 53 CB 70 83 CF 33 A8 7E E5 B8 81 [13:00:07]CheckFolder [13:00:07]dirname=/storage/ofd_packets [13:00:07]CheckFolder done [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00186541 [13:00:07]NVStorageSaveData ofd_packets/00186541 [13:00:07]File name is /storage/ofd_packets/00186541 [13:00:07]Write 301 bytes [13:00:07]NVStorageSaveData done [13:00:07]OFDSenderStorePacket done [13:00:07]KKMCreateOFDPacket done [13:00:07]NVStorageSaveData kkm_last_timestamp [13:00:07]File name is /storage/kkm_last_timestamp [13:00:07]Write 4 bytes [13:00:07]NVStorageSaveData done [13:00:07]ExternCall_PrintAddStr [13:00:07]wPrintStart [13:00:07]Write to MH i2c: 01 00 00 B7 33 EA [13:00:07]Write i2c OK [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 [13:00:07]MH_I2C_Read... [13:00:07]Read from MH i2c: 01 07 00 B7 33 00 00 00 00 00 FF 0F FF [13:00:07]RasterBufferAndPrint [13:00:07]line Счет N : (1)411675 [13:00:07]line ИНН: 02508201610067 [13:00:07]line Контрольно-Кассовый Чек [13:00:07]line ПРОДАЖА [13:00:07]line ТРК (МРК, ГНК) : 12 [13:00:07]line Товар: 2710124130 [13:00:07]line Аи-92-К-2 [13:00:07]line 10.910 * 64.20 [13:00:07]line = 700.42 [13:00:07]line НДС 12% НСП 1% [13:00:07]line > о реализуемом товаре [13:00:07]line ОКРУГЛЕНИЕ: -0.42 [13:00:07]line ИТОГО: 700.00 [13:00:07]line Внесено: 700.00 [13:00:07]line СДАЧА: 0.00 [13:00:07]line НСП 1% : 6.20 [13:00:07]line НДС 12% : 74.38 [13:00:07]line Наличными: 700.00 [13:00:07]line Безнал.: 0.00 [13:00:07]line Место: АЗС № 92 "Партнер Нефть" [13:00:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:00:07]line СНО: Общий режим [13:00:07]line Чек 128 17.02.2025 13:00 [13:00:07]line Смена: 644 ФФД: 1.0 [13:00:07]line ЗНМ: 0300000118 [13:00:07]line РНМ: 0000000000091857 [13:00:07]line Версия ККМ: 001 [13:00:07]line ФМ: 0000000000871826 [13:00:07]line ФД: 186541 [13:00:07]line ФПД: 71025242131312 [13:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130010&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186541&fm=71025242131312&tin=02508201610067®Number=0000000000091857&sum=70000 [13:00:07]written 0, free lines is 4095 [13:00:07]OFD Sender: Processing packet 186541 [packets to send 49, broken 48] [13:00:07]ProducePacketName [13:00:07]name=ofd_packets/00186541 [13:00:07]OFD Sender: To server: pG, [13:00:07]CommunicateWithHost lk.salyk.kg:30040 [13:00:07]ConnectInit lk.salyk.kg [13:00:07]Connected sock=10 [13:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FB C0 07 01 6B EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 DA 32 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D8 02 00 35 04 06 00 40 98 DA 53 CB 70 83 CF 33 A8 7E E5 B8 81 [13:00:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6F 46 47 00 20 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AD D8 02 00 F4 03 04 00 34 D9 B2 67 B6 04 01 00 00 BD F4 71 BA F6 BF 09 09 [13:00:08]CommunicateWithHost err = 0 [13:00:08]CheckOFDResponse [13:00:08]1017 (14) - 77093643461234 [13:00:08]1041 (16) - 0000000000871826 [13:00:08]1040 (4) - 186541 [13:00:08]1012 (4) - 17.02.2025 06:37 [13:00:08]1206 (1) - 0 [13:00:08]OFD Sender: Remove packet 186541 [13:00:08]ProducePacketName [13:00:08]name=ofd_packets/00186541 [13:00:08]NVStorageDeleteData [13:00:08]Write to MH i2c: 01 00 00 E2 33 15 [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: 01 07 00 E2 33 00 00 00 00 00 E4 0C 0C [13:00:08]RasterBufferAndPrint [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]line [13:00:08]written 0, free lines is 3306 [13:00:08]MH_Cut [13:00:08]Write to MH i2c: D1 01 00 E9 33 01 EE [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 [13:00:08]MH_I2C_Read... [13:00:08]Read from MH i2c: D1 01 00 E9 33 00 ED [13:00:08]Write to MH i2c: 01 00 00 EA 33 1D [13:00:08]Write i2c OK [13:00:08]MH_I2C_Read... [13:00:08]OFD Sender: No OFD packet to send [13:00:08]*** Cut start [13:00:08]*** Partial cut [13:00:08]*** CUTSNS_PIN = 1 [13:00:08]*** CUTSNS_PIN = 0 [13:00:09]*** Brake cut motor [13:00:09]Read from MH i2c: 01 [13:00:09]MH_I2C_Read... [13:00:09]*** Stop cut motor [13:00:09]*** Cut end [13:00:09]Read from MH i2c: 01 07 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: 01 07 00 EA 33 00 00 00 00 00 FF 0F 32 [13:00:09]process_action close_receipt done [13:00:09]requested_data is exist [13:00:09]produce_requested_data [13:00:09]requested_item fm.sn is exist - process it [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 11 00 00 [13:00:09]Write to MH i2c: E2 08 00 EB 33 80 11 00 00 00 00 00 00 98 [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 17 00 EB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EB [13:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:00:09]wFMCommunicate OK [13:00:09]requested_item fd.num is exist - process it [13:00:09]SAM_PROTO_GetFieldsCounters [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 13 00 00 [13:00:09]Write to MH i2c: E2 08 00 EC 33 80 13 00 00 00 00 00 00 9B [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 62 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 62 00 EC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [13:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AD D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_GetFieldsCounters done [13:00:09]requested_item shift.num is exist - process it [13:00:09]requested_item shift.opened is exist - process it [13:00:09]req_shift_opened [13:00:09]FM_GetShiftState [13:00:09]SAM_PROTO_GetShiftState [13:00:09]wFMCommunicate request_size=4 [13:00:09]MH_SAM_APDU [13:00:09]CAPDU: 80 13 01 00 [13:00:09]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [13:00:09]Write i2c OK [13:00:09]MH_I2C_Read... [13:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:09]Read from MH i2c: E2 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 [13:00:09]MH_I2C_Read... [13:00:09]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C1 [13:00:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:00:09]wFMCommunicate OK [13:00:09]SAM_PROTO_GetShiftState done [13:00:09]FM_GetShiftState done [13:00:09]req_shift_opened done [13:00:09]requested_item shift.open_date is exist - process it [13:00:09]req_shift_open_date [13:00:09]req_shift_open_date done [13:00:09]produce_requested_data done [13:00:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186541,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:00:09]process_action_free close_receipt [13:00:09]json_value_free [13:00:09]json_value_free done [13:00:09]process_json_proto returns [13:00:09]Send response to host [13:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186541,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:00:09]free response buf [13:00:09]execute_script done [13:00:09]execute_script returns [13:00:09]free content buf [13:00:09]Sock 8.Close socket [13:00:09]Sock 8.Thread stoped [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:42]accept exits with 9 [13:05:42]New connection [13:05:42]New thread 3067358564 created [13:05:42]Thread 3067501924 joined [13:05:42]Waiting for new connection... [13:05:42] Sock 9.Parse request [13:05:42]Sock 9.Check first char [13:05:42]Sock 9.First char is OK [13:05:42]request: POST /json_proto HTTP/1.0 [13:05:42]Method: POST [13:05:42]URL: /json_proto [13:05:42]Method is POST - this is cgi request [13:05:42]url: /json_proto [13:05:42]query_string will be loaded in cgi processing [13:05:42]execute_cgi json_proto POST (null) [13:05:42]execute_cgi path=json_proto method=POST [13:05:42]POST find Content-Length [13:05:42]Host: 172.17.46.131:8080 [13:05:42]Content-Length: 677 [13:05:42]Content-Type: application/json [13:05:42] [13:05:42]POST finish read [13:05:42]Found Content-Length = 677 [13:05:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:42]execute_script... [13:05:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:42]POST & json_proto [13:05:42]process_json_proto [13:05:42]json parsed OK: [13:05:42]protocol is kg_v1.0 [13:05:42]action value=close_receipt [13:05:42]process_action close_receipt [13:05:42]cmd_close_receipt [13:05:42]MH_GetDate [13:05:42]Write to MH i2c: F0 00 00 EE 33 10 [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 09 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: F0 09 00 EE 33 00 2B 34 B3 67 7E 41 4F 65 05 [13:05:42]GetLastDocTimeStamp 1739797210 [13:05:42]current date 1739797547 [13:05:42]FM_GetShiftState [13:05:42]SAM_PROTO_GetShiftState [13:05:42]wFMCommunicate request_size=4 [13:05:42]MH_SAM_APDU [13:05:42]CAPDU: 80 13 01 00 [13:05:42]Write to MH i2c: E2 08 00 EF 33 80 13 01 00 00 00 00 00 9F [13:05:42]Write i2c OK [13:05:42]MH_I2C_Read... [13:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:42]Read from MH i2c: E2 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0E 00 [13:05:42]MH_I2C_Read... [13:05:42]Read from MH i2c: E2 0E 00 EF 33 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C3 [13:05:42]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:05:42]wFMCommunicate OK [13:05:42]SAM_PROTO_GetShiftState done [13:05:42]FM_GetShiftState done [13:05:42]opened in 1739752571 [13:05:42]opened+sec_in_day 1739838971 [13:05:42]quantity*price = 40060 [13:05:42]sum+1 = 40062 [13:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 129 17.02.2025 13:05 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186542 ФПД: 142650934312534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186542&fm=142650934312534&tin=02508201610067®Number=0000000000091857&sum=40000 [13:05:43]StoreToDocumentArchive [13:05:43]shift 644 fd 186542 [13:05:43]save to /storage/0644/doc_00186542 [13:05:43]save last doc name /storage/0644/doc_00186542 to /storage/kkm_last_doc_name [13:05:43]save OK [13:05:43]Clear old archive folders... [13:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:43]tlvbuf is 0200EC50 [13:05:43]SAM_PROTO_ClearQueue [13:05:43]wFMCommunicate request_size=4 [13:05:43]MH_SAM_APDU [13:05:43]CAPDU: 80 09 00 00 [13:05:43]Write to MH i2c: E2 08 00 FC 33 80 09 00 00 00 00 00 00 A1 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:43]Read from MH i2c: E2 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 FC 33 00 90 00 A3 [13:05:43]RAPDU: 90 00 [13:05:43]wFMCommunicate OK [13:05:43]SAM_PROTO_ClearQueue done [13:05:43]KKMCreateOFDPacket [13:05:43]OFDProtocolAddRootSTLVToBuf [13:05:43]FM_MakeSignedData [13:05:43]FM_MakeSignedData [13:05:43]SAM_PROTO_SignData [13:05:43]wFMCommunicate request_size=4 [13:05:43]MH_SAM_APDU [13:05:43]CAPDU: 80 0D 01 02 [13:05:43]Write to MH i2c: E2 08 00 FD 33 80 0D 01 02 00 00 00 00 A9 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:43]Read from MH i2c: E2 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 [13:05:43]MH_I2C_Read... [13:05:43]Read from MH i2c: E2 03 00 FD 33 00 90 00 A4 [13:05:43]RAPDU: 90 00 [13:05:43]wFMCommunicate OK [13:05:43]wFMCommunicate request_size=255 [13:05:43]MH_SAM_APDU [13:05:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 2B 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D8 02 00 35 04 06 00 81 [13:05:43]Write to MH i2c: E2 02 01 FE 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 2B 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D8 02 00 35 04 06 00 81 00 00 C5 [13:05:43]Write i2c OK [13:05:43]MH_I2C_Read... [13:05:43]OFD Sender: No OFD packet to send [13:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 FE 33 00 90 00 A5 [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]wFMCommunicate request_size=10 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 02 02 05 BD 82 44 3E 56 [13:05:44]Write to MH i2c: E2 0D 00 FF 33 80 0D 02 02 05 00 BD 82 44 3E 56 00 00 CD [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 03 00 FF 33 00 90 00 A6 [13:05:44]RAPDU: 90 00 [13:05:44]wFMCommunicate OK [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 0D 03 02 [13:05:44]Write to MH i2c: E2 08 00 00 34 80 0D 03 02 00 00 00 00 AF [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 0B 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 0B 00 00 34 00 C2 32 FA D9 86 DC 42 DA 90 00 F5 [13:05:44]RAPDU: C2 32 FA D9 86 DC 42 DA 90 00 [13:05:44]wFMCommunicate OK [13:05:44]SAM_PROTO_SignData done [13:05:44]FM_MakeSignedData done [13:05:44]CreateOFDProtocolMessage [13:05:44]wFMCommunicate request_size=4 [13:05:44]MH_SAM_APDU [13:05:44]CAPDU: 80 11 00 00 [13:05:44]Write to MH i2c: E2 08 00 01 34 80 11 00 00 00 00 00 00 AF [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:44]Read from MH i2c: E2 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: E2 17 00 01 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 02 [13:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:44]wFMCommunicate OK [13:05:44]CreateOFDProtocolMessage done [13:05:44]OFDSenderStorePacket 186542 [13:05:44]StoreOFDPacket docnum=186542 [13:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD 77 07 01 63 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 2B 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D8 02 00 35 04 06 00 81 BD 82 44 3E 56 C2 32 FA D9 86 DC 42 DA [13:05:44]CheckFolder [13:05:44]dirname=/storage/ofd_packets [13:05:44]CheckFolder done [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00186542 [13:05:44]NVStorageSaveData ofd_packets/00186542 [13:05:44]File name is /storage/ofd_packets/00186542 [13:05:44]Write 301 bytes [13:05:44]NVStorageSaveData done [13:05:44]OFDSenderStorePacket done [13:05:44]KKMCreateOFDPacket done [13:05:44]NVStorageSaveData kkm_last_timestamp [13:05:44]File name is /storage/kkm_last_timestamp [13:05:44]Write 4 bytes [13:05:44]NVStorageSaveData done [13:05:44]ExternCall_PrintAddStr [13:05:44]wPrintStart [13:05:44]Write to MH i2c: 01 00 00 02 34 36 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 02 34 00 00 00 00 00 FF 0F 4B [13:05:44]RasterBufferAndPrint [13:05:44]line Счет N : (1)411677 [13:05:44]line ИНН: 02508201610067 [13:05:44]line Контрольно-Кассовый Чек [13:05:44]line ПРОДАЖА [13:05:44]line ТРК (МРК, ГНК) : 12 [13:05:44]line Товар: 2710124130 [13:05:44]line Аи-92-К-2 [13:05:44]line 6.240 * 64.20 [13:05:44]line = 400.61 [13:05:44]line НДС 12% НСП 1% [13:05:44]line > о реализуемом товаре [13:05:44]line ОКРУГЛЕНИЕ: -0.61 [13:05:44]line ИТОГО: 400.00 [13:05:44]line Внесено: 400.00 [13:05:44]line СДАЧА: 0.00 [13:05:44]line НСП 1% : 3.54 [13:05:44]line НДС 12% : 42.54 [13:05:44]line Наличными: 400.00 [13:05:44]line Безнал.: 0.00 [13:05:44]line Место: АЗС № 92 "Партнер Нефть" [13:05:44]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:44]line СНО: Общий режим [13:05:44]line Чек 129 17.02.2025 13:05 [13:05:44]line Смена: 644 ФФД: 1.0 [13:05:44]line ЗНМ: 0300000118 [13:05:44]line РНМ: 0000000000091857 [13:05:44]line Версия ККМ: 001 [13:05:44]line ФМ: 0000000000871826 [13:05:44]line ФД: 186542 [13:05:44]line ФПД: 142650934312534 [13:05:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130547&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186542&fm=142650934312534&tin=02508201610067®Number=0000000000091857&sum=40000 [13:05:44]OFD Sender: Processing packet 186542 [packets to send 49, broken 48] [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00186542 [13:05:44]OFD Sender: To server: pG, [13:05:44]CommunicateWithHost lk.salyk.kg:30040 [13:05:44]ConnectInit lk.salyk.kg [13:05:44]written 0, free lines is 4095 [13:05:44]Connected sock=10 [13:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD 77 07 01 63 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 2B 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D8 02 00 35 04 06 00 81 BD 82 44 3E 56 C2 32 FA D9 86 DC 42 DA [13:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CC 6B 47 00 42 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AE D8 02 00 F4 03 04 00 85 DA B2 67 B6 04 01 00 00 61 E4 B0 26 0C 84 A0 96 [13:05:44]CommunicateWithHost err = 0 [13:05:44]CheckOFDResponse [13:05:44]1017 (14) - 77093643461234 [13:05:44]1041 (16) - 0000000000871826 [13:05:44]1040 (4) - 186542 [13:05:44]1012 (4) - 17.02.2025 06:43 [13:05:44]1206 (1) - 0 [13:05:44]OFD Sender: Remove packet 186542 [13:05:44]ProducePacketName [13:05:44]name=ofd_packets/00186542 [13:05:44]NVStorageDeleteData [13:05:44]Write to MH i2c: 01 00 00 2D 34 61 [13:05:44]Write i2c OK [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 [13:05:44]MH_I2C_Read... [13:05:44]Read from MH i2c: 01 07 00 2D 34 00 00 00 00 00 E0 0C 54 [13:05:44]RasterBufferAndPrint [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]line [13:05:44]written 0, free lines is 3302 [13:05:45]MH_Cut [13:05:45]Write to MH i2c: D1 01 00 34 34 01 3A [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 01 00 [13:05:45]MH_I2C_Read... [13:05:45]Read from MH i2c: D1 01 00 34 34 00 39 [13:05:45]Write to MH i2c: 01 00 00 35 34 69 [13:05:45]Write i2c OK [13:05:45]MH_I2C_Read... [13:05:45]OFD Sender: No OFD packet to send [13:05:45]*** Cut start [13:05:45]*** Partial cut [13:05:45]*** CUTSNS_PIN = 1 [13:05:45]*** CUTSNS_PIN = 0 [13:05:46]*** Brake cut motor [13:05:46]Read from MH i2c: 01 [13:05:46]MH_I2C_Read... [13:05:46]*** Stop cut motor [13:05:46]*** Cut end [13:05:46]Read from MH i2c: 01 07 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: 01 07 00 35 34 00 00 00 00 00 FF 0F 7E [13:05:46]process_action close_receipt done [13:05:46]requested_data is exist [13:05:46]produce_requested_data [13:05:46]requested_item fm.sn is exist - process it [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 11 00 00 [13:05:46]Write to MH i2c: E2 08 00 36 34 80 11 00 00 00 00 00 00 E4 [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 17 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 17 00 36 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [13:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:46]wFMCommunicate OK [13:05:46]requested_item fd.num is exist - process it [13:05:46]SAM_PROTO_GetFieldsCounters [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 13 00 00 [13:05:46]Write to MH i2c: E2 08 00 37 34 80 13 00 00 00 00 00 00 E7 [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 62 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 62 00 37 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AE D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:46]wFMCommunicate OK [13:05:46]SAM_PROTO_GetFieldsCounters done [13:05:46]requested_item shift.num is exist - process it [13:05:46]requested_item shift.opened is exist - process it [13:05:46]req_shift_opened [13:05:46]FM_GetShiftState [13:05:46]SAM_PROTO_GetShiftState [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 13 01 00 [13:05:46]Write to MH i2c: E2 08 00 38 34 80 13 01 00 00 00 00 00 E9 [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 38 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0D [13:05:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:05:46]wFMCommunicate OK [13:05:46]SAM_PROTO_GetShiftState done [13:05:46]FM_GetShiftState done [13:05:46]req_shift_opened done [13:05:46]requested_item shift.open_date is exist - process it [13:05:46]req_shift_open_date [13:05:46]req_shift_open_date done [13:05:46]produce_requested_data done [13:05:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186542,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:05:46]process_action_free close_receipt [13:05:46]json_value_free [13:05:46]json_value_free done [13:05:46]process_json_proto returns [13:05:46]Send response to host [13:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186542,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:05:46]free response buf [13:05:46]execute_script done [13:05:46]execute_script returns [13:05:46]free content buf [13:05:46]Sock 9.Close socket [13:05:46]Sock 9.Thread stoped [13:05:46]accept exits with 8 [13:05:46]New connection [13:05:46]New thread 3067501924 created [13:05:46]Thread 3067358564 joined [13:05:46]Waiting for new connection... [13:05:46] Sock 8.Parse request [13:05:46]Sock 8.Check first char [13:05:46]Sock 8.First char is OK [13:05:46]request: POST /json_proto HTTP/1.0 [13:05:46]Method: POST [13:05:46]URL: /json_proto [13:05:46]Method is POST - this is cgi request [13:05:46]url: /json_proto [13:05:46]query_string will be loaded in cgi processing [13:05:46]execute_cgi json_proto POST (null) [13:05:46]execute_cgi path=json_proto method=POST [13:05:46]POST find Content-Length [13:05:46]Host: 172.17.46.131:8080 [13:05:46]Content-Length: 677 [13:05:46]Content-Type: application/json [13:05:46] [13:05:46]POST finish read [13:05:46]Found Content-Length = 677 [13:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:46]execute_script... [13:05:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:46]POST & json_proto [13:05:46]process_json_proto [13:05:46]json parsed OK: [13:05:46]protocol is kg_v1.0 [13:05:46]action value=close_receipt [13:05:46]process_action close_receipt [13:05:46]cmd_close_receipt [13:05:46]MH_GetDate [13:05:46]Write to MH i2c: F0 00 00 39 34 5C [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: F0 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: F0 09 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: F0 09 00 39 34 00 2F 34 B3 67 7E 41 4F 65 55 [13:05:46]GetLastDocTimeStamp 1739797547 [13:05:46]current date 1739797551 [13:05:46]FM_GetShiftState [13:05:46]SAM_PROTO_GetShiftState [13:05:46]wFMCommunicate request_size=4 [13:05:46]MH_SAM_APDU [13:05:46]CAPDU: 80 13 01 00 [13:05:46]Write to MH i2c: E2 08 00 3A 34 80 13 01 00 00 00 00 00 EB [13:05:46]Write i2c OK [13:05:46]MH_I2C_Read... [13:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:46]Read from MH i2c: E2 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 [13:05:46]MH_I2C_Read... [13:05:46]Read from MH i2c: E2 0E 00 3A 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0F [13:05:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:05:46]wFMCommunicate OK [13:05:46]SAM_PROTO_GetShiftState done [13:05:46]FM_GetShiftState done [13:05:46]opened in 1739752571 [13:05:46]opened+sec_in_day 1739838971 [13:05:46]quantity*price = 50011 [13:05:46]sum+1 = 50013 [13:05:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 130 17.02.2025 13:05 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186543 ФПД: 158595260996448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130551&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186543&fm=158595260996448&tin=02508201610067®Number=0000000000091857&sum=50000 [13:05:48]StoreToDocumentArchive [13:05:48]shift 644 fd 186543 [13:05:48]save to /storage/0644/doc_00186543 [13:05:48]save last doc name /storage/0644/doc_00186543 to /storage/kkm_last_doc_name [13:05:48]save OK [13:05:48]Clear old archive folders... [13:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:48]tlvbuf is 020D3AF0 [13:05:48]SAM_PROTO_ClearQueue [13:05:48]wFMCommunicate request_size=4 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 09 00 00 [13:05:48]Write to MH i2c: E2 08 00 47 34 80 09 00 00 00 00 00 00 ED [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 [13:05:48]MH_I2C_Read... [13:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:48]Read from MH i2c: E2 03 00 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 47 34 00 90 00 EF [13:05:48]RAPDU: 90 00 [13:05:48]wFMCommunicate OK [13:05:48]SAM_PROTO_ClearQueue done [13:05:48]KKMCreateOFDPacket [13:05:48]OFDProtocolAddRootSTLVToBuf [13:05:48]FM_MakeSignedData [13:05:48]FM_MakeSignedData [13:05:48]SAM_PROTO_SignData [13:05:48]wFMCommunicate request_size=4 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 0D 01 02 [13:05:48]Write to MH i2c: E2 08 00 48 34 80 0D 01 02 00 00 00 00 F5 [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:48]Read from MH i2c: E2 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 48 34 00 90 00 F0 [13:05:48]RAPDU: 90 00 [13:05:48]wFMCommunicate OK [13:05:48]wFMCommunicate request_size=255 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 2F 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D8 02 00 35 04 06 00 90 [13:05:48]Write to MH i2c: E2 02 01 49 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 2F 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D8 02 00 35 04 06 00 90 00 00 2C [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:48]Read from MH i2c: E2 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 49 34 00 90 00 F1 [13:05:48]RAPDU: 90 00 [13:05:48]wFMCommunicate OK [13:05:48]wFMCommunicate request_size=10 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 0D 02 02 05 3D D6 31 DB 60 [13:05:48]Write to MH i2c: E2 0D 00 4A 34 80 0D 02 02 05 00 3D D6 31 DB 60 00 00 81 [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:48]Read from MH i2c: E2 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 03 00 4A 34 00 90 00 F2 [13:05:48]RAPDU: 90 00 [13:05:48]wFMCommunicate OK [13:05:48]wFMCommunicate request_size=4 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 0D 03 02 [13:05:48]Write to MH i2c: E2 08 00 4B 34 80 0D 03 02 00 00 00 00 FA [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:48]Read from MH i2c: E2 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 0B 00 [13:05:48]MH_I2C_Read... [13:05:48]Read from MH i2c: E2 0B 00 4B 34 00 40 CB 5C 80 60 EF C3 35 90 00 29 [13:05:48]RAPDU: 40 CB 5C 80 60 EF C3 35 90 00 [13:05:48]wFMCommunicate OK [13:05:48]SAM_PROTO_SignData done [13:05:48]FM_MakeSignedData done [13:05:48]CreateOFDProtocolMessage [13:05:48]wFMCommunicate request_size=4 [13:05:48]MH_SAM_APDU [13:05:48]CAPDU: 80 11 00 00 [13:05:48]Write to MH i2c: E2 08 00 4C 34 80 11 00 00 00 00 00 00 FA [13:05:48]Write i2c OK [13:05:48]MH_I2C_Read... [13:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:49]Read from MH i2c: E2 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: E2 17 00 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: E2 17 00 4C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [13:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:49]wFMCommunicate OK [13:05:49]CreateOFDProtocolMessage done [13:05:49]OFDSenderStorePacket 186543 [13:05:49]StoreOFDPacket docnum=186543 [13:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 58 11 07 01 87 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 2F 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D8 02 00 35 04 06 00 90 3D D6 31 DB 60 40 CB 5C 80 60 EF C3 35 [13:05:49]CheckFolder [13:05:49]dirname=/storage/ofd_packets [13:05:49]CheckFolder done [13:05:49]ProducePacketName [13:05:49]name=ofd_packets/00186543 [13:05:49]NVStorageSaveData ofd_packets/00186543 [13:05:49]File name is /storage/ofd_packets/00186543 [13:05:49]Write 301 bytes [13:05:49]NVStorageSaveData done [13:05:49]OFDSenderStorePacket done [13:05:49]KKMCreateOFDPacket done [13:05:49]NVStorageSaveData kkm_last_timestamp [13:05:49]File name is /storage/kkm_last_timestamp [13:05:49]Write 4 bytes [13:05:49]NVStorageSaveData done [13:05:49]ExternCall_PrintAddStr [13:05:49]wPrintStart [13:05:49]Write to MH i2c: 01 00 00 4D 34 81 [13:05:49]Write i2c OK [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 07 00 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 07 00 4D 34 00 00 00 00 00 FF 0F 96 [13:05:49]RasterBufferAndPrint [13:05:49]line Счет N : (1)411676 [13:05:49]line ИНН: 02508201610067 [13:05:49]line Контрольно-Кассовый Чек [13:05:49]line ПРОДАЖА [13:05:49]line ТРК (МРК, ГНК) : 22 [13:05:49]line Товар: 2710124130 [13:05:49]line Аи-92-К-2 [13:05:49]line 7.790 * 64.20 [13:05:49]line = 500.12 [13:05:49]line НДС 12% НСП 1% [13:05:49]line > о реализуемом товаре [13:05:49]line ОКРУГЛЕНИЕ: -0.12 [13:05:49]line ИТОГО: 500.00 [13:05:49]line Внесено: 500.00 [13:05:49]line СДАЧА: 0.00 [13:05:49]line НСП 1% : 4.43 [13:05:49]line НДС 12% : 53.11 [13:05:49]line Наличными: 500.00 [13:05:49]line Безнал.: 0.00 [13:05:49]line Место: АЗС № 92 "Партнер Нефть" [13:05:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:05:49]line СНО: Общий режим [13:05:49]line Чек 130 17.02.2025 13:05 [13:05:49]line Смена: 644 ФФД: 1.0 [13:05:49]line ЗНМ: 0300000118 [13:05:49]line РНМ: 0000000000091857 [13:05:49]line Версия ККМ: 001 [13:05:49]line ФМ: 0000000000871826 [13:05:49]line ФД: 186543 [13:05:49]line ФПД: 158595260996448 [13:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130551&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186543&fm=158595260996448&tin=02508201610067®Number=0000000000091857&sum=50000 [13:05:49]OFD Sender: Processing packet 186543 [packets to send 49, broken 48] [13:05:49]ProducePacketName [13:05:49]name=ofd_packets/00186543 [13:05:49]OFD Sender: To server: pG, [13:05:49]CommunicateWithHost lk.salyk.kg:30040 [13:05:49]ConnectInit lk.salyk.kg [13:05:49]written 0, free lines is 4095 [13:05:49]Connected sock=10 [13:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 58 11 07 01 87 F0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 2F 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D8 02 00 35 04 06 00 90 3D D6 31 DB 60 40 CB 5C 80 60 EF C3 35 [13:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F7 8E 47 00 04 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 AF D8 02 00 F4 03 04 00 8A DA B2 67 B6 04 01 00 00 CB 1E DF 45 34 83 05 D9 [13:05:49]CommunicateWithHost err = 0 [13:05:49]CheckOFDResponse [13:05:49]1017 (14) - 77093643461234 [13:05:49]1041 (16) - 0000000000871826 [13:05:49]1040 (4) - 186543 [13:05:49]1012 (4) - 17.02.2025 06:43 [13:05:49]1206 (1) - 0 [13:05:49]OFD Sender: Remove packet 186543 [13:05:49]ProducePacketName [13:05:49]name=ofd_packets/00186543 [13:05:49]NVStorageDeleteData [13:05:49]Write to MH i2c: 01 00 00 78 34 AC [13:05:49]Write i2c OK [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 07 00 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: 01 07 00 78 34 00 00 00 00 00 F9 0C B8 [13:05:49]RasterBufferAndPrint [13:05:49]line [13:05:49]line [13:05:49]line [13:05:49]line [13:05:49]line [13:05:49]written 0, free lines is 3336 [13:05:49]MH_Cut [13:05:49]Write to MH i2c: D1 01 00 7F 34 01 85 [13:05:49]Write i2c OK [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: D1 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: D1 01 00 [13:05:49]MH_I2C_Read... [13:05:49]Read from MH i2c: D1 01 00 7F 34 00 84 [13:05:49]Write to MH i2c: 01 00 00 80 34 B4 [13:05:49]Write i2c OK [13:05:49]MH_I2C_Read... [13:05:50]OFD Sender: No OFD packet to send [13:05:50]*** Cut start [13:05:50]*** Partial cut [13:05:50]*** CUTSNS_PIN = 1 [13:05:50]*** CUTSNS_PIN = 0 [13:05:50]*** Brake cut motor [13:05:51]Read from MH i2c: 01 [13:05:51]MH_I2C_Read... [13:05:51]*** Stop cut motor [13:05:51]*** Cut end [13:05:51]Read from MH i2c: 01 07 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: 01 07 00 80 34 00 00 00 00 00 FF 0F C9 [13:05:51]process_action close_receipt done [13:05:51]requested_data is exist [13:05:51]produce_requested_data [13:05:51]requested_item fm.sn is exist - process it [13:05:51]wFMCommunicate request_size=4 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 11 00 00 [13:05:51]Write to MH i2c: E2 08 00 81 34 80 11 00 00 00 00 00 00 2F [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:51]Read from MH i2c: E2 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 17 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 17 00 81 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 82 [13:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:05:51]wFMCommunicate OK [13:05:51]requested_item fd.num is exist - process it [13:05:51]SAM_PROTO_GetFieldsCounters [13:05:51]wFMCommunicate request_size=4 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 13 00 00 [13:05:51]Write to MH i2c: E2 08 00 82 34 80 13 00 00 00 00 00 00 32 [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:51]Read from MH i2c: E2 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 62 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 62 00 82 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:05:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 AF D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:51]wFMCommunicate OK [13:05:51]SAM_PROTO_GetFieldsCounters done [13:05:51]requested_item shift.num is exist - process it [13:05:51]requested_item shift.opened is exist - process it [13:05:51]req_shift_opened [13:05:51]FM_GetShiftState [13:05:51]SAM_PROTO_GetShiftState [13:05:51]wFMCommunicate request_size=4 [13:05:51]MH_SAM_APDU [13:05:51]CAPDU: 80 13 01 00 [13:05:51]Write to MH i2c: E2 08 00 83 34 80 13 01 00 00 00 00 00 34 [13:05:51]Write i2c OK [13:05:51]MH_I2C_Read... [13:05:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:51]Read from MH i2c: E2 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 0E 00 [13:05:51]MH_I2C_Read... [13:05:51]Read from MH i2c: E2 0E 00 83 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 58 [13:05:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:05:51]wFMCommunicate OK [13:05:51]SAM_PROTO_GetShiftState done [13:05:51]FM_GetShiftState done [13:05:51]req_shift_opened done [13:05:51]requested_item shift.open_date is exist - process it [13:05:51]req_shift_open_date [13:05:51]req_shift_open_date done [13:05:51]produce_requested_data done [13:05:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186543,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:05:51]process_action_free close_receipt [13:05:51]json_value_free [13:05:51]json_value_free done [13:05:51]process_json_proto returns [13:05:51]Send response to host [13:05:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186543,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:05:51]free response buf [13:05:51]execute_script done [13:05:51]execute_script returns [13:05:51]free content buf [13:05:51]Sock 8.Close socket [13:05:51]Sock 8.Thread stoped [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:24]accept exits with 9 [13:07:24]New connection [13:07:24]New thread 3067358564 created [13:07:24]Thread 3067501924 joined [13:07:24]Waiting for new connection... [13:07:24] Sock 9.Parse request [13:07:24]Sock 9.Check first char [13:07:24]Sock 9.First char is OK [13:07:24]request: POST /json_proto HTTP/1.0 [13:07:24]Method: POST [13:07:24]URL: /json_proto [13:07:24]Method is POST - this is cgi request [13:07:24]url: /json_proto [13:07:24]query_string will be loaded in cgi processing [13:07:24]execute_cgi json_proto POST (null) [13:07:24]execute_cgi path=json_proto method=POST [13:07:24]POST find Content-Length [13:07:24]Host: 172.17.46.131:8080 [13:07:24]Content-Length: 682 [13:07:24]Content-Type: application/json [13:07:24] [13:07:24]POST finish read [13:07:24]Found Content-Length = 682 [13:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:24]execute_script... [13:07:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:24]POST & json_proto [13:07:24]process_json_proto [13:07:24]json parsed OK: [13:07:24]protocol is kg_v1.0 [13:07:24]action value=close_receipt [13:07:24]process_action close_receipt [13:07:24]cmd_close_receipt [13:07:24]MH_GetDate [13:07:24]Write to MH i2c: F0 00 00 84 34 A7 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: F0 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: F0 09 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: F0 09 00 84 34 00 91 34 B3 67 7E 41 4F 65 02 [13:07:24]GetLastDocTimeStamp 1739797551 [13:07:24]current date 1739797649 [13:07:24]FM_GetShiftState [13:07:24]SAM_PROTO_GetShiftState [13:07:24]wFMCommunicate request_size=4 [13:07:24]MH_SAM_APDU [13:07:24]CAPDU: 80 13 01 00 [13:07:24]Write to MH i2c: E2 08 00 85 34 80 13 01 00 00 00 00 00 36 [13:07:24]Write i2c OK [13:07:24]MH_I2C_Read... [13:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:24]Read from MH i2c: E2 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0E 00 [13:07:24]MH_I2C_Read... [13:07:24]Read from MH i2c: E2 0E 00 85 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5A [13:07:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:07:24]wFMCommunicate OK [13:07:24]SAM_PROTO_GetShiftState done [13:07:24]FM_GetShiftState done [13:07:24]opened in 1739752571 [13:07:24]opened+sec_in_day 1739838971 [13:07:24]quantity*price = 100023 [13:07:24]sum+1 = 100025 [13:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 131 17.02.2025 13:07 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186544 ФПД: 68078265194290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130729&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186544&fm=68078265194290&tin=02508201610067®Number=0000000000091857&sum=100000 [13:07:25]StoreToDocumentArchive [13:07:25]shift 644 fd 186544 [13:07:25]save to /storage/0644/doc_00186544 [13:07:25]save last doc name /storage/0644/doc_00186544 to /storage/kkm_last_doc_name [13:07:25]save OK [13:07:25]Clear old archive folders... [13:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:25]tlvbuf is 0209DD40 [13:07:25]SAM_PROTO_ClearQueue [13:07:25]wFMCommunicate request_size=4 [13:07:25]MH_SAM_APDU [13:07:25]CAPDU: 80 09 00 00 [13:07:25]Write to MH i2c: E2 08 00 92 34 80 09 00 00 00 00 00 00 38 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:25]Read from MH i2c: E2 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 03 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 03 00 92 34 00 90 00 3A [13:07:25]RAPDU: 90 00 [13:07:25]wFMCommunicate OK [13:07:25]SAM_PROTO_ClearQueue done [13:07:25]KKMCreateOFDPacket [13:07:25]OFDProtocolAddRootSTLVToBuf [13:07:25]FM_MakeSignedData [13:07:25]FM_MakeSignedData [13:07:25]SAM_PROTO_SignData [13:07:25]wFMCommunicate request_size=4 [13:07:25]MH_SAM_APDU [13:07:25]CAPDU: 80 0D 01 02 [13:07:25]Write to MH i2c: E2 08 00 93 34 80 0D 01 02 00 00 00 00 40 [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:25]Read from MH i2c: E2 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 03 00 [13:07:25]MH_I2C_Read... [13:07:25]Read from MH i2c: E2 03 00 93 34 00 90 00 3B [13:07:25]RAPDU: 90 00 [13:07:25]wFMCommunicate OK [13:07:25]wFMCommunicate request_size=255 [13:07:25]MH_SAM_APDU [13:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 91 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D8 02 00 35 04 06 00 3D [13:07:25]Write to MH i2c: E2 02 01 94 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 91 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D8 02 00 35 04 06 00 3D 00 00 EC [13:07:25]Write i2c OK [13:07:25]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [13:07:26]RAPDU: 90 00 [13:07:26]wFMCommunicate OK [13:07:26]wFMCommunicate request_size=10 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 0D 02 02 05 EA B4 D0 57 32 [13:07:26]Write to MH i2c: E2 0D 00 95 34 80 0D 02 02 05 00 EA B4 D0 57 32 00 00 44 [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [13:07:26]RAPDU: 90 00 [13:07:26]wFMCommunicate OK [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 0D 03 02 [13:07:26]Write to MH i2c: E2 08 00 96 34 80 0D 03 02 00 00 00 00 45 [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 0B 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 0B 00 96 34 00 FD 64 76 44 DA 18 AF 8C 90 00 8E [13:07:26]RAPDU: FD 64 76 44 DA 18 AF 8C 90 00 [13:07:26]wFMCommunicate OK [13:07:26]SAM_PROTO_SignData done [13:07:26]FM_MakeSignedData done [13:07:26]CreateOFDProtocolMessage [13:07:26]wFMCommunicate request_size=4 [13:07:26]MH_SAM_APDU [13:07:26]CAPDU: 80 11 00 00 [13:07:26]Write to MH i2c: E2 08 00 97 34 80 11 00 00 00 00 00 00 45 [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:26]Read from MH i2c: E2 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 17 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: E2 17 00 97 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 98 [13:07:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:07:26]wFMCommunicate OK [13:07:26]CreateOFDProtocolMessage done [13:07:26]OFDSenderStorePacket 186544 [13:07:26]StoreOFDPacket docnum=186544 [13:07:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 90 37 07 01 05 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 91 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D8 02 00 35 04 06 00 3D EA B4 D0 57 32 FD 64 76 44 DA 18 AF 8C [13:07:26]CheckFolder [13:07:26]dirname=/storage/ofd_packets [13:07:26]CheckFolder done [13:07:26]ProducePacketName [13:07:26]name=ofd_packets/00186544 [13:07:26]NVStorageSaveData ofd_packets/00186544 [13:07:26]File name is /storage/ofd_packets/00186544 [13:07:26]Write 301 bytes [13:07:26]NVStorageSaveData done [13:07:26]OFDSenderStorePacket done [13:07:26]KKMCreateOFDPacket done [13:07:26]NVStorageSaveData kkm_last_timestamp [13:07:26]File name is /storage/kkm_last_timestamp [13:07:26]Write 4 bytes [13:07:26]NVStorageSaveData done [13:07:26]ExternCall_PrintAddStr [13:07:26]wPrintStart [13:07:26]Write to MH i2c: 01 00 00 98 34 CC [13:07:26]Write i2c OK [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: 01 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: 01 07 00 [13:07:26]MH_I2C_Read... [13:07:26]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 FF 0F E1 [13:07:26]RasterBufferAndPrint [13:07:26]line Счет N : (1)411678 [13:07:26]line ИНН: 02508201610067 [13:07:26]line Контрольно-Кассовый Чек [13:07:26]line ПРОДАЖА [13:07:26]line ТРК (МРК, ГНК) : 42 [13:07:26]line Товар: 2710124130 [13:07:26]line Аи-92-К-2 [13:07:26]line 15.580 * 64.20 [13:07:26]line = 1000.24 [13:07:26]line НДС 12% НСП 1% [13:07:26]line > о реализуемом товаре [13:07:26]line ОКРУГЛЕНИЕ: -0.24 [13:07:26]line ИТОГО: 1000.00 [13:07:26]line Внесено: 1000.00 [13:07:26]line СДАЧА: 0.00 [13:07:26]line НСП 1% : 8.85 [13:07:26]line НДС 12% : 106.22 [13:07:26]line Наличными: 1000.00 [13:07:26]line Безнал.: 0.00 [13:07:26]line Место: АЗС № 92 "Партнер Нефть" [13:07:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:07:26]line СНО: Общий режим [13:07:26]line Чек 131 17.02.2025 13:07 [13:07:26]line Смена: 644 ФФД: 1.0 [13:07:26]line ЗНМ: 0300000118 [13:07:26]line РНМ: 0000000000091857 [13:07:26]line Версия ККМ: 001 [13:07:26]line ФМ: 0000000000871826 [13:07:26]line ФД: 186544 [13:07:26]line ФПД: 68078265194290 [13:07:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130729&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186544&fm=68078265194290&tin=02508201610067®Number=0000000000091857&sum=100000 [13:07:26]OFD Sender: Processing packet 186544 [packets to send 49, broken 48] [13:07:26]ProducePacketName [13:07:26]name=ofd_packets/00186544 [13:07:26]OFD Sender: To server: pG, [13:07:26]CommunicateWithHost lk.salyk.kg:30040 [13:07:26]ConnectInit lk.salyk.kg [13:07:26]written 0, free lines is 4095 [13:07:26]Connected sock=10 [13:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 90 37 07 01 05 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 91 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D8 02 00 35 04 06 00 3D EA B4 D0 57 32 FD 64 76 44 DA 18 AF 8C [13:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CA 79 47 00 EC FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B0 D8 02 00 F4 03 04 00 EB DA B2 67 B6 04 01 00 00 FB 40 02 DD 83 1C 3E 38 [13:07:26]CommunicateWithHost err = 0 [13:07:26]CheckOFDResponse [13:07:26]1017 (14) - 77093643461234 [13:07:26]1041 (16) - 0000000000871826 [13:07:26]1040 (4) - 186544 [13:07:26]1012 (4) - 17.02.2025 06:44 [13:07:26]1206 (1) - 0 [13:07:26]OFD Sender: Remove packet 186544 [13:07:26]ProducePacketName [13:07:26]name=ofd_packets/00186544 [13:07:26]NVStorageDeleteData [13:07:27]Write to MH i2c: 01 00 00 C3 34 F7 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: 01 07 00 C3 34 00 00 00 00 00 EC 0C F6 [13:07:27]RasterBufferAndPrint [13:07:27]line [13:07:27]line [13:07:27]line [13:07:27]line [13:07:27]line [13:07:27]written 0, free lines is 3314 [13:07:27]MH_Cut [13:07:27]Write to MH i2c: D1 01 00 CA 34 01 D0 [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: D1 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: D1 01 00 [13:07:27]MH_I2C_Read... [13:07:27]Read from MH i2c: D1 01 00 CA 34 00 CF [13:07:27]Write to MH i2c: 01 00 00 CB 34 FF [13:07:27]Write i2c OK [13:07:27]MH_I2C_Read... [13:07:27]OFD Sender: No OFD packet to send [13:07:27]*** Cut start [13:07:27]*** Partial cut [13:07:27]*** CUTSNS_PIN = 1 [13:07:27]*** CUTSNS_PIN = 0 [13:07:28]*** Brake cut motor [13:07:28]Read from MH i2c: 01 [13:07:28]MH_I2C_Read... [13:07:28]*** Stop cut motor [13:07:28]*** Cut end [13:07:28]Read from MH i2c: 01 07 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: 01 07 00 CB 34 00 00 00 00 00 FF 0F 14 [13:07:28]process_action close_receipt done [13:07:28]requested_data is exist [13:07:28]produce_requested_data [13:07:28]requested_item fm.sn is exist - process it [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 11 00 00 [13:07:28]Write to MH i2c: E2 08 00 CC 34 80 11 00 00 00 00 00 00 7A [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 17 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 17 00 CC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CD [13:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:07:28]wFMCommunicate OK [13:07:28]requested_item fd.num is exist - process it [13:07:28]SAM_PROTO_GetFieldsCounters [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 13 00 00 [13:07:28]Write to MH i2c: E2 08 00 CD 34 80 13 00 00 00 00 00 00 7D [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 62 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 62 00 CD 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [13:07:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_GetFieldsCounters done [13:07:28]requested_item shift.num is exist - process it [13:07:28]requested_item shift.opened is exist - process it [13:07:28]req_shift_opened [13:07:28]FM_GetShiftState [13:07:28]SAM_PROTO_GetShiftState [13:07:28]wFMCommunicate request_size=4 [13:07:28]MH_SAM_APDU [13:07:28]CAPDU: 80 13 01 00 [13:07:28]Write to MH i2c: E2 08 00 CE 34 80 13 01 00 00 00 00 00 7F [13:07:28]Write i2c OK [13:07:28]MH_I2C_Read... [13:07:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:28]Read from MH i2c: E2 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 [13:07:28]MH_I2C_Read... [13:07:28]Read from MH i2c: E2 0E 00 CE 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A3 [13:07:28]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:07:28]wFMCommunicate OK [13:07:28]SAM_PROTO_GetShiftState done [13:07:28]FM_GetShiftState done [13:07:28]req_shift_opened done [13:07:28]requested_item shift.open_date is exist - process it [13:07:28]req_shift_open_date [13:07:28]req_shift_open_date done [13:07:28]produce_requested_data done [13:07:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186544,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:07:28]process_action_free close_receipt [13:07:28]json_value_free [13:07:28]json_value_free done [13:07:28]process_json_proto returns [13:07:28]Send response to host [13:07:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186544,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:07:28]free response buf [13:07:28]execute_script done [13:07:28]execute_script returns [13:07:28]free content buf [13:07:28]Sock 9.Close socket [13:07:28]Sock 9.Thread stoped [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:00]accept exits with 8 [13:08:00]New connection [13:08:00]New thread 3067501924 created [13:08:00]Thread 3067358564 joined [13:08:00]Waiting for new connection... [13:08:00] Sock 8.Parse request [13:08:00]Sock 8.Check first char [13:08:00]Sock 8.First char is OK [13:08:00]request: POST /json_proto HTTP/1.0 [13:08:00]Method: POST [13:08:00]URL: /json_proto [13:08:00]Method is POST - this is cgi request [13:08:00]url: /json_proto [13:08:00]query_string will be loaded in cgi processing [13:08:00]execute_cgi json_proto POST (null) [13:08:00]execute_cgi path=json_proto method=POST [13:08:00]POST find Content-Length [13:08:00]Host: 172.17.46.131:8080 [13:08:00]Content-Length: 682 [13:08:00]Content-Type: application/json [13:08:00] [13:08:00]POST finish read [13:08:00]Found Content-Length = 682 [13:08:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:00]execute_script... [13:08:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:00]POST & json_proto [13:08:00]process_json_proto [13:08:00]json parsed OK: [13:08:00]protocol is kg_v1.0 [13:08:00]action value=close_receipt [13:08:00]process_action close_receipt [13:08:00]cmd_close_receipt [13:08:00]MH_GetDate [13:08:00]Write to MH i2c: F0 00 00 CF 34 F2 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 09 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: F0 09 00 CF 34 00 B5 34 B3 67 7E 41 4F 65 71 [13:08:00]GetLastDocTimeStamp 1739797649 [13:08:00]current date 1739797685 [13:08:00]FM_GetShiftState [13:08:00]SAM_PROTO_GetShiftState [13:08:00]wFMCommunicate request_size=4 [13:08:00]MH_SAM_APDU [13:08:00]CAPDU: 80 13 01 00 [13:08:00]Write to MH i2c: E2 08 00 D0 34 80 13 01 00 00 00 00 00 81 [13:08:00]Write i2c OK [13:08:00]MH_I2C_Read... [13:08:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:00]Read from MH i2c: E2 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 [13:08:00]MH_I2C_Read... [13:08:00]Read from MH i2c: E2 0E 00 D0 34 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A5 [13:08:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:08:00]wFMCommunicate OK [13:08:00]SAM_PROTO_GetShiftState done [13:08:00]FM_GetShiftState done [13:08:00]opened in 1739752571 [13:08:00]opened+sec_in_day 1739838971 [13:08:00]quantity*price = 150055 [13:08:00]sum+1 = 150056 [13:08:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 132 17.02.2025 13:08 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186545 ФПД: 138671311162186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186545&fm=138671311162186&tin=02508201610067®Number=0000000000091857&sum=150000 [13:08:02]StoreToDocumentArchive [13:08:02]shift 644 fd 186545 [13:08:02]save to /storage/0644/doc_00186545 [13:08:02]save last doc name /storage/0644/doc_00186545 to /storage/kkm_last_doc_name [13:08:02]save OK [13:08:02]Clear old archive folders... [13:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:02]tlvbuf is 0209DCF0 [13:08:02]SAM_PROTO_ClearQueue [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 09 00 00 [13:08:02]Write to MH i2c: E2 08 00 DD 34 80 09 00 00 00 00 00 00 83 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 DD 34 00 90 00 85 [13:08:02]RAPDU: 90 00 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_ClearQueue done [13:08:02]KKMCreateOFDPacket [13:08:02]OFDProtocolAddRootSTLVToBuf [13:08:02]FM_MakeSignedData [13:08:02]FM_MakeSignedData [13:08:02]SAM_PROTO_SignData [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 0D 01 02 [13:08:02]Write to MH i2c: E2 08 00 DE 34 80 0D 01 02 00 00 00 00 8B [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [13:08:02]RAPDU: 90 00 [13:08:02]wFMCommunicate OK [13:08:02]wFMCommunicate request_size=255 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D8 02 00 35 04 06 00 7E [13:08:02]Write to MH i2c: E2 02 01 DF 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D8 02 00 35 04 06 00 7E 00 00 58 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 DF 34 00 90 00 87 [13:08:02]RAPDU: 90 00 [13:08:02]wFMCommunicate OK [13:08:02]wFMCommunicate request_size=10 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 0D 02 02 05 1E EE 3E 0B 4A [13:08:02]Write to MH i2c: E2 0D 00 E0 34 80 0D 02 02 05 00 1E EE 3E 0B 4A 00 00 37 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [13:08:02]RAPDU: 90 00 [13:08:02]wFMCommunicate OK [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 0D 03 02 [13:08:02]Write to MH i2c: E2 08 00 E1 34 80 0D 03 02 00 00 00 00 90 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0B 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 0B 00 E1 34 00 05 E4 7B 44 B7 9A C8 5B 90 00 AD [13:08:02]RAPDU: 05 E4 7B 44 B7 9A C8 5B 90 00 [13:08:02]wFMCommunicate OK [13:08:02]SAM_PROTO_SignData done [13:08:02]FM_MakeSignedData done [13:08:02]CreateOFDProtocolMessage [13:08:02]wFMCommunicate request_size=4 [13:08:02]MH_SAM_APDU [13:08:02]CAPDU: 80 11 00 00 [13:08:02]Write to MH i2c: E2 08 00 E2 34 80 11 00 00 00 00 00 00 90 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:02]Read from MH i2c: E2 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: E2 17 00 E2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E3 [13:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:08:02]wFMCommunicate OK [13:08:02]CreateOFDProtocolMessage done [13:08:02]OFDSenderStorePacket 186545 [13:08:02]StoreOFDPacket docnum=186545 [13:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1C E8 07 01 55 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D8 02 00 35 04 06 00 7E 1E EE 3E 0B 4A 05 E4 7B 44 B7 9A C8 5B [13:08:02]CheckFolder [13:08:02]dirname=/storage/ofd_packets [13:08:02]CheckFolder done [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00186545 [13:08:02]NVStorageSaveData ofd_packets/00186545 [13:08:02]File name is /storage/ofd_packets/00186545 [13:08:02]Write 301 bytes [13:08:02]NVStorageSaveData done [13:08:02]OFDSenderStorePacket done [13:08:02]KKMCreateOFDPacket done [13:08:02]NVStorageSaveData kkm_last_timestamp [13:08:02]File name is /storage/kkm_last_timestamp [13:08:02]Write 4 bytes [13:08:02]NVStorageSaveData done [13:08:02]OFD Sender: Processing packet 186545 [packets to send 49, broken 48] [13:08:02]ProducePacketName [13:08:02]name=ofd_packets/00186545 [13:08:02]OFD Sender: To server: pG, [13:08:02]CommunicateWithHost lk.salyk.kg:30040 [13:08:02]ConnectInit lk.salyk.kg [13:08:02]ExternCall_PrintAddStr [13:08:02]wPrintStart [13:08:02]Write to MH i2c: 01 00 00 E3 34 17 [13:08:02]Write i2c OK [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 [13:08:02]MH_I2C_Read... [13:08:02]Read from MH i2c: 01 07 00 E3 34 00 00 00 00 00 FF 0F 2C [13:08:02]RasterBufferAndPrint [13:08:02]line Счет N : (1)411679 [13:08:02]line ИНН: 02508201610067 [13:08:02]line Контрольно-Кассовый Чек [13:08:02]line ПРОДАЖА [13:08:02]line ТРК (МРК, ГНК) : 33 [13:08:02]line Товар: 2710124500 [13:08:02]line Аи-95-К-5 [13:08:02]line 20.870 * 71.90 [13:08:02]line = 1500.55 [13:08:02]line НДС 12% НСП 1% [13:08:02]line > о реализуемом товаре [13:08:02]line ОКРУГЛЕНИЕ: -0.55 [13:08:02]line ИТОГО: 1500.00 [13:08:02]line Внесено: 1500.00 [13:08:02]line СДАЧА: 0.00 [13:08:02]line НСП 1% : 13.28 [13:08:02]line НДС 12% : 159.35 [13:08:02]line Наличными: 1500.00 [13:08:02]line Безнал.: 0.00 [13:08:02]line Место: АЗС № 92 "Партнер Нефть" [13:08:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:08:02]line СНО: Общий режим [13:08:02]line Чек 132 17.02.2025 13:08 [13:08:02]line Смена: 644 ФФД: 1.0 [13:08:02]line ЗНМ: 0300000118 [13:08:02]line РНМ: 0000000000091857 [13:08:02]line Версия ККМ: 001 [13:08:02]line ФМ: 0000000000871826 [13:08:02]line ФД: 186545 [13:08:02]line ФПД: 138671311162186 [13:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T130805&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186545&fm=138671311162186&tin=02508201610067®Number=0000000000091857&sum=150000 [13:08:02]Connected sock=11 [13:08:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1C E8 07 01 55 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 B5 34 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D8 02 00 35 04 06 00 7E 1E EE 3E 0B 4A 05 E4 7B 44 B7 9A C8 5B [13:08:02]written 0, free lines is 4095 [13:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F0 58 47 00 36 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B1 D8 02 00 F4 03 04 00 0F DB B2 67 B6 04 01 00 00 B2 0F CE 4A 10 88 DF 1E [13:08:03]CommunicateWithHost err = 0 [13:08:03]CheckOFDResponse [13:08:03]1017 (14) - 77093643461234 [13:08:03]1041 (16) - 0000000000871826 [13:08:03]1040 (4) - 186545 [13:08:03]1012 (4) - 17.02.2025 06:45 [13:08:03]1206 (1) - 0 [13:08:03]OFD Sender: Remove packet 186545 [13:08:03]ProducePacketName [13:08:03]name=ofd_packets/00186545 [13:08:03]NVStorageDeleteData [13:08:03]Write to MH i2c: 01 00 00 0E 35 43 [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: 01 07 00 0E 35 00 00 00 00 00 F2 0C 48 [13:08:03]RasterBufferAndPrint [13:08:03]line [13:08:03]line [13:08:03]line [13:08:03]line [13:08:03]line [13:08:03]written 0, free lines is 3323 [13:08:03]MH_Cut [13:08:03]Write to MH i2c: D1 01 00 15 35 01 1C [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: D1 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: D1 01 00 [13:08:03]MH_I2C_Read... [13:08:03]Read from MH i2c: D1 01 00 15 35 00 1B [13:08:03]Write to MH i2c: 01 00 00 16 35 4B [13:08:03]Write i2c OK [13:08:03]MH_I2C_Read... [13:08:03]OFD Sender: No OFD packet to send [13:08:04]*** Cut start [13:08:04]*** Partial cut [13:08:04]*** CUTSNS_PIN = 1 [13:08:04]*** CUTSNS_PIN = 0 [13:08:04]*** Brake cut motor [13:08:04]Read from MH i2c: 01 [13:08:04]MH_I2C_Read... [13:08:04]*** Stop cut motor [13:08:04]*** Cut end [13:08:04]Read from MH i2c: 01 07 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 FF 0F 60 [13:08:04]process_action close_receipt done [13:08:04]requested_data is exist [13:08:04]produce_requested_data [13:08:04]requested_item fm.sn is exist - process it [13:08:04]wFMCommunicate request_size=4 [13:08:04]MH_SAM_APDU [13:08:04]CAPDU: 80 11 00 00 [13:08:04]Write to MH i2c: E2 08 00 17 35 80 11 00 00 00 00 00 00 C6 [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:04]Read from MH i2c: E2 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 17 00 [13:08:04]MH_I2C_Read... [13:08:04]Read from MH i2c: E2 17 00 17 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 19 [13:08:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:08:04]wFMCommunicate OK [13:08:04]requested_item fd.num is exist - process it [13:08:04]SAM_PROTO_GetFieldsCounters [13:08:04]wFMCommunicate request_size=4 [13:08:04]MH_SAM_APDU [13:08:04]CAPDU: 80 13 00 00 [13:08:04]Write to MH i2c: E2 08 00 18 35 80 13 00 00 00 00 00 00 C9 [13:08:04]Write i2c OK [13:08:04]MH_I2C_Read... [13:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 62 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 62 00 18 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [13:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_GetFieldsCounters done [13:08:05]requested_item shift.num is exist - process it [13:08:05]requested_item shift.opened is exist - process it [13:08:05]req_shift_opened [13:08:05]FM_GetShiftState [13:08:05]SAM_PROTO_GetShiftState [13:08:05]wFMCommunicate request_size=4 [13:08:05]MH_SAM_APDU [13:08:05]CAPDU: 80 13 01 00 [13:08:05]Write to MH i2c: E2 08 00 19 35 80 13 01 00 00 00 00 00 CB [13:08:05]Write i2c OK [13:08:05]MH_I2C_Read... [13:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:05]Read from MH i2c: E2 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 [13:08:05]MH_I2C_Read... [13:08:05]Read from MH i2c: E2 0E 00 19 35 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EF [13:08:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:08:05]wFMCommunicate OK [13:08:05]SAM_PROTO_GetShiftState done [13:08:05]FM_GetShiftState done [13:08:05]req_shift_opened done [13:08:05]requested_item shift.open_date is exist - process it [13:08:05]req_shift_open_date [13:08:05]req_shift_open_date done [13:08:05]produce_requested_data done [13:08:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186545,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:08:05]process_action_free close_receipt [13:08:05]json_value_free [13:08:05]json_value_free done [13:08:05]process_json_proto returns [13:08:05]Send response to host [13:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186545,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:08:05]free response buf [13:08:05]execute_script done [13:08:05]execute_script returns [13:08:05]free content buf [13:08:05]Sock 8.Close socket [13:08:05]Sock 8.Thread stoped [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:34]accept exits with 9 [13:14:34]New connection [13:14:34]New thread 3067358564 created [13:14:34]Thread 3067501924 joined [13:14:34]Waiting for new connection... [13:14:34] Sock 9.Parse request [13:14:34]Sock 9.Check first char [13:14:34]Sock 9.First char is OK [13:14:34]request: POST /json_proto HTTP/1.0 [13:14:34]Method: POST [13:14:34]URL: /json_proto [13:14:34]Method is POST - this is cgi request [13:14:34]url: /json_proto [13:14:34]query_string will be loaded in cgi processing [13:14:34]execute_cgi json_proto POST (null) [13:14:34]execute_cgi path=json_proto method=POST [13:14:34]POST find Content-Length [13:14:34]Host: 172.17.46.131:8080 [13:14:34]Content-Length: 677 [13:14:34]Content-Type: application/json [13:14:34] [13:14:34]POST finish read [13:14:34]Found Content-Length = 677 [13:14:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:34]execute_script... [13:14: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)411682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.900, "sum" : 250.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:34]POST & json_proto [13:14:34]process_json_proto [13:14:34]json parsed OK: [13:14:34]protocol is kg_v1.0 [13:14:34]action value=close_receipt [13:14:34]process_action close_receipt [13:14:34]cmd_close_receipt [13:14:34]MH_GetDate [13:14:34]Write to MH i2c: F0 00 00 1A 35 3E [13:14:34]Write i2c OK [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: F0 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: F0 09 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: F0 09 00 1A 35 00 3F 36 B3 67 7E 41 4F 65 49 [13:14:34]GetLastDocTimeStamp 1739797685 [13:14:34]current date 1739798079 [13:14:34]FM_GetShiftState [13:14:34]SAM_PROTO_GetShiftState [13:14:34]wFMCommunicate request_size=4 [13:14:34]MH_SAM_APDU [13:14:34]CAPDU: 80 13 01 00 [13:14:34]Write to MH i2c: E2 08 00 1B 35 80 13 01 00 00 00 00 00 CD [13:14:34]Write i2c OK [13:14:34]MH_I2C_Read... [13:14:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:34]Read from MH i2c: E2 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 0E 00 [13:14:34]MH_I2C_Read... [13:14:34]Read from MH i2c: E2 0E 00 1B 35 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F1 [13:14:34]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:14:34]wFMCommunicate OK [13:14:34]SAM_PROTO_GetShiftState done [13:14:34]FM_GetShiftState done [13:14:34]opened in 1739752571 [13:14:34]opened+sec_in_day 1739838971 [13:14:34]quantity*price = 25038 [13:14:34]sum+1 = 25039 [13:14:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 133 17.02.2025 13:14 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186546 ФПД: 136663016489548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T131439&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186546&fm=136663016489548&tin=02508201610067®Number=0000000000091857&sum=25000 [13:14:35]StoreToDocumentArchive [13:14:35]shift 644 fd 186546 [13:14:35]save to /storage/0644/doc_00186546 [13:14:35]save last doc name /storage/0644/doc_00186546 to /storage/kkm_last_doc_name [13:14:35]save OK [13:14:35]Clear old archive folders... [13:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:35]tlvbuf is 0204FB90 [13:14:35]SAM_PROTO_ClearQueue [13:14:35]wFMCommunicate request_size=4 [13:14:35]MH_SAM_APDU [13:14:35]CAPDU: 80 09 00 00 [13:14:35]Write to MH i2c: E2 08 00 28 35 80 09 00 00 00 00 00 00 CF [13:14:35]Write i2c OK [13:14:35]MH_I2C_Read... [13:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:35]Read from MH i2c: E2 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 03 00 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [13:14:35]RAPDU: 90 00 [13:14:35]wFMCommunicate OK [13:14:35]SAM_PROTO_ClearQueue done [13:14:35]KKMCreateOFDPacket [13:14:35]OFDProtocolAddRootSTLVToBuf [13:14:35]FM_MakeSignedData [13:14:35]FM_MakeSignedData [13:14:35]SAM_PROTO_SignData [13:14:35]wFMCommunicate request_size=4 [13:14:35]MH_SAM_APDU [13:14:35]CAPDU: 80 0D 01 02 [13:14:35]Write to MH i2c: E2 08 00 29 35 80 0D 01 02 00 00 00 00 D7 [13:14:35]Write i2c OK [13:14:35]MH_I2C_Read... [13:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:35]Read from MH i2c: E2 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 03 00 [13:14:35]MH_I2C_Read... [13:14:35]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [13:14:35]RAPDU: 90 00 [13:14:35]wFMCommunicate OK [13:14:35]wFMCommunicate request_size=255 [13:14:35]MH_SAM_APDU [13:14:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 3F 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D8 02 00 35 04 06 00 7C [13:14:35]Write to MH i2c: E2 02 01 2A 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 3F 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D8 02 00 35 04 06 00 7C 00 00 89 [13:14:35]Write i2c OK [13:14:35]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 03 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [13:14:36]RAPDU: 90 00 [13:14:36]wFMCommunicate OK [13:14:36]wFMCommunicate request_size=10 [13:14:36]MH_SAM_APDU [13:14:36]CAPDU: 80 0D 02 02 05 4B 56 8D 42 4C [13:14:36]Write to MH i2c: E2 0D 00 2B 35 80 0D 02 02 05 00 4B 56 8D 42 4C 00 00 A0 [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 03 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [13:14:36]RAPDU: 90 00 [13:14:36]wFMCommunicate OK [13:14:36]wFMCommunicate request_size=4 [13:14:36]MH_SAM_APDU [13:14:36]CAPDU: 80 0D 03 02 [13:14:36]Write to MH i2c: E2 08 00 2C 35 80 0D 03 02 00 00 00 00 DC [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 0B 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 0B 00 2C 35 00 D7 B6 B4 3E B1 95 E9 A7 90 00 32 [13:14:36]RAPDU: D7 B6 B4 3E B1 95 E9 A7 90 00 [13:14:36]wFMCommunicate OK [13:14:36]SAM_PROTO_SignData done [13:14:36]FM_MakeSignedData done [13:14:36]CreateOFDProtocolMessage [13:14:36]wFMCommunicate request_size=4 [13:14:36]MH_SAM_APDU [13:14:36]CAPDU: 80 11 00 00 [13:14:36]Write to MH i2c: E2 08 00 2D 35 80 11 00 00 00 00 00 00 DC [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:36]Read from MH i2c: E2 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 17 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: E2 17 00 2D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2F [13:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:36]wFMCommunicate OK [13:14:36]CreateOFDProtocolMessage done [13:14:36]OFDSenderStorePacket 186546 [13:14:36]StoreOFDPacket docnum=186546 [13:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D 43 07 01 54 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 3F 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D8 02 00 35 04 06 00 7C 4B 56 8D 42 4C D7 B6 B4 3E B1 95 E9 A7 [13:14:36]CheckFolder [13:14:36]dirname=/storage/ofd_packets [13:14:36]CheckFolder done [13:14:36]ProducePacketName [13:14:36]name=ofd_packets/00186546 [13:14:36]NVStorageSaveData ofd_packets/00186546 [13:14:36]File name is /storage/ofd_packets/00186546 [13:14:36]Write 301 bytes [13:14:36]NVStorageSaveData done [13:14:36]OFDSenderStorePacket done [13:14:36]KKMCreateOFDPacket done [13:14:36]NVStorageSaveData kkm_last_timestamp [13:14:36]File name is /storage/kkm_last_timestamp [13:14:36]Write 4 bytes [13:14:36]NVStorageSaveData done [13:14:36]ExternCall_PrintAddStr [13:14:36]wPrintStart [13:14:36]Write to MH i2c: 01 00 00 2E 35 63 [13:14:36]Write i2c OK [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: 01 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: 01 07 00 [13:14:36]MH_I2C_Read... [13:14:36]Read from MH i2c: 01 07 00 2E 35 00 00 00 00 00 FF 0F 78 [13:14:36]RasterBufferAndPrint [13:14:36]line Счет N : (1)411682 [13:14:36]line ИНН: 02508201610067 [13:14:36]line Контрольно-Кассовый Чек [13:14:36]line ПРОДАЖА [13:14:36]line ТРК (МРК, ГНК) : 22 [13:14:36]line Товар: 2710124130 [13:14:36]line Аи-92-К-2 [13:14:36]line 3.900 * 64.20 [13:14:36]line = 250.38 [13:14:36]line НДС 12% НСП 1% [13:14:36]line > о реализуемом товаре [13:14:36]line ОКРУГЛЕНИЕ: -0.38 [13:14:36]line ИТОГО: 250.00 [13:14:36]line Внесено: 250.00 [13:14:36]line СДАЧА: 0.00 [13:14:36]line НСП 1% : 2.22 [13:14:36]line НДС 12% : 26.59 [13:14:36]line Наличными: 250.00 [13:14:36]line Безнал.: 0.00 [13:14:36]line Место: АЗС № 92 "Партнер Нефть" [13:14:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:14:36]line СНО: Общий режим [13:14:36]line Чек 133 17.02.2025 13:14 [13:14:36]line Смена: 644 ФФД: 1.0 [13:14:36]line ЗНМ: 0300000118 [13:14:36]line РНМ: 0000000000091857 [13:14:36]line Версия ККМ: 001 [13:14:36]line ФМ: 0000000000871826 [13:14:36]line ФД: 186546 [13:14:36]line ФПД: 136663016489548 [13:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T131439&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186546&fm=136663016489548&tin=02508201610067®Number=0000000000091857&sum=25000 [13:14:36]written 0, free lines is 4095 [13:14:36]OFD Sender: Processing packet 186546 [packets to send 49, broken 48] [13:14:36]ProducePacketName [13:14:36]name=ofd_packets/00186546 [13:14:36]OFD Sender: To server: pG, [13:14:36]CommunicateWithHost lk.salyk.kg:30040 [13:14:36]ConnectInit lk.salyk.kg [13:14:36]Connected sock=10 [13:14:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7D 43 07 01 54 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 3F 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D8 02 00 35 04 06 00 7C 4B 56 8D 42 4C D7 B6 B4 3E B1 95 E9 A7 [13:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 7F 47 00 FE 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B2 D8 02 00 F4 03 04 00 99 DC B2 67 B6 04 01 00 00 84 34 26 E7 C0 91 D3 F3 [13:14:37]CommunicateWithHost err = 0 [13:14:37]CheckOFDResponse [13:14:37]1017 (14) - 77093643461234 [13:14:37]1041 (16) - 0000000000871826 [13:14:37]1040 (4) - 186546 [13:14:37]1012 (4) - 17.02.2025 06:52 [13:14:37]1206 (1) - 0 [13:14:37]OFD Sender: Remove packet 186546 [13:14:37]ProducePacketName [13:14:37]name=ofd_packets/00186546 [13:14:37]NVStorageDeleteData [13:14:37]Write to MH i2c: 01 00 00 59 35 8E [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 07 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: 01 07 00 59 35 00 00 00 00 00 EB 0C 8C [13:14:37]RasterBufferAndPrint [13:14:37]line [13:14:37]line [13:14:37]line [13:14:37]line [13:14:37]line [13:14:37]written 0, free lines is 3313 [13:14:37]MH_Cut [13:14:37]Write to MH i2c: D1 01 00 60 35 01 67 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: D1 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: D1 01 00 [13:14:37]MH_I2C_Read... [13:14:37]Read from MH i2c: D1 01 00 60 35 00 66 [13:14:37]Write to MH i2c: 01 00 00 61 35 96 [13:14:37]Write i2c OK [13:14:37]MH_I2C_Read... [13:14:37]OFD Sender: No OFD packet to send [13:14:37]*** Cut start [13:14:37]*** Partial cut [13:14:37]*** CUTSNS_PIN = 1 [13:14:37]*** CUTSNS_PIN = 0 [13:14:38]*** Brake cut motor [13:14:38]Read from MH i2c: 01 [13:14:38]MH_I2C_Read... [13:14:38]*** Stop cut motor [13:14:38]*** Cut end [13:14:38]Read from MH i2c: 01 07 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 FF 0F AB [13:14:38]process_action close_receipt done [13:14:38]requested_data is exist [13:14:38]produce_requested_data [13:14:38]requested_item fm.sn is exist - process it [13:14:38]wFMCommunicate request_size=4 [13:14:38]MH_SAM_APDU [13:14:38]CAPDU: 80 11 00 00 [13:14:38]Write to MH i2c: E2 08 00 62 35 80 11 00 00 00 00 00 00 11 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:38]Read from MH i2c: E2 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 17 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 17 00 62 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 64 [13:14:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:14:38]wFMCommunicate OK [13:14:38]requested_item fd.num is exist - process it [13:14:38]SAM_PROTO_GetFieldsCounters [13:14:38]wFMCommunicate request_size=4 [13:14:38]MH_SAM_APDU [13:14:38]CAPDU: 80 13 00 00 [13:14:38]Write to MH i2c: E2 08 00 63 35 80 13 00 00 00 00 00 00 14 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:38]Read from MH i2c: E2 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 62 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 62 00 63 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [13:14:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B2 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:38]wFMCommunicate OK [13:14:38]SAM_PROTO_GetFieldsCounters done [13:14:38]requested_item shift.num is exist - process it [13:14:38]requested_item shift.opened is exist - process it [13:14:38]req_shift_opened [13:14:38]FM_GetShiftState [13:14:38]SAM_PROTO_GetShiftState [13:14:38]wFMCommunicate request_size=4 [13:14:38]MH_SAM_APDU [13:14:38]CAPDU: 80 13 01 00 [13:14:38]Write to MH i2c: E2 08 00 64 35 80 13 01 00 00 00 00 00 16 [13:14:38]Write i2c OK [13:14:38]MH_I2C_Read... [13:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:38]Read from MH i2c: E2 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 0E 00 [13:14:38]MH_I2C_Read... [13:14:38]Read from MH i2c: E2 0E 00 64 35 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3A [13:14:38]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:14:38]wFMCommunicate OK [13:14:38]SAM_PROTO_GetShiftState done [13:14:38]FM_GetShiftState done [13:14:38]req_shift_opened done [13:14:38]requested_item shift.open_date is exist - process it [13:14:38]req_shift_open_date [13:14:38]req_shift_open_date done [13:14:38]produce_requested_data done [13:14:38]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186546,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:14:38]process_action_free close_receipt [13:14:38]json_value_free [13:14:38]json_value_free done [13:14:38]process_json_proto returns [13:14:38]Send response to host [13:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186546,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:14:38]free response buf [13:14:38]execute_script done [13:14:38]execute_script returns [13:14:38]free content buf [13:14:38]Sock 9.Close socket [13:14:38]Sock 9.Thread stoped [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:15]accept exits with 8 [13:15:15]New connection [13:15:15]New thread 3067501924 created [13:15:15]Thread 3067358564 joined [13:15:15]Waiting for new connection... [13:15:15] Sock 8.Parse request [13:15:15]Sock 8.Check first char [13:15:15]Sock 8.First char is OK [13:15:15]request: POST /json_proto HTTP/1.0 [13:15:15]Method: POST [13:15:15]URL: /json_proto [13:15:15]Method is POST - this is cgi request [13:15:15]url: /json_proto [13:15:15]query_string will be loaded in cgi processing [13:15:15]execute_cgi json_proto POST (null) [13:15:15]execute_cgi path=json_proto method=POST [13:15:15]POST find Content-Length [13:15:15]Host: 172.17.46.131:8080 [13:15:15]Content-Length: 678 [13:15:15]Content-Type: application/json [13:15:15] [13:15:15]POST finish read [13:15:15]Found Content-Length = 678 [13:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:15]execute_script... [13:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:15]POST & json_proto [13:15:15]process_json_proto [13:15:15]json parsed OK: [13:15:15]protocol is kg_v1.0 [13:15:15]action value=close_receipt [13:15:15]process_action close_receipt [13:15:15]cmd_close_receipt [13:15:15]MH_GetDate [13:15:15]Write to MH i2c: F0 00 00 65 35 89 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: F0 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: F0 09 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: F0 09 00 65 35 00 68 36 B3 67 7E 41 4F 65 BD [13:15:15]GetLastDocTimeStamp 1739798079 [13:15:15]current date 1739798120 [13:15:15]FM_GetShiftState [13:15:15]SAM_PROTO_GetShiftState [13:15:15]wFMCommunicate request_size=4 [13:15:15]MH_SAM_APDU [13:15:15]CAPDU: 80 13 01 00 [13:15:15]Write to MH i2c: E2 08 00 66 35 80 13 01 00 00 00 00 00 18 [13:15:15]Write i2c OK [13:15:15]MH_I2C_Read... [13:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:15]Read from MH i2c: E2 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0E 00 [13:15:15]MH_I2C_Read... [13:15:15]Read from MH i2c: E2 0E 00 66 35 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3C [13:15:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:15:15]wFMCommunicate OK [13:15:15]SAM_PROTO_GetShiftState done [13:15:15]FM_GetShiftState done [13:15:15]opened in 1739752571 [13:15:15]opened+sec_in_day 1739838971 [13:15:15]quantity*price = 70042 [13:15:15]sum+1 = 70043 [13:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 134 17.02.2025 13:15 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186547 ФПД: 11843120620199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T131520&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186547&fm=11843120620199&tin=02508201610067®Number=0000000000091857&sum=70000 [13:15:16]StoreToDocumentArchive [13:15:16]shift 644 fd 186547 [13:15:16]save to /storage/0644/doc_00186547 [13:15:16]save last doc name /storage/0644/doc_00186547 to /storage/kkm_last_doc_name [13:15:16]save OK [13:15:16]Clear old archive folders... [13:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:16]tlvbuf is 02026F40 [13:15:16]SAM_PROTO_ClearQueue [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 09 00 00 [13:15:16]Write to MH i2c: E2 08 00 73 35 80 09 00 00 00 00 00 00 1A [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 03 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [13:15:16]RAPDU: 90 00 [13:15:16]wFMCommunicate OK [13:15:16]SAM_PROTO_ClearQueue done [13:15:16]KKMCreateOFDPacket [13:15:16]OFDProtocolAddRootSTLVToBuf [13:15:16]FM_MakeSignedData [13:15:16]FM_MakeSignedData [13:15:16]SAM_PROTO_SignData [13:15:16]wFMCommunicate request_size=4 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 0D 01 02 [13:15:16]Write to MH i2c: E2 08 00 74 35 80 0D 01 02 00 00 00 00 22 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:16]Read from MH i2c: E2 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 03 00 [13:15:16]MH_I2C_Read... [13:15:16]Read from MH i2c: E2 03 00 74 35 00 90 00 1D [13:15:16]RAPDU: 90 00 [13:15:16]wFMCommunicate OK [13:15:16]wFMCommunicate request_size=255 [13:15:16]MH_SAM_APDU [13:15:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 68 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D8 02 00 35 04 06 00 0A [13:15:16]Write to MH i2c: E2 02 01 75 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 68 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D8 02 00 35 04 06 00 0A 00 00 C7 [13:15:16]Write i2c OK [13:15:16]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=10 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 02 02 05 C5 70 FF 62 A7 [13:15:17]Write to MH i2c: E2 0D 00 76 35 80 0D 02 02 05 00 C5 70 FF 62 A7 00 00 6C [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [13:15:17]RAPDU: 90 00 [13:15:17]wFMCommunicate OK [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 0D 03 02 [13:15:17]Write to MH i2c: E2 08 00 77 35 80 0D 03 02 00 00 00 00 27 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0B 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 0B 00 77 35 00 9A A3 96 2D 97 F1 EC 19 90 00 B5 [13:15:17]RAPDU: 9A A3 96 2D 97 F1 EC 19 90 00 [13:15:17]wFMCommunicate OK [13:15:17]SAM_PROTO_SignData done [13:15:17]FM_MakeSignedData done [13:15:17]CreateOFDProtocolMessage [13:15:17]wFMCommunicate request_size=4 [13:15:17]MH_SAM_APDU [13:15:17]CAPDU: 80 11 00 00 [13:15:17]Write to MH i2c: E2 08 00 78 35 80 11 00 00 00 00 00 00 27 [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:17]Read from MH i2c: E2 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: E2 17 00 78 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7A [13:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:15:17]wFMCommunicate OK [13:15:17]CreateOFDProtocolMessage done [13:15:17]OFDSenderStorePacket 186547 [13:15:17]StoreOFDPacket docnum=186547 [13:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F 06 07 01 3C 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 68 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D8 02 00 35 04 06 00 0A C5 70 FF 62 A7 9A A3 96 2D 97 F1 EC 19 [13:15:17]CheckFolder [13:15:17]dirname=/storage/ofd_packets [13:15:17]CheckFolder done [13:15:17]ProducePacketName [13:15:17]name=ofd_packets/00186547 [13:15:17]NVStorageSaveData ofd_packets/00186547 [13:15:17]File name is /storage/ofd_packets/00186547 [13:15:17]Write 301 bytes [13:15:17]NVStorageSaveData done [13:15:17]OFDSenderStorePacket done [13:15:17]KKMCreateOFDPacket done [13:15:17]NVStorageSaveData kkm_last_timestamp [13:15:17]File name is /storage/kkm_last_timestamp [13:15:17]Write 4 bytes [13:15:17]NVStorageSaveData done [13:15:17]ExternCall_PrintAddStr [13:15:17]wPrintStart [13:15:17]Write to MH i2c: 01 00 00 79 35 AE [13:15:17]Write i2c OK [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 [13:15:17]MH_I2C_Read... [13:15:17]Read from MH i2c: 01 07 00 79 35 00 00 00 00 00 FF 0F C3 [13:15:17]RasterBufferAndPrint [13:15:17]line Счет N : (1)411683 [13:15:17]line ИНН: 02508201610067 [13:15:17]line Контрольно-Кассовый Чек [13:15:17]line ПРОДАЖА [13:15:17]line ТРК (МРК, ГНК) : 32 [13:15:17]line Товар: 2710124130 [13:15:17]line Аи-92-К-2 [13:15:17]line 10.910 * 64.20 [13:15:17]line = 700.42 [13:15:17]line НДС 12% НСП 1% [13:15:17]line > о реализуемом товаре [13:15:17]line ОКРУГЛЕНИЕ: -0.42 [13:15:17]line ИТОГО: 700.00 [13:15:17]line Внесено: 700.00 [13:15:17]line СДАЧА: 0.00 [13:15:17]line НСП 1% : 6.20 [13:15:17]line НДС 12% : 74.38 [13:15:17]line Наличными: 700.00 [13:15:17]line Безнал.: 0.00 [13:15:17]line Место: АЗС № 92 "Партнер Нефть" [13:15:17]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:15:17]line СНО: Общий режим [13:15:17]line Чек 134 17.02.2025 13:15 [13:15:17]line Смена: 644 ФФД: 1.0 [13:15:17]line ЗНМ: 0300000118 [13:15:17]line РНМ: 0000000000091857 [13:15:17]line Версия ККМ: 001 [13:15:17]line ФМ: 0000000000871826 [13:15:17]line ФД: 186547 [13:15:17]line ФПД: 11843120620199 [13:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T131520&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186547&fm=11843120620199&tin=02508201610067®Number=0000000000091857&sum=70000 [13:15:17]OFD Sender: Processing packet 186547 [packets to send 49, broken 48] [13:15:17]ProducePacketName [13:15:17]name=ofd_packets/00186547 [13:15:17]OFD Sender: To server: pG, [13:15:17]CommunicateWithHost lk.salyk.kg:30040 [13:15:17]ConnectInit lk.salyk.kg [13:15:17]written 0, free lines is 4095 [13:15:17]Connected sock=10 [13:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2F 06 07 01 3C 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 68 36 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D8 02 00 35 04 06 00 0A C5 70 FF 62 A7 9A A3 96 2D 97 F1 EC 19 [13:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 0B 47 00 60 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B3 D8 02 00 F4 03 04 00 C2 DC B2 67 B6 04 01 00 00 0D 09 2D 7C B5 B9 29 EE [13:15:17]CommunicateWithHost err = 0 [13:15:17]CheckOFDResponse [13:15:17]1017 (14) - 77093643461234 [13:15:17]1041 (16) - 0000000000871826 [13:15:17]1040 (4) - 186547 [13:15:17]1012 (4) - 17.02.2025 06:52 [13:15:17]1206 (1) - 0 [13:15:17]OFD Sender: Remove packet 186547 [13:15:17]ProducePacketName [13:15:17]name=ofd_packets/00186547 [13:15:17]NVStorageDeleteData [13:15:18]Write to MH i2c: 01 00 00 A4 35 D9 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: 01 07 00 A4 35 00 00 00 00 00 EC 0C D8 [13:15:18]RasterBufferAndPrint [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]line [13:15:18]written 0, free lines is 3315 [13:15:18]MH_Cut [13:15:18]Write to MH i2c: D1 01 00 AB 35 01 B2 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 01 00 [13:15:18]MH_I2C_Read... [13:15:18]Read from MH i2c: D1 01 00 AB 35 00 B1 [13:15:18]Write to MH i2c: 01 00 00 AC 35 E1 [13:15:18]Write i2c OK [13:15:18]MH_I2C_Read... [13:15:18]OFD Sender: No OFD packet to send [13:15:18]*** Cut start [13:15:18]*** Partial cut [13:15:18]*** CUTSNS_PIN = 1 [13:15:18]*** CUTSNS_PIN = 0 [13:15:19]*** Brake cut motor [13:15:19]Read from MH i2c: 01 [13:15:19]MH_I2C_Read... [13:15:19]*** Stop cut motor [13:15:19]*** Cut end [13:15:19]Read from MH i2c: 01 07 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: 01 07 00 AC 35 00 00 00 00 00 FF 0F F6 [13:15:19]process_action close_receipt done [13:15:19]requested_data is exist [13:15:19]produce_requested_data [13:15:19]requested_item fm.sn is exist - process it [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 11 00 00 [13:15:19]Write to MH i2c: E2 08 00 AD 35 80 11 00 00 00 00 00 00 5C [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 17 00 AD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AF [13:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:15:19]wFMCommunicate OK [13:15:19]requested_item fd.num is exist - process it [13:15:19]SAM_PROTO_GetFieldsCounters [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 13 00 00 [13:15:19]Write to MH i2c: E2 08 00 AE 35 80 13 00 00 00 00 00 00 5F [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 62 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 62 00 AE 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [13:15:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:19]wFMCommunicate OK [13:15:19]SAM_PROTO_GetFieldsCounters done [13:15:19]requested_item shift.num is exist - process it [13:15:19]requested_item shift.opened is exist - process it [13:15:19]req_shift_opened [13:15:19]FM_GetShiftState [13:15:19]SAM_PROTO_GetShiftState [13:15:19]wFMCommunicate request_size=4 [13:15:19]MH_SAM_APDU [13:15:19]CAPDU: 80 13 01 00 [13:15:19]Write to MH i2c: E2 08 00 AF 35 80 13 01 00 00 00 00 00 61 [13:15:19]Write i2c OK [13:15:19]MH_I2C_Read... [13:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:19]Read from MH i2c: E2 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 0E 00 [13:15:19]MH_I2C_Read... [13:15:19]Read from MH i2c: E2 0E 00 AF 35 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 85 [13:15:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:15:19]wFMCommunicate OK [13:15:19]SAM_PROTO_GetShiftState done [13:15:19]FM_GetShiftState done [13:15:19]req_shift_opened done [13:15:19]requested_item shift.open_date is exist - process it [13:15:19]req_shift_open_date [13:15:19]req_shift_open_date done [13:15:19]produce_requested_data done [13:15:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186547,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:15:19]process_action_free close_receipt [13:15:19]json_value_free [13:15:19]json_value_free done [13:15:19]process_json_proto returns [13:15:19]Send response to host [13:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186547,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:15:19]free response buf [13:15:19]execute_script done [13:15:19]execute_script returns [13:15:19]free content buf [13:15:19]Sock 8.Close socket [13:15:19]Sock 8.Thread stoped [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [00:00:11]/dev/ttyS4 opened [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40106239+1699692926=1739799165 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 7D 3A B3 67 7E 41 4F 65 43 [13:32:45]Current date/time: 17.02.2025 13:32 [13:32:45]FM_Init [13:32:45]wFMConnect [13:32:45]MH_SAM_On [13:32:45]Write to MH i2c: E0 00 00 08 00 E7 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_init finished! [13:32:45]*** atr: [13:32:45]*** 0F 3B D5 18 FF 81 91 FE [13:32:45]*** 1F C3 80 73 C8 21 10 0A [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]*** 00 00 00 00 00 00 00 00 [13:32:45]Read from MH i2c: E0 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E0 10 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:32:45]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:32:45]wFMCommunicate request_size=10 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:32:45]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]wFMCommunicate request_size=4 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 11 00 00 [13:32:45]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 17 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [13:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:45]wFMCommunicate OK [13:32:45]Detected FM SN is 0000000000871826 [13:32:45]Stored FM SN is 0000000000871826 [13:32:45]wFMCommunicate request_size=9 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 16 00 00 04 3B 45 00 00 [13:32:45]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]FM PIN OK [13:32:45]wFMCommunicate request_size=8 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 14 04 00 03 02 00 01 [13:32:45]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]wFMCommunicate request_size=13 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:32:45]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:32:45]RAPDU: 90 00 [13:32:45]wFMCommunicate OK [13:32:45]wFMCommunicate request_size=4 [13:32:45]MH_SAM_APDU [13:32:45]CAPDU: 80 11 00 00 [13:32:45]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:45]Read from MH i2c: E2 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 17 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [13:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:45]wFMCommunicate OK [13:32:45]DocumentArchiveInit [13:32:45]Start Httpd... [13:32:45]Httpd thread 3067231588 created [13:32:45]Write to MH i2c: 01 00 00 0F 00 0F [13:32:45]Write i2c OK [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: 01 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: 01 07 00 [13:32:45]MH_I2C_Read... [13:32:45]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:32:45]MH Int Process started [13:32:45]Allocated Socket 7 [13:32:45]Bind OK [13:32:45]Listen OK [13:32:45]httpd running on port 8080 [13:32:45]Waiting for new connection... [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:52]accept exits with 8 [13:32:52]New connection [13:32:52]New thread 3066944868 created [13:32:52]Waiting for new connection... [13:32:52] Sock 8.Parse request [13:32:52]Sock 8.Check first char [13:32:52]Sock 8.First char is OK [13:32:52]request: POST /json_proto HTTP/1.0 [13:32:52]Method: POST [13:32:52]URL: /json_proto [13:32:52]Method is POST - this is cgi request [13:32:52]url: /json_proto [13:32:52]query_string will be loaded in cgi processing [13:32:52]execute_cgi json_proto POST (null) [13:32:52]execute_cgi path=json_proto method=POST [13:32:52]POST find Content-Length [13:32:52]Host: 172.17.46.131:8080 [13:32:52]Content-Length: 215 [13:32:52]Content-Type: application/json [13:32:52] [13:32:52]POST finish read [13:32:52]Found Content-Length = 215 [13:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:52]execute_script... [13:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:52]POST & json_proto [13:32:52]process_json_proto [13:32:52]json parsed OK: [13:32:52]protocol is kg_v1.0 [13:32:52]action value=get_value [13:32:52]process_action get_value [13:32:52]cmd_get_value [13:32:52]process_action get_value done [13:32:52]requested_data is exist [13:32:52]produce_requested_data [13:32:52]requested_item kkm.sn is exist - process it [13:32:52]requested_item kkm.ver is exist - process it [13:32:52]requested_item fm.sn is exist - process it [13:32:52]wFMCommunicate request_size=4 [13:32:52]MH_SAM_APDU [13:32:52]CAPDU: 80 11 00 00 [13:32:52]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:52]Read from MH i2c: E2 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 17 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [13:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:52]wFMCommunicate OK [13:32:52]requested_item fd.num is exist - process it [13:32:52]SAM_PROTO_GetFieldsCounters [13:32:52]wFMCommunicate request_size=4 [13:32:52]MH_SAM_APDU [13:32:52]CAPDU: 80 13 00 00 [13:32:52]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:52]Read from MH i2c: E2 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 62 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [13:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B3 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:52]wFMCommunicate OK [13:32:52]SAM_PROTO_GetFieldsCounters done [13:32:52]requested_item shift.num is exist - process it [13:32:52]requested_item shift.opened is exist - process it [13:32:52]req_shift_opened [13:32:52]FM_GetShiftState [13:32:52]SAM_PROTO_GetShiftState [13:32:52]wFMCommunicate request_size=4 [13:32:52]MH_SAM_APDU [13:32:52]CAPDU: 80 13 01 00 [13:32:52]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:32:52]Write i2c OK [13:32:52]MH_I2C_Read... [13:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:52]Read from MH i2c: E2 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 0E 00 [13:32:52]MH_I2C_Read... [13:32:52]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B3 [13:32:52]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:32:52]wFMCommunicate OK [13:32:52]SAM_PROTO_GetShiftState done [13:32:52]FM_GetShiftState done [13:32:52]req_shift_opened done [13:32:52]requested_item shift.open_date is exist - process it [13:32:52]req_shift_open_date [13:32:52]req_shift_open_date done [13:32:52]produce_requested_data done [13:32:52]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186547,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:32:52]process_action_free get_value [13:32:52]json_value_free [13:32:52]json_value_free done [13:32:52]process_json_proto returns [13:32:52]Send response to host [13:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186547,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:32:52]free response buf [13:32:52]execute_script done [13:32:52]execute_script returns [13:32:52]free content buf [13:32:52]Sock 8.Close socket [13:32:52]Sock 8.Thread stoped [13:32:52]accept exits with 9 [13:32:52]New connection [13:32:52]New thread 3066801508 created [13:32:52]Thread 3066944868 joined [13:32:52]Waiting for new connection... [13:32:52] Sock 9.Parse request [13:32:52]Sock 9.Check first char [13:32:52]Sock 9.First char is OK [13:32:52]request: POST /json_proto HTTP/1.0 [13:32:52]Method: POST [13:32:52]URL: /json_proto [13:32:52]Method is POST - this is cgi request [13:32:52]url: /json_proto [13:32:52]query_string will be loaded in cgi processing [13:32:52]execute_cgi json_proto POST (null) [13:32:52]execute_cgi path=json_proto method=POST [13:32:52]POST find Content-Length [13:32:52]Host: 172.17.46.131:8080 [13:32:52]Content-Length: 331 [13:32:52]Content-Type: application/json [13:32:52] [13:32:52]POST finish read [13:32:52]Found Content-Length = 331 [13:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:32:52]execute_script... [13:32:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:32:53]POST & json_proto [13:32:53]process_json_proto [13:32:53]json parsed OK: [13:32:53]protocol is kg_v1.0 [13:32:53]action value=get_value [13:32:53]process_action get_value [13:32:53]cmd_get_value [13:32:53]process_action get_value done [13:32:53]requested_data is exist [13:32:53]produce_requested_data [13:32:53]requested_item fm.sale.total is exist - process it [13:32:53]SAM_PROTO_GetFMData [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 13 03 00 [13:32:53]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 AB D3 02 00 69 04 A3 00 6F 04 04 00 98 D3 02 00 B1 04 05 00 9A 24 35 18 04 70 04 05 00 CC F0 01 98 03 72 04 04 00 CE 33 33 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 11 59 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FC 38 47 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 5A [13:32:53]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 AB D3 02 00 69 04 A3 00 6F 04 04 00 98 D3 02 00 B1 04 05 00 9A 24 35 18 04 70 04 05 00 CC F0 01 98 03 72 04 04 00 CE 33 33 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2E 11 59 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FC 38 47 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [13:32:53]wFMCommunicate OK [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 17 00 00 [13:32:53]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 5D [13:32:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [13:32:53]wFMCommunicate OK [13:32:53]wFMCommunicate request_size=4 [13:32:53]MH_SAM_APDU [13:32:53]CAPDU: 80 17 00 00 [13:32:53]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:32:53]Write i2c OK [13:32:53]MH_I2C_Read... [13:32:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:53]Read from MH i2c: E2 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 [13:32:53]MH_I2C_Read... [13:32:53]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [13:32:54]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 17 00 00 [13:32:54]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 FD 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [13:32:54]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 17 00 00 [13:32:54]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 DE 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [13:32:54]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:32:54]wFMCommunicate OK [13:32:54]SAM_PROTO_GetFMData done [13:32:54]requested_item fm.sale_refund.total is exist - process it [13:32:54]requested_item fm.buy.total is exist - process it [13:32:54]requested_item shift.sale.total is exist - process it [13:32:54]SAM_PROTO_GetShiftData [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 13 02 00 [13:32:54]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:54]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:32:54]Read from MH i2c: E2 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 FD 00 [13:32:54]MH_I2C_Read... [13:32:54]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 9F F3 A5 70 04 03 00 F8 E4 77 72 04 03 00 A7 0E 2E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD A0 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0F 78 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D5 [13:32:54]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 86 00 00 00 69 04 9C 00 6F 04 04 00 86 00 00 00 B1 04 03 00 9F F3 A5 70 04 03 00 F8 E4 77 72 04 03 00 A7 0E 2E 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 BD A0 11 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 0F 78 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [13:32:54]wFMCommunicate OK [13:32:54]wFMCommunicate request_size=4 [13:32:54]MH_SAM_APDU [13:32:54]CAPDU: 80 17 00 00 [13:32:54]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:32:54]Write i2c OK [13:32:54]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 B2 [13:32:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 17 00 00 [13:32:55]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]OFD Sender: No OFD packet to send [13:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 1A 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [13:32:55]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 17 00 00 [13:32:55]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 19 [13:32:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [13:32:55]wFMCommunicate OK [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 17 00 00 [13:32:55]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 CC 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [13:32:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_GetShiftData done [13:32:56]requested_item shift.sale.total_cash is exist - process it [13:32:56]requested_item shift.sale_refund.total is exist - process it [13:32:56]requested_item shift.sale_refund.total_cash is exist - process it [13:32:56]requested_item shift.buy.total is exist - process it [13:32:56]requested_item shift.buy.total_cash is exist - process it [13:32:56]produce_requested_data done [13:32:56]produce_requested_data return {"fm.sale.total":175860051.46,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":108758.07,"shift.sale.total_cash":78574.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:32:56]process_action_free get_value [13:32:56]json_value_free [13:32:56]json_value_free done [13:32:56]process_json_proto returns [13:32:56]Send response to host [13:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":175860051.46,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":108758.07,"shift.sale.total_cash":78574.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:32:56]free response buf [13:32:56]execute_script done [13:32:56]execute_script returns [13:32:56]free content buf [13:32:56]Sock 9.Close socket [13:32:56]Sock 9.Thread stoped [13:32:56]accept exits with 8 [13:32:56]New connection [13:32:56]New thread 3066944868 created [13:32:56]Thread 3066801508 joined [13:32:56]Waiting for new connection... [13:32:56] Sock 8.Parse request [13:32:56]Sock 8.Check first char [13:32:56]Sock 8.First char is OK [13:32:56]request: POST /json_proto HTTP/1.0 [13:32:56]Method: POST [13:32:56]URL: /json_proto [13:32:56]Method is POST - this is cgi request [13:32:56]url: /json_proto [13:32:56]query_string will be loaded in cgi processing [13:32:56]execute_cgi json_proto POST (null) [13:32:56]execute_cgi path=json_proto method=POST [13:32:56]POST find Content-Length [13:32:56]Host: 172.17.46.131:8080 [13:32:56]Content-Length: 678 [13:32:56]Content-Type: application/json [13:32:56] [13:32:56]POST finish read [13:32:56]Found Content-Length = 678 [13:32:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.60, "quantity" : 34.030, "sum" : 2470.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2470.00, "total" : 2470.00, "payments": [ { "type": 0, "sum" : 2470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:56]execute_script... [13:32: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)411680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710124100", "name": "\u0414\u0422-\u041A-1", "price" : 72.60, "quantity" : 34.030, "sum" : 2470.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2470.00, "total" : 2470.00, "payments": [ { "type": 0, "sum" : 2470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:56]POST & json_proto [13:32:56]process_json_proto [13:32:56]json parsed OK: [13:32:56]protocol is kg_v1.0 [13:32:56]action value=close_receipt [13:32:56]process_action close_receipt [13:32:56]cmd_close_receipt [13:32:56]MH_GetDate [13:32:56]Write to MH i2c: F0 00 00 1D 00 0C [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: F0 09 00 1D 00 00 89 3A B3 67 7E 41 4F 65 65 [13:32:56]GetLastDocTimeStamp 1739798120 [13:32:56]current date 1739799177 [13:32:56]FM_GetShiftState [13:32:56]SAM_PROTO_GetShiftState [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 13 01 00 [13:32:56]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0E 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BF [13:32:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_GetShiftState done [13:32:56]FM_GetShiftState done [13:32:56]opened in 1739752571 [13:32:56]opened+sec_in_day 1739838971 [13:32:56]quantity*price = 247057 [13:32:56]sum+1 = 247059 [13:32:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 2470.00 Внесено: 2470.00 СДАЧА: 0.00 НСП 1% : 21.86 НДС 12% : 262.36 Наличными: 2470.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 135 17.02.2025 13:32 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186548 ФПД: 81013591035918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186548&fm=81013591035918&tin=02508201610067®Number=0000000000091857&sum=247000 [13:32:57]StoreToDocumentArchive [13:32:57]shift 644 fd 186548 [13:32:57]save to /storage/0644/doc_00186548 [13:32:57]save last doc name /storage/0644/doc_00186548 to /storage/kkm_last_doc_name [13:32:57]save OK [13:32:57]Clear old archive folders... [13:32:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:32:57]tlvbuf is 00437EC0 [13:32:57]SAM_PROTO_ClearQueue [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 09 00 00 [13:32:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_ClearQueue done [13:32:57]KKMCreateOFDPacket [13:32:57]OFDProtocolAddRootSTLVToBuf [13:32:57]FM_MakeSignedData [13:32:57]FM_MakeSignedData [13:32:57]SAM_PROTO_SignData [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 01 02 [13:32:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:32:57]RAPDU: 90 00 [13:32:57]wFMCommunicate OK [13:32:57]wFMCommunicate request_size=255 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 EE 84 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 12 C5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 C4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 66 00 00 00 00 07 04 06 00 D8 C4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 89 3A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D8 02 00 35 04 06 00 49 AE 72 50 [13:32:58]Write to MH i2c: E2 02 01 2D 00 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 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 EE 84 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 12 C5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 C4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 66 00 00 00 00 07 04 06 00 D8 C4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 89 3A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D8 02 00 35 04 06 00 49 AE 72 50 00 00 A1 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=7 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 02 02 02 D0 0E [13:32:58]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 D0 0E 00 00 8A [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 03 02 [13:32:58]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 2F 00 00 24 BF 1F 7E 11 C9 8C AE 90 00 3F [13:32:58]RAPDU: 24 BF 1F 7E 11 C9 8C AE 90 00 [13:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_SignData done [13:32:58]FM_MakeSignedData done [13:32:58]CreateOFDProtocolMessage [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 11 00 00 [13:32:58]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [13:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:32:58]wFMCommunicate OK [13:32:58]CreateOFDProtocolMessage done [13:32:58]OFDSenderStorePacket 186548 [13:32:58]StoreOFDPacket docnum=186548 [13:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B0 96 04 01 B5 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 EE 84 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 12 C5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 C4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 66 00 00 00 00 07 04 06 00 D8 C4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 89 3A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D8 02 00 35 04 06 00 49 AE 72 50 D0 0E 24 BF 1F 7E 11 C9 8C AE [13:32:58]CheckFolder [13:32:58]dirname=/storage/ofd_packets [13:32:58]CheckFolder done [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00186548 [13:32:58]NVStorageSaveData ofd_packets/00186548 [13:32:58]File name is /storage/ofd_packets/00186548 [13:32:58]Write 298 bytes [13:32:58]NVStorageSaveData done [13:32:58]OFDSenderStorePacket done [13:32:58]KKMCreateOFDPacket done [13:32:58]NVStorageSaveData kkm_last_timestamp [13:32:58]File name is /storage/kkm_last_timestamp [13:32:58]Write 4 bytes [13:32:58]NVStorageSaveData done [13:32:58]ExternCall_PrintAddStr [13:32:58]wPrintStart [13:32:58]Write to MH i2c: 01 00 00 31 00 31 [13:32:58]OFD Sender: Processing packet 186548 [packets to send 49, broken 48] [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00186548 [13:32:58]OFD Sender: To server: pG, [13:32:58]CommunicateWithHost lk.salyk.kg:30040 [13:32:58]ConnectInit lk.salyk.kg [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:32:58]RasterBufferAndPrint [13:32:58]line Счет N : (1)411680 [13:32:58]line ИНН: 02508201610067 [13:32:58]line Контрольно-Кассовый Чек [13:32:58]line ПРОДАЖА [13:32:58]line ТРК (МРК, ГНК) : 5 [13:32:58]line Товар: 2710124100 [13:32:58]line ДТ-К-1 [13:32:58]line 34.030 * 72.60 [13:32:58]line = 2470.58 [13:32:58]line НДС 12% НСП 1% [13:32:58]line > о реализуемом товаре [13:32:58]line ОКРУГЛЕНИЕ: -0.58 [13:32:58]line ИТОГО: 2470.00 [13:32:58]line Внесено: 2470.00 [13:32:58]line СДАЧА: 0.00 [13:32:58]line НСП 1% : 21.86 [13:32:58]line НДС 12% : 262.36 [13:32:58]line Наличными: 2470.00 [13:32:58]line Безнал.: 0.00 [13:32:58]line Место: АЗС № 92 "Партнер Нефть" [13:32:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:32:58]line СНО: Общий режим [13:32:58]line Чек 135 17.02.2025 13:32 [13:32:58]line Смена: 644 ФФД: 1.0 [13:32:58]line ЗНМ: 0300000118 [13:32:58]line РНМ: 0000000000091857 [13:32:58]line Версия ККМ: 001 [13:32:58]line ФМ: 0000000000871826 [13:32:58]line ФД: 186548 [13:32:58]line ФПД: 81013591035918 [13:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133257&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186548&fm=81013591035918&tin=02508201610067®Number=0000000000091857&sum=247000 [13:32:58]written 0, free lines is 4095 [13:32:58]Connected sock=10 [13:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B0 96 04 01 B5 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 EE 84 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 12 C5 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 C4 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 66 00 00 00 00 07 04 06 00 D8 C4 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 89 3A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D8 02 00 35 04 06 00 49 AE 72 50 D0 0E 24 BF 1F 7E 11 C9 8C AE [13:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 95 E6 47 00 B4 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B4 D8 02 00 F4 03 04 00 E3 E0 B2 67 B6 04 01 00 00 D5 04 61 CE 25 F2 64 91 [13:32:59]CommunicateWithHost err = 0 [13:32:59]CheckOFDResponse [13:32:59]1017 (14) - 77093643461234 [13:32:59]1041 (16) - 0000000000871826 [13:32:59]1040 (4) - 186548 [13:32:59]1012 (4) - 17.02.2025 07:10 [13:32:59]1206 (1) - 0 [13:32:59]OFD Sender: Remove packet 186548 [13:32:59]ProducePacketName [13:32:59]name=ofd_packets/00186548 [13:32:59]NVStorageDeleteData [13:32:59]Write to MH i2c: 01 00 00 5C 00 5C [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 28 0D 98 [13:32:59]RasterBufferAndPrint [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]written 0, free lines is 3391 [13:32:59]MH_Cut [13:32:59]Write to MH i2c: D1 01 00 63 00 01 35 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 01 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 01 00 63 00 00 34 [13:32:59]Write to MH i2c: 01 00 00 64 00 64 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]OFD Sender: No OFD packet to send [13:32:59]*** Cut start [13:32:59]*** Partial cut [13:32:59]*** CUTSNS_PIN = 1 [13:32:59]*** CUTSNS_PIN = 0 [13:33:00]*** Brake cut motor [13:33:00]Read from MH i2c: 01 [13:33:00]MH_I2C_Read... [13:33:00]*** Stop cut motor [13:33:00]*** Cut end [13:33:00]Read from MH i2c: 01 07 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [13:33:00]process_action close_receipt done [13:33:00]requested_data is exist [13:33:00]produce_requested_data [13:33:00]requested_item fm.sn is exist - process it [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 11 00 00 [13:33:00]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 17 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [13:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:33:00]wFMCommunicate OK [13:33:00]requested_item fd.num is exist - process it [13:33:00]SAM_PROTO_GetFieldsCounters [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 00 00 [13:33:00]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:33:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B4 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetFieldsCounters done [13:33:00]requested_item shift.num is exist - process it [13:33:00]requested_item shift.opened is exist - process it [13:33:00]req_shift_opened [13:33:00]FM_GetShiftState [13:33:00]SAM_PROTO_GetShiftState [13:33:00]wFMCommunicate request_size=4 [13:33:00]MH_SAM_APDU [13:33:00]CAPDU: 80 13 01 00 [13:33:00]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [13:33:00]Write i2c OK [13:33:00]MH_I2C_Read... [13:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:00]Read from MH i2c: E2 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 [13:33:00]MH_I2C_Read... [13:33:00]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 08 [13:33:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:33:00]wFMCommunicate OK [13:33:00]SAM_PROTO_GetShiftState done [13:33:00]FM_GetShiftState done [13:33:00]req_shift_opened done [13:33:00]requested_item shift.open_date is exist - process it [13:33:00]req_shift_open_date [13:33:00]req_shift_open_date done [13:33:00]produce_requested_data done [13:33:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186548,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:33:00]process_action_free close_receipt [13:33:00]json_value_free [13:33:00]json_value_free done [13:33:00]process_json_proto returns [13:33:00]Send response to host [13:33:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186548,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:33:00]free response buf [13:33:00]execute_script done [13:33:00]execute_script returns [13:33:00]free content buf [13:33:00]Sock 8.Close socket [13:33:00]Sock 8.Thread stoped [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]accept exits with 9 [13:35:44]New connection [13:35:44]New thread 3066801508 created [13:35:44]Thread 3066944868 joined [13:35:44]Waiting for new connection... [13:35:44] Sock 9.Parse request [13:35:44]Sock 9.Check first char [13:35:44]Sock 9.First char is OK [13:35:44]request: POST /json_proto HTTP/1.0 [13:35:44]Method: POST [13:35:44]URL: /json_proto [13:35:44]Method is POST - this is cgi request [13:35:44]url: /json_proto [13:35:44]query_string will be loaded in cgi processing [13:35:44]execute_cgi json_proto POST (null) [13:35:44]execute_cgi path=json_proto method=POST [13:35:44]POST find Content-Length [13:35:44]Host: 172.17.46.131:8080 [13:35:44]Content-Length: 682 [13:35:44]Content-Type: application/json [13:35:44] [13:35:44]POST finish read [13:35:44]Found Content-Length = 682 [13:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:44]execute_script... [13:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:44]POST & json_proto [13:35:44]process_json_proto [13:35:44]json parsed OK: [13:35:44]protocol is kg_v1.0 [13:35:44]action value=close_receipt [13:35:44]process_action close_receipt [13:35:44]cmd_close_receipt [13:35:44]MH_GetDate [13:35:44]Write to MH i2c: F0 00 00 68 00 57 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: F0 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: F0 09 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: F0 09 00 68 00 00 31 3B B3 67 7E 41 4F 65 59 [13:35:44]GetLastDocTimeStamp 1739799177 [13:35:44]current date 1739799345 [13:35:44]FM_GetShiftState [13:35:44]SAM_PROTO_GetShiftState [13:35:44]wFMCommunicate request_size=4 [13:35:44]MH_SAM_APDU [13:35:44]CAPDU: 80 13 01 00 [13:35:44]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [13:35:44]Write i2c OK [13:35:44]MH_I2C_Read... [13:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:44]Read from MH i2c: E2 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 0E 00 [13:35:44]MH_I2C_Read... [13:35:44]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0A [13:35:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:35:44]wFMCommunicate OK [13:35:44]SAM_PROTO_GetShiftState done [13:35:44]FM_GetShiftState done [13:35:44]opened in 1739752571 [13:35:44]opened+sec_in_day 1739838971 [13:35:44]quantity*price = 150035 [13:35:44]sum+1 = 150036 [13:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 136 17.02.2025 13:35 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186549 ФПД: 186230332670080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133545&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186549&fm=186230332670080&tin=02508201610067®Number=0000000000091857&sum=150000 [13:35:45]StoreToDocumentArchive [13:35:45]shift 644 fd 186549 [13:35:45]save to /storage/0644/doc_00186549 [13:35:45]save last doc name /storage/0644/doc_00186549 to /storage/kkm_last_doc_name [13:35:45]save OK [13:35:45]Clear old archive folders... [13:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:35:45]tlvbuf is 0043A350 [13:35:45]SAM_PROTO_ClearQueue [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 09 00 00 [13:35:45]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 03 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:35:45]RAPDU: 90 00 [13:35:45]wFMCommunicate OK [13:35:45]SAM_PROTO_ClearQueue done [13:35:45]KKMCreateOFDPacket [13:35:45]OFDProtocolAddRootSTLVToBuf [13:35:45]FM_MakeSignedData [13:35:45]FM_MakeSignedData [13:35:45]SAM_PROTO_SignData [13:35:45]wFMCommunicate request_size=4 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 0D 01 02 [13:35:45]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:45]Read from MH i2c: E2 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 03 00 [13:35:45]MH_I2C_Read... [13:35:45]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [13:35:45]RAPDU: 90 00 [13:35:45]wFMCommunicate OK [13:35:45]wFMCommunicate request_size=255 [13:35:45]MH_SAM_APDU [13:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 31 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D8 02 00 35 04 06 00 A9 [13:35:45]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 31 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D8 02 00 35 04 06 00 A9 00 00 1F [13:35:45]Write i2c OK [13:35:45]MH_I2C_Read... [13:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:46]Read from MH i2c: E2 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 03 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [13:35:46]RAPDU: 90 00 [13:35:46]wFMCommunicate OK [13:35:46]wFMCommunicate request_size=10 [13:35:46]MH_SAM_APDU [13:35:46]CAPDU: 80 0D 02 02 05 60 20 D3 40 80 [13:35:46]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 60 20 D3 40 80 00 00 10 [13:35:46]Write i2c OK [13:35:46]MH_I2C_Read... [13:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:46]Read from MH i2c: E2 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 03 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [13:35:46]RAPDU: 90 00 [13:35:46]wFMCommunicate OK [13:35:46]wFMCommunicate request_size=4 [13:35:46]MH_SAM_APDU [13:35:46]CAPDU: 80 0D 03 02 [13:35:46]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [13:35:46]Write i2c OK [13:35:46]MH_I2C_Read... [13:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:46]Read from MH i2c: E2 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 0B 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 0B 00 7A 00 00 E4 25 5F EB FC 2B 0A 84 90 00 FE [13:35:46]RAPDU: E4 25 5F EB FC 2B 0A 84 90 00 [13:35:46]wFMCommunicate OK [13:35:46]SAM_PROTO_SignData done [13:35:46]FM_MakeSignedData done [13:35:46]CreateOFDProtocolMessage [13:35:46]wFMCommunicate request_size=4 [13:35:46]MH_SAM_APDU [13:35:46]CAPDU: 80 11 00 00 [13:35:46]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [13:35:46]Write i2c OK [13:35:46]MH_I2C_Read... [13:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:46]Read from MH i2c: E2 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 17 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [13:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:35:46]wFMCommunicate OK [13:35:46]CreateOFDProtocolMessage done [13:35:46]OFDSenderStorePacket 186549 [13:35:46]StoreOFDPacket docnum=186549 [13:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 D6 07 01 EC 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 31 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D8 02 00 35 04 06 00 A9 60 20 D3 40 80 E4 25 5F EB FC 2B 0A 84 [13:35:46]CheckFolder [13:35:46]dirname=/storage/ofd_packets [13:35:46]CheckFolder done [13:35:46]ProducePacketName [13:35:46]name=ofd_packets/00186549 [13:35:46]NVStorageSaveData ofd_packets/00186549 [13:35:46]File name is /storage/ofd_packets/00186549 [13:35:46]Write 301 bytes [13:35:46]NVStorageSaveData done [13:35:46]OFDSenderStorePacket done [13:35:46]KKMCreateOFDPacket done [13:35:46]NVStorageSaveData kkm_last_timestamp [13:35:46]File name is /storage/kkm_last_timestamp [13:35:46]Write 4 bytes [13:35:46]NVStorageSaveData done [13:35:46]ExternCall_PrintAddStr [13:35:46]wPrintStart [13:35:46]Write to MH i2c: 01 00 00 7C 00 7C [13:35:46]Write i2c OK [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 07 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [13:35:46]RasterBufferAndPrint [13:35:46]line Счет N : (1)411692 [13:35:46]line ИНН: 02508201610067 [13:35:46]line Контрольно-Кассовый Чек [13:35:46]line ПРОДАЖА [13:35:46]line ТРК (МРК, ГНК) : 12 [13:35:46]line Товар: 2710124130 [13:35:46]line Аи-92-К-2 [13:35:46]line 23.370 * 64.20 [13:35:46]line = 1500.35 [13:35:46]line НДС 12% НСП 1% [13:35:46]line > о реализуемом товаре [13:35:46]line ОКРУГЛЕНИЕ: -0.35 [13:35:46]line ИТОГО: 1500.00 [13:35:46]line Внесено: 1500.00 [13:35:46]line СДАЧА: 0.00 [13:35:46]line НСП 1% : 13.28 [13:35:46]line НДС 12% : 159.33 [13:35:46]line Наличными: 1500.00 [13:35:46]line Безнал.: 0.00 [13:35:46]line Место: АЗС № 92 "Партнер Нефть" [13:35:46]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:35:46]line СНО: Общий режим [13:35:46]line Чек 136 17.02.2025 13:35 [13:35:46]line Смена: 644 ФФД: 1.0 [13:35:46]line ЗНМ: 0300000118 [13:35:46]line РНМ: 0000000000091857 [13:35:46]line Версия ККМ: 001 [13:35:46]line ФМ: 0000000000871826 [13:35:46]line ФД: 186549 [13:35:46]line ФПД: 186230332670080 [13:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133545&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186549&fm=186230332670080&tin=02508201610067®Number=0000000000091857&sum=150000 [13:35:46]OFD Sender: Processing packet 186549 [packets to send 49, broken 48] [13:35:46]ProducePacketName [13:35:46]name=ofd_packets/00186549 [13:35:46]OFD Sender: To server: pG, [13:35:46]CommunicateWithHost lk.salyk.kg:30040 [13:35:46]ConnectInit lk.salyk.kg [13:35:46]written 0, free lines is 4095 [13:35:46]Connected sock=10 [13:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 D6 07 01 EC 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 31 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D8 02 00 35 04 06 00 A9 60 20 D3 40 80 E4 25 5F EB FC 2B 0A 84 [13:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A7 EE 47 00 79 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B5 D8 02 00 F4 03 04 00 8B E1 B2 67 B6 04 01 00 00 F5 60 DA 0F D5 5E 3B 98 [13:35:46]CommunicateWithHost err = 0 [13:35:46]CheckOFDResponse [13:35:46]1017 (14) - 77093643461234 [13:35:46]1041 (16) - 0000000000871826 [13:35:46]1040 (4) - 186549 [13:35:46]1012 (4) - 17.02.2025 07:13 [13:35:46]1206 (1) - 0 [13:35:46]OFD Sender: Remove packet 186549 [13:35:46]ProducePacketName [13:35:46]name=ofd_packets/00186549 [13:35:46]NVStorageDeleteData [13:35:46]Write to MH i2c: 01 00 00 A7 00 A7 [13:35:46]Write i2c OK [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 07 00 [13:35:46]MH_I2C_Read... [13:35:46]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 F7 0C B1 [13:35:46]RasterBufferAndPrint [13:35:46]line [13:35:46]line [13:35:46]line [13:35:46]line [13:35:46]line [13:35:46]written 0, free lines is 3326 [13:35:47]MH_Cut [13:35:47]Write to MH i2c: D1 01 00 AE 00 01 80 [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: D1 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: D1 01 00 [13:35:47]MH_I2C_Read... [13:35:47]Read from MH i2c: D1 01 00 AE 00 00 7F [13:35:47]Write to MH i2c: 01 00 00 AF 00 AF [13:35:47]Write i2c OK [13:35:47]MH_I2C_Read... [13:35:47]OFD Sender: No OFD packet to send [13:35:47]*** Cut start [13:35:47]*** Partial cut [13:35:47]*** CUTSNS_PIN = 1 [13:35:47]*** CUTSNS_PIN = 0 [13:35:48]*** Brake cut motor [13:35:48]Read from MH i2c: 01 [13:35:48]MH_I2C_Read... [13:35:48]*** Stop cut motor [13:35:48]*** Cut end [13:35:48]Read from MH i2c: 01 07 00 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:35:48]process_action close_receipt done [13:35:48]requested_data is exist [13:35:48]produce_requested_data [13:35:48]requested_item fm.sn is exist - process it [13:35:48]wFMCommunicate request_size=4 [13:35:48]MH_SAM_APDU [13:35:48]CAPDU: 80 11 00 00 [13:35:48]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [13:35:48]Write i2c OK [13:35:48]MH_I2C_Read... [13:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:48]Read from MH i2c: E2 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 17 00 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7D [13:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:35:48]wFMCommunicate OK [13:35:48]requested_item fd.num is exist - process it [13:35:48]SAM_PROTO_GetFieldsCounters [13:35:48]wFMCommunicate request_size=4 [13:35:48]MH_SAM_APDU [13:35:48]CAPDU: 80 13 00 00 [13:35:48]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [13:35:48]Write i2c OK [13:35:48]MH_I2C_Read... [13:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:48]Read from MH i2c: E2 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 62 00 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B5 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:48]wFMCommunicate OK [13:35:48]SAM_PROTO_GetFieldsCounters done [13:35:48]requested_item shift.num is exist - process it [13:35:48]requested_item shift.opened is exist - process it [13:35:48]req_shift_opened [13:35:48]FM_GetShiftState [13:35:48]SAM_PROTO_GetShiftState [13:35:48]wFMCommunicate request_size=4 [13:35:48]MH_SAM_APDU [13:35:48]CAPDU: 80 13 01 00 [13:35:48]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [13:35:48]Write i2c OK [13:35:48]MH_I2C_Read... [13:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:48]Read from MH i2c: E2 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 0E 00 [13:35:48]MH_I2C_Read... [13:35:48]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 53 [13:35:48]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:35:48]wFMCommunicate OK [13:35:48]SAM_PROTO_GetShiftState done [13:35:48]FM_GetShiftState done [13:35:48]req_shift_opened done [13:35:48]requested_item shift.open_date is exist - process it [13:35:48]req_shift_open_date [13:35:48]req_shift_open_date done [13:35:48]produce_requested_data done [13:35:48]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186549,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:35:48]process_action_free close_receipt [13:35:48]json_value_free [13:35:48]json_value_free done [13:35:48]process_json_proto returns [13:35:48]Send response to host [13:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186549,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:35:48]free response buf [13:35:48]execute_script done [13:35:48]execute_script returns [13:35:48]free content buf [13:35:48]Sock 9.Close socket [13:35:48]Sock 9.Thread stoped [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]accept exits with 8 [13:37:07]New connection [13:37:07]New thread 3066944868 created [13:37:07]Thread 3066801508 joined [13:37:07]Waiting for new connection... [13:37:07] Sock 8.Parse request [13:37:07]Sock 8.Check first char [13:37:07]Sock 8.First char is OK [13:37:07]request: POST /json_proto HTTP/1.0 [13:37:07]Method: POST [13:37:07]URL: /json_proto [13:37:07]Method is POST - this is cgi request [13:37:07]url: /json_proto [13:37:07]query_string will be loaded in cgi processing [13:37:07]execute_cgi json_proto POST (null) [13:37:07]execute_cgi path=json_proto method=POST [13:37:07]POST find Content-Length [13:37:07]Host: 172.17.46.131:8080 [13:37:07]Content-Length: 678 [13:37:07]Content-Type: application/json [13:37:07] [13:37:07]POST finish read [13:37:07]Found Content-Length = 678 [13:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 60.610, "sum" : 4400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4400.00, "payments": [ { "type": 0, "sum" : 4400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:07]execute_script... [13:37:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 60.610, "sum" : 4400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 4400.00, "payments": [ { "type": 0, "sum" : 4400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:07]POST & json_proto [13:37:07]process_json_proto [13:37:07]json parsed OK: [13:37:07]protocol is kg_v1.0 [13:37:07]action value=close_receipt [13:37:07]process_action close_receipt [13:37:07]cmd_close_receipt [13:37:07]MH_GetDate [13:37:07]Write to MH i2c: F0 00 00 B3 00 A2 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: F0 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: F0 09 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: F0 09 00 B3 00 00 84 3B B3 67 7E 41 4F 65 F7 [13:37:07]GetLastDocTimeStamp 1739799345 [13:37:07]current date 1739799428 [13:37:07]FM_GetShiftState [13:37:07]SAM_PROTO_GetShiftState [13:37:07]wFMCommunicate request_size=4 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 13 01 00 [13:37:07]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 0E 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 55 [13:37:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:37:07]wFMCommunicate OK [13:37:07]SAM_PROTO_GetShiftState done [13:37:07]FM_GetShiftState done [13:37:07]opened in 1739752571 [13:37:07]opened+sec_in_day 1739838971 [13:37:07]quantity*price = 440028 [13:37:07]sum+1 = 440030 [13:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 4400.00 Внесено: 5000.00 СДАЧА: 600.00 НСП 1% : 38.94 НДС 12% : 467.29 Наличными: 4400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 137 17.02.2025 13:37 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186550 ФПД: 231028692300093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186550&fm=231028692300093&tin=02508201610067®Number=0000000000091857&sum=440000 [13:37:08]StoreToDocumentArchive [13:37:08]shift 644 fd 186550 [13:37:08]save to /storage/0644/doc_00186550 [13:37:08]save last doc name /storage/0644/doc_00186550 to /storage/kkm_last_doc_name [13:37:08]save OK [13:37:08]Clear old archive folders... [13:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:37:08]tlvbuf is 003E0F70 [13:37:08]SAM_PROTO_ClearQueue [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 09 00 00 [13:37:08]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]SAM_PROTO_ClearQueue done [13:37:08]KKMCreateOFDPacket [13:37:08]OFDProtocolAddRootSTLVToBuf [13:37:08]FM_MakeSignedData [13:37:08]FM_MakeSignedData [13:37:08]SAM_PROTO_SignData [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 01 02 [13:37:08]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]wFMCommunicate request_size=255 [13:37:08]MH_SAM_APDU [13:37:08]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 C2 EC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 B6 00 00 00 00 07 04 06 00 C0 B6 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 84 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D8 02 00 35 04 06 00 D2 1E 8F 23 [13:37:08]Write to MH i2c: E2 02 01 C3 00 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 C2 EC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 B6 00 00 00 00 07 04 06 00 C0 B6 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 84 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D8 02 00 35 04 06 00 D2 1E 8F 23 00 00 F2 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]wFMCommunicate request_size=7 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 02 02 02 31 3D [13:37:08]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 31 3D 00 00 B0 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:08]Read from MH i2c: E2 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [13:37:08]RAPDU: 90 00 [13:37:08]wFMCommunicate OK [13:37:08]wFMCommunicate request_size=4 [13:37:08]MH_SAM_APDU [13:37:08]CAPDU: 80 0D 03 02 [13:37:08]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0B 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0B 00 C5 00 00 41 F1 E1 BB 05 59 DC EF 90 00 38 [13:37:09]RAPDU: 41 F1 E1 BB 05 59 DC EF 90 00 [13:37:09]wFMCommunicate OK [13:37:09]SAM_PROTO_SignData done [13:37:09]FM_MakeSignedData done [13:37:09]CreateOFDProtocolMessage [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 11 00 00 [13:37:09]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 17 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 93 [13:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:09]wFMCommunicate OK [13:37:09]CreateOFDProtocolMessage done [13:37:09]OFDSenderStorePacket 186550 [13:37:09]StoreOFDPacket docnum=186550 [13:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 94 EE 04 01 F1 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 C2 EC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 B6 00 00 00 00 07 04 06 00 C0 B6 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 84 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D8 02 00 35 04 06 00 D2 1E 8F 23 31 3D 41 F1 E1 BB 05 59 DC EF [13:37:09]CheckFolder [13:37:09]dirname=/storage/ofd_packets [13:37:09]CheckFolder done [13:37:09]ProducePacketName [13:37:09]name=ofd_packets/00186550 [13:37:09]NVStorageSaveData ofd_packets/00186550 [13:37:09]File name is /storage/ofd_packets/00186550 [13:37:09]Write 298 bytes [13:37:09]NVStorageSaveData done [13:37:09]OFDSenderStorePacket done [13:37:09]KKMCreateOFDPacket done [13:37:09]NVStorageSaveData kkm_last_timestamp [13:37:09]File name is /storage/kkm_last_timestamp [13:37:09]Write 4 bytes [13:37:09]NVStorageSaveData done [13:37:09]ExternCall_PrintAddStr [13:37:09]wPrintStart [13:37:09]Write to MH i2c: 01 00 00 C7 00 C7 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [13:37:09]RasterBufferAndPrint [13:37:09]line Счет N : (1)411693 [13:37:09]line ИНН: 02508201610067 [13:37:09]line Контрольно-Кассовый Чек [13:37:09]line ПРОДАЖА [13:37:09]line ТРК (МРК, ГНК) : 5 [13:37:09]line Товар: 2710194210 [13:37:09]line ДТ-К-5 [13:37:09]line 60.610 * 72.60 [13:37:09]line = 4400.29 [13:37:09]line НДС 12% НСП 1% [13:37:09]line > о реализуемом товаре [13:37:09]line ОКРУГЛЕНИЕ: -0.29 [13:37:09]line ИТОГО: 4400.00 [13:37:09]line Внесено: 5000.00 [13:37:09]line СДАЧА: 600.00 [13:37:09]line НСП 1% : 38.94 [13:37:09]line НДС 12% : 467.29 [13:37:09]line Наличными: 4400.00 [13:37:09]line Безнал.: 0.00 [13:37:09]line Место: АЗС № 92 "Партнер Нефть" [13:37:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:37:09]line СНО: Общий режим [13:37:09]line Чек 137 17.02.2025 13:37 [13:37:09]line Смена: 644 ФФД: 1.0 [13:37:09]line ЗНМ: 0300000118 [13:37:09]line РНМ: 0000000000091857 [13:37:09]line Версия ККМ: 001 [13:37:09]line ФМ: 0000000000871826 [13:37:09]line ФД: 186550 [13:37:09]line ФПД: 231028692300093 [13:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133708&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186550&fm=231028692300093&tin=02508201610067®Number=0000000000091857&sum=440000 [13:37:09]OFD Sender: Processing packet 186550 [packets to send 49, broken 48] [13:37:09]ProducePacketName [13:37:09]name=ofd_packets/00186550 [13:37:09]OFD Sender: To server: pG, [13:37:09]CommunicateWithHost lk.salyk.kg:30040 [13:37:09]ConnectInit lk.salyk.kg [13:37:09]written 0, free lines is 4095 [13:37:09]Connected sock=10 [13:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 94 EE 04 01 F1 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 C2 EC 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 DD B6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 B6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 89 B6 00 00 00 00 07 04 06 00 C0 B6 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 84 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D8 02 00 35 04 06 00 D2 1E 8F 23 31 3D 41 F1 E1 BB 05 59 DC EF [13:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 89 D2 47 00 94 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B6 D8 02 00 F4 03 04 00 DE E1 B2 67 B6 04 01 00 00 E7 1F 45 CC 1C 5F EC 83 [13:37:09]CommunicateWithHost err = 0 [13:37:09]CheckOFDResponse [13:37:09]1017 (14) - 77093643461234 [13:37:09]1041 (16) - 0000000000871826 [13:37:09]1040 (4) - 186550 [13:37:09]1012 (4) - 17.02.2025 07:14 [13:37:09]1206 (1) - 0 [13:37:09]OFD Sender: Remove packet 186550 [13:37:09]ProducePacketName [13:37:09]name=ofd_packets/00186550 [13:37:09]NVStorageDeleteData [13:37:09]Write to MH i2c: 01 00 00 F2 00 F2 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 01 0D 07 [13:37:09]RasterBufferAndPrint [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]line [13:37:09]written 0, free lines is 3335 [13:37:09]MH_Cut [13:37:09]Write to MH i2c: D1 01 00 F9 00 01 CB [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 01 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: D1 01 00 F9 00 00 CA [13:37:09]Write to MH i2c: 01 00 00 FA 00 FA [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:10]OFD Sender: No OFD packet to send [13:37:10]*** Cut start [13:37:10]*** Partial cut [13:37:10]*** CUTSNS_PIN = 1 [13:37:10]*** CUTSNS_PIN = 0 [13:37:10]*** Brake cut motor [13:37:11]Read from MH i2c: 01 [13:37:11]MH_I2C_Read... [13:37:11]*** Stop cut motor [13:37:11]*** Cut end [13:37:11]Read from MH i2c: 01 07 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:37:11]process_action close_receipt done [13:37:11]requested_data is exist [13:37:11]produce_requested_data [13:37:11]requested_item fm.sn is exist - process it [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 11 00 00 [13:37:11]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C8 [13:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:37:11]wFMCommunicate OK [13:37:11]requested_item fd.num is exist - process it [13:37:11]SAM_PROTO_GetFieldsCounters [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 13 00 00 [13:37:11]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 62 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B6 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_GetFieldsCounters done [13:37:11]requested_item shift.num is exist - process it [13:37:11]requested_item shift.opened is exist - process it [13:37:11]req_shift_opened [13:37:11]FM_GetShiftState [13:37:11]SAM_PROTO_GetShiftState [13:37:11]wFMCommunicate request_size=4 [13:37:11]MH_SAM_APDU [13:37:11]CAPDU: 80 13 01 00 [13:37:11]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [13:37:11]Write i2c OK [13:37:11]MH_I2C_Read... [13:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:11]Read from MH i2c: E2 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0E 00 [13:37:11]MH_I2C_Read... [13:37:11]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9E [13:37:11]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:37:11]wFMCommunicate OK [13:37:11]SAM_PROTO_GetShiftState done [13:37:11]FM_GetShiftState done [13:37:11]req_shift_opened done [13:37:11]requested_item shift.open_date is exist - process it [13:37:11]req_shift_open_date [13:37:11]req_shift_open_date done [13:37:11]produce_requested_data done [13:37:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186550,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:37:11]process_action_free close_receipt [13:37:11]json_value_free [13:37:11]json_value_free done [13:37:11]process_json_proto returns [13:37:11]Send response to host [13:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186550,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:37:11]free response buf [13:37:11]execute_script done [13:37:11]execute_script returns [13:37:11]free content buf [13:37:11]Sock 8.Close socket [13:37:11]Sock 8.Thread stoped [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]accept exits with 9 [13:39:05]New connection [13:39:05]New thread 3066801508 created [13:39:05]Thread 3066944868 joined [13:39:05]Waiting for new connection... [13:39:05] Sock 9.Parse request [13:39:05]Sock 9.Check first char [13:39:05]Sock 9.First char is OK [13:39:05]request: POST /json_proto HTTP/1.0 [13:39:05]Method: POST [13:39:05]URL: /json_proto [13:39:05]Method is POST - this is cgi request [13:39:05]url: /json_proto [13:39:05]query_string will be loaded in cgi processing [13:39:05]execute_cgi json_proto POST (null) [13:39:05]execute_cgi path=json_proto method=POST [13:39:05]POST find Content-Length [13:39:05]Host: 172.17.46.131:8080 [13:39:05]Content-Length: 754 [13:39:05]Content-Type: application/json [13:39:05] [13:39:05]POST finish read [13:39:05]Found Content-Length = 754 [13:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30022091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:05]execute_script... [13:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30022091", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:05]POST & json_proto [13:39:05]process_json_proto [13:39:05]json parsed OK: [13:39:05]protocol is kg_v1.0 [13:39:05]action value=close_receipt [13:39:05]process_action close_receipt [13:39:05]cmd_close_receipt [13:39:05]MH_GetDate [13:39:05]Write to MH i2c: F0 00 00 FE 00 ED [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 09 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: F0 09 00 FE 00 00 FA 3B B3 67 7E 41 4F 65 B8 [13:39:05]GetLastDocTimeStamp 1739799428 [13:39:05]current date 1739799546 [13:39:05]FM_GetShiftState [13:39:05]SAM_PROTO_GetShiftState [13:39:05]wFMCommunicate request_size=4 [13:39:05]MH_SAM_APDU [13:39:05]CAPDU: 80 13 01 00 [13:39:05]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [13:39:05]Write i2c OK [13:39:05]MH_I2C_Read... [13:39:05]OFD Sender: No OFD packet to send [13:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:05]Read from MH i2c: E2 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 [13:39:05]MH_I2C_Read... [13:39:05]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A0 [13:39:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:39:05]wFMCommunicate OK [13:39:05]SAM_PROTO_GetShiftState done [13:39:05]FM_GetShiftState done [13:39:05]opened in 1739752571 [13:39:05]opened+sec_in_day 1739838971 [13:39:05]quantity*price = 0 [13:39:05]sum+1 = 1 [13:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 138 17.02.2025 13:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: ТК ГПНА Online 30022091 ФМ: 0000000000871826 ФД: 186551 ФПД: 52926463478981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133906&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186551&fm=52926463478981&tin=02508201610067®Number=0000000000091857&sum=0 [13:39:06]StoreToDocumentArchive [13:39:06]shift 644 fd 186551 [13:39:06]save to /storage/0644/doc_00186551 [13:39:06]save last doc name /storage/0644/doc_00186551 to /storage/kkm_last_doc_name [13:39:06]save OK [13:39:06]Clear old archive folders... [13:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:06]tlvbuf is 00051440 [13:39:06]SAM_PROTO_ClearQueue [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 09 00 00 [13:39:06]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:39:06]RAPDU: 90 00 [13:39:06]wFMCommunicate OK [13:39:06]SAM_PROTO_ClearQueue done [13:39:06]KKMCreateOFDPacket [13:39:06]OFDProtocolAddRootSTLVToBuf [13:39:06]FM_MakeSignedData [13:39:06]FM_MakeSignedData [13:39:06]SAM_PROTO_SignData [13:39:06]wFMCommunicate request_size=4 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 0D 01 02 [13:39:06]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [13:39:06]RAPDU: 90 00 [13:39:06]wFMCommunicate OK [13:39:06]wFMCommunicate request_size=255 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 FA 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D8 02 00 35 04 06 00 30 [13:39:06]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 FA 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D8 02 00 35 04 06 00 30 00 00 21 [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:06]Read from MH i2c: E2 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 [13:39:06]MH_I2C_Read... [13:39:06]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [13:39:06]RAPDU: 90 00 [13:39:06]wFMCommunicate OK [13:39:06]wFMCommunicate request_size=10 [13:39:06]MH_SAM_APDU [13:39:06]CAPDU: 80 0D 02 02 05 22 E7 0E 0C C5 [13:39:06]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 22 E7 0E 0C C5 00 00 7C [13:39:06]Write i2c OK [13:39:06]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [13:39:07]RAPDU: 90 00 [13:39:07]wFMCommunicate OK [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 0D 03 02 [13:39:07]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 0B 00 10 01 00 86 89 02 90 D0 43 91 66 90 00 38 [13:39:07]RAPDU: 86 89 02 90 D0 43 91 66 90 00 [13:39:07]wFMCommunicate OK [13:39:07]SAM_PROTO_SignData done [13:39:07]FM_MakeSignedData done [13:39:07]CreateOFDProtocolMessage [13:39:07]wFMCommunicate request_size=4 [13:39:07]MH_SAM_APDU [13:39:07]CAPDU: 80 11 00 00 [13:39:07]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:07]Read from MH i2c: E2 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DF [13:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:39:07]wFMCommunicate OK [13:39:07]CreateOFDProtocolMessage done [13:39:07]OFDSenderStorePacket 186551 [13:39:07]StoreOFDPacket docnum=186551 [13:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 95 07 01 2E F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 FA 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D8 02 00 35 04 06 00 30 22 E7 0E 0C C5 86 89 02 90 D0 43 91 66 [13:39:07]CheckFolder [13:39:07]dirname=/storage/ofd_packets [13:39:07]CheckFolder done [13:39:07]ProducePacketName [13:39:07]name=ofd_packets/00186551 [13:39:07]NVStorageSaveData ofd_packets/00186551 [13:39:07]File name is /storage/ofd_packets/00186551 [13:39:07]Write 301 bytes [13:39:07]NVStorageSaveData done [13:39:07]OFDSenderStorePacket done [13:39:07]KKMCreateOFDPacket done [13:39:07]NVStorageSaveData kkm_last_timestamp [13:39:07]File name is /storage/kkm_last_timestamp [13:39:07]Write 4 bytes [13:39:07]NVStorageSaveData done [13:39:07]ExternCall_PrintAddStr [13:39:07]wPrintStart [13:39:07]Write to MH i2c: 01 00 00 12 01 13 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [13:39:07]RasterBufferAndPrint [13:39:07]line Счет N : (1)411694 [13:39:07]line ИНН: 02508201610067 [13:39:07]line Контрольно-Кассовый Чек [13:39:07]line ПРОДАЖА [13:39:07]line ТРК (МРК, ГНК) : 32 [13:39:07]line Товар: 2710124130 [13:39:07]line Аи-92-К-2 [13:39:07]line 20.000 * 0.00 [13:39:07]line = 0.00 [13:39:07]line НДС 12% НСП 1% [13:39:07]line > о реализуемом товаре [13:39:07]line ИТОГО: 0.00 [13:39:07]line НСП 1% : 0.00 [13:39:07]line НДС 12% : 0.00 [13:39:07]line Наличными: 0.00 [13:39:07]line Безнал.: 0.00 [13:39:07]line Место: АЗС № 92 "Партнер Нефть" [13:39:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:39:07]line СНО: Общий режим [13:39:07]line Чек 138 17.02.2025 13:39 [13:39:07]line Смена: 644 ФФД: 1.0 [13:39:07]line ЗНМ: 0300000118 [13:39:07]line РНМ: 0000000000091857 [13:39:07]line Версия ККМ: 001 [13:39:07]line Талоны: ТК ГПНА Online [13:39:07]line 30022091 [13:39:07]line ФМ: 0000000000871826 [13:39:07]line ФД: 186551 [13:39:07]line ФПД: 52926463478981 [13:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T133906&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186551&fm=52926463478981&tin=02508201610067®Number=0000000000091857&sum=0 [13:39:07]OFD Sender: Processing packet 186551 [packets to send 49, broken 48] [13:39:07]ProducePacketName [13:39:07]name=ofd_packets/00186551 [13:39:07]OFD Sender: To server: pG, [13:39:07]CommunicateWithHost lk.salyk.kg:30040 [13:39:07]ConnectInit lk.salyk.kg [13:39:07]written 0, free lines is 4095 [13:39:07]Connected sock=10 [13:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 95 07 01 2E F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 FA 3B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D8 02 00 35 04 06 00 30 22 E7 0E 0C C5 86 89 02 90 D0 43 91 66 [13:39:07]Write to MH i2c: 01 00 00 3C 01 3D [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 04 0D 55 [13:39:07]RasterBufferAndPrint [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]line [13:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 64 30 47 00 C8 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B7 D8 02 00 F4 03 04 00 54 E2 B2 67 B6 04 01 00 00 EB E7 5A 20 EE DF 8E 61 [13:39:07]CommunicateWithHost err = 0 [13:39:07]CheckOFDResponse [13:39:07]1017 (14) - 77093643461234 [13:39:07]1041 (16) - 0000000000871826 [13:39:07]1040 (4) - 186551 [13:39:07]1012 (4) - 17.02.2025 07:16 [13:39:07]1206 (1) - 0 [13:39:07]OFD Sender: Remove packet 186551 [13:39:07]ProducePacketName [13:39:07]name=ofd_packets/00186551 [13:39:07]NVStorageDeleteData [13:39:07]written 0, free lines is 3338 [13:39:07]MH_Cut [13:39:07]Write to MH i2c: D1 01 00 43 01 01 16 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 01 00 [13:39:07]MH_I2C_Read... [13:39:07]Read from MH i2c: D1 01 00 43 01 00 15 [13:39:07]Write to MH i2c: 01 00 00 44 01 45 [13:39:07]Write i2c OK [13:39:07]MH_I2C_Read... [13:39:08]OFD Sender: No OFD packet to send [13:39:08]*** Cut start [13:39:08]*** Partial cut [13:39:08]*** CUTSNS_PIN = 1 [13:39:08]*** CUTSNS_PIN = 0 [13:39:08]*** Brake cut motor [13:39:09]Read from MH i2c: 01 [13:39:09]MH_I2C_Read... [13:39:09]*** Stop cut motor [13:39:09]*** Cut end [13:39:09]Read from MH i2c: 01 07 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [13:39:09]process_action close_receipt done [13:39:09]requested_data is exist [13:39:09]produce_requested_data [13:39:09]requested_item fm.sn is exist - process it [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 11 00 00 [13:39:09]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 17 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 13 [13:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:39:09]wFMCommunicate OK [13:39:09]requested_item fd.num is exist - process it [13:39:09]SAM_PROTO_GetFieldsCounters [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 13 00 00 [13:39:09]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 62 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [13:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B7 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:09]wFMCommunicate OK [13:39:09]SAM_PROTO_GetFieldsCounters done [13:39:09]requested_item shift.num is exist - process it [13:39:09]requested_item shift.opened is exist - process it [13:39:09]req_shift_opened [13:39:09]FM_GetShiftState [13:39:09]SAM_PROTO_GetShiftState [13:39:09]wFMCommunicate request_size=4 [13:39:09]MH_SAM_APDU [13:39:09]CAPDU: 80 13 01 00 [13:39:09]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [13:39:09]Write i2c OK [13:39:09]MH_I2C_Read... [13:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:09]Read from MH i2c: E2 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 0E 00 [13:39:09]MH_I2C_Read... [13:39:09]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E9 [13:39:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:39:09]wFMCommunicate OK [13:39:09]SAM_PROTO_GetShiftState done [13:39:09]FM_GetShiftState done [13:39:09]req_shift_opened done [13:39:09]requested_item shift.open_date is exist - process it [13:39:09]req_shift_open_date [13:39:09]req_shift_open_date done [13:39:09]produce_requested_data done [13:39:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186551,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:39:09]process_action_free close_receipt [13:39:09]json_value_free [13:39:09]json_value_free done [13:39:09]process_json_proto returns [13:39:09]Send response to host [13:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186551,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:39:09]free response buf [13:39:09]execute_script done [13:39:09]execute_script returns [13:39:09]free content buf [13:39:09]Sock 9.Close socket [13:39:09]Sock 9.Thread stoped [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]accept exits with 8 [13:47:03]New connection [13:47:03]New thread 3066944868 created [13:47:03]Thread 3066801508 joined [13:47:03]Waiting for new connection... [13:47:03] Sock 8.Parse request [13:47:03]Sock 8.Check first char [13:47:03]Sock 8.First char is OK [13:47:03]request: POST /json_proto HTTP/1.0 [13:47:03]Method: POST [13:47:03]URL: /json_proto [13:47:03]Method is POST - this is cgi request [13:47:03]url: /json_proto [13:47:03]query_string will be loaded in cgi processing [13:47:03]execute_cgi json_proto POST (null) [13:47:03]execute_cgi path=json_proto method=POST [13:47:03]POST find Content-Length [13:47:03]Host: 172.17.46.131:8080 [13:47:03]Content-Length: 678 [13:47:03]Content-Type: application/json [13:47:03] [13:47:03]POST finish read [13:47:03]Found Content-Length = 678 [13:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:03]execute_script... [13:47:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:03]POST & json_proto [13:47:03]process_json_proto [13:47:03]json parsed OK: [13:47:03]protocol is kg_v1.0 [13:47:03]action value=close_receipt [13:47:03]process_action close_receipt [13:47:03]cmd_close_receipt [13:47:03]MH_GetDate [13:47:03]Write to MH i2c: F0 00 00 48 01 38 [13:47:03]Write i2c OK [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 09 00 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: F0 09 00 48 01 00 D8 3D B3 67 7E 41 4F 65 E3 [13:47:03]GetLastDocTimeStamp 1739799546 [13:47:03]current date 1739800024 [13:47:03]FM_GetShiftState [13:47:03]SAM_PROTO_GetShiftState [13:47:03]wFMCommunicate request_size=4 [13:47:03]MH_SAM_APDU [13:47:03]CAPDU: 80 13 01 00 [13:47:03]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [13:47:03]Write i2c OK [13:47:03]MH_I2C_Read... [13:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:03]Read from MH i2c: E2 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: E2 0E 00 [13:47:03]MH_I2C_Read... [13:47:03]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EB [13:47:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:47:03]wFMCommunicate OK [13:47:03]SAM_PROTO_GetShiftState done [13:47:03]FM_GetShiftState done [13:47:03]opened in 1739752571 [13:47:03]opened+sec_in_day 1739838971 [13:47:03]quantity*price = 100042 [13:47:03]sum+1 = 100044 [13:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 139 17.02.2025 13:47 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186552 ФПД: 69859746989888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T134704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186552&fm=69859746989888&tin=02508201610067®Number=0000000000091857&sum=100000 [13:47:04]StoreToDocumentArchive [13:47:04]shift 644 fd 186552 [13:47:04]save to /storage/0644/doc_00186552 [13:47:04]save last doc name /storage/0644/doc_00186552 to /storage/kkm_last_doc_name [13:47:04]save OK [13:47:04]Clear old archive folders... [13:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:47:04]tlvbuf is 00453660 [13:47:04]SAM_PROTO_ClearQueue [13:47:04]wFMCommunicate request_size=4 [13:47:04]MH_SAM_APDU [13:47:04]CAPDU: 80 09 00 00 [13:47:04]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [13:47:04]Write i2c OK [13:47:04]MH_I2C_Read... [13:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:04]Read from MH i2c: E2 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 03 00 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [13:47:04]RAPDU: 90 00 [13:47:04]wFMCommunicate OK [13:47:04]SAM_PROTO_ClearQueue done [13:47:04]KKMCreateOFDPacket [13:47:04]OFDProtocolAddRootSTLVToBuf [13:47:04]FM_MakeSignedData [13:47:04]FM_MakeSignedData [13:47:04]SAM_PROTO_SignData [13:47:04]wFMCommunicate request_size=4 [13:47:04]MH_SAM_APDU [13:47:04]CAPDU: 80 0D 01 02 [13:47:04]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [13:47:04]Write i2c OK [13:47:04]MH_I2C_Read... [13:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:04]Read from MH i2c: E2 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 03 00 [13:47:04]MH_I2C_Read... [13:47:04]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [13:47:04]RAPDU: 90 00 [13:47:04]wFMCommunicate OK [13:47:04]wFMCommunicate request_size=255 [13:47:04]MH_SAM_APDU [13:47:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 3D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D8 02 00 35 04 06 00 3F 89 7D 67 [13:47:04]Write to MH i2c: E2 02 01 58 01 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 3D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D8 02 00 35 04 06 00 3F 89 7D 67 00 00 F3 [13:47:04]Write i2c OK [13:47:04]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]wFMCommunicate request_size=7 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 0D 02 02 02 47 40 [13:47:05]Write to MH i2c: E2 0A 00 59 01 80 0D 02 02 02 00 47 40 00 00 5F [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [13:47:05]RAPDU: 90 00 [13:47:05]wFMCommunicate OK [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 0D 03 02 [13:47:05]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 0B 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 0B 00 5A 01 00 9D B5 D6 DA 98 A1 88 7B 90 00 15 [13:47:05]RAPDU: 9D B5 D6 DA 98 A1 88 7B 90 00 [13:47:05]wFMCommunicate OK [13:47:05]SAM_PROTO_SignData done [13:47:05]FM_MakeSignedData done [13:47:05]CreateOFDProtocolMessage [13:47:05]wFMCommunicate request_size=4 [13:47:05]MH_SAM_APDU [13:47:05]CAPDU: 80 11 00 00 [13:47:05]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:05]Read from MH i2c: E2 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 17 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 29 [13:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:47:05]wFMCommunicate OK [13:47:05]CreateOFDProtocolMessage done [13:47:05]OFDSenderStorePacket 186552 [13:47:05]StoreOFDPacket docnum=186552 [13:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 53 94 04 01 72 19 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 3D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D8 02 00 35 04 06 00 3F 89 7D 67 47 40 9D B5 D6 DA 98 A1 88 7B [13:47:05]CheckFolder [13:47:05]dirname=/storage/ofd_packets [13:47:05]CheckFolder done [13:47:05]ProducePacketName [13:47:05]name=ofd_packets/00186552 [13:47:05]NVStorageSaveData ofd_packets/00186552 [13:47:05]File name is /storage/ofd_packets/00186552 [13:47:05]Write 298 bytes [13:47:05]NVStorageSaveData done [13:47:05]OFDSenderStorePacket done [13:47:05]KKMCreateOFDPacket done [13:47:05]NVStorageSaveData kkm_last_timestamp [13:47:05]File name is /storage/kkm_last_timestamp [13:47:05]Write 4 bytes [13:47:05]NVStorageSaveData done [13:47:05]ExternCall_PrintAddStr [13:47:05]wPrintStart [13:47:05]Write to MH i2c: 01 00 00 5C 01 5D [13:47:05]Write i2c OK [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 07 00 [13:47:05]MH_I2C_Read... [13:47:05]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [13:47:05]RasterBufferAndPrint [13:47:05]line Счет N : (1)411695 [13:47:05]line ИНН: 02508201610067 [13:47:05]line Контрольно-Кассовый Чек [13:47:05]line ПРОДАЖА [13:47:05]line ТРК (МРК, ГНК) : 5 [13:47:05]line Товар: 2710194210 [13:47:05]line ДТ-К-5 [13:47:05]line 13.780 * 72.60 [13:47:05]line = 1000.43 [13:47:05]line НДС 12% НСП 1% [13:47:05]line > о реализуемом товаре [13:47:05]line ОКРУГЛЕНИЕ: -0.43 [13:47:05]line ИТОГО: 1000.00 [13:47:05]line Внесено: 1000.00 [13:47:05]line СДАЧА: 0.00 [13:47:05]line НСП 1% : 8.85 [13:47:05]line НДС 12% : 106.24 [13:47:05]line Наличными: 1000.00 [13:47:05]line Безнал.: 0.00 [13:47:05]line Место: АЗС № 92 "Партнер Нефть" [13:47:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:47:05]line СНО: Общий режим [13:47:05]line Чек 139 17.02.2025 13:47 [13:47:05]line Смена: 644 ФФД: 1.0 [13:47:05]line ЗНМ: 0300000118 [13:47:05]line РНМ: 0000000000091857 [13:47:05]line Версия ККМ: 001 [13:47:05]line ФМ: 0000000000871826 [13:47:05]line ФД: 186552 [13:47:05]line ФПД: 69859746989888 [13:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T134704&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186552&fm=69859746989888&tin=02508201610067®Number=0000000000091857&sum=100000 [13:47:05]OFD Sender: Processing packet 186552 [packets to send 49, broken 48] [13:47:05]ProducePacketName [13:47:05]name=ofd_packets/00186552 [13:47:05]OFD Sender: To server: pG, [13:47:05]CommunicateWithHost lk.salyk.kg:30040 [13:47:05]ConnectInit lk.salyk.kg [13:47:05]written 0, free lines is 4095 [13:47:05]Connected sock=10 [13:47:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 53 94 04 01 72 19 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D8 3D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D8 02 00 35 04 06 00 3F 89 7D 67 47 40 9D B5 D6 DA 98 A1 88 7B [13:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A8 C0 47 00 DD B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B8 D8 02 00 F4 03 04 00 32 E4 B2 67 B6 04 01 00 00 27 2B 1E 08 7B F2 F3 D9 [13:47:05]CommunicateWithHost err = 0 [13:47:05]CheckOFDResponse [13:47:05]1017 (14) - 77093643461234 [13:47:05]1041 (16) - 0000000000871826 [13:47:05]1040 (4) - 186552 [13:47:05]1012 (4) - 17.02.2025 07:24 [13:47:05]1206 (1) - 0 [13:47:05]OFD Sender: Remove packet 186552 [13:47:05]ProducePacketName [13:47:05]name=ofd_packets/00186552 [13:47:05]NVStorageDeleteData [13:47:06]Write to MH i2c: 01 00 00 87 01 88 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 FE 0C 99 [13:47:06]RasterBufferAndPrint [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]line [13:47:06]written 0, free lines is 3332 [13:47:06]MH_Cut [13:47:06]Write to MH i2c: D1 01 00 8E 01 01 61 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 01 00 [13:47:06]MH_I2C_Read... [13:47:06]Read from MH i2c: D1 01 00 8E 01 00 60 [13:47:06]Write to MH i2c: 01 00 00 8F 01 90 [13:47:06]Write i2c OK [13:47:06]MH_I2C_Read... [13:47:06]OFD Sender: No OFD packet to send [13:47:06]*** Cut start [13:47:06]*** Partial cut [13:47:06]*** CUTSNS_PIN = 1 [13:47:06]*** CUTSNS_PIN = 0 [13:47:07]*** Brake cut motor [13:47:07]Read from MH i2c: 01 [13:47:07]MH_I2C_Read... [13:47:07]*** Stop cut motor [13:47:07]*** Cut end [13:47:07]Read from MH i2c: 01 07 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [13:47:07]process_action close_receipt done [13:47:07]requested_data is exist [13:47:07]produce_requested_data [13:47:07]requested_item fm.sn is exist - process it [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 11 00 00 [13:47:07]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 17 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5E [13:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:47:07]wFMCommunicate OK [13:47:07]requested_item fd.num is exist - process it [13:47:07]SAM_PROTO_GetFieldsCounters [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 13 00 00 [13:47:07]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 62 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [13:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B8 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:07]wFMCommunicate OK [13:47:07]SAM_PROTO_GetFieldsCounters done [13:47:07]requested_item shift.num is exist - process it [13:47:07]requested_item shift.opened is exist - process it [13:47:07]req_shift_opened [13:47:07]FM_GetShiftState [13:47:07]SAM_PROTO_GetShiftState [13:47:07]wFMCommunicate request_size=4 [13:47:07]MH_SAM_APDU [13:47:07]CAPDU: 80 13 01 00 [13:47:07]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [13:47:07]Write i2c OK [13:47:07]MH_I2C_Read... [13:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:07]Read from MH i2c: E2 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 [13:47:07]MH_I2C_Read... [13:47:07]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 34 [13:47:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:47:07]wFMCommunicate OK [13:47:07]SAM_PROTO_GetShiftState done [13:47:07]FM_GetShiftState done [13:47:07]req_shift_opened done [13:47:07]requested_item shift.open_date is exist - process it [13:47:07]req_shift_open_date [13:47:07]req_shift_open_date done [13:47:07]produce_requested_data done [13:47:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186552,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:47:07]process_action_free close_receipt [13:47:07]json_value_free [13:47:07]json_value_free done [13:47:07]process_json_proto returns [13:47:07]Send response to host [13:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186552,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:47:07]free response buf [13:47:07]execute_script done [13:47:07]execute_script returns [13:47:07]free content buf [13:47:07]Sock 8.Close socket [13:47:07]Sock 8.Thread stoped [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:54:01]OFD Sender: No OFD packet to send [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:33]accept exits with 9 [13:54:33]New connection [13:54:33]New thread 3066801508 created [13:54:33]Thread 3066944868 joined [13:54:33]Waiting for new connection... [13:54:33] Sock 9.Parse request [13:54:33]Sock 9.Check first char [13:54:33]Sock 9.First char is OK [13:54:33]request: POST /json_proto HTTP/1.0 [13:54:33]Method: POST [13:54:33]URL: /json_proto [13:54:33]Method is POST - this is cgi request [13:54:33]url: /json_proto [13:54:33]query_string will be loaded in cgi processing [13:54:33]execute_cgi json_proto POST (null) [13:54:33]execute_cgi path=json_proto method=POST [13:54:33]POST find Content-Length [13:54:33]Host: 172.17.46.131:8080 [13:54:33]Content-Length: 674 [13:54:33]Content-Type: application/json [13:54:33] [13:54:33]POST finish read [13:54:33]Found Content-Length = 674 [13:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:33]execute_script... [13:54:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:54:33]POST & json_proto [13:54:33]process_json_proto [13:54:33]json parsed OK: [13:54:33]protocol is kg_v1.0 [13:54:33]action value=close_receipt [13:54:33]process_action close_receipt [13:54:33]cmd_close_receipt [13:54:33]MH_GetDate [13:54:33]Write to MH i2c: F0 00 00 93 01 83 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: F0 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: F0 09 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: F0 09 00 93 01 00 9A 3F B3 67 7E 41 4F 65 F2 [13:54:33]GetLastDocTimeStamp 1739800024 [13:54:33]current date 1739800474 [13:54:33]FM_GetShiftState [13:54:33]SAM_PROTO_GetShiftState [13:54:33]wFMCommunicate request_size=4 [13:54:33]MH_SAM_APDU [13:54:33]CAPDU: 80 13 01 00 [13:54:33]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [13:54:33]Write i2c OK [13:54:33]MH_I2C_Read... [13:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:33]Read from MH i2c: E2 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 [13:54:33]MH_I2C_Read... [13:54:33]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 36 [13:54:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:54:33]wFMCommunicate OK [13:54:33]SAM_PROTO_GetShiftState done [13:54:33]FM_GetShiftState done [13:54:33]opened in 1739752571 [13:54:33]opened+sec_in_day 1739838971 [13:54:33]quantity*price = 80005 [13:54:33]sum+1 = 80006 [13:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 140 17.02.2025 13:54 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186553 ФПД: 72394803289687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135434&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186553&fm=72394803289687&tin=02508201610067®Number=0000000000091857&sum=80000 [13:54:34]StoreToDocumentArchive [13:54:34]shift 644 fd 186553 [13:54:34]save to /storage/0644/doc_00186553 [13:54:34]save last doc name /storage/0644/doc_00186553 to /storage/kkm_last_doc_name [13:54:34]save OK [13:54:34]Clear old archive folders... [13:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:54:34]tlvbuf is 00451960 [13:54:34]SAM_PROTO_ClearQueue [13:54:34]wFMCommunicate request_size=4 [13:54:34]MH_SAM_APDU [13:54:34]CAPDU: 80 09 00 00 [13:54:34]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:54:34]Read from MH i2c: E2 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 03 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [13:54:34]RAPDU: 90 00 [13:54:34]wFMCommunicate OK [13:54:34]SAM_PROTO_ClearQueue done [13:54:34]KKMCreateOFDPacket [13:54:34]OFDProtocolAddRootSTLVToBuf [13:54:34]FM_MakeSignedData [13:54:34]FM_MakeSignedData [13:54:34]SAM_PROTO_SignData [13:54:34]wFMCommunicate request_size=4 [13:54:34]MH_SAM_APDU [13:54:34]CAPDU: 80 0D 01 02 [13:54:34]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [13:54:34]Write i2c OK [13:54:34]MH_I2C_Read... [13:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:54:34]Read from MH i2c: E2 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 03 00 [13:54:34]MH_I2C_Read... [13:54:34]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [13:54:34]RAPDU: 90 00 [13:54:34]wFMCommunicate OK [13:54:34]wFMCommunicate request_size=255 [13:54:34]MH_SAM_APDU [13:54:34]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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9A 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D8 02 00 35 04 06 00 41 D7 BA 88 [13:54:34]Write to MH i2c: E2 02 01 A3 01 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9A 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D8 02 00 35 04 06 00 41 D7 BA 88 00 00 66 [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 03 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [13:54:35]RAPDU: 90 00 [13:54:35]wFMCommunicate OK [13:54:35]wFMCommunicate request_size=7 [13:54:35]MH_SAM_APDU [13:54:35]CAPDU: 80 0D 02 02 02 9E 57 [13:54:35]Write to MH i2c: E2 0A 00 A4 01 80 0D 02 02 02 00 9E 57 00 00 18 [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 03 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [13:54:35]RAPDU: 90 00 [13:54:35]wFMCommunicate OK [13:54:35]wFMCommunicate request_size=4 [13:54:35]MH_SAM_APDU [13:54:35]CAPDU: 80 0D 03 02 [13:54:35]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 0B 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 0B 00 A5 01 00 C5 8C 7A F8 43 C5 B8 19 90 00 BE [13:54:35]RAPDU: C5 8C 7A F8 43 C5 B8 19 90 00 [13:54:35]wFMCommunicate OK [13:54:35]SAM_PROTO_SignData done [13:54:35]FM_MakeSignedData done [13:54:35]CreateOFDProtocolMessage [13:54:35]wFMCommunicate request_size=4 [13:54:35]MH_SAM_APDU [13:54:35]CAPDU: 80 11 00 00 [13:54:35]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:35]Read from MH i2c: E2 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 17 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 74 [13:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:54:35]wFMCommunicate OK [13:54:35]CreateOFDProtocolMessage done [13:54:35]OFDSenderStorePacket 186553 [13:54:35]StoreOFDPacket docnum=186553 [13:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E9 F6 04 01 A3 FF 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9A 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D8 02 00 35 04 06 00 41 D7 BA 88 9E 57 C5 8C 7A F8 43 C5 B8 19 [13:54:35]CheckFolder [13:54:35]dirname=/storage/ofd_packets [13:54:35]CheckFolder done [13:54:35]ProducePacketName [13:54:35]name=ofd_packets/00186553 [13:54:35]NVStorageSaveData ofd_packets/00186553 [13:54:35]File name is /storage/ofd_packets/00186553 [13:54:35]Write 298 bytes [13:54:35]NVStorageSaveData done [13:54:35]OFDSenderStorePacket done [13:54:35]KKMCreateOFDPacket done [13:54:35]NVStorageSaveData kkm_last_timestamp [13:54:35]File name is /storage/kkm_last_timestamp [13:54:35]Write 4 bytes [13:54:35]NVStorageSaveData done [13:54:35]ExternCall_PrintAddStr [13:54:35]wPrintStart [13:54:35]Write to MH i2c: 01 00 00 A7 01 A8 [13:54:35]Write i2c OK [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: 01 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: 01 07 00 [13:54:35]MH_I2C_Read... [13:54:35]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [13:54:35]RasterBufferAndPrint [13:54:35]line Счет N : (1)411697 [13:54:35]line ИНН: 02508201610067 [13:54:35]line Контрольно-Кассовый Чек [13:54:35]line ПРОДАЖА [13:54:35]line ТРК (МРК, ГНК) : 5 [13:54:35]line Товар: 2710194210 [13:54:35]line ДТ-К-5 [13:54:35]line 11.020 * 72.60 [13:54:35]line = 800.05 [13:54:35]line НДС 12% НСП 1% [13:54:35]line > о реализуемом товаре [13:54:35]line ОКРУГЛЕНИЕ: -0.05 [13:54:35]line ИТОГО: 800.00 [13:54:35]line Внесено: 800.00 [13:54:35]line СДАЧА: 0.00 [13:54:35]line НСП 1% : 7.08 [13:54:35]line НДС 12% : 84.96 [13:54:35]line Наличными: 800.00 [13:54:35]line Безнал.: 0.00 [13:54:35]line Место: АЗС № 92 "Партнер Нефть" [13:54:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:54:35]line СНО: Общий режим [13:54:35]line Чек 140 17.02.2025 13:54 [13:54:35]line Смена: 644 ФФД: 1.0 [13:54:35]line ЗНМ: 0300000118 [13:54:35]line РНМ: 0000000000091857 [13:54:35]line Версия ККМ: 001 [13:54:35]line ФМ: 0000000000871826 [13:54:35]line ФД: 186553 [13:54:35]line ФПД: 72394803289687 [13:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135434&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186553&fm=72394803289687&tin=02508201610067®Number=0000000000091857&sum=80000 [13:54:35]OFD Sender: Processing packet 186553 [packets to send 49, broken 48] [13:54:35]ProducePacketName [13:54:35]name=ofd_packets/00186553 [13:54:35]OFD Sender: To server: pG, [13:54:35]CommunicateWithHost lk.salyk.kg:30040 [13:54:35]ConnectInit lk.salyk.kg [13:54:35]written 0, free lines is 4095 [13:54:35]Connected sock=10 [13:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 E9 F6 04 01 A3 FF 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 9A 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D8 02 00 35 04 06 00 41 D7 BA 88 9E 57 C5 8C 7A F8 43 C5 B8 19 [13:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F6 5D 47 00 24 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 B9 D8 02 00 F4 03 04 00 F4 E5 B2 67 B6 04 01 00 00 62 F4 B9 25 B9 F9 81 9C [13:54:36]CommunicateWithHost err = 0 [13:54:36]CheckOFDResponse [13:54:36]1017 (14) - 77093643461234 [13:54:36]1041 (16) - 0000000000871826 [13:54:36]1040 (4) - 186553 [13:54:36]1012 (4) - 17.02.2025 07:32 [13:54:36]1206 (1) - 0 [13:54:36]OFD Sender: Remove packet 186553 [13:54:36]ProducePacketName [13:54:36]name=ofd_packets/00186553 [13:54:36]NVStorageDeleteData [13:54:36]Write to MH i2c: 01 00 00 D2 01 D3 [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: 01 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: 01 07 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 FD 0C E3 [13:54:36]RasterBufferAndPrint [13:54:36]line [13:54:36]line [13:54:36]line [13:54:36]line [13:54:36]line [13:54:36]written 0, free lines is 3331 [13:54:36]MH_Cut [13:54:36]Write to MH i2c: D1 01 00 D9 01 01 AC [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: D1 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: D1 01 00 [13:54:36]MH_I2C_Read... [13:54:36]Read from MH i2c: D1 01 00 D9 01 00 AB [13:54:36]Write to MH i2c: 01 00 00 DA 01 DB [13:54:36]Write i2c OK [13:54:36]MH_I2C_Read... [13:54:36]OFD Sender: No OFD packet to send [13:54:36]*** Cut start [13:54:36]*** Partial cut [13:54:36]*** CUTSNS_PIN = 1 [13:54:36]*** CUTSNS_PIN = 0 [13:54:37]*** Brake cut motor [13:54:37]Read from MH i2c: 01 [13:54:37]MH_I2C_Read... [13:54:37]*** Stop cut motor [13:54:37]*** Cut end [13:54:37]Read from MH i2c: 01 07 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [13:54:37]process_action close_receipt done [13:54:37]requested_data is exist [13:54:37]produce_requested_data [13:54:37]requested_item fm.sn is exist - process it [13:54:37]wFMCommunicate request_size=4 [13:54:37]MH_SAM_APDU [13:54:37]CAPDU: 80 11 00 00 [13:54:37]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [13:54:37]Write i2c OK [13:54:37]MH_I2C_Read... [13:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:37]Read from MH i2c: E2 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 17 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A9 [13:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:54:37]wFMCommunicate OK [13:54:37]requested_item fd.num is exist - process it [13:54:37]SAM_PROTO_GetFieldsCounters [13:54:37]wFMCommunicate request_size=4 [13:54:37]MH_SAM_APDU [13:54:37]CAPDU: 80 13 00 00 [13:54:37]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [13:54:37]Write i2c OK [13:54:37]MH_I2C_Read... [13:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:37]Read from MH i2c: E2 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 62 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [13:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 B9 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:54:37]wFMCommunicate OK [13:54:37]SAM_PROTO_GetFieldsCounters done [13:54:37]requested_item shift.num is exist - process it [13:54:37]requested_item shift.opened is exist - process it [13:54:37]req_shift_opened [13:54:37]FM_GetShiftState [13:54:37]SAM_PROTO_GetShiftState [13:54:37]wFMCommunicate request_size=4 [13:54:37]MH_SAM_APDU [13:54:37]CAPDU: 80 13 01 00 [13:54:37]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [13:54:37]Write i2c OK [13:54:37]MH_I2C_Read... [13:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:37]Read from MH i2c: E2 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 0E 00 [13:54:37]MH_I2C_Read... [13:54:37]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7F [13:54:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:54:37]wFMCommunicate OK [13:54:37]SAM_PROTO_GetShiftState done [13:54:37]FM_GetShiftState done [13:54:37]req_shift_opened done [13:54:37]requested_item shift.open_date is exist - process it [13:54:37]req_shift_open_date [13:54:37]req_shift_open_date done [13:54:37]produce_requested_data done [13:54:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186553,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:54:37]process_action_free close_receipt [13:54:37]json_value_free [13:54:37]json_value_free done [13:54:37]process_json_proto returns [13:54:37]Send response to host [13:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186553,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:54:37]free response buf [13:54:37]execute_script done [13:54:37]execute_script returns [13:54:37]free content buf [13:54:37]Sock 9.Close socket [13:54:37]Sock 9.Thread stoped [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:54:59]int [13:54:59]Write to MH i2c: 01 00 00 DE 01 DF [13:54:59]*** FLAG_PRN_KEY set [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 DE 01 00 08 00 00 00 FF 0F FC [13:54:59]state=0 [13:54:59]Key pressed [13:54:59]Feed [13:54:59]Write to MH i2c: D8 00 00 DF 01 B7 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D8 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D8 01 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: D8 01 00 DF 01 00 B8 [13:54:59]int [13:54:59]Write to MH i2c: 01 00 00 E0 01 E1 [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 E0 01 00 48 00 00 00 3C 00 6C [13:54:59]state=2 [13:54:59]Key pressed [13:54:59]int [13:54:59]Write to MH i2c: 01 00 00 E1 01 E2 [13:54:59]*** FLAG_PRN_KEY reset [13:54:59]Write i2c OK [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 [13:54:59]MH_I2C_Read... [13:54:59]Read from MH i2c: 01 07 00 E1 01 00 00 00 00 00 FF 0F F7 [13:54:59]state=2 [13:54:59]Stop feed [13:55:01]OFD Sender: No OFD packet to send [13:55:06]accept exits with 8 [13:55:06]New connection [13:55:06]New thread 3066944868 created [13:55:06]Thread 3066801508 joined [13:55:06]Waiting for new connection... [13:55:06] Sock 8.Parse request [13:55:06]Sock 8.Check first char [13:55:06]Sock 8.First char is OK [13:55:06]request: POST /json_proto HTTP/1.0 [13:55:06]Method: POST [13:55:06]URL: /json_proto [13:55:06]Method is POST - this is cgi request [13:55:06]url: /json_proto [13:55:06]query_string will be loaded in cgi processing [13:55:06]execute_cgi json_proto POST (null) [13:55:06]execute_cgi path=json_proto method=POST [13:55:06]POST find Content-Length [13:55:06]Host: 172.17.46.131:8080 [13:55:06]Content-Length: 677 [13:55:06]Content-Type: application/json [13:55:06] [13:55:06]POST finish read [13:55:06]Found Content-Length = 677 [13:55:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:06]execute_script... [13:55:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 6.960, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:06]POST & json_proto [13:55:06]process_json_proto [13:55:06]json parsed OK: [13:55:06]protocol is kg_v1.0 [13:55:06]action value=close_receipt [13:55:06]process_action close_receipt [13:55:06]cmd_close_receipt [13:55:06]MH_GetDate [13:55:06]Write to MH i2c: F0 00 00 E2 01 D2 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 09 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: F0 09 00 E2 01 00 BB 3F B3 67 7E 41 4F 65 62 [13:55:06]GetLastDocTimeStamp 1739800474 [13:55:06]current date 1739800507 [13:55:06]FM_GetShiftState [13:55:06]SAM_PROTO_GetShiftState [13:55:06]wFMCommunicate request_size=4 [13:55:06]MH_SAM_APDU [13:55:06]CAPDU: 80 13 01 00 [13:55:06]Write to MH i2c: E2 08 00 E3 01 80 13 01 00 00 00 00 00 61 [13:55:06]Write i2c OK [13:55:06]MH_I2C_Read... [13:55:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:06]Read from MH i2c: E2 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 [13:55:06]MH_I2C_Read... [13:55:06]Read from MH i2c: E2 0E 00 E3 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 85 [13:55:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:55:06]wFMCommunicate OK [13:55:06]SAM_PROTO_GetShiftState done [13:55:06]FM_GetShiftState done [13:55:06]opened in 1739752571 [13:55:06]opened+sec_in_day 1739838971 [13:55:06]quantity*price = 50042 [13:55:06]sum+1 = 50043 [13:55:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 141 17.02.2025 13:55 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186554 ФПД: 150292529946899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135507&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186554&fm=150292529946899&tin=02508201610067®Number=0000000000091857&sum=50000 [13:55:07]StoreToDocumentArchive [13:55:07]shift 644 fd 186554 [13:55:07]save to /storage/0644/doc_00186554 [13:55:07]save last doc name /storage/0644/doc_00186554 to /storage/kkm_last_doc_name [13:55:07]save OK [13:55:07]Clear old archive folders... [13:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:07]tlvbuf is 003E22E0 [13:55:07]SAM_PROTO_ClearQueue [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 09 00 00 [13:55:07]Write to MH i2c: E2 08 00 F0 01 80 09 00 00 00 00 00 00 63 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 F0 01 00 90 00 65 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_ClearQueue done [13:55:07]KKMCreateOFDPacket [13:55:07]OFDProtocolAddRootSTLVToBuf [13:55:07]FM_MakeSignedData [13:55:07]FM_MakeSignedData [13:55:07]SAM_PROTO_SignData [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 01 02 [13:55:07]Write to MH i2c: E2 08 00 F1 01 80 0D 01 02 00 00 00 00 6B [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 F1 01 00 90 00 66 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]wFMCommunicate request_size=255 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BB 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D8 02 00 35 04 06 00 88 [13:55:07]Write to MH i2c: E2 02 01 F2 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BB 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D8 02 00 35 04 06 00 88 00 00 33 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 F2 01 00 90 00 67 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]wFMCommunicate request_size=10 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 02 02 05 B0 B4 DC 21 13 [13:55:07]Write to MH i2c: E2 0D 00 F3 01 80 0D 02 02 05 00 B0 B4 DC 21 13 00 00 EC [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 03 00 F3 01 00 90 00 68 [13:55:07]RAPDU: 90 00 [13:55:07]wFMCommunicate OK [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 0D 03 02 [13:55:07]Write to MH i2c: E2 08 00 F4 01 80 0D 03 02 00 00 00 00 70 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0B 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 0B 00 F4 01 00 06 37 67 FB AC 9B 4E 15 90 00 BA [13:55:07]RAPDU: 06 37 67 FB AC 9B 4E 15 90 00 [13:55:07]wFMCommunicate OK [13:55:07]SAM_PROTO_SignData done [13:55:07]FM_MakeSignedData done [13:55:07]CreateOFDProtocolMessage [13:55:07]wFMCommunicate request_size=4 [13:55:07]MH_SAM_APDU [13:55:07]CAPDU: 80 11 00 00 [13:55:07]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:07]Read from MH i2c: E2 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C3 [13:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:55:07]wFMCommunicate OK [13:55:07]CreateOFDProtocolMessage done [13:55:07]OFDSenderStorePacket 186554 [13:55:07]StoreOFDPacket docnum=186554 [13:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 C7 07 01 EC 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BB 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D8 02 00 35 04 06 00 88 B0 B4 DC 21 13 06 37 67 FB AC 9B 4E 15 [13:55:07]CheckFolder [13:55:07]dirname=/storage/ofd_packets [13:55:07]CheckFolder done [13:55:07]ProducePacketName [13:55:07]name=ofd_packets/00186554 [13:55:07]NVStorageSaveData ofd_packets/00186554 [13:55:07]File name is /storage/ofd_packets/00186554 [13:55:07]Write 301 bytes [13:55:07]NVStorageSaveData done [13:55:07]OFDSenderStorePacket done [13:55:07]KKMCreateOFDPacket done [13:55:07]NVStorageSaveData kkm_last_timestamp [13:55:07]File name is /storage/kkm_last_timestamp [13:55:07]Write 4 bytes [13:55:07]NVStorageSaveData done [13:55:07]ExternCall_PrintAddStr [13:55:07]wPrintStart [13:55:07]Write to MH i2c: 01 00 00 F6 01 F7 [13:55:07]Write i2c OK [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 [13:55:07]MH_I2C_Read... [13:55:07]Read from MH i2c: 01 07 00 F6 01 00 00 00 00 00 FF 0F 0C [13:55:07]RasterBufferAndPrint [13:55:07]line Счет N : (1)411698 [13:55:07]line ИНН: 02508201610067 [13:55:07]line Контрольно-Кассовый Чек [13:55:07]line ПРОДАЖА [13:55:07]line ТРК (МРК, ГНК) : 23 [13:55:07]line Товар: 2710124500 [13:55:07]line Аи-95-К-5 [13:55:07]line 6.960 * 71.90 [13:55:07]line = 500.42 [13:55:07]line НДС 12% НСП 1% [13:55:07]line > о реализуемом товаре [13:55:07]line ОКРУГЛЕНИЕ: -0.42 [13:55:07]line ИТОГО: 500.00 [13:55:07]line Внесено: 500.00 [13:55:07]line СДАЧА: 0.00 [13:55:07]line НСП 1% : 4.43 [13:55:07]line НДС 12% : 53.14 [13:55:07]line Наличными: 500.00 [13:55:07]line Безнал.: 0.00 [13:55:07]line Место: АЗС № 92 "Партнер Нефть" [13:55:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:55:07]line СНО: Общий режим [13:55:07]line Чек 141 17.02.2025 13:55 [13:55:07]line Смена: 644 ФФД: 1.0 [13:55:07]line ЗНМ: 0300000118 [13:55:07]line РНМ: 0000000000091857 [13:55:07]line Версия ККМ: 001 [13:55:07]line ФМ: 0000000000871826 [13:55:07]line ФД: 186554 [13:55:07]line ФПД: 150292529946899 [13:55:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135507&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186554&fm=150292529946899&tin=02508201610067®Number=0000000000091857&sum=50000 [13:55:08]OFD Sender: Processing packet 186554 [packets to send 49, broken 48] [13:55:08]ProducePacketName [13:55:08]name=ofd_packets/00186554 [13:55:08]OFD Sender: To server: pG, [13:55:08]CommunicateWithHost lk.salyk.kg:30040 [13:55:08]ConnectInit lk.salyk.kg [13:55:08]written 0, free lines is 4095 [13:55:08]Connected sock=10 [13:55:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 F0 C7 07 01 EC 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 30 1B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7A C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 BB 3F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D8 02 00 35 04 06 00 88 B0 B4 DC 21 13 06 37 67 FB AC 9B 4E 15 [13:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D1 EC 47 00 FF EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BA D8 02 00 F4 03 04 00 15 E6 B2 67 B6 04 01 00 00 C6 9C F6 9F 66 98 77 B9 [13:55:08]CommunicateWithHost err = 0 [13:55:08]CheckOFDResponse [13:55:08]1017 (14) - 77093643461234 [13:55:08]1041 (16) - 0000000000871826 [13:55:08]1040 (4) - 186554 [13:55:08]1012 (4) - 17.02.2025 07:32 [13:55:08]1206 (1) - 0 [13:55:08]OFD Sender: Remove packet 186554 [13:55:08]ProducePacketName [13:55:08]name=ofd_packets/00186554 [13:55:08]NVStorageDeleteData [13:55:08]Write to MH i2c: 01 00 00 21 02 23 [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 F5 0C 2B [13:55:08]RasterBufferAndPrint [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]line [13:55:08]written 0, free lines is 3323 [13:55:08]MH_Cut [13:55:08]Write to MH i2c: D1 01 00 28 02 01 FC [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 01 00 [13:55:08]MH_I2C_Read... [13:55:08]Read from MH i2c: D1 01 00 28 02 00 FB [13:55:08]Write to MH i2c: 01 00 00 29 02 2B [13:55:08]Write i2c OK [13:55:08]MH_I2C_Read... [13:55:09]OFD Sender: No OFD packet to send [13:55:09]*** Cut start [13:55:09]*** Partial cut [13:55:09]*** CUTSNS_PIN = 1 [13:55:09]*** CUTSNS_PIN = 0 [13:55:09]*** Brake cut motor [13:55:10]Read from MH i2c: 01 [13:55:10]MH_I2C_Read... [13:55:10]*** Stop cut motor [13:55:10]*** Cut end [13:55:10]Read from MH i2c: 01 07 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 29 02 00 00 00 00 00 FF 0F 40 [13:55:10]process_action close_receipt done [13:55:10]requested_data is exist [13:55:10]produce_requested_data [13:55:10]requested_item fm.sn is exist - process it [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 11 00 00 [13:55:10]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F9 [13:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:55:10]wFMCommunicate OK [13:55:10]requested_item fd.num is exist - process it [13:55:10]SAM_PROTO_GetFieldsCounters [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 13 00 00 [13:55:10]Write to MH i2c: E2 08 00 2B 02 80 13 00 00 00 00 00 00 A9 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 62 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 62 00 2B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [13:55:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BA D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_GetFieldsCounters done [13:55:10]requested_item shift.num is exist - process it [13:55:10]requested_item shift.opened is exist - process it [13:55:10]req_shift_opened [13:55:10]FM_GetShiftState [13:55:10]SAM_PROTO_GetShiftState [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 13 01 00 [13:55:10]Write to MH i2c: E2 08 00 2C 02 80 13 01 00 00 00 00 00 AB [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0E 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0E 00 2C 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CF [13:55:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_GetShiftState done [13:55:10]FM_GetShiftState done [13:55:10]req_shift_opened done [13:55:10]requested_item shift.open_date is exist - process it [13:55:10]req_shift_open_date [13:55:10]req_shift_open_date done [13:55:10]produce_requested_data done [13:55:10]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186554,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:55:10]process_action_free close_receipt [13:55:10]json_value_free [13:55:10]json_value_free done [13:55:10]process_json_proto returns [13:55:10]Send response to host [13:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186554,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:55:10]free response buf [13:55:10]execute_script done [13:55:10]execute_script returns [13:55:10]free content buf [13:55:10]Sock 8.Close socket [13:55:10]Sock 8.Thread stoped [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:05]accept exits with 9 [13:58:05]New connection [13:58:05]New thread 3066801508 created [13:58:05]Thread 3066944868 joined [13:58:05]Waiting for new connection... [13:58:05] Sock 9.Parse request [13:58:05]Sock 9.Check first char [13:58:05]Sock 9.First char is OK [13:58:05]request: POST /json_proto HTTP/1.0 [13:58:05]Method: POST [13:58:05]URL: /json_proto [13:58:05]Method is POST - this is cgi request [13:58:05]url: /json_proto [13:58:05]query_string will be loaded in cgi processing [13:58:05]execute_cgi json_proto POST (null) [13:58:05]execute_cgi path=json_proto method=POST [13:58:05]POST find Content-Length [13:58:05]Host: 172.17.46.131:8080 [13:58:05]Content-Length: 677 [13:58:05]Content-Type: application/json [13:58:05] [13:58:05]POST finish read [13:58:05]Found Content-Length = 677 [13:58:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:05]execute_script... [13:58:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:05]POST & json_proto [13:58:05]process_json_proto [13:58:05]json parsed OK: [13:58:05]protocol is kg_v1.0 [13:58:05]action value=close_receipt [13:58:05]process_action close_receipt [13:58:05]cmd_close_receipt [13:58:05]MH_GetDate [13:58:05]Write to MH i2c: F0 00 00 2D 02 1E [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: F0 09 00 2D 02 00 6E 40 B3 67 7E 41 4F 65 62 [13:58:05]GetLastDocTimeStamp 1739800507 [13:58:05]current date 1739800686 [13:58:05]FM_GetShiftState [13:58:05]SAM_PROTO_GetShiftState [13:58:05]wFMCommunicate request_size=4 [13:58:05]MH_SAM_APDU [13:58:05]CAPDU: 80 13 01 00 [13:58:05]Write to MH i2c: E2 08 00 2E 02 80 13 01 00 00 00 00 00 AD [13:58:05]Write i2c OK [13:58:05]MH_I2C_Read... [13:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:05]Read from MH i2c: E2 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 [13:58:05]MH_I2C_Read... [13:58:05]Read from MH i2c: E2 0E 00 2E 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D1 [13:58:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:58:05]wFMCommunicate OK [13:58:05]SAM_PROTO_GetShiftState done [13:58:05]FM_GetShiftState done [13:58:05]opened in 1739752571 [13:58:05]opened+sec_in_day 1739838971 [13:58:05]quantity*price = 50011 [13:58:05]sum+1 = 50013 [13:58:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 142 17.02.2025 13:58 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186555 ФПД: 26254175863524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135806&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186555&fm=26254175863524&tin=02508201610067®Number=0000000000091857&sum=50000 [13:58:06]StoreToDocumentArchive [13:58:06]shift 644 fd 186555 [13:58:06]save to /storage/0644/doc_00186555 [13:58:06]save last doc name /storage/0644/doc_00186555 to /storage/kkm_last_doc_name [13:58:06]save OK [13:58:06]Clear old archive folders... [13:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:06]tlvbuf is 003E20E0 [13:58:06]SAM_PROTO_ClearQueue [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 09 00 00 [13:58:06]Write to MH i2c: E2 08 00 3B 02 80 09 00 00 00 00 00 00 AF [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3B 02 00 90 00 B1 [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_ClearQueue done [13:58:06]KKMCreateOFDPacket [13:58:06]OFDProtocolAddRootSTLVToBuf [13:58:06]FM_MakeSignedData [13:58:06]FM_MakeSignedData [13:58:06]SAM_PROTO_SignData [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 0D 01 02 [13:58:06]Write to MH i2c: E2 08 00 3C 02 80 0D 01 02 00 00 00 00 B7 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 03 00 3C 02 00 90 00 B2 [13:58:06]RAPDU: 90 00 [13:58:06]wFMCommunicate OK [13:58:06]wFMCommunicate request_size=255 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6E 40 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D8 02 00 35 04 06 00 17 [13:58:06]Write to MH i2c: E2 02 01 3D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6E 40 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D8 02 00 35 04 06 00 17 00 00 D8 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 3D 02 00 90 00 B3 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=10 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 05 E0 C6 D3 82 E4 [13:58:07]Write to MH i2c: E2 0D 00 3E 02 80 0D 02 02 05 00 E0 C6 D3 82 E4 00 00 A3 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 3E 02 00 90 00 B4 [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 03 02 [13:58:07]Write to MH i2c: E2 08 00 3F 02 80 0D 03 02 00 00 00 00 BC [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 3F 02 00 26 A1 B2 18 D5 48 5C 4D 90 00 14 [13:58:07]RAPDU: 26 A1 B2 18 D5 48 5C 4D 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_SignData done [13:58:07]FM_MakeSignedData done [13:58:07]CreateOFDProtocolMessage [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 11 00 00 [13:58:07]Write to MH i2c: E2 08 00 40 02 80 11 00 00 00 00 00 00 BC [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 17 00 40 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0F [13:58:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:58:07]wFMCommunicate OK [13:58:07]CreateOFDProtocolMessage done [13:58:07]OFDSenderStorePacket 186555 [13:58:07]StoreOFDPacket docnum=186555 [13:58:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EF 87 07 01 B8 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6E 40 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D8 02 00 35 04 06 00 17 E0 C6 D3 82 E4 26 A1 B2 18 D5 48 5C 4D [13:58:07]CheckFolder [13:58:07]dirname=/storage/ofd_packets [13:58:07]CheckFolder done [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00186555 [13:58:07]NVStorageSaveData ofd_packets/00186555 [13:58:07]File name is /storage/ofd_packets/00186555 [13:58:07]Write 301 bytes [13:58:07]NVStorageSaveData done [13:58:07]OFDSenderStorePacket done [13:58:07]KKMCreateOFDPacket done [13:58:07]NVStorageSaveData kkm_last_timestamp [13:58:07]File name is /storage/kkm_last_timestamp [13:58:07]Write 4 bytes [13:58:07]NVStorageSaveData done [13:58:07]ExternCall_PrintAddStr [13:58:07]wPrintStart [13:58:07]Write to MH i2c: 01 00 00 41 02 43 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: 01 07 00 41 02 00 00 00 00 00 FF 0F 58 [13:58:07]RasterBufferAndPrint [13:58:07]line Счет N : (1)411699 [13:58:07]line ИНН: 02508201610067 [13:58:07]line Контрольно-Кассовый Чек [13:58:07]line ПРОДАЖА [13:58:07]line ТРК (МРК, ГНК) : 32 [13:58:07]line Товар: 2710124130 [13:58:07]line Аи-92-К-2 [13:58:07]line 7.790 * 64.20 [13:58:07]line = 500.12 [13:58:07]line НДС 12% НСП 1% [13:58:07]line > о реализуемом товаре [13:58:07]line ОКРУГЛЕНИЕ: -0.12 [13:58:07]line ИТОГО: 500.00 [13:58:07]line Внесено: 500.00 [13:58:07]line СДАЧА: 0.00 [13:58:07]line НСП 1% : 4.43 [13:58:07]line НДС 12% : 53.11 [13:58:07]line Наличными: 500.00 [13:58:07]line Безнал.: 0.00 [13:58:07]line Место: АЗС № 92 "Партнер Нефть" [13:58:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [13:58:07]line СНО: Общий режим [13:58:07]line Чек 142 17.02.2025 13:58 [13:58:07]line Смена: 644 ФФД: 1.0 [13:58:07]line ЗНМ: 0300000118 [13:58:07]line РНМ: 0000000000091857 [13:58:07]line Версия ККМ: 001 [13:58:07]line ФМ: 0000000000871826 [13:58:07]line ФД: 186555 [13:58:07]line ФПД: 26254175863524 [13:58:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T135806&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186555&fm=26254175863524&tin=02508201610067®Number=0000000000091857&sum=50000 [13:58:07]OFD Sender: Processing packet 186555 [packets to send 49, broken 48] [13:58:07]ProducePacketName [13:58:07]name=ofd_packets/00186555 [13:58:07]OFD Sender: To server: pG, [13:58:07]CommunicateWithHost lk.salyk.kg:30040 [13:58:07]ConnectInit lk.salyk.kg [13:58:07]written 0, free lines is 4095 [13:58:07]Connected sock=8 [13:58:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EF 87 07 01 B8 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 6E 40 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D8 02 00 35 04 06 00 17 E0 C6 D3 82 E4 26 A1 B2 18 D5 48 5C 4D [13:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B D0 47 00 09 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BB D8 02 00 F4 03 04 00 C8 E6 B2 67 B6 04 01 00 00 C2 86 CA D6 6F BD 64 27 [13:58:08]CommunicateWithHost err = 0 [13:58:08]CheckOFDResponse [13:58:08]1017 (14) - 77093643461234 [13:58:08]1041 (16) - 0000000000871826 [13:58:08]1040 (4) - 186555 [13:58:08]1012 (4) - 17.02.2025 07:35 [13:58:08]1206 (1) - 0 [13:58:08]OFD Sender: Remove packet 186555 [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00186555 [13:58:08]NVStorageDeleteData [13:58:08]Write to MH i2c: 01 00 00 6C 02 6E [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 6C 02 00 00 00 00 00 EE 0C 6F [13:58:08]RasterBufferAndPrint [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]written 0, free lines is 3316 [13:58:08]MH_Cut [13:58:08]Write to MH i2c: D1 01 00 73 02 01 47 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 73 02 00 46 [13:58:08]Write to MH i2c: 01 00 00 74 02 76 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]OFD Sender: No OFD packet to send [13:58:08]*** Cut start [13:58:08]*** Partial cut [13:58:08]*** CUTSNS_PIN = 1 [13:58:08]*** CUTSNS_PIN = 0 [13:58:09]*** Brake cut motor [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]*** Stop cut motor [13:58:09]*** Cut end [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 74 02 00 00 00 00 00 FF 0F 8B [13:58:09]process_action close_receipt done [13:58:09]requested_data is exist [13:58:09]produce_requested_data [13:58:09]requested_item fm.sn is exist - process it [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 44 [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [13:58:09]wFMCommunicate OK [13:58:09]requested_item fd.num is exist - process it [13:58:09]SAM_PROTO_GetFieldsCounters [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 00 00 [13:58:09]Write to MH i2c: E2 08 00 76 02 80 13 00 00 00 00 00 00 F4 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 62 00 76 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BB D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetFieldsCounters done [13:58:09]requested_item shift.num is exist - process it [13:58:09]requested_item shift.opened is exist - process it [13:58:09]req_shift_opened [13:58:09]FM_GetShiftState [13:58:09]SAM_PROTO_GetShiftState [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 01 00 [13:58:09]Write to MH i2c: E2 08 00 77 02 80 13 01 00 00 00 00 00 F6 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 77 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1A [13:58:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetShiftState done [13:58:09]FM_GetShiftState done [13:58:09]req_shift_opened done [13:58:09]requested_item shift.open_date is exist - process it [13:58:09]req_shift_open_date [13:58:09]req_shift_open_date done [13:58:09]produce_requested_data done [13:58:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186555,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [13:58:09]process_action_free close_receipt [13:58:09]json_value_free [13:58:09]json_value_free done [13:58:09]process_json_proto returns [13:58:09]Send response to host [13:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186555,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [13:58:09]free response buf [13:58:09]execute_script done [13:58:09]execute_script returns [13:58:09]free content buf [13:58:09]Sock 9.Close socket [13:58:09]Sock 9.Thread stoped [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [13:59:13]OFD Sender: No OFD packet to send [13:59:18]OFD Sender: No OFD packet to send [13:59:23]OFD Sender: No OFD packet to send [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:43]OFD Sender: No OFD packet to send [14:00:48]OFD Sender: No OFD packet to send [14:00:53]OFD Sender: No OFD packet to send [14:00:58]OFD Sender: No OFD packet to send [14:01:03]OFD Sender: No OFD packet to send [14:01:08]OFD Sender: No OFD packet to send [14:01:13]OFD Sender: No OFD packet to send [14:01:18]OFD Sender: No OFD packet to send [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:17]accept exits with 10 [14:02:17]New connection [14:02:17]New thread 3066944868 created [14:02:17]Thread 3066801508 joined [14:02:17]Waiting for new connection... [14:02:17] Sock 10.Parse request [14:02:17]Sock 10.Check first char [14:02:17]Sock 10.First char is OK [14:02:17]request: POST /json_proto HTTP/1.0 [14:02:17]Method: POST [14:02:17]URL: /json_proto [14:02:17]Method is POST - this is cgi request [14:02:17]url: /json_proto [14:02:17]query_string will be loaded in cgi processing [14:02:17]execute_cgi json_proto POST (null) [14:02:17]execute_cgi path=json_proto method=POST [14:02:17]POST find Content-Length [14:02:17]Host: 172.17.46.131:8080 [14:02:17]Content-Length: 682 [14:02:17]Content-Type: application/json [14:02:17] [14:02:17]POST finish read [14:02:17]Found Content-Length = 682 [14:02:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:17]execute_script... [14:02:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:17]POST & json_proto [14:02:17]process_json_proto [14:02:17]json parsed OK: [14:02:17]protocol is kg_v1.0 [14:02:17]action value=close_receipt [14:02:17]process_action close_receipt [14:02:17]cmd_close_receipt [14:02:17]MH_GetDate [14:02:17]Write to MH i2c: F0 00 00 78 02 69 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: F0 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: F0 09 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: F0 09 00 78 02 00 6A 41 B3 67 7E 41 4F 65 AA [14:02:17]GetLastDocTimeStamp 1739800686 [14:02:17]current date 1739800938 [14:02:17]FM_GetShiftState [14:02:17]SAM_PROTO_GetShiftState [14:02:17]wFMCommunicate request_size=4 [14:02:17]MH_SAM_APDU [14:02:17]CAPDU: 80 13 01 00 [14:02:17]Write to MH i2c: E2 08 00 79 02 80 13 01 00 00 00 00 00 F8 [14:02:17]Write i2c OK [14:02:17]MH_I2C_Read... [14:02:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:17]Read from MH i2c: E2 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 0E 00 [14:02:17]MH_I2C_Read... [14:02:17]Read from MH i2c: E2 0E 00 79 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1C [14:02:17]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:02:17]wFMCommunicate OK [14:02:17]SAM_PROTO_GetShiftState done [14:02:17]FM_GetShiftState done [14:02:17]opened in 1739752571 [14:02:17]opened+sec_in_day 1739838971 [14:02:17]quantity*price = 100023 [14:02:17]sum+1 = 100025 [14:02:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 143 17.02.2025 14:02 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186556 ФПД: 144180807391199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186556&fm=144180807391199&tin=02508201610067®Number=0000000000091857&sum=100000 [14:02:18]StoreToDocumentArchive [14:02:18]shift 644 fd 186556 [14:02:18]save to /storage/0644/doc_00186556 [14:02:18]save last doc name /storage/0644/doc_00186556 to /storage/kkm_last_doc_name [14:02:18]save OK [14:02:18]Clear old archive folders... [14:02:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:02:18]tlvbuf is 004488B0 [14:02:18]SAM_PROTO_ClearQueue [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 09 00 00 [14:02:18]Write to MH i2c: E2 08 00 86 02 80 09 00 00 00 00 00 00 FA [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 86 02 00 90 00 FC [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]SAM_PROTO_ClearQueue done [14:02:18]KKMCreateOFDPacket [14:02:18]OFDProtocolAddRootSTLVToBuf [14:02:18]FM_MakeSignedData [14:02:18]FM_MakeSignedData [14:02:18]SAM_PROTO_SignData [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 01 02 [14:02:18]Write to MH i2c: E2 08 00 87 02 80 0D 01 02 00 00 00 00 02 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 87 02 00 90 00 FD [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=255 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 6A 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D8 02 00 35 04 06 00 83 [14:02:18]Write to MH i2c: E2 02 01 88 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 6A 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D8 02 00 35 04 06 00 83 00 00 F2 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 88 02 00 90 00 FE [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=10 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 02 02 05 21 B5 CE D7 DF [14:02:18]Write to MH i2c: E2 0D 00 89 02 80 0D 02 02 05 00 21 B5 CE D7 DF 00 00 69 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 03 00 89 02 00 90 00 FF [14:02:18]RAPDU: 90 00 [14:02:18]wFMCommunicate OK [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 0D 03 02 [14:02:18]Write to MH i2c: E2 08 00 8A 02 80 0D 03 02 00 00 00 00 07 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 0B 00 8A 02 00 65 5F C4 40 28 40 59 3A 90 00 CB [14:02:18]RAPDU: 65 5F C4 40 28 40 59 3A 90 00 [14:02:18]wFMCommunicate OK [14:02:18]SAM_PROTO_SignData done [14:02:18]FM_MakeSignedData done [14:02:18]CreateOFDProtocolMessage [14:02:18]wFMCommunicate request_size=4 [14:02:18]MH_SAM_APDU [14:02:18]CAPDU: 80 11 00 00 [14:02:18]Write to MH i2c: E2 08 00 8B 02 80 11 00 00 00 00 00 00 07 [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:18]Read from MH i2c: E2 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: E2 17 00 8B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5A [14:02:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:02:18]wFMCommunicate OK [14:02:18]CreateOFDProtocolMessage done [14:02:18]OFDSenderStorePacket 186556 [14:02:18]StoreOFDPacket docnum=186556 [14:02:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 4B 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 6A 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D8 02 00 35 04 06 00 83 21 B5 CE D7 DF 65 5F C4 40 28 40 59 3A [14:02:18]CheckFolder [14:02:18]dirname=/storage/ofd_packets [14:02:18]CheckFolder done [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00186556 [14:02:18]NVStorageSaveData ofd_packets/00186556 [14:02:18]File name is /storage/ofd_packets/00186556 [14:02:18]Write 301 bytes [14:02:18]NVStorageSaveData done [14:02:18]OFDSenderStorePacket done [14:02:18]KKMCreateOFDPacket done [14:02:18]NVStorageSaveData kkm_last_timestamp [14:02:18]File name is /storage/kkm_last_timestamp [14:02:18]Write 4 bytes [14:02:18]NVStorageSaveData done [14:02:18]OFD Sender: Processing packet 186556 [packets to send 49, broken 48] [14:02:18]ProducePacketName [14:02:18]name=ofd_packets/00186556 [14:02:18]OFD Sender: To server: pG, [14:02:18]CommunicateWithHost lk.salyk.kg:30040 [14:02:18]ConnectInit lk.salyk.kg [14:02:18]ExternCall_PrintAddStr [14:02:18]wPrintStart [14:02:18]Write to MH i2c: 01 00 00 8C 02 8E [14:02:18]Write i2c OK [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 [14:02:18]MH_I2C_Read... [14:02:18]Read from MH i2c: 01 07 00 8C 02 00 00 00 00 00 FF 0F A3 [14:02:18]RasterBufferAndPrint [14:02:18]line Счет N : (1)411700 [14:02:18]line ИНН: 02508201610067 [14:02:18]line Контрольно-Кассовый Чек [14:02:18]line ПРОДАЖА [14:02:18]line ТРК (МРК, ГНК) : 22 [14:02:18]line Товар: 2710124130 [14:02:18]line Аи-92-К-2 [14:02:18]line 15.580 * 64.20 [14:02:18]line = 1000.24 [14:02:18]line НДС 12% НСП 1% [14:02:18]line > о реализуемом товаре [14:02:18]line ОКРУГЛЕНИЕ: -0.24 [14:02:18]line ИТОГО: 1000.00 [14:02:18]line Внесено: 1000.00 [14:02:18]line СДАЧА: 0.00 [14:02:18]line НСП 1% : 8.85 [14:02:18]line НДС 12% : 106.22 [14:02:18]line Наличными: 1000.00 [14:02:18]line Безнал.: 0.00 [14:02:18]line Место: АЗС № 92 "Партнер Нефть" [14:02:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:02:18]line СНО: Общий режим [14:02:18]line Чек 143 17.02.2025 14:02 [14:02:18]line Смена: 644 ФФД: 1.0 [14:02:18]line ЗНМ: 0300000118 [14:02:18]line РНМ: 0000000000091857 [14:02:18]line Версия ККМ: 001 [14:02:18]line ФМ: 0000000000871826 [14:02:18]line ФД: 186556 [14:02:18]line ФПД: 144180807391199 [14:02:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140218&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186556&fm=144180807391199&tin=02508201610067®Number=0000000000091857&sum=100000 [14:02:19]written 0, free lines is 4095 [14:02:19]Write to MH i2c: 01 00 00 B7 02 B9 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 F3 0C BF [14:02:19]RasterBufferAndPrint [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]line [14:02:19]written 0, free lines is 3321 [14:02:19]MH_Cut [14:02:19]Write to MH i2c: D1 01 00 BE 02 01 92 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 [14:02:19]MH_I2C_Read... [14:02:19]Read from MH i2c: D1 01 00 BE 02 00 91 [14:02:19]Write to MH i2c: 01 00 00 BF 02 C1 [14:02:19]Write i2c OK [14:02:19]MH_I2C_Read... [14:02:20]*** Cut start [14:02:20]*** Partial cut [14:02:20]*** CUTSNS_PIN = 1 [14:02:20]*** CUTSNS_PIN = 0 [14:02:20]*** Brake cut motor [14:02:21]Read from MH i2c: 01 [14:02:21]MH_I2C_Read... [14:02:21]*** Stop cut motor [14:02:21]*** Cut end [14:02:21]Read from MH i2c: 01 07 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: 01 07 00 BF 02 00 00 00 00 00 FF 0F D6 [14:02:21]process_action close_receipt done [14:02:21]requested_data is exist [14:02:21]produce_requested_data [14:02:21]requested_item fm.sn is exist - process it [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 11 00 00 [14:02:21]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 17 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8F [14:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:02:21]wFMCommunicate OK [14:02:21]requested_item fd.num is exist - process it [14:02:21]SAM_PROTO_GetFieldsCounters [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 13 00 00 [14:02:21]Write to MH i2c: E2 08 00 C1 02 80 13 00 00 00 00 00 00 3F [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 62 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 62 00 C1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [14:02:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BC D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetFieldsCounters done [14:02:21]requested_item shift.num is exist - process it [14:02:21]requested_item shift.opened is exist - process it [14:02:21]req_shift_opened [14:02:21]FM_GetShiftState [14:02:21]SAM_PROTO_GetShiftState [14:02:21]wFMCommunicate request_size=4 [14:02:21]MH_SAM_APDU [14:02:21]CAPDU: 80 13 01 00 [14:02:21]Write to MH i2c: E2 08 00 C2 02 80 13 01 00 00 00 00 00 41 [14:02:21]Write i2c OK [14:02:21]MH_I2C_Read... [14:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:21]Read from MH i2c: E2 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 [14:02:21]MH_I2C_Read... [14:02:21]Read from MH i2c: E2 0E 00 C2 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 65 [14:02:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:02:21]wFMCommunicate OK [14:02:21]SAM_PROTO_GetShiftState done [14:02:21]FM_GetShiftState done [14:02:21]req_shift_opened done [14:02:21]requested_item shift.open_date is exist - process it [14:02:21]req_shift_open_date [14:02:21]req_shift_open_date done [14:02:21]produce_requested_data done [14:02:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186556,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:02:21]process_action_free close_receipt [14:02:21]json_value_free [14:02:21]json_value_free done [14:02:21]process_json_proto returns [14:02:21]Send response to host [14:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186556,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:02:21]free response buf [14:02:21]execute_script done [14:02:21]execute_script returns [14:02:21]free content buf [14:02:21]Sock 10.Close socket [14:02:21]Sock 10.Thread stoped [14:03:52]accept exits with 8 [14:03:52]New connection [14:03:52]New thread 3066801508 created [14:03:52]Thread 3066944868 joined [14:03:52]Waiting for new connection... [14:03:52] Sock 8.Parse request [14:03:52]Sock 8.Check first char [14:03:52]Sock 8.First char is OK [14:03:52]request: POST /json_proto HTTP/1.0 [14:03:52]Method: POST [14:03:52]URL: /json_proto [14:03:52]Method is POST - this is cgi request [14:03:52]url: /json_proto [14:03:52]query_string will be loaded in cgi processing [14:03:52]execute_cgi json_proto POST (null) [14:03:52]execute_cgi path=json_proto method=POST [14:03:52]POST find Content-Length [14:03:52]Host: 172.17.46.131:8080 [14:03:52]Content-Length: 682 [14:03:52]Content-Type: application/json [14:03:52] [14:03:52]POST finish read [14:03:52]Found Content-Length = 682 [14:03:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:52]execute_script... [14:03:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:52]POST & json_proto [14:03:52]process_json_proto [14:03:52]json parsed OK: [14:03:52]protocol is kg_v1.0 [14:03:52]action value=close_receipt [14:03:52]process_action close_receipt [14:03:52]cmd_close_receipt [14:03:52]MH_GetDate [14:03:52]Write to MH i2c: F0 00 00 C3 02 B4 [14:03:52]Write i2c OK [14:03:52]MH_I2C_Read... [14:03:52]Read from MH i2c: F0 [14:03:52]MH_I2C_Read... [14:03:52]Read from MH i2c: F0 09 00 [14:03:52]MH_I2C_Read... [14:03:52]Read from MH i2c: F0 09 00 C3 02 00 C9 41 B3 67 7E 41 4F 65 54 [14:03:52]GetLastDocTimeStamp 1739800938 [14:03:52]current date 1739801033 [14:03:52]FM_GetShiftState [14:03:52]SAM_PROTO_GetShiftState [14:03:52]wFMCommunicate request_size=4 [14:03:52]MH_SAM_APDU [14:03:52]CAPDU: 80 13 01 00 [14:03:52]Write to MH i2c: E2 08 00 C4 02 80 13 01 00 00 00 00 00 43 [14:03:52]Write i2c OK [14:03:52]MH_I2C_Read... [14:03:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:52]Read from MH i2c: E2 [14:03:52]MH_I2C_Read... [14:03:52]Read from MH i2c: E2 0E 00 [14:03:52]MH_I2C_Read... [14:03:52]Read from MH i2c: E2 0E 00 C4 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 67 [14:03:52]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:03:52]wFMCommunicate OK [14:03:52]SAM_PROTO_GetShiftState done [14:03:52]FM_GetShiftState done [14:03:52]opened in 1739752571 [14:03:52]opened+sec_in_day 1739838971 [14:03:52]quantity*price = 100023 [14:03:52]sum+1 = 100025 [14:03:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 144 17.02.2025 14:03 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186557 ФПД: 131468859937763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140353&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186557&fm=131468859937763&tin=02508201610067®Number=0000000000091857&sum=100000 [14:03:53]StoreToDocumentArchive [14:03:53]shift 644 fd 186557 [14:03:53]save to /storage/0644/doc_00186557 [14:03:53]save last doc name /storage/0644/doc_00186557 to /storage/kkm_last_doc_name [14:03:53]save OK [14:03:53]Clear old archive folders... [14:03:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:03:53]tlvbuf is 00448760 [14:03:53]SAM_PROTO_ClearQueue [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 09 00 00 [14:03:53]Write to MH i2c: E2 08 00 D1 02 80 09 00 00 00 00 00 00 45 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 D1 02 00 90 00 47 [14:03:53]RAPDU: 90 00 [14:03:53]wFMCommunicate OK [14:03:53]SAM_PROTO_ClearQueue done [14:03:53]KKMCreateOFDPacket [14:03:53]OFDProtocolAddRootSTLVToBuf [14:03:53]FM_MakeSignedData [14:03:53]FM_MakeSignedData [14:03:53]SAM_PROTO_SignData [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 0D 01 02 [14:03:53]Write to MH i2c: E2 08 00 D2 02 80 0D 01 02 00 00 00 00 4D [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 D2 02 00 90 00 48 [14:03:53]RAPDU: 90 00 [14:03:53]wFMCommunicate OK [14:03:53]wFMCommunicate request_size=255 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D8 02 00 35 04 06 00 77 [14:03:53]Write to MH i2c: E2 02 01 D3 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D8 02 00 35 04 06 00 77 00 00 92 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 D3 02 00 90 00 49 [14:03:53]RAPDU: 90 00 [14:03:53]wFMCommunicate OK [14:03:53]wFMCommunicate request_size=10 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 0D 02 02 05 91 FA B2 13 E3 [14:03:53]Write to MH i2c: E2 0D 00 D4 02 80 0D 02 02 05 00 91 FA B2 13 E3 00 00 8D [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 03 00 D4 02 00 90 00 4A [14:03:53]RAPDU: 90 00 [14:03:53]wFMCommunicate OK [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 0D 03 02 [14:03:53]Write to MH i2c: E2 08 00 D5 02 80 0D 03 02 00 00 00 00 52 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 0B 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 0B 00 D5 02 00 9F 0F 18 88 46 3A 43 06 90 00 6A [14:03:53]RAPDU: 9F 0F 18 88 46 3A 43 06 90 00 [14:03:53]wFMCommunicate OK [14:03:53]SAM_PROTO_SignData done [14:03:53]FM_MakeSignedData done [14:03:53]CreateOFDProtocolMessage [14:03:53]wFMCommunicate request_size=4 [14:03:53]MH_SAM_APDU [14:03:53]CAPDU: 80 11 00 00 [14:03:53]Write to MH i2c: E2 08 00 D6 02 80 11 00 00 00 00 00 00 52 [14:03:53]Write i2c OK [14:03:53]MH_I2C_Read... [14:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:53]Read from MH i2c: E2 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 17 00 [14:03:53]MH_I2C_Read... [14:03:53]Read from MH i2c: E2 17 00 D6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [14:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:03:53]wFMCommunicate OK [14:03:53]CreateOFDProtocolMessage done [14:03:53]OFDSenderStorePacket 186557 [14:03:53]StoreOFDPacket docnum=186557 [14:03:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 31 07 01 90 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D8 02 00 35 04 06 00 77 91 FA B2 13 E3 9F 0F 18 88 46 3A 43 06 [14:03:53]CheckFolder [14:03:53]dirname=/storage/ofd_packets [14:03:53]CheckFolder done [14:03:53]ProducePacketName [14:03:53]name=ofd_packets/00186557 [14:03:53]NVStorageSaveData ofd_packets/00186557 [14:03:53]File name is /storage/ofd_packets/00186557 [14:03:53]Write 301 bytes [14:03:54]NVStorageSaveData done [14:03:54]OFDSenderStorePacket done [14:03:54]KKMCreateOFDPacket done [14:03:54]NVStorageSaveData kkm_last_timestamp [14:03:54]File name is /storage/kkm_last_timestamp [14:03:54]Write 4 bytes [14:03:54]NVStorageSaveData done [14:03:54]ExternCall_PrintAddStr [14:03:54]wPrintStart [14:03:54]Write to MH i2c: 01 00 00 D7 02 D9 [14:03:54]Write i2c OK [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 07 00 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 FF 0F EE [14:03:54]RasterBufferAndPrint [14:03:54]line Счет N : (1)411702 [14:03:54]line ИНН: 02508201610067 [14:03:54]line Контрольно-Кассовый Чек [14:03:54]line ПРОДАЖА [14:03:54]line ТРК (МРК, ГНК) : 12 [14:03:54]line Товар: 2710124130 [14:03:54]line Аи-92-К-2 [14:03:54]line 15.580 * 64.20 [14:03:54]line = 1000.24 [14:03:54]line НДС 12% НСП 1% [14:03:54]line > о реализуемом товаре [14:03:54]line ОКРУГЛЕНИЕ: -0.24 [14:03:54]line ИТОГО: 1000.00 [14:03:54]line Внесено: 1000.00 [14:03:54]line СДАЧА: 0.00 [14:03:54]line НСП 1% : 8.85 [14:03:54]line НДС 12% : 106.22 [14:03:54]line Наличными: 1000.00 [14:03:54]line Безнал.: 0.00 [14:03:54]line Место: АЗС № 92 "Партнер Нефть" [14:03:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:03:54]line СНО: Общий режим [14:03:54]line Чек 144 17.02.2025 14:03 [14:03:54]line Смена: 644 ФФД: 1.0 [14:03:54]line ЗНМ: 0300000118 [14:03:54]line РНМ: 0000000000091857 [14:03:54]line Версия ККМ: 001 [14:03:54]line ФМ: 0000000000871826 [14:03:54]line ФД: 186557 [14:03:54]line ФПД: 131468859937763 [14:03:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140353&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186557&fm=131468859937763&tin=02508201610067®Number=0000000000091857&sum=100000 [14:03:54]written 0, free lines is 4095 [14:03:54]Write to MH i2c: 01 00 00 02 03 05 [14:03:54]Write i2c OK [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 07 00 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 F3 0C 0B [14:03:54]RasterBufferAndPrint [14:03:54]line [14:03:54]line [14:03:54]line [14:03:54]line [14:03:54]line [14:03:54]written 0, free lines is 3321 [14:03:54]MH_Cut [14:03:54]Write to MH i2c: D1 01 00 09 03 01 DE [14:03:54]Write i2c OK [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: D1 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: D1 01 00 [14:03:54]MH_I2C_Read... [14:03:54]Read from MH i2c: D1 01 00 09 03 00 DD [14:03:54]Write to MH i2c: 01 00 00 0A 03 0D [14:03:54]Write i2c OK [14:03:54]MH_I2C_Read... [14:03:55]*** Cut start [14:03:55]*** Partial cut [14:03:55]*** CUTSNS_PIN = 1 [14:03:55]*** CUTSNS_PIN = 0 [14:03:55]*** Brake cut motor [14:03:55]Read from MH i2c: 01 [14:03:55]MH_I2C_Read... [14:03:55]*** Stop cut motor [14:03:55]*** Cut end [14:03:55]Read from MH i2c: 01 07 00 [14:03:55]MH_I2C_Read... [14:03:55]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [14:03:55]process_action close_receipt done [14:03:55]requested_data is exist [14:03:55]produce_requested_data [14:03:55]requested_item fm.sn is exist - process it [14:03:55]wFMCommunicate request_size=4 [14:03:55]MH_SAM_APDU [14:03:55]CAPDU: 80 11 00 00 [14:03:55]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [14:03:55]Write i2c OK [14:03:55]MH_I2C_Read... [14:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:55]Read from MH i2c: E2 [14:03:55]MH_I2C_Read... [14:03:55]Read from MH i2c: E2 17 00 [14:03:55]MH_I2C_Read... [14:03:55]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [14:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:03:55]wFMCommunicate OK [14:03:55]requested_item fd.num is exist - process it [14:03:55]SAM_PROTO_GetFieldsCounters [14:03:55]wFMCommunicate request_size=4 [14:03:55]MH_SAM_APDU [14:03:55]CAPDU: 80 13 00 00 [14:03:55]Write to MH i2c: E2 08 00 0C 03 80 13 00 00 00 00 00 00 8B [14:03:55]Write i2c OK [14:03:55]MH_I2C_Read... [14:03:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:56]Read from MH i2c: E2 [14:03:56]MH_I2C_Read... [14:03:56]Read from MH i2c: E2 62 00 [14:03:56]MH_I2C_Read... [14:03:56]Read from MH i2c: E2 62 00 0C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14:03:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BD D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:56]wFMCommunicate OK [14:03:56]SAM_PROTO_GetFieldsCounters done [14:03:56]requested_item shift.num is exist - process it [14:03:56]requested_item shift.opened is exist - process it [14:03:56]req_shift_opened [14:03:56]FM_GetShiftState [14:03:56]SAM_PROTO_GetShiftState [14:03:56]wFMCommunicate request_size=4 [14:03:56]MH_SAM_APDU [14:03:56]CAPDU: 80 13 01 00 [14:03:56]Write to MH i2c: E2 08 00 0D 03 80 13 01 00 00 00 00 00 8D [14:03:56]Write i2c OK [14:03:56]MH_I2C_Read... [14:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:56]Read from MH i2c: E2 [14:03:56]MH_I2C_Read... [14:03:56]Read from MH i2c: E2 0E 00 [14:03:56]MH_I2C_Read... [14:03:56]Read from MH i2c: E2 0E 00 0D 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B1 [14:03:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:03:56]wFMCommunicate OK [14:03:56]SAM_PROTO_GetShiftState done [14:03:56]FM_GetShiftState done [14:03:56]req_shift_opened done [14:03:56]requested_item shift.open_date is exist - process it [14:03:56]req_shift_open_date [14:03:56]req_shift_open_date done [14:03:56]produce_requested_data done [14:03:56]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186557,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:03:56]process_action_free close_receipt [14:03:56]json_value_free [14:03:56]json_value_free done [14:03:56]process_json_proto returns [14:03:56]Send response to host [14:03:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186557,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:03:56]free response buf [14:03:56]execute_script done [14:03:56]execute_script returns [14:03:56]free content buf [14:03:56]Sock 8.Close socket [14:03:56]Sock 8.Thread stoped [14:03:58]accept exits with 9 [14:03:58]New connection [14:03:58]New thread 3066944868 created [14:03:58]Thread 3066801508 joined [14:03:58]Waiting for new connection... [14:03:58] Sock 9.Parse request [14:03:58]Sock 9.Check first char [14:03:58]Sock 9.First char is OK [14:03:58]request: POST /json_proto HTTP/1.0 [14:03:58]Method: POST [14:03:58]URL: /json_proto [14:03:58]Method is POST - this is cgi request [14:03:58]url: /json_proto [14:03:58]query_string will be loaded in cgi processing [14:03:58]execute_cgi json_proto POST (null) [14:03:58]execute_cgi path=json_proto method=POST [14:03:58]POST find Content-Length [14:03:58]Host: 172.17.46.131:8080 [14:03:58]Content-Length: 678 [14:03:58]Content-Type: application/json [14:03:58] [14:03:58]POST finish read [14:03:58]Found Content-Length = 678 [14:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:58]execute_script... [14:03:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:03:58]POST & json_proto [14:03:58]process_json_proto [14:03:58]json parsed OK: [14:03:58]protocol is kg_v1.0 [14:03:58]action value=close_receipt [14:03:58]process_action close_receipt [14:03:58]cmd_close_receipt [14:03:58]MH_GetDate [14:03:58]Write to MH i2c: F0 00 00 0E 03 00 [14:03:58]Write i2c OK [14:03:58]MH_I2C_Read... [14:03:58]Read from MH i2c: F0 [14:03:58]MH_I2C_Read... [14:03:58]Read from MH i2c: F0 09 00 [14:03:58]MH_I2C_Read... [14:03:58]Read from MH i2c: F0 09 00 0E 03 00 CF 41 B3 67 7E 41 4F 65 A6 [14:03:58]GetLastDocTimeStamp 1739801033 [14:03:58]current date 1739801039 [14:03:58]FM_GetShiftState [14:03:58]SAM_PROTO_GetShiftState [14:03:58]wFMCommunicate request_size=4 [14:03:58]MH_SAM_APDU [14:03:58]CAPDU: 80 13 01 00 [14:03:58]Write to MH i2c: E2 08 00 0F 03 80 13 01 00 00 00 00 00 8F [14:03:58]Write i2c OK [14:03:58]MH_I2C_Read... [14:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:58]Read from MH i2c: E2 [14:03:58]MH_I2C_Read... [14:03:58]Read from MH i2c: E2 0E 00 [14:03:58]MH_I2C_Read... [14:03:58]Read from MH i2c: E2 0E 00 0F 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B3 [14:03:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:03:58]wFMCommunicate OK [14:03:58]SAM_PROTO_GetShiftState done [14:03:58]FM_GetShiftState done [14:03:58]opened in 1739752571 [14:03:58]opened+sec_in_day 1739838971 [14:03:58]quantity*price = 100042 [14:03:58]sum+1 = 100044 [14:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 145 17.02.2025 14:03 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186558 ФПД: 16969495030868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186558&fm=16969495030868&tin=02508201610067®Number=0000000000091857&sum=100000 [14:03:59]StoreToDocumentArchive [14:03:59]shift 644 fd 186558 [14:03:59]save to /storage/0644/doc_00186558 [14:03:59]save last doc name /storage/0644/doc_00186558 to /storage/kkm_last_doc_name [14:03:59]save OK [14:03:59]Clear old archive folders... [14:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:03:59]tlvbuf is 00469520 [14:03:59]SAM_PROTO_ClearQueue [14:03:59]wFMCommunicate request_size=4 [14:03:59]MH_SAM_APDU [14:03:59]CAPDU: 80 09 00 00 [14:03:59]Write to MH i2c: E2 08 00 1C 03 80 09 00 00 00 00 00 00 91 [14:03:59]Write i2c OK [14:03:59]MH_I2C_Read... [14:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:59]Read from MH i2c: E2 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [14:03:59]RAPDU: 90 00 [14:03:59]wFMCommunicate OK [14:03:59]SAM_PROTO_ClearQueue done [14:03:59]KKMCreateOFDPacket [14:03:59]OFDProtocolAddRootSTLVToBuf [14:03:59]FM_MakeSignedData [14:03:59]FM_MakeSignedData [14:03:59]SAM_PROTO_SignData [14:03:59]wFMCommunicate request_size=4 [14:03:59]MH_SAM_APDU [14:03:59]CAPDU: 80 0D 01 02 [14:03:59]Write to MH i2c: E2 08 00 1D 03 80 0D 01 02 00 00 00 00 99 [14:03:59]Write i2c OK [14:03:59]MH_I2C_Read... [14:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:59]Read from MH i2c: E2 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [14:03:59]RAPDU: 90 00 [14:03:59]wFMCommunicate OK [14:03:59]wFMCommunicate request_size=255 [14:03:59]MH_SAM_APDU [14:03: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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 CF 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D8 02 00 35 04 06 00 0F 6F 04 B9 [14:03:59]Write to MH i2c: E2 02 01 1E 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 CF 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D8 02 00 35 04 06 00 0F 6F 04 B9 00 00 51 [14:03:59]Write i2c OK [14:03:59]MH_I2C_Read... [14:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:59]Read from MH i2c: E2 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 [14:03:59]MH_I2C_Read... [14:03:59]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [14:03:59]RAPDU: 90 00 [14:03:59]wFMCommunicate OK [14:03:59]wFMCommunicate request_size=7 [14:03:59]MH_SAM_APDU [14:03:59]CAPDU: 80 0D 02 02 02 2C 54 [14:03:59]Write to MH i2c: E2 0A 00 1F 03 80 0D 02 02 02 00 2C 54 00 00 20 [14:03:59]Write i2c OK [14:03:59]MH_I2C_Read... [14:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:00]Read from MH i2c: E2 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 03 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [14:04:00]RAPDU: 90 00 [14:04:00]wFMCommunicate OK [14:04:00]wFMCommunicate request_size=4 [14:04:00]MH_SAM_APDU [14:04:00]CAPDU: 80 0D 03 02 [14:04:00]Write to MH i2c: E2 08 00 20 03 80 0D 03 02 00 00 00 00 9E [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:00]Read from MH i2c: E2 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 0B 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 0B 00 20 03 00 4E 0F 82 37 3A D9 36 B0 90 00 AE [14:04:00]RAPDU: 4E 0F 82 37 3A D9 36 B0 90 00 [14:04:00]wFMCommunicate OK [14:04:00]SAM_PROTO_SignData done [14:04:00]FM_MakeSignedData done [14:04:00]CreateOFDProtocolMessage [14:04:00]wFMCommunicate request_size=4 [14:04:00]MH_SAM_APDU [14:04:00]CAPDU: 80 11 00 00 [14:04:00]Write to MH i2c: E2 08 00 21 03 80 11 00 00 00 00 00 00 9E [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:00]Read from MH i2c: E2 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 17 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: E2 17 00 21 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [14:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:00]wFMCommunicate OK [14:04:00]CreateOFDProtocolMessage done [14:04:00]OFDSenderStorePacket 186558 [14:04:00]StoreOFDPacket docnum=186558 [14:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 07 9F 04 01 3A 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 CF 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D8 02 00 35 04 06 00 0F 6F 04 B9 2C 54 4E 0F 82 37 3A D9 36 B0 [14:04:00]CheckFolder [14:04:00]dirname=/storage/ofd_packets [14:04:00]CheckFolder done [14:04:00]ProducePacketName [14:04:00]name=ofd_packets/00186558 [14:04:00]NVStorageSaveData ofd_packets/00186558 [14:04:00]File name is /storage/ofd_packets/00186558 [14:04:00]Write 298 bytes [14:04:00]NVStorageSaveData done [14:04:00]OFDSenderStorePacket done [14:04:00]KKMCreateOFDPacket done [14:04:00]NVStorageSaveData kkm_last_timestamp [14:04:00]File name is /storage/kkm_last_timestamp [14:04:00]Write 4 bytes [14:04:00]NVStorageSaveData done [14:04:00]ExternCall_PrintAddStr [14:04:00]wPrintStart [14:04:00]Write to MH i2c: 01 00 00 22 03 25 [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 07 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 07 00 22 03 00 00 00 00 00 FF 0F 3A [14:04:00]RasterBufferAndPrint [14:04:00]line Счет N : (1)411703 [14:04:00]line ИНН: 02508201610067 [14:04:00]line Контрольно-Кассовый Чек [14:04:00]line ПРОДАЖА [14:04:00]line ТРК (МРК, ГНК) : 5 [14:04:00]line Товар: 2710194210 [14:04:00]line ДТ-К-5 [14:04:00]line 13.780 * 72.60 [14:04:00]line = 1000.43 [14:04:00]line НДС 12% НСП 1% [14:04:00]line > о реализуемом товаре [14:04:00]line ОКРУГЛЕНИЕ: -0.43 [14:04:00]line ИТОГО: 1000.00 [14:04:00]line Внесено: 1000.00 [14:04:00]line СДАЧА: 0.00 [14:04:00]line НСП 1% : 8.85 [14:04:00]line НДС 12% : 106.24 [14:04:00]line Наличными: 1000.00 [14:04:00]line Безнал.: 0.00 [14:04:00]line Место: АЗС № 92 "Партнер Нефть" [14:04:00]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:04:00]line СНО: Общий режим [14:04:00]line Чек 145 17.02.2025 14:03 [14:04:00]line Смена: 644 ФФД: 1.0 [14:04:00]line ЗНМ: 0300000118 [14:04:00]line РНМ: 0000000000091857 [14:04:00]line Версия ККМ: 001 [14:04:00]line ФМ: 0000000000871826 [14:04:00]line ФД: 186558 [14:04:00]line ФПД: 16969495030868 [14:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140359&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186558&fm=16969495030868&tin=02508201610067®Number=0000000000091857&sum=100000 [14:04:00]written 0, free lines is 4095 [14:04:00]Write to MH i2c: 01 00 00 4D 03 50 [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 07 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 F0 0C 53 [14:04:00]RasterBufferAndPrint [14:04:00]line [14:04:00]line [14:04:00]line [14:04:00]line [14:04:00]line [14:04:00]written 0, free lines is 3321 [14:04:00]MH_Cut [14:04:00]Write to MH i2c: D1 01 00 54 03 01 29 [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: D1 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: D1 01 00 [14:04:00]MH_I2C_Read... [14:04:00]Read from MH i2c: D1 01 00 54 03 00 28 [14:04:00]Write to MH i2c: 01 00 00 55 03 58 [14:04:00]Write i2c OK [14:04:00]MH_I2C_Read... [14:04:01]*** Cut start [14:04:01]*** Partial cut [14:04:01]*** CUTSNS_PIN = 1 [14:04:01]*** CUTSNS_PIN = 0 [14:04:01]*** Brake cut motor [14:04:02]Read from MH i2c: 01 [14:04:02]MH_I2C_Read... [14:04:02]*** Stop cut motor [14:04:02]*** Cut end [14:04:02]Read from MH i2c: 01 07 00 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: 01 07 00 55 03 00 00 00 00 00 FF 0F 6D [14:04:02]process_action close_receipt done [14:04:02]requested_data is exist [14:04:02]produce_requested_data [14:04:02]requested_item fm.sn is exist - process it [14:04:02]wFMCommunicate request_size=4 [14:04:02]MH_SAM_APDU [14:04:02]CAPDU: 80 11 00 00 [14:04:02]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [14:04:02]Write i2c OK [14:04:02]MH_I2C_Read... [14:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:02]Read from MH i2c: E2 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 17 00 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 26 [14:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:02]wFMCommunicate OK [14:04:02]requested_item fd.num is exist - process it [14:04:02]SAM_PROTO_GetFieldsCounters [14:04:02]wFMCommunicate request_size=4 [14:04:02]MH_SAM_APDU [14:04:02]CAPDU: 80 13 00 00 [14:04:02]Write to MH i2c: E2 08 00 57 03 80 13 00 00 00 00 00 00 D6 [14:04:02]Write i2c OK [14:04:02]MH_I2C_Read... [14:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:02]Read from MH i2c: E2 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 62 00 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 62 00 57 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [14:04: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BE D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:02]wFMCommunicate OK [14:04:02]SAM_PROTO_GetFieldsCounters done [14:04:02]requested_item shift.num is exist - process it [14:04:02]requested_item shift.opened is exist - process it [14:04:02]req_shift_opened [14:04:02]FM_GetShiftState [14:04:02]SAM_PROTO_GetShiftState [14:04:02]wFMCommunicate request_size=4 [14:04:02]MH_SAM_APDU [14:04:02]CAPDU: 80 13 01 00 [14:04:02]Write to MH i2c: E2 08 00 58 03 80 13 01 00 00 00 00 00 D8 [14:04:02]Write i2c OK [14:04:02]MH_I2C_Read... [14:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:02]Read from MH i2c: E2 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 0E 00 [14:04:02]MH_I2C_Read... [14:04:02]Read from MH i2c: E2 0E 00 58 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FC [14:04:02]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:04:02]wFMCommunicate OK [14:04:02]SAM_PROTO_GetShiftState done [14:04:02]FM_GetShiftState done [14:04:02]req_shift_opened done [14:04:02]requested_item shift.open_date is exist - process it [14:04:02]req_shift_open_date [14:04:02]req_shift_open_date done [14:04:02]produce_requested_data done [14:04:02]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186558,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:04:02]process_action_free close_receipt [14:04:02]json_value_free [14:04:02]json_value_free done [14:04:02]process_json_proto returns [14:04:02]Send response to host [14:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186558,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:04:02]free response buf [14:04:02]execute_script done [14:04:02]execute_script returns [14:04:02]free content buf [14:04:02]Sock 9.Close socket [14:04:02]Sock 9.Thread stoped [14:04:19]accept exits with 8 [14:04:19]New connection [14:04:19]New thread 3066801508 created [14:04:19]Thread 3066944868 joined [14:04:19]Waiting for new connection... [14:04:19] Sock 8.Parse request [14:04:19]Sock 8.Check first char [14:04:19]Sock 8.First char is OK [14:04:19]request: POST /json_proto HTTP/1.0 [14:04:19]Method: POST [14:04:19]URL: /json_proto [14:04:19]Method is POST - this is cgi request [14:04:19]url: /json_proto [14:04:19]query_string will be loaded in cgi processing [14:04:19]execute_cgi json_proto POST (null) [14:04:19]execute_cgi path=json_proto method=POST [14:04:19]POST find Content-Length [14:04:19]Host: 172.17.46.131:8080 [14:04:19]Content-Length: 803 [14:04:19]Content-Type: application/json [14:04:19] [14:04:19]POST finish read [14:04:19]Found Content-Length = 803 [14:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:19]execute_script... [14:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 38.950, "sum" : 2500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2500.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:19]POST & json_proto [14:04:19]process_json_proto [14:04:19]json parsed OK: [14:04:19]protocol is kg_v1.0 [14:04:19]action value=close_receipt [14:04:19]process_action close_receipt [14:04:19]cmd_close_receipt [14:04:19]MH_GetDate [14:04:19]Write to MH i2c: F0 00 00 59 03 4B [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: F0 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: F0 09 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: F0 09 00 59 03 00 E4 41 B3 67 7E 41 4F 65 06 [14:04:20]GetLastDocTimeStamp 1739801039 [14:04:20]current date 1739801060 [14:04:20]FM_GetShiftState [14:04:20]SAM_PROTO_GetShiftState [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 13 01 00 [14:04:20]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 0E 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FE [14:04:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:04:20]wFMCommunicate OK [14:04:20]SAM_PROTO_GetShiftState done [14:04:20]FM_GetShiftState done [14:04:20]opened in 1739752571 [14:04:20]opened+sec_in_day 1739838971 [14:04:20]quantity*price = 250059 [14:04:20]sum+1 = 250060 [14:04:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.59 НСП 1% : 22.13 НДС 12% : 265.55 Наличными: 0.00 Безнал.: 2500.59 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 146 17.02.2025 14:04 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186559 ФПД: 132775641012072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186559&fm=132775641012072&tin=02508201610067®Number=0000000000091857&sum=250059 [14:04:21]StoreToDocumentArchive [14:04:21]shift 644 fd 186559 [14:04:21]save to /storage/0644/doc_00186559 [14:04:21]save last doc name /storage/0644/doc_00186559 to /storage/kkm_last_doc_name [14:04:21]save OK [14:04:21]Clear old archive folders... [14:04:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:21]tlvbuf is 0046CE20 [14:04:21]SAM_PROTO_ClearQueue [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 09 00 00 [14:04:21]Write to MH i2c: E2 08 00 67 03 80 09 00 00 00 00 00 00 DC [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 67 03 00 90 00 DE [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]SAM_PROTO_ClearQueue done [14:04:21]KKMCreateOFDPacket [14:04:21]OFDProtocolAddRootSTLVToBuf [14:04:21]FM_MakeSignedData [14:04:21]FM_MakeSignedData [14:04:21]SAM_PROTO_SignData [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 01 02 [14:04:21]Write to MH i2c: E2 08 00 68 03 80 0D 01 02 00 00 00 00 E4 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 68 03 00 90 00 DF [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]wFMCommunicate request_size=255 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E4 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D8 02 00 35 04 06 00 78 [14:04:21]Write to MH i2c: E2 02 01 69 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E4 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D8 02 00 35 04 06 00 78 00 00 EC [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]wFMCommunicate request_size=10 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 02 02 05 C2 3C EA D7 68 [14:04:21]Write to MH i2c: E2 0D 00 6A 03 80 0D 02 02 05 00 C2 3C EA D7 68 00 00 18 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 03 02 [14:04:21]Write to MH i2c: E2 08 00 6B 03 80 0D 03 02 00 00 00 00 E9 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 0B 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 0B 00 6B 03 00 34 D3 F9 C6 73 D7 1C 76 90 00 8C [14:04:21]RAPDU: 34 D3 F9 C6 73 D7 1C 76 90 00 [14:04:21]wFMCommunicate OK [14:04:21]SAM_PROTO_SignData done [14:04:21]FM_MakeSignedData done [14:04:21]CreateOFDProtocolMessage [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 11 00 00 [14:04:21]Write to MH i2c: E2 08 00 6C 03 80 11 00 00 00 00 00 00 E9 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 17 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 17 00 6C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3C [14:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:21]wFMCommunicate OK [14:04:21]CreateOFDProtocolMessage done [14:04:21]OFDSenderStorePacket 186559 [14:04:21]StoreOFDPacket docnum=186559 [14:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 75 07 01 4D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E4 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D8 02 00 35 04 06 00 78 C2 3C EA D7 68 34 D3 F9 C6 73 D7 1C 76 [14:04:21]CheckFolder [14:04:21]dirname=/storage/ofd_packets [14:04:21]CheckFolder done [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00186559 [14:04:21]NVStorageSaveData ofd_packets/00186559 [14:04:21]File name is /storage/ofd_packets/00186559 [14:04:21]Write 301 bytes [14:04:21]NVStorageSaveData done [14:04:21]OFDSenderStorePacket done [14:04:21]KKMCreateOFDPacket done [14:04:21]NVStorageSaveData kkm_last_timestamp [14:04:21]File name is /storage/kkm_last_timestamp [14:04:21]Write 4 bytes [14:04:21]NVStorageSaveData done [14:04:21]ExternCall_PrintAddStr [14:04:21]wPrintStart [14:04:21]Write to MH i2c: 01 00 00 6D 03 70 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 6D 03 00 00 00 00 00 FF 0F 85 [14:04:21]RasterBufferAndPrint [14:04:21]line Счет N : (1)411701 [14:04:21]line ИНН: 02508201610067 [14:04:21]line Контрольно-Кассовый Чек [14:04:21]line ПРОДАЖА [14:04:21]line ТРК (МРК, ГНК) : 32 [14:04:21]line Товар: 2710124130 [14:04:21]line Аи-92-К-2 [14:04:21]line 38.950 * 64.20 [14:04:21]line = 2500.59 [14:04:21]line НДС 12% НСП 1% [14:04:21]line > о реализуемом товаре [14:04:21]line ИТОГО: 2500.59 [14:04:21]line НСП 1% : 22.13 [14:04:21]line НДС 12% : 265.55 [14:04:21]line Наличными: 0.00 [14:04:21]line Безнал.: 2500.59 [14:04:21]line Место: АЗС № 92 "Партнер Нефть" [14:04:21]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:04:21]line СНО: Общий режим [14:04:21]line Чек 146 17.02.2025 14:04 [14:04:21]line Смена: 644 ФФД: 1.0 [14:04:21]line ЗНМ: 0300000118 [14:04:21]line РНМ: 0000000000091857 [14:04:21]line Версия ККМ: 001 [14:04:21]line Платежная система: O! деньги [14:04:21]line ФМ: 0000000000871826 [14:04:21]line ФД: 186559 [14:04:21]line ФПД: 132775641012072 [14:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140420&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186559&fm=132775641012072&tin=02508201610067®Number=0000000000091857&sum=250059 [14:04:22]written 0, free lines is 4095 [14:04:22]Write to MH i2c: 01 00 00 97 03 9A [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: 01 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: 01 07 00 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: 01 07 00 97 03 00 00 00 00 00 10 0D BE [14:04:22]RasterBufferAndPrint [14:04:22]line [14:04:22]line [14:04:22]line [14:04:22]line [14:04:22]line [14:04:22]written 0, free lines is 3352 [14:04:22]MH_Cut [14:04:22]Write to MH i2c: D1 01 00 9E 03 01 73 [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 01 00 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 01 00 9E 03 00 72 [14:04:22]Write to MH i2c: 01 00 00 9F 03 A2 [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:23]*** Cut start [14:04:23]*** Partial cut [14:04:23]*** CUTSNS_PIN = 1 [14:04:23]*** CUTSNS_PIN = 0 [14:04:23]*** Brake cut motor [14:04:23]Read from MH i2c: 01 [14:04:23]MH_I2C_Read... [14:04:23]*** Stop cut motor [14:04:23]*** Cut end [14:04:23]Read from MH i2c: 01 07 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: 01 07 00 9F 03 00 00 00 00 00 FF 0F B7 [14:04:23]process_action close_receipt done [14:04:23]requested_data is exist [14:04:23]produce_requested_data [14:04:23]requested_item fm.sn is exist - process it [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 11 00 00 [14:04:23]Write to MH i2c: E2 08 00 A0 03 80 11 00 00 00 00 00 00 1D [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 A0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 70 [14:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:04:23]wFMCommunicate OK [14:04:23]requested_item fd.num is exist - process it [14:04:23]SAM_PROTO_GetFieldsCounters [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 00 00 [14:04:23]Write to MH i2c: E2 08 00 A1 03 80 13 00 00 00 00 00 00 20 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 62 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 62 00 A1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [14:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 BF D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:24]wFMCommunicate OK [14:04:24]SAM_PROTO_GetFieldsCounters done [14:04:24]requested_item shift.num is exist - process it [14:04:24]requested_item shift.opened is exist - process it [14:04:24]req_shift_opened [14:04:24]FM_GetShiftState [14:04:24]SAM_PROTO_GetShiftState [14:04:24]wFMCommunicate request_size=4 [14:04:24]MH_SAM_APDU [14:04:24]CAPDU: 80 13 01 00 [14:04:24]Write to MH i2c: E2 08 00 A2 03 80 13 01 00 00 00 00 00 22 [14:04:24]Write i2c OK [14:04:24]MH_I2C_Read... [14:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:24]Read from MH i2c: E2 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 0E 00 [14:04:24]MH_I2C_Read... [14:04:24]Read from MH i2c: E2 0E 00 A2 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 46 [14:04:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:04:24]wFMCommunicate OK [14:04:24]SAM_PROTO_GetShiftState done [14:04:24]FM_GetShiftState done [14:04:24]req_shift_opened done [14:04:24]requested_item shift.open_date is exist - process it [14:04:24]req_shift_open_date [14:04:24]req_shift_open_date done [14:04:24]produce_requested_data done [14:04:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186559,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:04:24]process_action_free close_receipt [14:04:24]json_value_free [14:04:24]json_value_free done [14:04:24]process_json_proto returns [14:04:24]Send response to host [14:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186559,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:04:24]free response buf [14:04:24]execute_script done [14:04:24]execute_script returns [14:04:24]free content buf [14:04:24]Sock 8.Close socket [14:04:24]Sock 8.Thread stoped [14:04:29]ConnectInit Can't connect to host [14:04:29]CommunicateWithHost connect error [14:04:29]CommunicateWithHost err = -1 [14:04:29]OFD Sender: Server communicate error [14:04:29]OFD Sender: Processing packet 186556 [packets to send 52, broken 48] [14:04:29]ProducePacketName [14:04:29]name=ofd_packets/00186556 [14:04:29]OFD Sender: To server: pG, [14:04:29]CommunicateWithHost lk.salyk.kg:30040 [14:04:29]ConnectInit lk.salyk.kg [14:04:29]Connected sock=8 [14:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A7 4B 07 01 C4 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 6A 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D8 02 00 35 04 06 00 83 21 B5 CE D7 DF 65 5F C4 40 28 40 59 3A [14:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D9 99 47 00 01 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BC D8 02 00 F4 03 04 00 46 E8 B2 67 B6 04 01 00 00 B7 2F BA 2D 4B 1D E2 FC [14:04:29]CommunicateWithHost err = 0 [14:04:29]CheckOFDResponse [14:04:29]1017 (14) - 77093643461234 [14:04:29]1041 (16) - 0000000000871826 [14:04:29]1040 (4) - 186556 [14:04:29]1012 (4) - 17.02.2025 07:41 [14:04:29]1206 (1) - 0 [14:04:29]OFD Sender: Remove packet 186556 [14:04:29]ProducePacketName [14:04:29]name=ofd_packets/00186556 [14:04:29]NVStorageDeleteData [14:04:30]OFD Sender: Processing packet 186557 [packets to send 51, broken 48] [14:04:30]ProducePacketName [14:04:30]name=ofd_packets/00186557 [14:04:30]OFD Sender: To server: pG, [14:04:30]CommunicateWithHost lk.salyk.kg:30040 [14:04:30]ConnectInit lk.salyk.kg [14:04:30]Connected sock=8 [14:04:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 53 31 07 01 90 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 C9 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D8 02 00 35 04 06 00 77 91 FA B2 13 E3 9F 0F 18 88 46 3A 43 06 [14:04:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C0 C4 47 00 77 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BD D8 02 00 F4 03 04 00 47 E8 B2 67 B6 04 01 00 00 4E 09 90 E0 42 29 72 72 [14:04:30]CommunicateWithHost err = 0 [14:04:30]CheckOFDResponse [14:04:30]1017 (14) - 77093643461234 [14:04:30]1041 (16) - 0000000000871826 [14:04:30]1040 (4) - 186557 [14:04:30]1012 (4) - 17.02.2025 07:41 [14:04:30]1206 (1) - 0 [14:04:30]OFD Sender: Remove packet 186557 [14:04:30]ProducePacketName [14:04:30]name=ofd_packets/00186557 [14:04:30]NVStorageDeleteData [14:04:31]OFD Sender: Processing packet 186558 [packets to send 50, broken 48] [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00186558 [14:04:31]OFD Sender: To server: pG, [14:04:31]CommunicateWithHost lk.salyk.kg:30040 [14:04:31]ConnectInit lk.salyk.kg [14:04:31]Connected sock=8 [14:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 07 9F 04 01 3A 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 CF 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D8 02 00 35 04 06 00 0F 6F 04 B9 2C 54 4E 0F 82 37 3A D9 36 B0 [14:04:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8D 6B 47 00 16 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BE D8 02 00 F4 03 04 00 48 E8 B2 67 B6 04 01 00 00 08 10 FB 00 A7 7A E4 BB [14:04:31]CommunicateWithHost err = 0 [14:04:31]CheckOFDResponse [14:04:31]1017 (14) - 77093643461234 [14:04:31]1041 (16) - 0000000000871826 [14:04:31]1040 (4) - 186558 [14:04:31]1012 (4) - 17.02.2025 07:42 [14:04:31]1206 (1) - 0 [14:04:31]OFD Sender: Remove packet 186558 [14:04:31]ProducePacketName [14:04:31]name=ofd_packets/00186558 [14:04:31]NVStorageDeleteData [14:04:32]OFD Sender: Processing packet 186559 [packets to send 49, broken 48] [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00186559 [14:04:32]OFD Sender: To server: pG, [14:04:32]CommunicateWithHost lk.salyk.kg:30040 [14:04:32]ConnectInit lk.salyk.kg [14:04:32]Connected sock=8 [14:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B2 75 07 01 4D BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 26 98 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CB D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 E4 41 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D8 02 00 35 04 06 00 78 C2 3C EA D7 68 34 D3 F9 C6 73 D7 1C 76 [14:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 55 BA 47 00 05 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 BF D8 02 00 F4 03 04 00 49 E8 B2 67 B6 04 01 00 00 56 63 C0 BC 69 44 3B 7C [14:04:32]CommunicateWithHost err = 0 [14:04:32]CheckOFDResponse [14:04:32]1017 (14) - 77093643461234 [14:04:32]1041 (16) - 0000000000871826 [14:04:32]1040 (4) - 186559 [14:04:32]1012 (4) - 17.02.2025 07:42 [14:04:32]1206 (1) - 0 [14:04:32]OFD Sender: Remove packet 186559 [14:04:32]ProducePacketName [14:04:32]name=ofd_packets/00186559 [14:04:32]NVStorageDeleteData [14:04:33]OFD Sender: No OFD packet to send [14:04:38]OFD Sender: No OFD packet to send [14:04:43]OFD Sender: No OFD packet to send [14:04:48]OFD Sender: No OFD packet to send [14:04:53]OFD Sender: No OFD packet to send [14:04:58]OFD Sender: No OFD packet to send [14:05:03]OFD Sender: No OFD packet to send [14:05:08]OFD Sender: No OFD packet to send [14:05:13]OFD Sender: No OFD packet to send [14:05:18]OFD Sender: No OFD packet to send [14:05:23]OFD Sender: No OFD packet to send [14:05:28]OFD Sender: No OFD packet to send [14:05:33]OFD Sender: No OFD packet to send [14:05:38]OFD Sender: No OFD packet to send [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:10]accept exits with 9 [14:08:10]New connection [14:08:10]New thread 3066944868 created [14:08:10]Thread 3066801508 joined [14:08:10]Waiting for new connection... [14:08:10] Sock 9.Parse request [14:08:10]Sock 9.Check first char [14:08:10]Sock 9.First char is OK [14:08:10]request: POST /json_proto HTTP/1.0 [14:08:10]Method: POST [14:08:10]URL: /json_proto [14:08:10]Method is POST - this is cgi request [14:08:10]url: /json_proto [14:08:10]query_string will be loaded in cgi processing [14:08:10]execute_cgi json_proto POST (null) [14:08:10]execute_cgi path=json_proto method=POST [14:08:10]POST find Content-Length [14:08:10]Host: 172.17.46.131:8080 [14:08:10]Content-Length: 682 [14:08:10]Content-Type: application/json [14:08:10] [14:08:10]POST finish read [14:08:10]Found Content-Length = 682 [14:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:10]execute_script... [14:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:10]POST & json_proto [14:08:10]process_json_proto [14:08:10]json parsed OK: [14:08:10]protocol is kg_v1.0 [14:08:10]action value=close_receipt [14:08:10]process_action close_receipt [14:08:10]cmd_close_receipt [14:08:10]MH_GetDate [14:08:10]Write to MH i2c: F0 00 00 A3 03 95 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 A3 03 00 CB 42 B3 67 7E 41 4F 65 38 [14:08:10]GetLastDocTimeStamp 1739801060 [14:08:10]current date 1739801291 [14:08:10]FM_GetShiftState [14:08:10]SAM_PROTO_GetShiftState [14:08:10]wFMCommunicate request_size=4 [14:08:10]MH_SAM_APDU [14:08:10]CAPDU: 80 13 01 00 [14:08:10]Write to MH i2c: E2 08 00 A4 03 80 13 01 00 00 00 00 00 24 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:10]Read from MH i2c: E2 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 A4 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 48 [14:08:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:08:10]wFMCommunicate OK [14:08:10]SAM_PROTO_GetShiftState done [14:08:10]FM_GetShiftState done [14:08:10]opened in 1739752571 [14:08:10]opened+sec_in_day 1739838971 [14:08:10]quantity*price = 100023 [14:08:10]sum+1 = 100025 [14:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 147 17.02.2025 14:08 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186560 ФПД: 11341642479478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186560&fm=11341642479478&tin=02508201610067®Number=0000000000091857&sum=100000 [14:08:11]StoreToDocumentArchive [14:08:11]shift 644 fd 186560 [14:08:11]save to /storage/0644/doc_00186560 [14:08:11]save last doc name /storage/0644/doc_00186560 to /storage/kkm_last_doc_name [14:08:11]save OK [14:08:11]Clear old archive folders... [14:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:11]tlvbuf is 0046C9F0 [14:08:11]SAM_PROTO_ClearQueue [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 09 00 00 [14:08:11]Write to MH i2c: E2 08 00 B1 03 80 09 00 00 00 00 00 00 26 [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:11]Read from MH i2c: E2 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 [14:08:11]MH_I2C_Read... [14:08:11]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [14:08:11]RAPDU: 90 00 [14:08:11]wFMCommunicate OK [14:08:11]SAM_PROTO_ClearQueue done [14:08:11]KKMCreateOFDPacket [14:08:11]OFDProtocolAddRootSTLVToBuf [14:08:11]FM_MakeSignedData [14:08:11]FM_MakeSignedData [14:08:11]SAM_PROTO_SignData [14:08:11]wFMCommunicate request_size=4 [14:08:11]MH_SAM_APDU [14:08:11]CAPDU: 80 0D 01 02 [14:08:11]Write to MH i2c: E2 08 00 B2 03 80 0D 01 02 00 00 00 00 2E [14:08:11]Write i2c OK [14:08:11]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 B2 03 00 90 00 29 [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=255 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CB 42 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D8 02 00 35 04 06 00 0A [14:08:12]Write to MH i2c: E2 02 01 B3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CB 42 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D8 02 00 35 04 06 00 0A 00 00 0F [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 B3 03 00 90 00 2A [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=10 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 02 02 05 50 AE 92 37 76 [14:08:12]Write to MH i2c: E2 0D 00 B4 03 80 0D 02 02 05 00 50 AE 92 37 76 00 00 78 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 03 02 [14:08:12]Write to MH i2c: E2 08 00 B5 03 80 0D 03 02 00 00 00 00 33 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0B 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0B 00 B5 03 00 63 DE 0D 7F BD 41 F7 05 90 00 FB [14:08:12]RAPDU: 63 DE 0D 7F BD 41 F7 05 90 00 [14:08:12]wFMCommunicate OK [14:08:12]SAM_PROTO_SignData done [14:08:12]FM_MakeSignedData done [14:08:12]CreateOFDProtocolMessage [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 11 00 00 [14:08:12]Write to MH i2c: E2 08 00 B6 03 80 11 00 00 00 00 00 00 33 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 B6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 86 [14:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:08:12]wFMCommunicate OK [14:08:12]CreateOFDProtocolMessage done [14:08:12]OFDSenderStorePacket 186560 [14:08:12]StoreOFDPacket docnum=186560 [14:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 6B 07 01 5F 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CB 42 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D8 02 00 35 04 06 00 0A 50 AE 92 37 76 63 DE 0D 7F BD 41 F7 05 [14:08:12]CheckFolder [14:08:12]dirname=/storage/ofd_packets [14:08:12]CheckFolder done [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00186560 [14:08:12]NVStorageSaveData ofd_packets/00186560 [14:08:12]File name is /storage/ofd_packets/00186560 [14:08:12]Write 301 bytes [14:08:12]NVStorageSaveData done [14:08:12]OFDSenderStorePacket done [14:08:12]KKMCreateOFDPacket done [14:08:12]NVStorageSaveData kkm_last_timestamp [14:08:12]File name is /storage/kkm_last_timestamp [14:08:12]Write 4 bytes [14:08:12]NVStorageSaveData done [14:08:12]ExternCall_PrintAddStr [14:08:12]wPrintStart [14:08:12]Write to MH i2c: 01 00 00 B7 03 BA [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 B7 03 00 00 00 00 00 FF 0F CF [14:08:12]RasterBufferAndPrint [14:08:12]line Счет N : (1)411704 [14:08:12]line ИНН: 02508201610067 [14:08:12]line Контрольно-Кассовый Чек [14:08:12]line ПРОДАЖА [14:08:12]line ТРК (МРК, ГНК) : 32 [14:08:12]line Товар: 2710124130 [14:08:12]line Аи-92-К-2 [14:08:12]line 15.580 * 64.20 [14:08:12]line = 1000.24 [14:08:12]line НДС 12% НСП 1% [14:08:12]line > о реализуемом товаре [14:08:12]line ОКРУГЛЕНИЕ: -0.24 [14:08:12]line ИТОГО: 1000.00 [14:08:12]line Внесено: 1000.00 [14:08:12]line СДАЧА: 0.00 [14:08:12]line НСП 1% : 8.85 [14:08:12]line НДС 12% : 106.22 [14:08:12]line Наличными: 1000.00 [14:08:12]line Безнал.: 0.00 [14:08:12]line Место: АЗС № 92 "Партнер Нефть" [14:08:12]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:08:12]line СНО: Общий режим [14:08:12]line Чек 147 17.02.2025 14:08 [14:08:12]line Смена: 644 ФФД: 1.0 [14:08:12]line ЗНМ: 0300000118 [14:08:12]line РНМ: 0000000000091857 [14:08:12]line Версия ККМ: 001 [14:08:12]line ФМ: 0000000000871826 [14:08:12]line ФД: 186560 [14:08:12]line ФПД: 11341642479478 [14:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T140811&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186560&fm=11341642479478&tin=02508201610067®Number=0000000000091857&sum=100000 [14:08:12]OFD Sender: Processing packet 186560 [packets to send 49, broken 48] [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00186560 [14:08:12]OFD Sender: To server: pG, [14:08:12]CommunicateWithHost lk.salyk.kg:30040 [14:08:12]ConnectInit lk.salyk.kg [14:08:12]written 0, free lines is 4095 [14:08:12]Connected sock=10 [14:08:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B 6B 07 01 5F 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 CB 42 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D8 02 00 35 04 06 00 0A 50 AE 92 37 76 63 DE 0D 7F BD 41 F7 05 [14:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C4 59 47 00 97 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C0 D8 02 00 F4 03 04 00 25 E9 B2 67 B6 04 01 00 00 3B 87 65 D6 39 05 CD A9 [14:08:13]CommunicateWithHost err = 0 [14:08:13]CheckOFDResponse [14:08:13]1017 (14) - 77093643461234 [14:08:13]1041 (16) - 0000000000871826 [14:08:13]1040 (4) - 186560 [14:08:13]1012 (4) - 17.02.2025 07:45 [14:08:13]1206 (1) - 0 [14:08:13]OFD Sender: Remove packet 186560 [14:08:13]ProducePacketName [14:08:13]name=ofd_packets/00186560 [14:08:13]NVStorageDeleteData [14:08:13]Write to MH i2c: 01 00 00 E2 03 E5 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 E2 03 00 00 00 00 00 EC 0C E4 [14:08:13]RasterBufferAndPrint [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]written 0, free lines is 3314 [14:08:13]MH_Cut [14:08:13]Write to MH i2c: D1 01 00 E9 03 01 BE [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 01 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 01 00 E9 03 00 BD [14:08:13]Write to MH i2c: 01 00 00 EA 03 ED [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]OFD Sender: No OFD packet to send [14:08:13]*** Cut start [14:08:13]*** Partial cut [14:08:13]*** CUTSNS_PIN = 1 [14:08:14]*** CUTSNS_PIN = 0 [14:08:14]*** Brake cut motor [14:08:14]Read from MH i2c: 01 [14:08:14]MH_I2C_Read... [14:08:14]*** Stop cut motor [14:08:14]*** Cut end [14:08:14]Read from MH i2c: 01 07 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 EA 03 00 00 00 00 00 FF 0F 02 [14:08:14]process_action close_receipt done [14:08:14]requested_data is exist [14:08:14]produce_requested_data [14:08:14]requested_item fm.sn is exist - process it [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 11 00 00 [14:08:14]Write to MH i2c: E2 08 00 EB 03 80 11 00 00 00 00 00 00 68 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 EB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [14:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:08:14]wFMCommunicate OK [14:08:14]requested_item fd.num is exist - process it [14:08:14]SAM_PROTO_GetFieldsCounters [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 13 00 00 [14:08:14]Write to MH i2c: E2 08 00 EC 03 80 13 00 00 00 00 00 00 6B [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 EC 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [14:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C0 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetFieldsCounters done [14:08:14]requested_item shift.num is exist - process it [14:08:14]requested_item shift.opened is exist - process it [14:08:14]req_shift_opened [14:08:14]FM_GetShiftState [14:08:14]SAM_PROTO_GetShiftState [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 13 01 00 [14:08:14]Write to MH i2c: E2 08 00 ED 03 80 13 01 00 00 00 00 00 6D [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 0E 00 ED 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 91 [14:08:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetShiftState done [14:08:14]FM_GetShiftState done [14:08:14]req_shift_opened done [14:08:14]requested_item shift.open_date is exist - process it [14:08:14]req_shift_open_date [14:08:14]req_shift_open_date done [14:08:14]produce_requested_data done [14:08:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186560,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:08:14]process_action_free close_receipt [14:08:14]json_value_free [14:08:14]json_value_free done [14:08:14]process_json_proto returns [14:08:14]Send response to host [14:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186560,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:08:14]free response buf [14:08:14]execute_script done [14:08:14]execute_script returns [14:08:14]free content buf [14:08:14]Sock 9.Close socket [14:08:14]Sock 9.Thread stoped [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:02]accept exits with 8 [14:22:02]New connection [14:22:02]New thread 3066801508 created [14:22:02]Thread 3066944868 joined [14:22:02]Waiting for new connection... [14:22:02] Sock 8.Parse request [14:22:02]Sock 8.Check first char [14:22:02]Sock 8.First char is OK [14:22:02]request: POST /json_proto HTTP/1.0 [14:22:02]Method: POST [14:22:02]URL: /json_proto [14:22:02]Method is POST - this is cgi request [14:22:02]url: /json_proto [14:22:02]query_string will be loaded in cgi processing [14:22:02]execute_cgi json_proto POST (null) [14:22:02]execute_cgi path=json_proto method=POST [14:22:02]POST find Content-Length [14:22:02]Host: 172.17.46.131:8080 [14:22:02]Content-Length: 673 [14:22:02]Content-Type: application/json [14:22:02] [14:22:02]POST finish read [14:22:02]Found Content-Length = 673 [14:22:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:02]execute_script... [14:22:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 7.580, "sum" : 550.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:02]POST & json_proto [14:22:02]process_json_proto [14:22:02]json parsed OK: [14:22:02]protocol is kg_v1.0 [14:22:02]action value=close_receipt [14:22:02]process_action close_receipt [14:22:02]cmd_close_receipt [14:22:02]MH_GetDate [14:22:02]Write to MH i2c: F0 00 00 EE 03 E0 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: F0 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: F0 09 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: F0 09 00 EE 03 00 0B 46 B3 67 7E 41 4F 65 C7 [14:22:02]GetLastDocTimeStamp 1739801291 [14:22:02]current date 1739802123 [14:22:02]FM_GetShiftState [14:22:02]SAM_PROTO_GetShiftState [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 13 01 00 [14:22:02]Write to MH i2c: E2 08 00 EF 03 80 13 01 00 00 00 00 00 6F [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0E 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0E 00 EF 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 93 [14:22:02]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_GetShiftState done [14:22:02]FM_GetShiftState done [14:22:02]opened in 1739752571 [14:22:02]opened+sec_in_day 1739838971 [14:22:02]quantity*price = 55030 [14:22:02]sum+1 = 55032 [14:22:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.44 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 148 17.02.2025 14:22 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186561 ФПД: 159855517233382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T142203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186561&fm=159855517233382&tin=02508201610067®Number=0000000000091857&sum=55000 [14:22:04]StoreToDocumentArchive [14:22:04]shift 644 fd 186561 [14:22:04]save to /storage/0644/doc_00186561 [14:22:04]save last doc name /storage/0644/doc_00186561 to /storage/kkm_last_doc_name [14:22:04]save OK [14:22:04]Clear old archive folders... [14:22:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:22:04]tlvbuf is 003DE1D0 [14:22:04]SAM_PROTO_ClearQueue [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 09 00 00 [14:22:04]Write to MH i2c: E2 08 00 FC 03 80 09 00 00 00 00 00 00 71 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [14:22:04]RAPDU: 90 00 [14:22:04]wFMCommunicate OK [14:22:04]SAM_PROTO_ClearQueue done [14:22:04]KKMCreateOFDPacket [14:22:04]OFDProtocolAddRootSTLVToBuf [14:22:04]FM_MakeSignedData [14:22:04]FM_MakeSignedData [14:22:04]SAM_PROTO_SignData [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 0D 01 02 [14:22:04]Write to MH i2c: E2 08 00 FD 03 80 0D 01 02 00 00 00 00 79 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 FD 03 00 90 00 74 [14:22:04]RAPDU: 90 00 [14:22:04]wFMCommunicate OK [14:22:04]wFMCommunicate request_size=255 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 0B 46 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D8 02 00 35 04 06 00 91 63 43 51 [14:22:04]Write to MH i2c: E2 02 01 FE 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 0B 46 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D8 02 00 35 04 06 00 91 63 43 51 00 00 AF [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 FE 03 00 90 00 75 [14:22:04]RAPDU: 90 00 [14:22:04]wFMCommunicate OK [14:22:04]wFMCommunicate request_size=7 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 0D 02 02 02 F0 E6 [14:22:04]Write to MH i2c: E2 0A 00 FF 03 80 0D 02 02 02 00 F0 E6 00 00 56 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [14:22:04]RAPDU: 90 00 [14:22:04]wFMCommunicate OK [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 0D 03 02 [14:22:04]Write to MH i2c: E2 08 00 00 04 80 0D 03 02 00 00 00 00 7F [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]OFD Sender: No OFD packet to send [14:22:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 0B 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 0B 00 00 04 00 B1 FD 23 8E CB FA 40 F7 90 00 DB [14:22:04]RAPDU: B1 FD 23 8E CB FA 40 F7 90 00 [14:22:04]wFMCommunicate OK [14:22:04]SAM_PROTO_SignData done [14:22:04]FM_MakeSignedData done [14:22:04]CreateOFDProtocolMessage [14:22:04]wFMCommunicate request_size=4 [14:22:04]MH_SAM_APDU [14:22:04]CAPDU: 80 11 00 00 [14:22:04]Write to MH i2c: E2 08 00 01 04 80 11 00 00 00 00 00 00 7F [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:04]Read from MH i2c: E2 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 17 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: E2 17 00 01 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D2 [14:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:22:04]wFMCommunicate OK [14:22:04]CreateOFDProtocolMessage done [14:22:04]OFDSenderStorePacket 186561 [14:22:04]StoreOFDPacket docnum=186561 [14:22:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 44 04 01 F6 74 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 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 0B 46 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D8 02 00 35 04 06 00 91 63 43 51 F0 E6 B1 FD 23 8E CB FA 40 F7 [14:22:04]CheckFolder [14:22:04]dirname=/storage/ofd_packets [14:22:04]CheckFolder done [14:22:04]ProducePacketName [14:22:04]name=ofd_packets/00186561 [14:22:04]NVStorageSaveData ofd_packets/00186561 [14:22:04]File name is /storage/ofd_packets/00186561 [14:22:04]Write 298 bytes [14:22:04]NVStorageSaveData done [14:22:04]OFDSenderStorePacket done [14:22:04]KKMCreateOFDPacket done [14:22:04]NVStorageSaveData kkm_last_timestamp [14:22:04]File name is /storage/kkm_last_timestamp [14:22:04]Write 4 bytes [14:22:04]NVStorageSaveData done [14:22:04]ExternCall_PrintAddStr [14:22:04]wPrintStart [14:22:04]Write to MH i2c: 01 00 00 02 04 06 [14:22:04]Write i2c OK [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: 01 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: 01 07 00 [14:22:04]MH_I2C_Read... [14:22:04]Read from MH i2c: 01 07 00 02 04 00 00 00 00 00 FF 0F 1B [14:22:04]RasterBufferAndPrint [14:22:04]line Счет N : (1)411705 [14:22:04]line ИНН: 02508201610067 [14:22:04]line Контрольно-Кассовый Чек [14:22:04]line ПРОДАЖА [14:22:04]line ТРК (МРК, ГНК) : 5 [14:22:04]line Товар: 2710194210 [14:22:04]line ДТ-К-5 [14:22:04]line 7.580 * 72.60 [14:22:04]line = 550.31 [14:22:04]line НДС 12% НСП 1% [14:22:04]line > о реализуемом товаре [14:22:04]line ОКРУГЛЕНИЕ: -0.31 [14:22:04]line ИТОГО: 550.00 [14:22:04]line Внесено: 550.00 [14:22:04]line СДАЧА: 0.00 [14:22:04]line НСП 1% : 4.87 [14:22:04]line НДС 12% : 58.44 [14:22:04]line Наличными: 550.00 [14:22:04]line Безнал.: 0.00 [14:22:04]line Место: АЗС № 92 "Партнер Нефть" [14:22:04]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [14:22:04]line СНО: Общий режим [14:22:04]line Чек 148 17.02.2025 14:22 [14:22:04]line Смена: 644 ФФД: 1.0 [14:22:04]line ЗНМ: 0300000118 [14:22:04]line РНМ: 0000000000091857 [14:22:04]line Версия ККМ: 001 [14:22:04]line ФМ: 0000000000871826 [14:22:04]line ФД: 186561 [14:22:04]line ФПД: 159855517233382 [14:22:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T142203&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186561&fm=159855517233382&tin=02508201610067®Number=0000000000091857&sum=55000 [14:22:04]OFD Sender: Processing packet 186561 [packets to send 49, broken 48] [14:22:04]ProducePacketName [14:22:04]name=ofd_packets/00186561 [14:22:04]OFD Sender: To server: pG, [14:22:04]CommunicateWithHost lk.salyk.kg:30040 [14:22:04]ConnectInit lk.salyk.kg [14:22:04]written 0, free lines is 4095 [14:22:05]Connected sock=10 [14:22:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 85 44 04 01 F6 74 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 1D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F7 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 0B 46 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D8 02 00 35 04 06 00 91 63 43 51 F0 E6 B1 FD 23 8E CB FA 40 F7 [14:22:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5E 55 47 00 A8 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C1 D8 02 00 F4 03 04 00 65 EC B2 67 B6 04 01 00 00 97 84 21 2C D8 F7 7D 86 [14:22:05]CommunicateWithHost err = 0 [14:22:05]CheckOFDResponse [14:22:05]1017 (14) - 77093643461234 [14:22:05]1041 (16) - 0000000000871826 [14:22:05]1040 (4) - 186561 [14:22:05]1012 (4) - 17.02.2025 07:59 [14:22:05]1206 (1) - 0 [14:22:05]OFD Sender: Remove packet 186561 [14:22:05]ProducePacketName [14:22:05]name=ofd_packets/00186561 [14:22:05]NVStorageDeleteData [14:22:05]Write to MH i2c: 01 00 00 2D 04 31 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: 01 07 00 2D 04 00 00 00 00 00 FE 0C 42 [14:22:05]RasterBufferAndPrint [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]line [14:22:05]written 0, free lines is 3332 [14:22:05]MH_Cut [14:22:05]Write to MH i2c: D1 01 00 34 04 01 0A [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 01 00 [14:22:05]MH_I2C_Read... [14:22:05]Read from MH i2c: D1 01 00 34 04 00 09 [14:22:05]Write to MH i2c: 01 00 00 35 04 39 [14:22:05]Write i2c OK [14:22:05]MH_I2C_Read... [14:22:05]OFD Sender: No OFD packet to send [14:22:06]*** Cut start [14:22:06]*** Partial cut [14:22:06]*** CUTSNS_PIN = 1 [14:22:06]*** CUTSNS_PIN = 0 [14:22:06]*** Brake cut motor [14:22:06]Read from MH i2c: 01 [14:22:06]MH_I2C_Read... [14:22:06]*** Stop cut motor [14:22:06]*** Cut end [14:22:06]Read from MH i2c: 01 07 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: 01 07 00 35 04 00 00 00 00 00 FF 0F 4E [14:22:06]process_action close_receipt done [14:22:06]requested_data is exist [14:22:06]produce_requested_data [14:22:06]requested_item fm.sn is exist - process it [14:22:06]wFMCommunicate request_size=4 [14:22:06]MH_SAM_APDU [14:22:06]CAPDU: 80 11 00 00 [14:22:06]Write to MH i2c: E2 08 00 36 04 80 11 00 00 00 00 00 00 B4 [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:06]Read from MH i2c: E2 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 17 00 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 17 00 36 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [14:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [14:22:06]wFMCommunicate OK [14:22:06]requested_item fd.num is exist - process it [14:22:06]SAM_PROTO_GetFieldsCounters [14:22:06]wFMCommunicate request_size=4 [14:22:06]MH_SAM_APDU [14:22:06]CAPDU: 80 13 00 00 [14:22:06]Write to MH i2c: E2 08 00 37 04 80 13 00 00 00 00 00 00 B7 [14:22:06]Write i2c OK [14:22:06]MH_I2C_Read... [14:22:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:06]Read from MH i2c: E2 [14:22:06]MH_I2C_Read... [14:22:06]Read from MH i2c: E2 62 00 [14:22:06]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 62 00 37 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:22:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 C1 D8 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:07]wFMCommunicate OK [14:22:07]SAM_PROTO_GetFieldsCounters done [14:22:07]requested_item shift.num is exist - process it [14:22:07]requested_item shift.opened is exist - process it [14:22:07]req_shift_opened [14:22:07]FM_GetShiftState [14:22:07]SAM_PROTO_GetShiftState [14:22:07]wFMCommunicate request_size=4 [14:22:07]MH_SAM_APDU [14:22:07]CAPDU: 80 13 01 00 [14:22:07]Write to MH i2c: E2 08 00 38 04 80 13 01 00 00 00 00 00 B9 [14:22:07]Write i2c OK [14:22:07]MH_I2C_Read... [14:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:07]Read from MH i2c: E2 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 0E 00 [14:22:07]MH_I2C_Read... [14:22:07]Read from MH i2c: E2 0E 00 38 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DD [14:22:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [14:22:07]wFMCommunicate OK [14:22:07]SAM_PROTO_GetShiftState done [14:22:07]FM_GetShiftState done [14:22:07]req_shift_opened done [14:22:07]requested_item shift.open_date is exist - process it [14:22:07]req_shift_open_date [14:22:07]req_shift_open_date done [14:22:07]produce_requested_data done [14:22:07]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186561,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [14:22:07]process_action_free close_receipt [14:22:07]json_value_free [14:22:07]json_value_free done [14:22:07]process_json_proto returns [14:22:07]Send response to host [14:22:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186561,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [14:22:07]free response buf [14:22:07]execute_script done [14:22:07]execute_script returns [14:22:07]free content buf [14:22:07]Sock 8.Close socket [14:22:07]Sock 8.Thread stoped [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [18:52:58]ConnectInit Can't connect to host [18:53:01]OFD Sender: Processing packet 186562 [packets to send 115, broken 48] [18:53:01]ProducePacketName [18:53:01]name=ofd_packets/00186562 [18:53:01]OFD Sender: To server: pG, [18:53:01]CommunicateWithHost lk.salyk.kg:30040 [18:53:01]ConnectInit lk.salyk.kg [18:53:01]Connected sock=8 [18:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C C6 07 01 F2 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 AA 00 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C6 04 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 04 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 00 00 00 00 00 07 04 06 00 B0 04 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C9 4C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D8 02 00 35 04 06 00 CE BB E2 7F F4 3D 1D 3C A7 D6 6E 11 DF A2 [18:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E A5 47 00 8F 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C2 D8 02 00 F4 03 04 00 E5 2B B3 67 B6 04 01 00 00 F5 EA 69 74 17 01 A3 17 [18:53:01]CommunicateWithHost err = 0 [18:53:01]CheckOFDResponse [18:53:01]1017 (14) - 77093643461234 [18:53:01]1041 (16) - 0000000000871826 [18:53:01]1040 (4) - 186562 [18:53:01]1012 (4) - 17.02.2025 12:30 [18:53:01]1206 (1) - 0 [18:53:01]OFD Sender: Remove packet 186562 [18:53:01]ProducePacketName [18:53:01]name=ofd_packets/00186562 [18:53:01]NVStorageDeleteData [18:53:02]OFD Sender: Processing packet 186563 [packets to send 114, broken 48] [18:53:02]ProducePacketName [18:53:02]name=ofd_packets/00186563 [18:53:02]OFD Sender: To server: pG, [18:53:02]CommunicateWithHost lk.salyk.kg:30040 [18:53:02]ConnectInit lk.salyk.kg [18:53:02]Connected sock=8 [18:53:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 FE 5F 04 01 62 8B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 48 4D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D8 02 00 35 04 06 00 6B A8 B3 1F 20 A0 50 73 D2 4C 29 57 BE 4C [18:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 FE A5 47 00 B2 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C3 D8 02 00 F4 03 04 00 E6 2B B3 67 B6 04 01 00 00 0E C1 87 47 7A B9 F1 B9 [18:53:02]CommunicateWithHost err = 0 [18:53:02]CheckOFDResponse [18:53:02]1017 (14) - 77093643461234 [18:53:02]1041 (16) - 0000000000871826 [18:53:02]1040 (4) - 186563 [18:53:02]1012 (4) - 17.02.2025 12:30 [18:53:02]1206 (1) - 0 [18:53:02]OFD Sender: Remove packet 186563 [18:53:02]ProducePacketName [18:53:02]name=ofd_packets/00186563 [18:53:02]NVStorageDeleteData [18:53:03]OFD Sender: Processing packet 186564 [packets to send 113, broken 48] [18:53:03]ProducePacketName [18:53:03]name=ofd_packets/00186564 [18:53:03]OFD Sender: To server: pG, [18:53:03]CommunicateWithHost lk.salyk.kg:30040 [18:53:03]ConnectInit lk.salyk.kg [18:53:03]Connected sock=8 [18:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 52 07 01 60 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 C4 36 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 98 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 43 4E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D8 02 00 35 04 06 00 BD 7B 13 07 0C 6B 31 9D 00 C6 D0 FB 5F E1 [18:53:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 65 47 00 66 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C4 D8 02 00 F4 03 04 00 E7 2B B3 67 B6 04 01 00 00 8D 40 AD 9D B2 70 2A F0 [18:53:04]CommunicateWithHost err = 0 [18:53:04]CheckOFDResponse [18:53:04]1017 (14) - 77093643461234 [18:53:04]1041 (16) - 0000000000871826 [18:53:04]1040 (4) - 186564 [18:53:04]1012 (4) - 17.02.2025 12:30 [18:53:04]1206 (1) - 0 [18:53:04]OFD Sender: Remove packet 186564 [18:53:04]ProducePacketName [18:53:04]name=ofd_packets/00186564 [18:53:04]NVStorageDeleteData [18:53:04]OFD Sender: Processing packet 186565 [packets to send 112, broken 48] [18:53:04]ProducePacketName [18:53:04]name=ofd_packets/00186565 [18:53:04]OFD Sender: To server: pG, [18:53:04]CommunicateWithHost lk.salyk.kg:30040 [18:53:04]ConnectInit lk.salyk.kg [18:53:04]Connected sock=8 [18:53:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 33 BC 07 01 BC 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 A8 4E B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C5 D8 02 00 35 04 06 00 E3 06 AE 4D 37 A9 B2 48 13 0B 98 B8 A5 E4 [18:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 16 59 47 00 B9 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 31 38 32 36 10 04 04 00 C5 D8 02 00 F4 03 04 00 E8 2B B3 67 B6 04 01 00 00 3E EF 47 33 18 30 C0 92 [18:53:05]CommunicateWithHost err = 0 [18:53:05]CheckOFDResponse [18:53:05]1017 (14) - 77093643461234 [18:53:05]1041 (16) - 0000000000871826 [18:53:05]1040 (4) - 186565 [18:53:05]1012 (4) - 17.02.2025 12:30 [18:53:05]1206 (1) - 0 [18:53:05]OFD Sender: Remove packet 186565 [18:53:05]ProducePacketName [18:53:05]name=ofd_packets/00186565 [18:53:05]NVStorageDeleteData [18:53:05]OFD Sender: Processing packet 186566 [packets to send 111, broken 48] [18:53:05]ProducePacketName [18:53:05]name=ofd_packets/00186566 [18:53:05]OFD Sender: To server: pG, [18:53:05]CommunicateWithHost lk.salyk.kg:30040 [18:53:05]ConnectInit lk.salyk.kg [18:53:05]Connected sock=8 [18:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 DF E4 07 01 2F 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 1E 4F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D8 02 00 35 04 06 00 75 99 1D 59 93 70 5F 17 DC 41 24 38 77 C1 [18:53:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3E BE 47 00 4D B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C6 D8 02 00 F4 03 04 00 E9 2B B3 67 B6 04 01 00 00 59 DF 07 B9 0E 72 8D 32 [18:53:06]CommunicateWithHost err = 0 [18:53:06]CheckOFDResponse [18:53:06]1017 (14) - 77093643461234 [18:53:06]1041 (16) - 0000000000871826 [18:53:06]1040 (4) - 186566 [18:53:06]1012 (4) - 17.02.2025 12:30 [18:53:06]1206 (1) - 0 [18:53:06]OFD Sender: Remove packet 186566 [18:53:06]ProducePacketName [18:53:06]name=ofd_packets/00186566 [18:53:06]NVStorageDeleteData [18:53:06]OFD Sender: Processing packet 186567 [packets to send 110, broken 48] [18:53:06]ProducePacketName [18:53:06]name=ofd_packets/00186567 [18:53:06]OFD Sender: To server: pG, [18:53:06]CommunicateWithHost lk.salyk.kg:30040 [18:53:06]ConnectInit lk.salyk.kg [18:53:06]Connected sock=8 [18:53:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 17 62 04 01 BF DA 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 A3 55 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D8 02 00 35 04 06 00 12 DE 8B C9 DF 2B 84 93 C8 B1 6C 6B FE 51 [18:53:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 34 24 47 00 06 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C7 D8 02 00 F4 03 04 00 EA 2B B3 67 B6 04 01 00 00 1C 9B 39 AE CC 93 0F 5F [18:53:07]CommunicateWithHost err = 0 [18:53:07]CheckOFDResponse [18:53:07]1017 (14) - 77093643461234 [18:53:07]1041 (16) - 0000000000871826 [18:53:07]1040 (4) - 186567 [18:53:07]1012 (4) - 17.02.2025 12:30 [18:53:07]1206 (1) - 0 [18:53:07]OFD Sender: Remove packet 186567 [18:53:07]ProducePacketName [18:53:07]name=ofd_packets/00186567 [18:53:07]NVStorageDeleteData [18:53:07]OFD Sender: Processing packet 186568 [packets to send 109, broken 48] [18:53:07]ProducePacketName [18:53:07]name=ofd_packets/00186568 [18:53:07]OFD Sender: To server: pG, [18:53:07]CommunicateWithHost lk.salyk.kg:30040 [18:53:07]ConnectInit lk.salyk.kg [18:53:07]Connected sock=8 [18:53:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1B C2 07 01 D4 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 27 56 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D8 02 00 35 04 06 00 C1 B3 0F D3 5F 09 AC 37 5D A0 56 17 83 9E [18:53:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 88 15 47 00 99 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C8 D8 02 00 F4 03 04 00 EB 2B B3 67 B6 04 01 00 00 27 8C 23 A9 44 3B 57 AC [18:53:08]CommunicateWithHost err = 0 [18:53:08]CheckOFDResponse [18:53:08]1017 (14) - 77093643461234 [18:53:08]1041 (16) - 0000000000871826 [18:53:08]1040 (4) - 186568 [18:53:08]1012 (4) - 17.02.2025 12:30 [18:53:08]1206 (1) - 0 [18:53:08]OFD Sender: Remove packet 186568 [18:53:08]ProducePacketName [18:53:08]name=ofd_packets/00186568 [18:53:08]NVStorageDeleteData [18:53:08]OFD Sender: Processing packet 186569 [packets to send 108, broken 48] [18:53:08]ProducePacketName [18:53:08]name=ofd_packets/00186569 [18:53:08]OFD Sender: To server: pG, [18:53:08]CommunicateWithHost lk.salyk.kg:30040 [18:53:08]ConnectInit lk.salyk.kg [18:53:08]Connected sock=8 [18:53:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 39 4C 04 01 4F EE 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 7C 5B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 2D 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 20 57 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D8 02 00 35 04 06 00 D2 F4 27 6E 5C C2 76 3D DE FF B8 75 A3 A7 [18:53:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F5 C4 47 00 83 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 C9 D8 02 00 F4 03 04 00 EC 2B B3 67 B6 04 01 00 00 40 E9 FA EC 12 81 D2 8B [18:53:09]CommunicateWithHost err = 0 [18:53:09]CheckOFDResponse [18:53:09]1017 (14) - 77093643461234 [18:53:09]1041 (16) - 0000000000871826 [18:53:09]1040 (4) - 186569 [18:53:09]1012 (4) - 17.02.2025 12:30 [18:53:09]1206 (1) - 0 [18:53:09]OFD Sender: Remove packet 186569 [18:53:09]ProducePacketName [18:53:09]name=ofd_packets/00186569 [18:53:09]NVStorageDeleteData [18:53:09]OFD Sender: Processing packet 186570 [packets to send 107, broken 48] [18:53:09]ProducePacketName [18:53:09]name=ofd_packets/00186570 [18:53:09]OFD Sender: To server: pG, [18:53:09]CommunicateWithHost lk.salyk.kg:30040 [18:53:09]ConnectInit lk.salyk.kg [18:53:09]Connected sock=10 [18:53:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8E 92 07 01 57 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 BE 6E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 F7 C6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 C6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 4B 00 00 00 00 07 04 06 00 F0 C6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 23 58 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D8 02 00 35 04 06 00 C7 10 36 75 C7 E9 47 92 DC 47 64 87 BC 11 [18:53:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 62 BB 47 00 65 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CA D8 02 00 F4 03 04 00 ED 2B B3 67 B6 04 01 00 00 6C C8 B2 0B 8D 9B C6 3E [18:53:10]CommunicateWithHost err = 0 [18:53:10]CheckOFDResponse [18:53:10]1017 (14) - 77093643461234 [18:53:10]1041 (16) - 0000000000871826 [18:53:10]1040 (4) - 186570 [18:53:10]1012 (4) - 17.02.2025 12:30 [18:53:10]1206 (1) - 0 [18:53:10]OFD Sender: Remove packet 186570 [18:53:10]ProducePacketName [18:53:10]name=ofd_packets/00186570 [18:53:10]NVStorageDeleteData [18:53:10]OFD Sender: Processing packet 186571 [packets to send 106, broken 48] [18:53:10]ProducePacketName [18:53:10]name=ofd_packets/00186571 [18:53:10]OFD Sender: To server: pG, [18:53:10]CommunicateWithHost lk.salyk.kg:30040 [18:53:10]ConnectInit lk.salyk.kg [18:53:11]Connected sock=8 [18:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 78 23 07 01 18 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 31 FF 03 08 00 03 1A 72 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 64 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 28 58 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D8 02 00 35 04 06 00 E6 79 6F 0A 87 8D 58 2B 24 AA 15 FC BB 52 [18:53:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AD A6 47 00 47 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CB D8 02 00 F4 03 04 00 EE 2B B3 67 B6 04 01 00 00 8F 7A 20 1F 4F C9 76 01 [18:53:11]CommunicateWithHost err = 0 [18:53:11]CheckOFDResponse [18:53:11]1017 (14) - 77093643461234 [18:53:11]1041 (16) - 0000000000871826 [18:53:11]1040 (4) - 186571 [18:53:11]1012 (4) - 17.02.2025 12:30 [18:53:11]1206 (1) - 0 [18:53:11]OFD Sender: Remove packet 186571 [18:53:11]ProducePacketName [18:53:11]name=ofd_packets/00186571 [18:53:11]NVStorageDeleteData [18:53:11]OFD Sender: Processing packet 186572 [packets to send 105, broken 48] [18:53:11]ProducePacketName [18:53:11]name=ofd_packets/00186572 [18:53:11]OFD Sender: To server: pG, [18:53:11]CommunicateWithHost lk.salyk.kg:30040 [18:53:11]ConnectInit lk.salyk.kg [18:53:12]Connected sock=8 [18:53:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 AD 14 07 01 32 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 B8 58 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D8 02 00 35 04 06 00 E9 41 F7 96 3B C9 CC 9D D3 4E 03 4B 45 88 [18:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1C 1D 47 00 F9 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CC D8 02 00 F4 03 04 00 EF 2B B3 67 B6 04 01 00 00 94 66 30 2B D7 A8 AE 79 [18:53:12]CommunicateWithHost err = 0 [18:53:12]CheckOFDResponse [18:53:12]1017 (14) - 77093643461234 [18:53:12]1041 (16) - 0000000000871826 [18:53:12]1040 (4) - 186572 [18:53:12]1012 (4) - 17.02.2025 12:30 [18:53:12]1206 (1) - 0 [18:53:12]OFD Sender: Remove packet 186572 [18:53:12]ProducePacketName [18:53:12]name=ofd_packets/00186572 [18:53:12]NVStorageDeleteData [18:53:12]OFD Sender: Processing packet 186573 [packets to send 104, broken 48] [18:53:12]ProducePacketName [18:53:12]name=ofd_packets/00186573 [18:53:12]OFD Sender: To server: pG, [18:53:12]CommunicateWithHost lk.salyk.kg:30040 [18:53:12]ConnectInit lk.salyk.kg [18:53:13]Connected sock=8 [18:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E7 15 07 01 69 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CC AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 10 5B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D8 02 00 35 04 06 00 51 9E 27 7C 6C AF 8F 89 DA AB 3B B1 60 75 [18:53:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F4 17 47 00 C6 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CD D8 02 00 F4 03 04 00 F0 2B B3 67 B6 04 01 00 00 AC 98 B6 DC 34 15 84 28 [18:53:13]CommunicateWithHost err = 0 [18:53:13]CheckOFDResponse [18:53:13]1017 (14) - 77093643461234 [18:53:13]1041 (16) - 0000000000871826 [18:53:13]1040 (4) - 186573 [18:53:13]1012 (4) - 17.02.2025 12:30 [18:53:13]1206 (1) - 0 [18:53:13]OFD Sender: Remove packet 186573 [18:53:13]ProducePacketName [18:53:13]name=ofd_packets/00186573 [18:53:13]NVStorageDeleteData [18:53:13]OFD Sender: Processing packet 186574 [packets to send 103, broken 48] [18:53:13]ProducePacketName [18:53:13]name=ofd_packets/00186574 [18:53:13]OFD Sender: To server: pG, [18:53:13]CommunicateWithHost lk.salyk.kg:30040 [18:53:13]ConnectInit lk.salyk.kg [18:53:13]Connected sock=8 [18:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D E4 07 01 66 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E7 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E7 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 13 5C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D8 02 00 35 04 06 00 D9 91 82 F0 A9 A7 E4 CF 7A C8 3F AE E0 20 [18:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 68 C0 47 00 A6 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CE D8 02 00 F4 03 04 00 F1 2B B3 67 B6 04 01 00 00 FB 7B 07 7C 3F E3 C3 16 [18:53:14]CommunicateWithHost err = 0 [18:53:14]CheckOFDResponse [18:53:14]1017 (14) - 77093643461234 [18:53:14]1041 (16) - 0000000000871826 [18:53:14]1040 (4) - 186574 [18:53:14]1012 (4) - 17.02.2025 12:30 [18:53:14]1206 (1) - 0 [18:53:14]OFD Sender: Remove packet 186574 [18:53:14]ProducePacketName [18:53:14]name=ofd_packets/00186574 [18:53:14]NVStorageDeleteData [18:53:14]OFD Sender: Processing packet 186575 [packets to send 102, broken 48] [18:53:14]ProducePacketName [18:53:14]name=ofd_packets/00186575 [18:53:14]OFD Sender: To server: pG, [18:53:14]CommunicateWithHost lk.salyk.kg:30040 [18:53:14]ConnectInit lk.salyk.kg [18:53:14]Connected sock=8 [18:53:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 0B 1E 04 01 21 03 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 0A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 46 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 37 5C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D8 02 00 35 04 06 00 20 10 C9 15 AC 45 C7 8D 70 D0 70 97 8F A5 [18:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C C4 47 00 66 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 CF D8 02 00 F4 03 04 00 F2 2B B3 67 B6 04 01 00 00 D6 D7 A9 AA 7E DC 4E 7E [18:53:15]CommunicateWithHost err = 0 [18:53:15]CheckOFDResponse [18:53:15]1017 (14) - 77093643461234 [18:53:15]1041 (16) - 0000000000871826 [18:53:15]1040 (4) - 186575 [18:53:15]1012 (4) - 17.02.2025 12:30 [18:53:15]1206 (1) - 0 [18:53:15]OFD Sender: Remove packet 186575 [18:53:15]ProducePacketName [18:53:15]name=ofd_packets/00186575 [18:53:15]NVStorageDeleteData [18:53:15]OFD Sender: Processing packet 186576 [packets to send 101, broken 48] [18:53:15]ProducePacketName [18:53:15]name=ofd_packets/00186576 [18:53:15]OFD Sender: To server: pG, [18:53:15]CommunicateWithHost lk.salyk.kg:30040 [18:53:15]ConnectInit lk.salyk.kg [18:53:15]Connected sock=8 [18:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 FF 07 01 5A ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 02 5D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D8 02 00 35 04 06 00 87 6A 49 7D CB 5A 05 1E 77 E4 46 81 CB EE [18:53:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 13 2B 47 00 2D 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D0 D8 02 00 F4 03 04 00 F3 2B B3 67 B6 04 01 00 00 19 6C 2B 33 2E 82 63 83 [18:53:16]CommunicateWithHost err = 0 [18:53:16]CheckOFDResponse [18:53:16]1017 (14) - 77093643461234 [18:53:16]1041 (16) - 0000000000871826 [18:53:16]1040 (4) - 186576 [18:53:16]1012 (4) - 17.02.2025 12:30 [18:53:16]1206 (1) - 0 [18:53:16]OFD Sender: Remove packet 186576 [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00186576 [18:53:16]NVStorageDeleteData [18:53:16]OFD Sender: Processing packet 186577 [packets to send 100, broken 48] [18:53:16]ProducePacketName [18:53:16]name=ofd_packets/00186577 [18:53:16]OFD Sender: To server: pG, [18:53:16]CommunicateWithHost lk.salyk.kg:30040 [18:53:16]ConnectInit lk.salyk.kg [18:53:16]Connected sock=8 [18:53:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BD 02 04 01 7F BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 20 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 88 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 93 5D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D8 02 00 35 04 06 00 44 00 F5 0C 62 FE 8B 57 7A CF AE 25 BD 02 [18:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 85 41 47 00 D6 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D1 D8 02 00 F4 03 04 00 F4 2B B3 67 B6 04 01 00 00 B4 DD 1B 6C 31 DD 72 01 [18:53:17]CommunicateWithHost err = 0 [18:53:17]CheckOFDResponse [18:53:17]1017 (14) - 77093643461234 [18:53:17]1041 (16) - 0000000000871826 [18:53:17]1040 (4) - 186577 [18:53:17]1012 (4) - 17.02.2025 12:30 [18:53:17]1206 (1) - 0 [18:53:17]OFD Sender: Remove packet 186577 [18:53:17]ProducePacketName [18:53:17]name=ofd_packets/00186577 [18:53:17]NVStorageDeleteData [18:53:17]OFD Sender: Processing packet 186578 [packets to send 99, broken 48] [18:53:17]ProducePacketName [18:53:17]name=ofd_packets/00186578 [18:53:17]OFD Sender: To server: pG, [18:53:17]CommunicateWithHost lk.salyk.kg:30040 [18:53:17]ConnectInit lk.salyk.kg [18:53:17]Connected sock=8 [18:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 29 3F 07 01 C0 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 84 5F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D8 02 00 35 04 06 00 86 AA B4 B2 51 15 7B 8B 2F 1B B9 5D 05 9A [18:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D2 5D 47 00 44 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D2 D8 02 00 F4 03 04 00 F5 2B B3 67 B6 04 01 00 00 00 9A 4E D5 00 EF 73 0B [18:53:18]CommunicateWithHost err = 0 [18:53:18]CheckOFDResponse [18:53:18]1017 (14) - 77093643461234 [18:53:18]1041 (16) - 0000000000871826 [18:53:18]1040 (4) - 186578 [18:53:18]1012 (4) - 17.02.2025 12:30 [18:53:18]1206 (1) - 0 [18:53:18]OFD Sender: Remove packet 186578 [18:53:18]ProducePacketName [18:53:18]name=ofd_packets/00186578 [18:53:18]NVStorageDeleteData [18:53:18]OFD Sender: Processing packet 186579 [packets to send 98, broken 48] [18:53:18]ProducePacketName [18:53:18]name=ofd_packets/00186579 [18:53:18]OFD Sender: To server: pG, [18:53:18]CommunicateWithHost lk.salyk.kg:30040 [18:53:18]ConnectInit lk.salyk.kg [18:53:18]Connected sock=8 [18:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 6F 9D 07 01 86 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 4F 60 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D8 02 00 35 04 06 00 19 B1 44 E3 92 8E 9B AA 2A E3 0E 5F C1 0D [18:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8A 3C 47 00 74 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D3 D8 02 00 F4 03 04 00 F6 2B B3 67 B6 04 01 00 00 30 05 DA 97 44 ED 70 0E [18:53:19]CommunicateWithHost err = 0 [18:53:19]CheckOFDResponse [18:53:19]1017 (14) - 77093643461234 [18:53:19]1041 (16) - 0000000000871826 [18:53:19]1040 (4) - 186579 [18:53:19]1012 (4) - 17.02.2025 12:30 [18:53:19]1206 (1) - 0 [18:53:19]OFD Sender: Remove packet 186579 [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00186579 [18:53:19]NVStorageDeleteData [18:53:19]OFD Sender: Processing packet 186580 [packets to send 97, broken 48] [18:53:19]ProducePacketName [18:53:19]name=ofd_packets/00186580 [18:53:19]OFD Sender: To server: pG, [18:53:19]CommunicateWithHost lk.salyk.kg:30040 [18:53:19]ConnectInit lk.salyk.kg [18:53:19]Connected sock=8 [18:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 98 6F 04 01 EA 84 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 C3 60 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D8 02 00 35 04 06 00 05 6B 2D E0 41 F4 D6 FC 8A 68 BB 6F 8C A5 [18:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C0 31 47 00 94 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D4 D8 02 00 F4 03 04 00 F7 2B B3 67 B6 04 01 00 00 AB 53 5B D7 A7 C9 A1 E9 [18:53:20]CommunicateWithHost err = 0 [18:53:20]CheckOFDResponse [18:53:20]1017 (14) - 77093643461234 [18:53:20]1041 (16) - 0000000000871826 [18:53:20]1040 (4) - 186580 [18:53:20]1012 (4) - 17.02.2025 12:30 [18:53:20]1206 (1) - 0 [18:53:20]OFD Sender: Remove packet 186580 [18:53:20]ProducePacketName [18:53:20]name=ofd_packets/00186580 [18:53:20]NVStorageDeleteData [18:53:20]OFD Sender: Processing packet 186581 [packets to send 96, broken 48] [18:53:20]ProducePacketName [18:53:20]name=ofd_packets/00186581 [18:53:20]OFD Sender: To server: pG, [18:53:20]CommunicateWithHost lk.salyk.kg:30040 [18:53:20]ConnectInit lk.salyk.kg [18:53:20]Connected sock=10 [18:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1A E1 07 01 5C DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 E0 61 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D8 02 00 35 04 06 00 22 E7 DC 7C 4F 0F EA E9 77 C0 84 6C C9 2C [18:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 F9 47 00 87 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D5 D8 02 00 F4 03 04 00 F8 2B B3 67 B6 04 01 00 00 89 AA 74 90 2E 42 CC 89 [18:53:21]CommunicateWithHost err = 0 [18:53:21]CheckOFDResponse [18:53:21]1017 (14) - 77093643461234 [18:53:21]1041 (16) - 0000000000871826 [18:53:21]1040 (4) - 186581 [18:53:21]1012 (4) - 17.02.2025 12:30 [18:53:21]1206 (1) - 0 [18:53:21]OFD Sender: Remove packet 186581 [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00186581 [18:53:21]NVStorageDeleteData [18:53:21]OFD Sender: Processing packet 186582 [packets to send 95, broken 48] [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00186582 [18:53:21]OFD Sender: To server: pG, [18:53:21]CommunicateWithHost lk.salyk.kg:30040 [18:53:21]ConnectInit lk.salyk.kg [18:53:21]Connected sock=8 [18:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C2 90 07 01 6D 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2A 3A 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 33 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 33 A2 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 2C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 33 A2 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 28 62 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D8 02 00 35 04 06 00 33 11 BF AE 71 CB 60 A9 7C 62 D5 71 13 C1 [18:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 73 09 47 00 7F 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D6 D8 02 00 F4 03 04 00 F9 2B B3 67 B6 04 01 00 00 11 46 49 A9 15 3D 06 A7 [18:53:22]CommunicateWithHost err = 0 [18:53:22]CheckOFDResponse [18:53:22]1017 (14) - 77093643461234 [18:53:22]1041 (16) - 0000000000871826 [18:53:22]1040 (4) - 186582 [18:53:22]1012 (4) - 17.02.2025 12:30 [18:53:22]1206 (1) - 0 [18:53:22]OFD Sender: Remove packet 186582 [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00186582 [18:53:22]NVStorageDeleteData [18:53:22]OFD Sender: Processing packet 186583 [packets to send 94, broken 48] [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00186583 [18:53:22]OFD Sender: To server: pG, [18:53:22]CommunicateWithHost lk.salyk.kg:30040 [18:53:22]ConnectInit lk.salyk.kg [18:53:22]Connected sock=8 [18:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EF 21 07 01 FE 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 5D 62 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D8 02 00 35 04 06 00 B4 C0 33 C3 1E 5F C9 B0 DE 00 D6 27 7D 61 [18:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2C 9A 47 00 3C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D7 D8 02 00 F4 03 04 00 FA 2B B3 67 B6 04 01 00 00 6D 94 5B 11 9F BC C3 C9 [18:53:23]CommunicateWithHost err = 0 [18:53:23]CheckOFDResponse [18:53:23]1017 (14) - 77093643461234 [18:53:23]1041 (16) - 0000000000871826 [18:53:23]1040 (4) - 186583 [18:53:23]1012 (4) - 17.02.2025 12:30 [18:53:23]1206 (1) - 0 [18:53:23]OFD Sender: Remove packet 186583 [18:53:23]ProducePacketName [18:53:23]name=ofd_packets/00186583 [18:53:23]NVStorageDeleteData [18:53:23]OFD Sender: Processing packet 186584 [packets to send 93, broken 48] [18:53:23]ProducePacketName [18:53:23]name=ofd_packets/00186584 [18:53:23]OFD Sender: To server: pG, [18:53:23]CommunicateWithHost lk.salyk.kg:30040 [18:53:23]ConnectInit lk.salyk.kg [18:53:23]Connected sock=8 [18:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C1 F9 07 01 AF 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 96 62 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D8 02 00 35 04 06 00 2C D9 58 B3 34 88 C0 A9 25 40 FD E9 AE C0 [18:53:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C0 E3 47 00 C2 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D8 D8 02 00 F4 03 04 00 FB 2B B3 67 B6 04 01 00 00 79 D5 55 1B F9 27 17 69 [18:53:24]CommunicateWithHost err = 0 [18:53:24]CheckOFDResponse [18:53:24]1017 (14) - 77093643461234 [18:53:24]1041 (16) - 0000000000871826 [18:53:24]1040 (4) - 186584 [18:53:24]1012 (4) - 17.02.2025 12:30 [18:53:24]1206 (1) - 0 [18:53:24]OFD Sender: Remove packet 186584 [18:53:24]ProducePacketName [18:53:24]name=ofd_packets/00186584 [18:53:24]NVStorageDeleteData [18:53:24]OFD Sender: Processing packet 186585 [packets to send 92, broken 48] [18:53:24]ProducePacketName [18:53:24]name=ofd_packets/00186585 [18:53:24]OFD Sender: To server: pG, [18:53:24]CommunicateWithHost lk.salyk.kg:30040 [18:53:24]ConnectInit lk.salyk.kg [18:53:24]Connected sock=8 [18:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 45 41 07 01 CC 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 47 63 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D8 02 00 35 04 06 00 84 7E 60 41 D7 57 CB 24 6B 42 C9 10 B2 A1 [18:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F6 62 47 00 E1 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 D9 D8 02 00 F4 03 04 00 FC 2B B3 67 B6 04 01 00 00 5D B1 F4 62 02 EA B6 60 [18:53:25]CommunicateWithHost err = 0 [18:53:25]CheckOFDResponse [18:53:25]1017 (14) - 77093643461234 [18:53:25]1041 (16) - 0000000000871826 [18:53:25]1040 (4) - 186585 [18:53:25]1012 (4) - 17.02.2025 12:30 [18:53:25]1206 (1) - 0 [18:53:25]OFD Sender: Remove packet 186585 [18:53:25]ProducePacketName [18:53:25]name=ofd_packets/00186585 [18:53:25]NVStorageDeleteData [18:53:25]OFD Sender: Processing packet 186586 [packets to send 91, broken 48] [18:53:25]ProducePacketName [18:53:25]name=ofd_packets/00186586 [18:53:25]OFD Sender: To server: pG, [18:53:25]CommunicateWithHost lk.salyk.kg:30040 [18:53:25]ConnectInit lk.salyk.kg [18:55:37]ConnectInit Can't connect to host [18:55:37]CommunicateWithHost connect error [18:55:37]CommunicateWithHost err = -1 [18:55:37]OFD Sender: Server communicate error [18:55:42]OFD Sender: Processing packet 186586 [packets to send 91, broken 48] [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00186586 [18:55:42]OFD Sender: To server: pG, [18:55:42]CommunicateWithHost lk.salyk.kg:30040 [18:55:42]ConnectInit lk.salyk.kg [18:55:42]Connected sock=10 [18:55:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 1F 6C 04 01 67 AD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 4D 63 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D8 02 00 35 04 06 00 07 49 34 BE 21 09 B6 24 4A EB CC 13 4F DA [18:55:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2E 19 47 00 0C 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DA D8 02 00 F4 03 04 00 86 2C B3 67 B6 04 01 00 00 02 DE 53 DB 1A 6B 14 52 [18:55:42]CommunicateWithHost err = 0 [18:55:42]CheckOFDResponse [18:55:42]1017 (14) - 77093643461234 [18:55:42]1041 (16) - 0000000000871826 [18:55:42]1040 (4) - 186586 [18:55:42]1012 (4) - 17.02.2025 12:33 [18:55:42]1206 (1) - 0 [18:55:42]OFD Sender: Remove packet 186586 [18:55:42]ProducePacketName [18:55:42]name=ofd_packets/00186586 [18:55:42]NVStorageDeleteData [18:55:43]OFD Sender: Processing packet 186587 [packets to send 90, broken 48] [18:55:43]ProducePacketName [18:55:43]name=ofd_packets/00186587 [18:55:43]OFD Sender: To server: pG, [18:55:43]CommunicateWithHost lk.salyk.kg:30040 [18:55:43]ConnectInit lk.salyk.kg [18:55:43]Connected sock=8 [18:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 39 86 07 01 A0 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 3C 0F 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 CE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 A8 63 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D8 02 00 35 04 06 00 80 1F 12 F0 18 D1 B7 76 E3 4F C8 B8 D9 70 [18:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 10 EE 47 00 25 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DB D8 02 00 F4 03 04 00 87 2C B3 67 B6 04 01 00 00 95 E1 36 D2 E0 9C FA D0 [18:55:43]CommunicateWithHost err = 0 [18:55:43]CheckOFDResponse [18:55:43]1017 (14) - 77093643461234 [18:55:43]1041 (16) - 0000000000871826 [18:55:43]1040 (4) - 186587 [18:55:43]1012 (4) - 17.02.2025 12:33 [18:55:43]1206 (1) - 0 [18:55:43]OFD Sender: Remove packet 186587 [18:55:43]ProducePacketName [18:55:43]name=ofd_packets/00186587 [18:55:43]NVStorageDeleteData [18:55:44]OFD Sender: Processing packet 186588 [packets to send 89, broken 48] [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00186588 [18:55:44]OFD Sender: To server: pG, [18:55:44]CommunicateWithHost lk.salyk.kg:30040 [18:55:44]ConnectInit lk.salyk.kg [18:55:44]Connected sock=8 [18:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E9 00 07 01 2D 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DA 6B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 68 B4 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 B4 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 49 00 00 00 00 07 04 06 00 30 B4 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 45 64 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D8 02 00 35 04 06 00 8E 86 E6 C0 59 32 3B 9F D8 B8 C4 BA 66 00 [18:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 3A 2F 47 00 B6 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DC D8 02 00 F4 03 04 00 88 2C B3 67 B6 04 01 00 00 9D 58 B3 88 E1 D4 74 2F [18:55:44]CommunicateWithHost err = 0 [18:55:44]CheckOFDResponse [18:55:44]1017 (14) - 77093643461234 [18:55:44]1041 (16) - 0000000000871826 [18:55:44]1040 (4) - 186588 [18:55:44]1012 (4) - 17.02.2025 12:33 [18:55:44]1206 (1) - 0 [18:55:44]OFD Sender: Remove packet 186588 [18:55:44]ProducePacketName [18:55:44]name=ofd_packets/00186588 [18:55:44]NVStorageDeleteData [18:55:45]OFD Sender: Processing packet 186589 [packets to send 88, broken 48] [18:55:45]ProducePacketName [18:55:45]name=ofd_packets/00186589 [18:55:45]OFD Sender: To server: pG, [18:55:45]CommunicateWithHost lk.salyk.kg:30040 [18:55:45]ConnectInit lk.salyk.kg [18:55:45]Connected sock=8 [18:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A0 9D 07 01 56 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 0B FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 F5 67 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D8 02 00 35 04 06 00 54 20 B6 51 12 58 9C CC 1C 81 73 E2 E3 ED [18:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 35 6D 47 00 D1 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DD D8 02 00 F4 03 04 00 89 2C B3 67 B6 04 01 00 00 E3 24 0D C9 27 B3 DF 3C [18:55:45]CommunicateWithHost err = 0 [18:55:45]CheckOFDResponse [18:55:45]1017 (14) - 77093643461234 [18:55:45]1041 (16) - 0000000000871826 [18:55:45]1040 (4) - 186589 [18:55:45]1012 (4) - 17.02.2025 12:33 [18:55:45]1206 (1) - 0 [18:55:45]OFD Sender: Remove packet 186589 [18:55:45]ProducePacketName [18:55:45]name=ofd_packets/00186589 [18:55:45]NVStorageDeleteData [18:55:46]OFD Sender: Processing packet 186590 [packets to send 87, broken 48] [18:55:46]ProducePacketName [18:55:46]name=ofd_packets/00186590 [18:55:46]OFD Sender: To server: pG, [18:55:46]CommunicateWithHost lk.salyk.kg:30040 [18:55:46]ConnectInit lk.salyk.kg [18:55:46]Connected sock=8 [18:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 16 06 07 01 07 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 6B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D8 02 00 35 04 06 00 85 A1 7C FA 4B 8F CC 77 18 CD 93 32 59 0C [18:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 08 47 00 10 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DE D8 02 00 F4 03 04 00 8A 2C B3 67 B6 04 01 00 00 7B 6C E6 71 A0 05 B9 AF [18:55:46]CommunicateWithHost err = 0 [18:55:46]CheckOFDResponse [18:55:46]1017 (14) - 77093643461234 [18:55:46]1041 (16) - 0000000000871826 [18:55:46]1040 (4) - 186590 [18:55:46]1012 (4) - 17.02.2025 12:33 [18:55:46]1206 (1) - 0 [18:55:46]OFD Sender: Remove packet 186590 [18:55:46]ProducePacketName [18:55:46]name=ofd_packets/00186590 [18:55:46]NVStorageDeleteData [18:55:47]OFD Sender: Processing packet 186591 [packets to send 86, broken 48] [18:55:47]ProducePacketName [18:55:47]name=ofd_packets/00186591 [18:55:47]OFD Sender: To server: pG, [18:55:47]CommunicateWithHost lk.salyk.kg:30040 [18:55:47]ConnectInit lk.salyk.kg [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 F1 [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 540000000057254C (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 40125692+1699692926=1739818618 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33560624 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 4C FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 F2 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 41 00 60 00 FF FF 7F [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 7B 86 B3 67 7E 41 4F 65 8D [18:56:59]Current date/time: 17.02.2025 18:56 [18:56:59]FM_Init [18:56:59]wFMConnect [18:56:59]MH_SAM_On [18:56:59]Write to MH i2c: E0 00 00 08 00 E7 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_init finished! [18:56:59]*** atr: [18:56:59]*** 0F 3B D5 18 FF 81 91 FE [18:56:59]*** 1F C3 80 73 C8 21 10 0A [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]*** 00 00 00 00 00 00 00 00 [18:56:59]Read from MH i2c: E0 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E0 10 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:56:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:56:59]wFMCommunicate request_size=10 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:56:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:56:59]RAPDU: 90 00 [18:56:59]wFMCommunicate OK [18:56:59]wFMCommunicate request_size=4 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 11 00 00 [18:56:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 17 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D7 [18:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:59]wFMCommunicate OK [18:56:59]Detected FM SN is 0000000000871826 [18:56:59]Stored FM SN is 0000000000871826 [18:56:59]wFMCommunicate request_size=9 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 16 00 00 04 3B 45 00 00 [18:56:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 3B 45 00 00 00 00 12 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:56:59]RAPDU: 90 00 [18:56:59]wFMCommunicate OK [18:56:59]FM PIN OK [18:56:59]wFMCommunicate request_size=8 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 14 04 00 03 02 00 01 [18:56:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:56:59]RAPDU: 90 00 [18:56:59]wFMCommunicate OK [18:56:59]wFMCommunicate request_size=13 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:56:59]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:56:59]RAPDU: 90 00 [18:56:59]wFMCommunicate OK [18:56:59]wFMCommunicate request_size=4 [18:56:59]MH_SAM_APDU [18:56:59]CAPDU: 80 11 00 00 [18:56:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:59]Read from MH i2c: E2 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 17 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DB [18:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:56:59]wFMCommunicate OK [18:56:59]DocumentArchiveInit [18:56:59]Start Httpd... [18:56:59]Httpd thread 3067919716 created [18:56:59]Write to MH i2c: 01 00 00 0F 00 0F [18:56:59]Write i2c OK [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 07 00 [18:56:59]MH_I2C_Read... [18:56:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:56:59]MH Int Process started [18:56:59]Allocated Socket 7 [18:56:59]Bind OK [18:56:59]Listen OK [18:56:59]httpd running on port 8080 [18:56:59]Waiting for new connection... [18:56:59]OFD Sender: Processing packet 186591 [packets to send 86, broken 48] [18:56:59]ProducePacketName [18:56:59]name=ofd_packets/00186591 [18:56:59]OFD Sender: To server: pG, [18:56:59]CommunicateWithHost lk.salyk.kg:30040 [18:56:59]ConnectInit lk.salyk.kg [18:56:59]Connected sock=6 [18:56:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 84 CB 07 01 1A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 5C 6B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D8 02 00 35 04 06 00 0F 7E 74 50 B7 57 08 5B BD AA 32 1D 01 C7 [18:56:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CF B6 47 00 7C FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 DF D8 02 00 F4 03 04 00 D3 2C B3 67 B6 04 01 00 00 0A 7D D6 8B C6 15 72 B6 [18:56:59]CommunicateWithHost err = 0 [18:56:59]CheckOFDResponse [18:56:59]1017 (14) - 77093643461234 [18:56:59]1041 (16) - 0000000000871826 [18:56:59]1040 (4) - 186591 [18:56:59]1012 (4) - 17.02.2025 12:34 [18:56:59]1206 (1) - 0 [18:56:59]OFD Sender: Remove packet 186591 [18:56:59]ProducePacketName [18:56:59]name=ofd_packets/00186591 [18:56:59]NVStorageDeleteData [18:57:00]OFD Sender: Processing packet 186592 [packets to send 85, broken 48] [18:57:00]ProducePacketName [18:57:00]name=ofd_packets/00186592 [18:57:00]OFD Sender: To server: pG, [18:57:00]CommunicateWithHost lk.salyk.kg:30040 [18:57:00]ConnectInit lk.salyk.kg [18:57:00]Connected sock=6 [18:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4C 2E 07 01 34 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 72 BF 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 14 CD 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 CC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 82 00 00 00 00 07 04 06 00 E8 CC 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 67 6B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D8 02 00 35 04 06 00 02 FC 9A D6 60 3E 11 45 73 2A FE B4 FE E9 [18:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D1 AB 47 00 F7 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E0 D8 02 00 F4 03 04 00 D4 2C B3 67 B6 04 01 00 00 45 F8 E6 E1 F4 ED 3D A3 [18:57:00]CommunicateWithHost err = 0 [18:57:00]CheckOFDResponse [18:57:00]1017 (14) - 77093643461234 [18:57:00]1041 (16) - 0000000000871826 [18:57:00]1040 (4) - 186592 [18:57:00]1012 (4) - 17.02.2025 12:34 [18:57:00]1206 (1) - 0 [18:57:00]OFD Sender: Remove packet 186592 [18:57:00]ProducePacketName [18:57:00]name=ofd_packets/00186592 [18:57:00]NVStorageDeleteData [18:57:01]accept exits with 8 [18:57:01]New connection [18:57:01]New thread 3067632996 created [18:57:01]Waiting for new connection... [18:57:01] Sock 8.Parse request [18:57:01]Sock 8.Check first char [18:57:01]Sock 8.First char is OK [18:57:01]request: POST /json_proto HTTP/1.0 [18:57:01]Method: POST [18:57:01]URL: /json_proto [18:57:01]Method is POST - this is cgi request [18:57:01]url: /json_proto [18:57:01]query_string will be loaded in cgi processing [18:57:01]execute_cgi json_proto POST (null) [18:57:01]execute_cgi path=json_proto method=POST [18:57:01]POST find Content-Length [18:57:01]Host: 172.17.46.131:8080 [18:57:01]Content-Length: 215 [18:57:01]Content-Type: application/json [18:57:01] [18:57:01]POST finish read [18:57:01]Found Content-Length = 215 [18:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:01]execute_script... [18:57:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:01]POST & json_proto [18:57:01]process_json_proto [18:57:01]json parsed OK: [18:57:01]protocol is kg_v1.0 [18:57:01]action value=get_value [18:57:01]process_action get_value [18:57:01]cmd_get_value [18:57:01]process_action get_value done [18:57:01]requested_data is exist [18:57:01]produce_requested_data [18:57:01]requested_item kkm.sn is exist - process it [18:57:01]requested_item kkm.ver is exist - process it [18:57:01]requested_item fm.sn is exist - process it [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 11 00 00 [18:57:01]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [18:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [18:57:01]wFMCommunicate OK [18:57:01]requested_item fd.num is exist - process it [18:57:01]SAM_PROTO_GetFieldsCounters [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 00 00 [18:57:01]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:57:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 04 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetFieldsCounters done [18:57:01]requested_item shift.num is exist - process it [18:57:01]requested_item shift.opened is exist - process it [18:57:01]req_shift_opened [18:57:01]FM_GetShiftState [18:57:01]SAM_PROTO_GetShiftState [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 01 00 [18:57:01]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B3 [18:57:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetShiftState done [18:57:01]FM_GetShiftState done [18:57:01]req_shift_opened done [18:57:01]requested_item shift.open_date is exist - process it [18:57:01]req_shift_open_date [18:57:01]req_shift_open_date done [18:57:01]produce_requested_data done [18:57:01]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186628,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [18:57:01]process_action_free get_value [18:57:01]json_value_free [18:57:01]json_value_free done [18:57:01]process_json_proto returns [18:57:01]Send response to host [18:57:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186628,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [18:57:01]free response buf [18:57:01]execute_script done [18:57:01]execute_script returns [18:57:01]free content buf [18:57:01]Sock 8.Close socket [18:57:01]Sock 8.Thread stoped [18:57:01]accept exits with 6 [18:57:01]New connection [18:57:01]New thread 3067489636 created [18:57:01]Thread 3067632996 joined [18:57:01]Waiting for new connection... [18:57:01] Sock 6.Parse request [18:57:01]Sock 6.Check first char [18:57:01]Sock 6.First char is OK [18:57:01]request: POST /json_proto HTTP/1.0 [18:57:01]Method: POST [18:57:01]URL: /json_proto [18:57:01]Method is POST - this is cgi request [18:57:01]url: /json_proto [18:57:01]query_string will be loaded in cgi processing [18:57:01]execute_cgi json_proto POST (null) [18:57:01]execute_cgi path=json_proto method=POST [18:57:01]POST find Content-Length [18:57:01]Host: 172.17.46.131:8080 [18:57:01]Content-Length: 331 [18:57:01]Content-Type: application/json [18:57:01] [18:57:01]POST finish read [18:57:01]Found Content-Length = 331 [18:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:57:01]execute_script... [18:57:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:57:01]POST & json_proto [18:57:01]process_json_proto [18:57:01]json parsed OK: [18:57:01]protocol is kg_v1.0 [18:57:01]action value=get_value [18:57:01]process_action get_value [18:57:01]cmd_get_value [18:57:01]process_action get_value done [18:57:01]requested_data is exist [18:57:01]produce_requested_data [18:57:01]requested_item fm.sale.total is exist - process it [18:57:01]SAM_PROTO_GetFMData [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 13 03 00 [18:57:01]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]OFD Sender: Processing packet 186593 [packets to send 84, broken 48] [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00186593 [18:57:01]OFD Sender: To server: pG, [18:57:01]CommunicateWithHost lk.salyk.kg:30040 [18:57:01]ConnectInit lk.salyk.kg [18:57:01]Connected sock=10 [18:57:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 54 90 07 01 AF 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 32 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 C8 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 FA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 DB 6B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D8 02 00 35 04 06 00 40 C6 35 6D EA 8D 2B 3F 50 77 78 76 BE 82 [18:57:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 FD 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 FD 00 13 00 00 C1 04 85 04 BD 04 6E 04 04 00 FC D3 02 00 69 04 A3 00 6F 04 04 00 E9 D3 02 00 B1 04 05 00 9C 46 C8 18 04 70 04 05 00 98 93 6F 98 03 72 04 04 00 04 B3 58 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F3 B1 68 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 5C 86 48 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 8E [18:57:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 FC D3 02 00 69 04 A3 00 6F 04 04 00 E9 D3 02 00 B1 04 05 00 9C 46 C8 18 04 70 04 05 00 98 93 6F 98 03 72 04 04 00 04 B3 58 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 F3 B1 68 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 5C 86 48 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 17 00 00 [18:57:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E1 20 47 00 0A E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E1 D8 02 00 F4 03 04 00 D5 2C B3 67 B6 04 01 00 00 B2 75 45 E1 09 32 82 FE [18:57:02]CommunicateWithHost err = 0 [18:57:02]CheckOFDResponse [18:57:02]1017 (14) - 77093643461234 [18:57:02]1041 (16) - 0000000000871826 [18:57:02]1040 (4) - 186593 [18:57:02]1012 (4) - 17.02.2025 12:34 [18:57:02]1206 (1) - 0 [18:57:02]OFD Sender: Remove packet 186593 [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00186593 [18:57:02]NVStorageDeleteData [18:57:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 14 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 5D [18:57:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 17 00 00 [18:57:02]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]OFD Sender: Processing packet 186594 [packets to send 83, broken 48] [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00186594 [18:57:02]OFD Sender: To server: pG, [18:57:02]CommunicateWithHost lk.salyk.kg:30040 [18:57:02]ConnectInit lk.salyk.kg [18:57:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 15 00 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 35 [18:57:02]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 17 00 00 [18:57:02]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Connected sock=10 [18:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3C 15 07 01 32 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 DF 6B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D8 02 00 35 04 06 00 75 A2 F9 5C 60 59 14 1B C5 82 E7 D1 5B E8 [18:57:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 FD 00 16 00 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 1B [18:57:03]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 17 00 00 [18:57:03]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C1 53 47 00 88 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E2 D8 02 00 F4 03 04 00 D6 2C B3 67 B6 04 01 00 00 9B 2A DB AC 8A E9 76 CB [18:57:03]CommunicateWithHost err = 0 [18:57:03]CheckOFDResponse [18:57:03]1017 (14) - 77093643461234 [18:57:03]1041 (16) - 0000000000871826 [18:57:03]1040 (4) - 186594 [18:57:03]1012 (4) - 17.02.2025 12:34 [18:57:03]1206 (1) - 0 [18:57:03]OFD Sender: Remove packet 186594 [18:57:03]ProducePacketName [18:57:03]name=ofd_packets/00186594 [18:57:03]NVStorageDeleteData [18:57:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 DE 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 DE 00 17 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [18:57:03]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]SAM_PROTO_GetFMData done [18:57:03]requested_item fm.sale_refund.total is exist - process it [18:57:03]requested_item fm.buy.total is exist - process it [18:57:03]requested_item shift.sale.total is exist - process it [18:57:03]SAM_PROTO_GetShiftData [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 13 02 00 [18:57:03]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]OFD Sender: Processing packet 186595 [packets to send 82, broken 48] [18:57:03]ProducePacketName [18:57:03]name=ofd_packets/00186595 [18:57:03]OFD Sender: To server: pG, [18:57:03]CommunicateWithHost lk.salyk.kg:30040 [18:57:03]ConnectInit lk.salyk.kg [18:57:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 FD 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 FD 00 18 00 00 B0 04 AA 04 AC 04 6E 04 04 00 D7 00 00 00 69 04 9D 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 A1 15 39 01 70 04 03 00 C4 87 E5 72 04 03 00 DD 8D 53 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 82 41 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F C5 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0E [18:57:03]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 D7 00 00 00 69 04 9D 00 6F 04 04 00 D7 00 00 00 B1 04 04 00 A1 15 39 01 70 04 03 00 C4 87 E5 72 04 03 00 DD 8D 53 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 82 41 21 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F C5 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [18:57:03]wFMCommunicate OK [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 17 00 00 [18:57:03]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Connected sock=10 [18:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 E0 D1 07 01 3B 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 E0 6C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D8 02 00 35 04 06 00 11 8A A2 AA 19 F6 FB F9 8F F3 97 5F C1 78 [18:57:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 19 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 B3 [18:57:04]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [18:57:04]wFMCommunicate OK [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 17 00 00 [18:57:04]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 Write i2c OK [18:57:04]30 MH_I2C_Read... [18:57:04]30 30 30 38 37 31 38 32 36 4F 00 00 00 4D 86 47 00 DD 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E3 D8 02 00 F4 03 04 00 D7 2C B3 67 B6 04 01 00 00 08 E8 74 2B CA C9 62 55 [18:57:04]CommunicateWithHost err = 0 [18:57:04]CheckOFDResponse [18:57:04]1017 (14) - 77093643461234 [18:57:04]1041 (16) - 0000000000871826 [18:57:04]1040 (4) - 186595 [18:57:04]1012 (4) - 17.02.2025 12:34 [18:57:04]1206 (1) - 0 [18:57:04]OFD Sender: Remove packet 186595 [18:57:04]ProducePacketName [18:57:04]name=ofd_packets/00186595 [18:57:04]NVStorageDeleteData [18:57:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 1A 00 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 57 [18:57:04]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [18:57:04]wFMCommunicate OK [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 17 00 00 [18:57:04]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]OFD Sender: Processing packet 186596 [packets to send 81, broken 48] [18:57:04]ProducePacketName [18:57:04]name=ofd_packets/00186596 [18:57:04]OFD Sender: To server: pG, [18:57:04]CommunicateWithHost lk.salyk.kg:30040 [18:57:04]ConnectInit lk.salyk.kg [18:57:04]Read from MH i2c: E2 *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:57:04] [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 FD 00 1B 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0E [18:57:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [18:57:05]wFMCommunicate OK [18:57:05]wFMCommunicate request_size=4 [18:57:05]MH_SAM_APDU [18:57:05]CAPDU: 80 17 00 00 [18:57:05]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:57:05]Write i2c OK [18:57:05]MH_I2C_Read... [18:57:05]Connected sock=10 [18:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 C8 53 07 01 C7 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B6 30 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B9 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 F3 6C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D8 02 00 35 04 06 00 08 1C D9 02 51 3A B6 *** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [18:57:05]8F B5 75 BF D4 6D E0 [18:57:05]Read from MH i2c: E2 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 CD 00 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 CD 00 1C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 80 [18:57:05]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:57:05]wFMCommunicate OK [18:57:05]SAM_PROTO_GetShiftData done [18:57:05]requested_item shift.sale.total_cash is exist - process it [18:57:05]requested_item shift.sale_refund.total is exist - process it [18:57:05]requested_item shift.sale_refund.total_cash is exist - process it [18:57:05]requested_item shift.buy.total is exist - process it [18:57:05]requested_item shift.buy.total_cash is exist - process it [18:57:05]produce_requested_data done [18:57:05]produce_requested_data return {"fm.sale.total":175956476.44,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":205183.05,"shift.sale.total_cash":150425.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:57:05]process_action_free get_value [18:57:05]json_value_free [18:57:05]json_value_free done [18:57:05]process_json_proto returns [18:57:05]Send response to host [18:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":175956476.44,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":205183.05,"shift.sale.total_cash":150425.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:57:05]free response buf [18:57:05]execute_script done [18:57:05]execute_script returns [18:57:05]free content buf [18:57:05]Sock 6.Close socket [18:57:05]Sock 6.Thread stoped [18:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 6C 19 47 00 DF FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 E4 D8 02 00 F4 03 04 00 D9 2C B3 67 B6 04 01 00 00 F3 4F 72 8E B7 C0 80 6C [18:57:05]CommunicateWithHost err = 0 [18:57:05]CheckOFDResponse [18:57:05]1017 (14) - 77093643461234 [18:57:05]1041 (16) - 0000000000871826 [18:57:05]1040 (4) - 186596 [18:57:05]1012 (4) - 17.02.2025 12:34 [18:57:05]1206 (1) - 0 [18:57:05]OFD Sender: Remove packet 186596 [18:57:05]ProducePacketName [18:57:05]name=ofd_packets/00186596 [18:57:05]NVStorageDeleteData [18:57:05]accept exits with 8 [18:57:05]New connection [18:57:05]New thread 3067632996 created [18:57:05]Thread 3067489636 joined [18:57:05]Waiting for new connection... [18:57:05] Sock 8.Parse request [18:57:05]Sock 8.Check first char [18:57:05]Sock 8.First char is OK [18:57:05]request: POST /json_proto HTTP/1.0 [18:57:05]Method: POST [18:57:05]URL: /json_proto [18:57:05]Method is POST - this is cgi request [18:57:05]url: /json_proto [18:57:05]query_string will be loaded in cgi processing [18:57:05]execute_cgi json_proto POST (null) [18:57:05]execute_cgi path=json_proto method=POST [18:57:05]POST find Content-Length [18:57:05]Host: 172.17.46.131:8080 [18:57:05]Content-Length: 682 [18:57:05]Content-Type: application/json [18:57:05] [18:57:05]POST finish read [18:57:05]Found Content-Length = 682 [18:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:05]execute_script... [18:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:05]POST & json_proto [18:57:05]process_json_proto [18:57:05]json parsed OK: [18:57:05]protocol is kg_v1.0 [18:57:05]action value=close_receipt [18:57:05]process_action close_receipt [18:57:05]cmd_close_receipt [18:57:05]MH_GetDate [18:57:05]Write to MH i2c: F0 00 00 1D 00 0C [18:57:05]Write i2c OK [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 09 00 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: F0 09 00 1D 00 00 82 86 B3 67 7E 41 4F 65 AA [18:57:05]GetLastDocTimeStamp 1739818319 [18:57:05]current date 1739818626 [18:57:05]FM_GetShiftState [18:57:05]SAM_PROTO_GetShiftState [18:57:05]wFMCommunicate request_size=4 [18:57:05]MH_SAM_APDU [18:57:05]CAPDU: 80 13 01 00 [18:57:05]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:57:05]Write i2c OK [18:57:05]MH_I2C_Read... [18:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:05]Read from MH i2c: E2 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 0E 00 [18:57:05]MH_I2C_Read... [18:57:05]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BF [18:57:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [18:57:05]wFMCommunicate OK [18:57:05]SAM_PROTO_GetShiftState done [18:57:05]FM_GetShiftState done [18:57:05]opened in 1739752571 [18:57:05]opened+sec_in_day 1739838971 [18:57:05]quantity*price = 100023 [18:57:05]sum+1 = 100025 [18:57:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 217 17.02.2025 19:00 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186630 ФПД: 233024991688973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186630&fm=233024991688973&tin=02508201610067®Number=0000000000091857&sum=300000 [19:00:32]StoreToDocumentArchive [19:00:32]shift 644 fd 186630 [19:00:32]save to /storage/0644/doc_00186630 [19:00:32]save last doc name /storage/0644/doc_00186630 to /storage/kkm_last_doc_name [19:00:32]save OK [19:00:32]Clear old archive folders... [19:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:32]tlvbuf is 01417DC0 [19:00:32]SAM_PROTO_ClearQueue [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 09 00 00 [19:00:32]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]SAM_PROTO_ClearQueue done [19:00:32]KKMCreateOFDPacket [19:00:32]OFDProtocolAddRootSTLVToBuf [19:00:32]FM_MakeSignedData [19:00:32]FM_MakeSignedData [19:00:32]SAM_PROTO_SignData [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 01 02 [19:00:32]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=255 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 4F 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 D9 02 00 35 04 06 00 D3 [19:00:32]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 4F 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 D9 02 00 35 04 06 00 D3 00 00 E5 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=10 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 02 02 05 EF 5B DA 79 0D [19:00:32]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 EF 5B DA 79 0D 00 00 5C [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:00:32]RAPDU: 90 00 [19:00:32]wFMCommunicate OK [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 0D 03 02 [19:00:32]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 0B 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 0B 00 2F 00 00 3C 05 90 D9 65 BB 3E 86 90 00 39 [19:00:32]RAPDU: 3C 05 90 D9 65 BB 3E 86 90 00 [19:00:32]wFMCommunicate OK [19:00:32]SAM_PROTO_SignData done [19:00:32]FM_MakeSignedData done [19:00:32]CreateOFDProtocolMessage [19:00:32]wFMCommunicate request_size=4 [19:00:32]MH_SAM_APDU [19:00:32]CAPDU: 80 11 00 00 [19:00:32]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:32]Read from MH i2c: E2 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 17 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [19:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:32]wFMCommunicate OK [19:00:32]CreateOFDProtocolMessage done [19:00:32]OFDSenderStorePacket 186630 [19:00:32]StoreOFDPacket docnum=186630 [19:00:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 37 69 07 01 CB FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 4F 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 D9 02 00 35 04 06 00 D3 EF 5B DA 79 0D 3C 05 90 D9 65 BB 3E 86 [19:00:32]CheckFolder [19:00:32]dirname=/storage/ofd_packets [19:00:32]CheckFolder done [19:00:32]ProducePacketName [19:00:32]name=ofd_packets/00186630 [19:00:32]NVStorageSaveData ofd_packets/00186630 [19:00:32]File name is /storage/ofd_packets/00186630 [19:00:32]Write 301 bytes [19:00:32]NVStorageSaveData done [19:00:32]OFDSenderStorePacket done [19:00:32]KKMCreateOFDPacket done [19:00:32]NVStorageSaveData kkm_last_timestamp [19:00:32]File name is /storage/kkm_last_timestamp [19:00:32]Write 4 bytes [19:00:32]NVStorageSaveData done [19:00:32]ExternCall_PrintAddStr [19:00:32]wPrintStart [19:00:32]Write to MH i2c: 01 00 00 31 00 31 [19:00:32]Write i2c OK [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 07 00 [19:00:32]MH_I2C_Read... [19:00:32]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:00:32]RasterBufferAndPrint [19:00:32]line Счет N : (1)411777 [19:00:32]line ИНН: 02508201610067 [19:00:32]line Контрольно-Кассовый Чек [19:00:32]line ПРОДАЖА [19:00:32]line ТРК (МРК, ГНК) : 12 [19:00:32]line Товар: 2710124130 [19:00:32]line Аи-92-К-2 [19:00:32]line 46.730 * 64.20 [19:00:32]line = 3000.07 [19:00:32]line НДС 12% НСП 1% [19:00:32]line > о реализуемом товаре [19:00:32]line ОКРУГЛЕНИЕ: -0.07 [19:00:32]line ИТОГО: 3000.00 [19:00:32]line Внесено: 3000.00 [19:00:32]line СДАЧА: 0.00 [19:00:32]line НСП 1% : 26.55 [19:00:32]line НДС 12% : 318.59 [19:00:32]line Наличными: 3000.00 [19:00:32]line Безнал.: 0.00 [19:00:32]line Место: АЗС № 92 "Партнер Нефть" [19:00:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:00:32]line СНО: Общий режим [19:00:32]line Чек 217 17.02.2025 19:00 [19:00:32]line Смена: 644 ФФД: 1.0 [19:00:32]line ЗНМ: 0300000118 [19:00:32]line РНМ: 0000000000091857 [19:00:32]line Версия ККМ: 001 [19:00:32]line ФМ: 0000000000871826 [19:00:32]line ФД: 186630 [19:00:32]line ФПД: 233024991688973 [19:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190031&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186630&fm=233024991688973&tin=02508201610067®Number=0000000000091857&sum=300000 [19:00:32]written 0, free lines is 4095 [19:00:32]OFD Sender: Processing packet 186630 [packets to send 49, broken 48] [19:00:32]ProducePacketName [19:00:32]name=ofd_packets/00186630 [19:00:32]OFD Sender: To server: pG, [19:00:32]CommunicateWithHost lk.salyk.kg:30040 [19:00:32]ConnectInit lk.salyk.kg [19:00:33]Connected sock=10 [19:00:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 37 69 07 01 CB FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 8A B6 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 E7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 4F 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 D9 02 00 35 04 06 00 D3 EF 5B DA 79 0D 3C 05 90 D9 65 BB 3E 86 [19:00:33]Write to MH i2c: 01 00 00 5C 00 5C [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 [19:00:33]MH_I2C_Read... [19:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 17 1C 47 00 75 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 06 D9 02 00 F4 03 04 00 A9 2D B3 67 B6 04 01 00 00 5D 8D C1 8D 5A 81 82 12 [19:00:33]CommunicateWithHost err = 0 [19:00:33]CheckOFDResponse [19:00:33]1017 (14) - 77093643461234 [19:00:33]1041 (16) - 0000000000871826 [19:00:33]1040 (4) - 186630 [19:00:33]1012 (4) - 17.02.2025 12:38 [19:00:33]1206 (1) - 0 [19:00:33]OFD Sender: Remove packet 186630 [19:00:33]ProducePacketName [19:00:33]name=ofd_packets/00186630 [19:00:33]NVStorageDeleteData [19:00:33]Read from MH i2c: 01 07 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 18 0D 88 [19:00:33]RasterBufferAndPrint [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]line [19:00:33]written 0, free lines is 3520 [19:00:33]MH_Cut [19:00:33]Write to MH i2c: D1 01 00 63 00 01 35 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 01 00 [19:00:33]MH_I2C_Read... [19:00:33]Read from MH i2c: D1 01 00 63 00 00 34 [19:00:33]Write to MH i2c: 01 00 00 64 00 64 [19:00:33]Write i2c OK [19:00:33]MH_I2C_Read... [19:00:34]OFD Sender: No OFD packet to send [19:00:34]*** Cut start [19:00:34]*** Partial cut [19:00:34]*** CUTSNS_PIN = 1 [19:00:34]*** CUTSNS_PIN = 0 [19:00:34]*** Brake cut motor [19:00:34]Read from MH i2c: 01 [19:00:34]MH_I2C_Read... [19:00:34]*** Stop cut motor [19:00:34]*** Cut end [19:00:34]Read from MH i2c: 01 07 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [19:00:34]process_action close_receipt done [19:00:34]requested_data is exist [19:00:34]produce_requested_data [19:00:34]requested_item fm.sn is exist - process it [19:00:34]wFMCommunicate request_size=4 [19:00:34]MH_SAM_APDU [19:00:34]CAPDU: 80 11 00 00 [19:00:34]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:34]Read from MH i2c: E2 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: E2 17 00 [19:00:34]MH_I2C_Read... [19:00:34]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 32 [19:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:34]wFMCommunicate OK [19:00:34]requested_item fd.num is exist - process it [19:00:34]SAM_PROTO_GetFieldsCounters [19:00:34]wFMCommunicate request_size=4 [19:00:34]MH_SAM_APDU [19:00:34]CAPDU: 80 13 00 00 [19:00:34]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [19:00:34]Write i2c OK [19:00:34]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 62 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [19:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 06 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetFieldsCounters done [19:00:35]requested_item shift.num is exist - process it [19:00:35]requested_item shift.opened is exist - process it [19:00:35]req_shift_opened [19:00:35]FM_GetShiftState [19:00:35]SAM_PROTO_GetShiftState [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 01 00 [19:00:35]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 08 [19:00:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetShiftState done [19:00:35]FM_GetShiftState done [19:00:35]req_shift_opened done [19:00:35]requested_item shift.open_date is exist - process it [19:00:35]req_shift_open_date [19:00:35]req_shift_open_date done [19:00:35]produce_requested_data done [19:00:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186630,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:00:35]process_action_free close_receipt [19:00:35]json_value_free [19:00:35]json_value_free done [19:00:35]process_json_proto returns [19:00:35]Send response to host [19:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186630,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:00:35]free response buf [19:00:35]execute_script done [19:00:35]execute_script returns [19:00:35]free content buf [19:00:35]Sock 9.Close socket [19:00:35]Sock 9.Thread stoped [19:00:35]accept exits with 7 [19:00:35]New connection [19:00:35]New thread 3066543460 created [19:00:35]Thread 3066686820 joined [19:00:35]Waiting for new connection... [19:00:35] Sock 7.Parse request [19:00:35]Sock 7.Check first char [19:00:35]Sock 7.First char is OK [19:00:35]request: POST /json_proto HTTP/1.0 [19:00:35]Method: POST [19:00:35]URL: /json_proto [19:00:35]Method is POST - this is cgi request [19:00:35]url: /json_proto [19:00:35]query_string will be loaded in cgi processing [19:00:35]execute_cgi json_proto POST (null) [19:00:35]execute_cgi path=json_proto method=POST [19:00:35]POST find Content-Length [19:00:35]Host: 172.17.46.131:8080 [19:00:35]Content-Length: 799 [19:00:35]Content-Type: application/json [19:00:35] [19:00:35]POST finish read [19:00:35]Found Content-Length = 799 [19:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:35]execute_script... [19:00:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:35]POST & json_proto [19:00:35]process_json_proto [19:00:35]json parsed OK: [19:00:35]protocol is kg_v1.0 [19:00:35]action value=close_receipt [19:00:35]process_action close_receipt [19:00:35]cmd_close_receipt [19:00:35]MH_GetDate [19:00:35]Write to MH i2c: F0 00 00 68 00 57 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: F0 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: F0 09 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: F0 09 00 68 00 00 54 87 B3 67 7E 41 4F 65 C8 [19:00:35]GetLastDocTimeStamp 1739818831 [19:00:35]current date 1739818836 [19:00:35]FM_GetShiftState [19:00:35]SAM_PROTO_GetShiftState [19:00:35]wFMCommunicate request_size=4 [19:00:35]MH_SAM_APDU [19:00:35]CAPDU: 80 13 01 00 [19:00:35]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [19:00:35]Write i2c OK [19:00:35]MH_I2C_Read... [19:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:35]Read from MH i2c: E2 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 [19:00:35]MH_I2C_Read... [19:00:35]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0A [19:00:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:00:35]wFMCommunicate OK [19:00:35]SAM_PROTO_GetShiftState done [19:00:35]FM_GetShiftState done [19:00:35]opened in 1739752571 [19:00:35]opened+sec_in_day 1739838971 [19:00:35]quantity*price = 200013 [19:00:35]sum+1 = 200014 [19:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 218 17.02.2025 19:00 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186631 ФПД: 69800349906007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186631&fm=69800349906007&tin=02508201610067®Number=0000000000091857&sum=200013 [19:00:37]StoreToDocumentArchive [19:00:37]shift 644 fd 186631 [19:00:37]save to /storage/0644/doc_00186631 [19:00:37]save last doc name /storage/0644/doc_00186631 to /storage/kkm_last_doc_name [19:00:37]save OK [19:00:37]Clear old archive folders... [19:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:00:37]tlvbuf is 0142AF20 [19:00:37]SAM_PROTO_ClearQueue [19:00:37]wFMCommunicate request_size=4 [19:00:37]MH_SAM_APDU [19:00:37]CAPDU: 80 09 00 00 [19:00:37]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:37]Read from MH i2c: E2 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:00:37]RAPDU: 90 00 [19:00:37]wFMCommunicate OK [19:00:37]SAM_PROTO_ClearQueue done [19:00:37]KKMCreateOFDPacket [19:00:37]OFDProtocolAddRootSTLVToBuf [19:00:37]FM_MakeSignedData [19:00:37]FM_MakeSignedData [19:00:37]SAM_PROTO_SignData [19:00:37]wFMCommunicate request_size=4 [19:00:37]MH_SAM_APDU [19:00:37]CAPDU: 80 0D 01 02 [19:00:37]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:37]Read from MH i2c: E2 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:00:37]RAPDU: 90 00 [19:00:37]wFMCommunicate OK [19:00:37]wFMCommunicate request_size=255 [19:00:37]MH_SAM_APDU [19:00:37]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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 54 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 D9 02 00 35 04 06 00 3F 7B A9 0F [19:00:37]Write to MH i2c: E2 02 01 78 00 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 54 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 D9 02 00 35 04 06 00 3F 7B A9 0F 00 00 CD [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:37]Read from MH i2c: E2 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [19:00:37]RAPDU: 90 00 [19:00:37]wFMCommunicate OK [19:00:37]wFMCommunicate request_size=7 [19:00:37]MH_SAM_APDU [19:00:37]CAPDU: 80 0D 02 02 02 B4 57 [19:00:37]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 B4 57 00 00 02 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:37]Read from MH i2c: E2 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [19:00:37]RAPDU: 90 00 [19:00:37]wFMCommunicate OK [19:00:37]wFMCommunicate request_size=4 [19:00:37]MH_SAM_APDU [19:00:37]CAPDU: 80 0D 03 02 [19:00:37]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:37]Read from MH i2c: E2 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 0B 00 [19:00:37]MH_I2C_Read... [19:00:37]Read from MH i2c: E2 0B 00 7A 00 00 D3 A9 4E 06 2B 5C 01 B4 90 00 02 [19:00:37]RAPDU: D3 A9 4E 06 2B 5C 01 B4 90 00 [19:00:37]wFMCommunicate OK [19:00:37]SAM_PROTO_SignData done [19:00:37]FM_MakeSignedData done [19:00:37]CreateOFDProtocolMessage [19:00:37]wFMCommunicate request_size=4 [19:00:37]MH_SAM_APDU [19:00:37]CAPDU: 80 11 00 00 [19:00:37]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [19:00:37]Write i2c OK [19:00:37]MH_I2C_Read... [19:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:38]Read from MH i2c: E2 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 17 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 48 [19:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:38]wFMCommunicate OK [19:00:38]CreateOFDProtocolMessage done [19:00:38]OFDSenderStorePacket 186631 [19:00:38]StoreOFDPacket docnum=186631 [19:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 B7 04 01 FA A6 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 54 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 D9 02 00 35 04 06 00 3F 7B A9 0F B4 57 D3 A9 4E 06 2B 5C 01 B4 [19:00:38]CheckFolder [19:00:38]dirname=/storage/ofd_packets [19:00:38]CheckFolder done [19:00:38]ProducePacketName [19:00:38]name=ofd_packets/00186631 [19:00:38]NVStorageSaveData ofd_packets/00186631 [19:00:38]File name is /storage/ofd_packets/00186631 [19:00:38]Write 298 bytes [19:00:38]NVStorageSaveData done [19:00:38]OFDSenderStorePacket done [19:00:38]KKMCreateOFDPacket done [19:00:38]NVStorageSaveData kkm_last_timestamp [19:00:38]File name is /storage/kkm_last_timestamp [19:00:38]Write 4 bytes [19:00:38]NVStorageSaveData done [19:00:38]ExternCall_PrintAddStr [19:00:38]wPrintStart [19:00:38]Write to MH i2c: 01 00 00 7C 00 7C [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 07 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [19:00:38]RasterBufferAndPrint [19:00:38]line Счет N : (1)411778 [19:00:38]line ИНН: 02508201610067 [19:00:38]line Контрольно-Кассовый Чек [19:00:38]line ПРОДАЖА [19:00:38]line ТРК (МРК, ГНК) : 5 [19:00:38]line Товар: 2710194210 [19:00:38]line ДТ-К-5 [19:00:38]line 27.550 * 72.60 [19:00:38]line = 2000.13 [19:00:38]line НДС 12% НСП 1% [19:00:38]line > о реализуемом товаре [19:00:38]line ИТОГО: 2000.13 [19:00:38]line НСП 1% : 17.70 [19:00:38]line НДС 12% : 212.40 [19:00:38]line Наличными: 0.00 [19:00:38]line Безнал.: 2000.13 [19:00:38]line Место: АЗС № 92 "Партнер Нефть" [19:00:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:00:38]line СНО: Общий режим [19:00:38]line Чек 218 17.02.2025 19:00 [19:00:38]line Смена: 644 ФФД: 1.0 [19:00:38]line ЗНМ: 0300000118 [19:00:38]line РНМ: 0000000000091857 [19:00:38]line Версия ККМ: 001 [19:00:38]line Платежная система: O! деньги [19:00:38]line ФМ: 0000000000871826 [19:00:38]line ФД: 186631 [19:00:38]line ФПД: 69800349906007 [19:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190036&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186631&fm=69800349906007&tin=02508201610067®Number=0000000000091857&sum=200013 [19:00:38]written 0, free lines is 4095 [19:00:38]OFD Sender: Processing packet 186631 [packets to send 49, broken 48] [19:00:38]ProducePacketName [19:00:38]name=ofd_packets/00186631 [19:00:38]OFD Sender: To server: pG, [19:00:38]CommunicateWithHost lk.salyk.kg:30040 [19:00:38]ConnectInit lk.salyk.kg [19:00:38]Connected sock=10 [19:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A2 B7 04 01 FA A6 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 54 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 D9 02 00 35 04 06 00 3F 7B A9 0F B4 57 D3 A9 4E 06 2B 5C 01 B4 [19:00:38]Write to MH i2c: 01 00 00 A6 00 A6 [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 07 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 FF 0C B8 [19:00:38]RasterBufferAndPrint [19:00:38]line [19:00:38]line [19:00:38]line [19:00:38]line [19:00:38]line [19:00:38]written 0, free lines is 3354 [19:00:38]MH_Cut [19:00:38]Write to MH i2c: D1 01 00 AD 00 01 7F [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: D1 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: D1 01 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: D1 01 00 AD 00 00 7E [19:00:38]Write to MH i2c: 01 00 00 AE 00 AE [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 69 FE 47 00 15 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 07 D9 02 00 F4 03 04 00 AE 2D B3 67 B6 04 01 00 00 6B A0 D9 F8 B7 18 3D 46 [19:00:38]CommunicateWithHost err = 0 [19:00:38]CheckOFDResponse [19:00:38]1017 (14) - 77093643461234 [19:00:38]1041 (16) - 0000000000871826 [19:00:38]1040 (4) - 186631 [19:00:38]1012 (4) - 17.02.2025 12:38 [19:00:38]1206 (1) - 0 [19:00:38]OFD Sender: Remove packet 186631 [19:00:38]ProducePacketName [19:00:38]name=ofd_packets/00186631 [19:00:38]NVStorageDeleteData [19:00:39]*** Cut start [19:00:39]*** Partial cut [19:00:39]*** CUTSNS_PIN = 1 [19:00:39]OFD Sender: No OFD packet to send [19:00:39]*** CUTSNS_PIN = 0 [19:00:39]*** Brake cut motor [19:00:39]Read from MH i2c: 01 [19:00:39]MH_I2C_Read... [19:00:39]*** Stop cut motor [19:00:39]*** Cut end [19:00:39]Read from MH i2c: 01 07 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [19:00:39]process_action close_receipt done [19:00:39]requested_data is exist [19:00:39]produce_requested_data [19:00:39]requested_item fm.sn is exist - process it [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 11 00 00 [19:00:39]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 17 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [19:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:40]wFMCommunicate OK [19:00:40]requested_item fd.num is exist - process it [19:00:40]SAM_PROTO_GetFieldsCounters [19:00:40]wFMCommunicate request_size=4 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 13 00 00 [19:00:40]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 62 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [19:00:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 07 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:40]wFMCommunicate OK [19:00:40]SAM_PROTO_GetFieldsCounters done [19:00:40]requested_item shift.num is exist - process it [19:00:40]requested_item shift.opened is exist - process it [19:00:40]req_shift_opened [19:00:40]FM_GetShiftState [19:00:40]SAM_PROTO_GetShiftState [19:00:40]wFMCommunicate request_size=4 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 13 01 00 [19:00:40]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0E 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 52 [19:00:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:00:40]wFMCommunicate OK [19:00:40]SAM_PROTO_GetShiftState done [19:00:40]FM_GetShiftState done [19:00:40]req_shift_opened done [19:00:40]requested_item shift.open_date is exist - process it [19:00:40]req_shift_open_date [19:00:40]req_shift_open_date done [19:00:40]produce_requested_data done [19:00:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186631,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:00:40]process_action_free close_receipt [19:00:40]json_value_free [19:00:40]json_value_free done [19:00:40]process_json_proto returns [19:00:40]Send response to host [19:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186631,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:00:40]free response buf [19:00:40]execute_script done [19:00:40]execute_script returns [19:00:40]free content buf [19:00:40]Sock 7.Close socket [19:00:40]Sock 7.Thread stoped [19:00:40]accept exits with 9 [19:00:40]New connection [19:00:40]New thread 3066686820 created [19:00:40]Thread 3066543460 joined [19:00:40]Waiting for new connection... [19:00:40] Sock 9.Parse request [19:00:40]Sock 9.Check first char [19:00:40]Sock 9.First char is OK [19:00:40]request: POST /json_proto HTTP/1.0 [19:00:40]Method: POST [19:00:40]URL: /json_proto [19:00:40]Method is POST - this is cgi request [19:00:40]url: /json_proto [19:00:40]query_string will be loaded in cgi processing [19:00:40]execute_cgi json_proto POST (null) [19:00:40]execute_cgi path=json_proto method=POST [19:00:40]POST find Content-Length [19:00:40]Host: 172.17.46.131:8080 [19:00:40]Content-Length: 792 [19:00:40]Content-Type: application/json [19:00:40] [19:00:40]POST finish read [19:00:40]Found Content-Length = 792 [19:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:40]execute_script... [19:00:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:40]POST & json_proto [19:00:40]process_json_proto [19:00:40]json parsed OK: [19:00:40]protocol is kg_v1.0 [19:00:40]action value=close_receipt [19:00:40]process_action close_receipt [19:00:40]cmd_close_receipt [19:00:40]MH_GetDate [19:00:40]Write to MH i2c: F0 00 00 B2 00 A1 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: F0 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: F0 09 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: F0 09 00 B2 00 00 59 87 B3 67 7E 41 4F 65 17 [19:00:40]GetLastDocTimeStamp 1739818836 [19:00:40]current date 1739818841 [19:00:40]FM_GetShiftState [19:00:40]SAM_PROTO_GetShiftState [19:00:40]wFMCommunicate request_size=4 [19:00:40]MH_SAM_APDU [19:00:40]CAPDU: 80 13 01 00 [19:00:40]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:40]Read from MH i2c: E2 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0E 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 54 [19:00:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:00:40]wFMCommunicate OK [19:00:40]SAM_PROTO_GetShiftState done [19:00:40]FM_GetShiftState done [19:00:40]opened in 1739752571 [19:00:40]opened+sec_in_day 1739838971 [19:00:40]quantity*price = 0 [19:00:40]sum+1 = 1 [19:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 219 17.02.2025 19:00 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливная Карта 68912 ФМ: 0000000000871826 ФД: 186632 ФПД: 245371137445186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190041&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186632&fm=245371137445186&tin=02508201610067®Number=0000000000091857&sum=0 [19:00:42]StoreToDocumentArchive [19:00:42]shift 644 fd 186632 [19:00:42]save to /storage/0644/doc_00186632 [19:00:42]save last doc name /storage/0644/doc_00186632 to /storage/kkm_last_doc_name [19:00:42]save OK [19:00:42]Clear old archive folders... [19:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:42]tlvbuf is 01438EC0 [19:00:42]SAM_PROTO_ClearQueue [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 09 00 00 [19:00:42]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 03 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [19:00:42]RAPDU: 90 00 [19:00:42]wFMCommunicate OK [19:00:42]SAM_PROTO_ClearQueue done [19:00:42]KKMCreateOFDPacket [19:00:42]OFDProtocolAddRootSTLVToBuf [19:00:42]FM_MakeSignedData [19:00:42]FM_MakeSignedData [19:00:42]SAM_PROTO_SignData [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 0D 01 02 [19:00:42]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 03 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:00:42]RAPDU: 90 00 [19:00:42]wFMCommunicate OK [19:00:42]wFMCommunicate request_size=255 [19:00:42]MH_SAM_APDU [19:00: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 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 59 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 D9 02 00 35 04 06 00 DF [19:00:42]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 59 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 D9 02 00 35 04 06 00 DF 00 00 3F [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:43]Read from MH i2c: E2 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 03 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:00:43]RAPDU: 90 00 [19:00:43]wFMCommunicate OK [19:00:43]wFMCommunicate request_size=10 [19:00:43]MH_SAM_APDU [19:00:43]CAPDU: 80 0D 02 02 05 29 EB 7C 4D 42 [19:00:43]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 29 EB 7C 4D 42 00 00 66 [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:43]Read from MH i2c: E2 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 03 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:00:43]RAPDU: 90 00 [19:00:43]wFMCommunicate OK [19:00:43]wFMCommunicate request_size=4 [19:00:43]MH_SAM_APDU [19:00:43]CAPDU: 80 0D 03 02 [19:00:43]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:43]Read from MH i2c: E2 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 0B 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 0B 00 C4 00 00 1E 60 23 7B A0 6A F7 36 90 00 93 [19:00:43]RAPDU: 1E 60 23 7B A0 6A F7 36 90 00 [19:00:43]wFMCommunicate OK [19:00:43]SAM_PROTO_SignData done [19:00:43]FM_MakeSignedData done [19:00:43]CreateOFDProtocolMessage [19:00:43]wFMCommunicate request_size=4 [19:00:43]MH_SAM_APDU [19:00:43]CAPDU: 80 11 00 00 [19:00:43]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:43]Read from MH i2c: E2 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 17 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [19:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:43]wFMCommunicate OK [19:00:43]CreateOFDProtocolMessage done [19:00:43]OFDSenderStorePacket 186632 [19:00:43]StoreOFDPacket docnum=186632 [19:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 63 07 01 7F 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 59 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 D9 02 00 35 04 06 00 DF 29 EB 7C 4D 42 1E 60 23 7B A0 6A F7 36 [19:00:43]CheckFolder [19:00:43]dirname=/storage/ofd_packets [19:00:43]CheckFolder done [19:00:43]ProducePacketName [19:00:43]name=ofd_packets/00186632 [19:00:43]NVStorageSaveData ofd_packets/00186632 [19:00:43]File name is /storage/ofd_packets/00186632 [19:00:43]Write 301 bytes [19:00:43]NVStorageSaveData done [19:00:43]OFDSenderStorePacket done [19:00:43]KKMCreateOFDPacket done [19:00:43]NVStorageSaveData kkm_last_timestamp [19:00:43]File name is /storage/kkm_last_timestamp [19:00:43]Write 4 bytes [19:00:43]NVStorageSaveData done [19:00:43]ExternCall_PrintAddStr [19:00:43]wPrintStart [19:00:43]Write to MH i2c: 01 00 00 C6 00 C6 [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: 01 [19:00:43]MH_I2C_Read... [19:00:43]OFD Sender: Processing packet 186632 [packets to send 49, broken 48] [19:00:43]ProducePacketName [19:00:43]name=ofd_packets/00186632 [19:00:43]OFD Sender: To server: pG, [19:00:43]CommunicateWithHost lk.salyk.kg:30040 [19:00:43]ConnectInit lk.salyk.kg [19:00:43]Read from MH i2c: 01 07 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [19:00:43]RasterBufferAndPrint [19:00:43]line Счет N : (1)411779 [19:00:43]line ИНН: 02508201610067 [19:00:43]line Контрольно-Кассовый Чек [19:00:43]line ПРОДАЖА [19:00:43]line ТРК (МРК, ГНК) : 32 [19:00:43]line Товар: 2710124130 [19:00:43]line Аи-92-К-2 [19:00:43]line 40.000 * 0.00 [19:00:43]line = 0.00 [19:00:43]line НДС 12% НСП 1% [19:00:43]line > о реализуемом товаре [19:00:43]line ИТОГО: 0.00 [19:00:43]line НСП 1% : 0.00 [19:00:43]line НДС 12% : 0.00 [19:00:43]line Наличными: 0.00 [19:00:43]line Безнал.: 0.00 [19:00:43]line Место: АЗС № 92 "Партнер Нефть" [19:00:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:00:43]line СНО: Общий режим [19:00:43]line Чек 219 17.02.2025 19:00 [19:00:43]line Смена: 644 ФФД: 1.0 [19:00:43]line ЗНМ: 0300000118 [19:00:43]line РНМ: 0000000000091857 [19:00:43]line Версия ККМ: 001 [19:00:43]line Талоны: Топливная Карта [19:00:43]line 68912 [19:00:43]line ФМ: 0000000000871826 [19:00:43]line ФД: 186632 [19:00:43]line ФПД: 245371137445186 [19:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190041&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186632&fm=245371137445186&tin=02508201610067®Number=0000000000091857&sum=0 [19:00:43]written 0, free lines is 4095 [19:00:43]Connected sock=11 [19:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 EC 63 07 01 7F 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 59 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 D9 02 00 35 04 06 00 DF 29 EB 7C 4D 42 1E 60 23 7B A0 6A F7 36 [19:00:43]Write to MH i2c: 01 00 00 F0 00 F0 [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: 01 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: 01 07 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 2B 0D 2F [19:00:43]RasterBufferAndPrint [19:00:43]line [19:00:43]line [19:00:43]line [19:00:43]line [19:00:43]line [19:00:43]written 0, free lines is 3401 [19:00:43]MH_Cut [19:00:43]Write to MH i2c: D1 01 00 F7 00 01 C9 [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: D1 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: D1 01 00 [19:00:43]MH_I2C_Read... [19:00:43]Read from MH i2c: D1 01 00 F7 00 00 C8 [19:00:43]Write to MH i2c: 01 00 00 F8 00 F8 [19:00:43]Write i2c OK [19:00:43]MH_I2C_Read... [19:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AE 78 47 00 8D 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 08 D9 02 00 F4 03 04 00 B3 2D B3 67 B6 04 01 00 00 6B 8F EA C5 A5 53 86 0D [19:00:44]CommunicateWithHost err = 0 [19:00:44]CheckOFDResponse [19:00:44]1017 (14) - 77093643461234 [19:00:44]1041 (16) - 0000000000871826 [19:00:44]1040 (4) - 186632 [19:00:44]1012 (4) - 17.02.2025 12:38 [19:00:44]1206 (1) - 0 [19:00:44]OFD Sender: Remove packet 186632 [19:00:44]ProducePacketName [19:00:44]name=ofd_packets/00186632 [19:00:44]NVStorageDeleteData [19:00:44]*** Cut start [19:00:44]*** Partial cut [19:00:44]*** CUTSNS_PIN = 1 [19:00:44]*** CUTSNS_PIN = 0 [19:00:44]OFD Sender: No OFD packet to send [19:00:44]*** Brake cut motor [19:00:45]Read from MH i2c: 01 [19:00:45]MH_I2C_Read... [19:00:45]*** Stop cut motor [19:00:45]*** Cut end [19:00:45]Read from MH i2c: 01 07 00 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [19:00:45]process_action close_receipt done [19:00:45]requested_data is exist [19:00:45]produce_requested_data [19:00:45]requested_item fm.sn is exist - process it [19:00:45]wFMCommunicate request_size=4 [19:00:45]MH_SAM_APDU [19:00:45]CAPDU: 80 11 00 00 [19:00:45]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [19:00:45]Write i2c OK [19:00:45]MH_I2C_Read... [19:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:45]Read from MH i2c: E2 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 17 00 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [19:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:00:45]wFMCommunicate OK [19:00:45]requested_item fd.num is exist - process it [19:00:45]SAM_PROTO_GetFieldsCounters [19:00:45]wFMCommunicate request_size=4 [19:00:45]MH_SAM_APDU [19:00:45]CAPDU: 80 13 00 00 [19:00:45]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [19:00:45]Write i2c OK [19:00:45]MH_I2C_Read... [19:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:45]Read from MH i2c: E2 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 62 00 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 08 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:45]wFMCommunicate OK [19:00:45]SAM_PROTO_GetFieldsCounters done [19:00:45]requested_item shift.num is exist - process it [19:00:45]requested_item shift.opened is exist - process it [19:00:45]req_shift_opened [19:00:45]FM_GetShiftState [19:00:45]SAM_PROTO_GetShiftState [19:00:45]wFMCommunicate request_size=4 [19:00:45]MH_SAM_APDU [19:00:45]CAPDU: 80 13 01 00 [19:00:45]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [19:00:45]Write i2c OK [19:00:45]MH_I2C_Read... [19:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:45]Read from MH i2c: E2 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 0E 00 [19:00:45]MH_I2C_Read... [19:00:45]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9C [19:00:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:00:45]wFMCommunicate OK [19:00:45]SAM_PROTO_GetShiftState done [19:00:45]FM_GetShiftState done [19:00:45]req_shift_opened done [19:00:45]requested_item shift.open_date is exist - process it [19:00:45]req_shift_open_date [19:00:45]req_shift_open_date done [19:00:45]produce_requested_data done [19:00:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186632,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:00:45]process_action_free close_receipt [19:00:45]json_value_free [19:00:45]json_value_free done [19:00:45]process_json_proto returns [19:00:45]Send response to host [19:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186632,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:00:45]free response buf [19:00:45]execute_script done [19:00:45]execute_script returns [19:00:45]free content buf [19:00:45]Sock 9.Close socket [19:00:45]Sock 9.Thread stoped [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:19]OFD Sender: No OFD packet to send [19:02:24]OFD Sender: No OFD packet to send [19:02:26]accept exits with 7 [19:02:26]New connection [19:02:26]New thread 3066543460 created [19:02:26]Thread 3066686820 joined [19:02:26]Waiting for new connection... [19:02:26] Sock 7.Parse request [19:02:26]Sock 7.Check first char [19:02:26]Sock 7.First char is OK [19:02:26]request: POST /json_proto HTTP/1.0 [19:02:26]Method: POST [19:02:26]URL: /json_proto [19:02:26]Method is POST - this is cgi request [19:02:26]url: /json_proto [19:02:26]query_string will be loaded in cgi processing [19:02:26]execute_cgi json_proto POST (null) [19:02:26]execute_cgi path=json_proto method=POST [19:02:26]POST find Content-Length [19:02:26]Host: 172.17.46.131:8080 [19:02:26]Content-Length: 800 [19:02:26]Content-Type: application/json [19:02:26] [19:02:26]POST finish read [19:02:26]Found Content-Length = 800 [19:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]execute_script... [19:02: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)411782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 9.740, "sum" : 700.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:26]POST & json_proto [19:02:26]process_json_proto [19:02:26]json parsed OK: [19:02:26]protocol is kg_v1.0 [19:02:26]action value=close_receipt [19:02:26]process_action close_receipt [19:02:26]cmd_close_receipt [19:02:26]MH_GetDate [19:02:26]Write to MH i2c: F0 00 00 FC 00 EB [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: F0 09 00 FC 00 00 C3 87 B3 67 7E 41 4F 65 CB [19:02:26]GetLastDocTimeStamp 1739818841 [19:02:26]current date 1739818947 [19:02:26]FM_GetShiftState [19:02:26]SAM_PROTO_GetShiftState [19:02:26]wFMCommunicate request_size=4 [19:02:26]MH_SAM_APDU [19:02:26]CAPDU: 80 13 01 00 [19:02:26]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [19:02:26]Write i2c OK [19:02:26]MH_I2C_Read... [19:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:26]Read from MH i2c: E2 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 [19:02:26]MH_I2C_Read... [19:02:26]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9E [19:02:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:02:26]wFMCommunicate OK [19:02:26]SAM_PROTO_GetShiftState done [19:02:26]FM_GetShiftState done [19:02:26]opened in 1739752571 [19:02:26]opened+sec_in_day 1739838971 [19:02:26]quantity*price = 70030 [19:02:26]sum+1 = 70032 [19:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.31 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.31 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 220 17.02.2025 19:02 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186633 ФПД: 276235232763784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186633&fm=276235232763784&tin=02508201610067®Number=0000000000091857&sum=70031 [19:02:27]StoreToDocumentArchive [19:02:27]shift 644 fd 186633 [19:02:27]save to /storage/0644/doc_00186633 [19:02:27]save last doc name /storage/0644/doc_00186633 to /storage/kkm_last_doc_name [19:02:27]save OK [19:02:27]Clear old archive folders... [19:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:02:27]tlvbuf is 0143ECC0 [19:02:27]SAM_PROTO_ClearQueue [19:02:27]wFMCommunicate request_size=4 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 09 00 00 [19:02:27]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:27]Read from MH i2c: E2 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:02:27]RAPDU: 90 00 [19:02:27]wFMCommunicate OK [19:02:27]SAM_PROTO_ClearQueue done [19:02:27]KKMCreateOFDPacket [19:02:27]OFDProtocolAddRootSTLVToBuf [19:02:27]FM_MakeSignedData [19:02:27]FM_MakeSignedData [19:02:27]SAM_PROTO_SignData [19:02:27]wFMCommunicate request_size=4 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 0D 01 02 [19:02:27]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [19:02:27]Write i2c OK [19:02:27]MH_I2C_Read... [19:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:27]Read from MH i2c: E2 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 [19:02:27]MH_I2C_Read... [19:02:27]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:02:27]RAPDU: 90 00 [19:02:27]wFMCommunicate OK [19:02:27]wFMCommunicate request_size=255 [19:02:27]MH_SAM_APDU [19:02:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C3 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 D9 02 00 35 04 06 00 FB [19:02:27]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C3 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 D9 02 00 35 04 06 00 FB 00 00 1C [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:02:28]RAPDU: 90 00 [19:02:28]wFMCommunicate OK [19:02:28]wFMCommunicate request_size=10 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 0D 02 02 05 3C 06 EC 5F 88 [19:02:28]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 3C 06 EC 5F 88 00 00 A7 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:02:28]RAPDU: 90 00 [19:02:28]wFMCommunicate OK [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 0D 03 02 [19:02:28]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0B 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 0B 00 0E 01 00 31 28 4E 1A 9E 9A 00 92 90 00 16 [19:02:28]RAPDU: 31 28 4E 1A 9E 9A 00 92 90 00 [19:02:28]wFMCommunicate OK [19:02:28]SAM_PROTO_SignData done [19:02:28]FM_MakeSignedData done [19:02:28]CreateOFDProtocolMessage [19:02:28]wFMCommunicate request_size=4 [19:02:28]MH_SAM_APDU [19:02:28]CAPDU: 80 11 00 00 [19:02:28]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:28]Read from MH i2c: E2 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [19:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:02:28]wFMCommunicate OK [19:02:28]CreateOFDProtocolMessage done [19:02:28]OFDSenderStorePacket 186633 [19:02:28]StoreOFDPacket docnum=186633 [19:02:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 9A 07 01 74 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C3 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 D9 02 00 35 04 06 00 FB 3C 06 EC 5F 88 31 28 4E 1A 9E 9A 00 92 [19:02:28]CheckFolder [19:02:28]dirname=/storage/ofd_packets [19:02:28]CheckFolder done [19:02:28]ProducePacketName [19:02:28]name=ofd_packets/00186633 [19:02:28]NVStorageSaveData ofd_packets/00186633 [19:02:28]File name is /storage/ofd_packets/00186633 [19:02:28]Write 301 bytes [19:02:28]NVStorageSaveData done [19:02:28]OFDSenderStorePacket done [19:02:28]KKMCreateOFDPacket done [19:02:28]NVStorageSaveData kkm_last_timestamp [19:02:28]File name is /storage/kkm_last_timestamp [19:02:28]Write 4 bytes [19:02:28]NVStorageSaveData done [19:02:28]ExternCall_PrintAddStr [19:02:28]wPrintStart [19:02:28]Write to MH i2c: 01 00 00 10 01 11 [19:02:28]Write i2c OK [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 [19:02:28]MH_I2C_Read... [19:02:28]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [19:02:28]RasterBufferAndPrint [19:02:28]line Счет N : (1)411782 [19:02:28]line ИНН: 02508201610067 [19:02:28]line Контрольно-Кассовый Чек [19:02:28]line ПРОДАЖА [19:02:28]line ТРК (МРК, ГНК) : 23 [19:02:28]line Товар: 2710124500 [19:02:28]line Аи-95-К-5 [19:02:28]line 9.740 * 71.90 [19:02:28]line = 700.31 [19:02:28]line НДС 12% НСП 1% [19:02:28]line > о реализуемом товаре [19:02:28]line ИТОГО: 700.31 [19:02:28]line НСП 1% : 6.20 [19:02:28]line НДС 12% : 74.37 [19:02:28]line Наличными: 0.00 [19:02:28]line Безнал.: 700.31 [19:02:28]line Место: АЗС № 92 "Партнер Нефть" [19:02:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:02:28]line СНО: Общий режим [19:02:28]line Чек 220 17.02.2025 19:02 [19:02:28]line Смена: 644 ФФД: 1.0 [19:02:28]line ЗНМ: 0300000118 [19:02:28]line РНМ: 0000000000091857 [19:02:28]line Версия ККМ: 001 [19:02:28]line Платежная система: O! деньги [19:02:28]line ФМ: 0000000000871826 [19:02:28]line ФД: 186633 [19:02:28]line ФПД: 276235232763784 [19:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190227&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186633&fm=276235232763784&tin=02508201610067®Number=0000000000091857&sum=70031 [19:02:28]OFD Sender: Processing packet 186633 [packets to send 49, broken 48] [19:02:28]ProducePacketName [19:02:28]name=ofd_packets/00186633 [19:02:28]OFD Sender: To server: pG, [19:02:28]CommunicateWithHost lk.salyk.kg:30040 [19:02:28]ConnectInit lk.salyk.kg [19:02:28]written 0, free lines is 4095 [19:02:28]Connected sock=10 [19:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7C 9A 07 01 74 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 0C 26 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 8F 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 C3 87 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 D9 02 00 35 04 06 00 FB 3C 06 EC 5F 88 31 28 4E 1A 9E 9A 00 92 [19:02:29]Write to MH i2c: 01 00 00 3A 01 3B [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 07 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 07 0D 56 [19:02:29]RasterBufferAndPrint [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]line [19:02:29]written 0, free lines is 3342 [19:02:29]MH_Cut [19:02:29]Write to MH i2c: D1 01 00 41 01 01 14 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 01 00 [19:02:29]MH_I2C_Read... [19:02:29]Read from MH i2c: D1 01 00 41 01 00 13 [19:02:29]Write to MH i2c: 01 00 00 42 01 43 [19:02:29]Write i2c OK [19:02:29]MH_I2C_Read... [19:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 37 1B 47 00 44 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 09 D9 02 00 F4 03 04 00 1C 2E B3 67 B6 04 01 00 00 FB 9E 98 5C E3 8E 55 91 [19:02:29]CommunicateWithHost err = 0 [19:02:29]CheckOFDResponse [19:02:29]1017 (14) - 77093643461234 [19:02:29]1041 (16) - 0000000000871826 [19:02:29]1040 (4) - 186633 [19:02:29]1012 (4) - 17.02.2025 12:39 [19:02:29]1206 (1) - 0 [19:02:29]OFD Sender: Remove packet 186633 [19:02:29]ProducePacketName [19:02:29]name=ofd_packets/00186633 [19:02:29]NVStorageDeleteData [19:02:29]OFD Sender: No OFD packet to send [19:02:29]*** Cut start [19:02:29]*** Partial cut [19:02:29]*** CUTSNS_PIN = 1 [19:02:29]*** CUTSNS_PIN = 0 [19:02:30]*** Brake cut motor [19:02:30]Read from MH i2c: 01 [19:02:30]MH_I2C_Read... [19:02:30]*** Stop cut motor [19:02:30]*** Cut end [19:02:30]Read from MH i2c: 01 07 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [19:02:30]process_action close_receipt done [19:02:30]requested_data is exist [19:02:30]produce_requested_data [19:02:30]requested_item fm.sn is exist - process it [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 11 00 00 [19:02:30]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 17 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [19:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:02:30]wFMCommunicate OK [19:02:30]requested_item fd.num is exist - process it [19:02:30]SAM_PROTO_GetFieldsCounters [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 13 00 00 [19:02:30]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 62 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 09 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_GetFieldsCounters done [19:02:30]requested_item shift.num is exist - process it [19:02:30]requested_item shift.opened is exist - process it [19:02:30]req_shift_opened [19:02:30]FM_GetShiftState [19:02:30]SAM_PROTO_GetShiftState [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 13 01 00 [19:02:30]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E7 [19:02:30]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_GetShiftState done [19:02:30]FM_GetShiftState done [19:02:30]req_shift_opened done [19:02:30]requested_item shift.open_date is exist - process it [19:02:30]req_shift_open_date [19:02:30]req_shift_open_date done [19:02:30]produce_requested_data done [19:02:30]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186633,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:02:30]process_action_free close_receipt [19:02:30]json_value_free [19:02:30]json_value_free done [19:02:30]process_json_proto returns [19:02:30]Send response to host [19:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186633,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:02:30]free response buf [19:02:30]execute_script done [19:02:30]execute_script returns [19:02:30]free content buf [19:02:30]Sock 7.Close socket [19:02:30]Sock 7.Thread stoped [19:02:34]OFD Sender: No OFD packet to send [19:02:39]OFD Sender: No OFD packet to send [19:02:44]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:31]accept exits with 9 [19:06:31]New connection [19:06:31]New thread 3066686820 created [19:06:31]Thread 3066543460 joined [19:06:31]Waiting for new connection... [19:06:31] Sock 9.Parse request [19:06:31]Sock 9.Check first char [19:06:31]Sock 9.First char is OK [19:06:31]request: POST /json_proto HTTP/1.0 [19:06:31]Method: POST [19:06:31]URL: /json_proto [19:06:31]Method is POST - this is cgi request [19:06:31]url: /json_proto [19:06:31]query_string will be loaded in cgi processing [19:06:31]execute_cgi json_proto POST (null) [19:06:31]execute_cgi path=json_proto method=POST [19:06:31]POST find Content-Length [19:06:31]Host: 172.17.46.131:8080 [19:06:31]Content-Length: 799 [19:06:31]Content-Type: application/json [19:06:31] [19:06:31]POST finish read [19:06:31]Found Content-Length = 799 [19:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.190, "sum" : 2699.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2699.99 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:31]execute_script... [19:06:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411780", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 37.190, "sum" : 2699.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2699.99 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:31]POST & json_proto [19:06:31]process_json_proto [19:06:31]json parsed OK: [19:06:31]protocol is kg_v1.0 [19:06:31]action value=close_receipt [19:06:31]process_action close_receipt [19:06:31]cmd_close_receipt [19:06:31]MH_GetDate [19:06:31]Write to MH i2c: F0 00 00 46 01 36 [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: F0 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: F0 09 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: F0 09 00 46 01 00 B7 88 B3 67 7E 41 4F 65 0B [19:06:31]GetLastDocTimeStamp 1739818947 [19:06:31]current date 1739819191 [19:06:31]FM_GetShiftState [19:06:31]SAM_PROTO_GetShiftState [19:06:31]wFMCommunicate request_size=4 [19:06:31]MH_SAM_APDU [19:06:31]CAPDU: 80 13 01 00 [19:06:31]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [19:06:31]Write i2c OK [19:06:31]MH_I2C_Read... [19:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:31]Read from MH i2c: E2 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 [19:06:31]MH_I2C_Read... [19:06:31]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E9 [19:06:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:06:31]wFMCommunicate OK [19:06:31]SAM_PROTO_GetShiftState done [19:06:31]FM_GetShiftState done [19:06:31]opened in 1739752571 [19:06:31]opened+sec_in_day 1739838971 [19:06:31]quantity*price = 269999 [19:06:31]sum+1 = 270000 [19:06:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2699.99 НСП 1% : 23.89 НДС 12% : 286.72 Наличными: 0.00 Безнал.: 2699.99 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 221 17.02.2025 19:06 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186634 ФПД: 105168934347847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186634&fm=105168934347847&tin=02508201610067®Number=0000000000091857&sum=269999 [19:06:32]StoreToDocumentArchive [19:06:32]shift 644 fd 186634 [19:06:32]save to /storage/0644/doc_00186634 [19:06:32]save last doc name /storage/0644/doc_00186634 to /storage/kkm_last_doc_name [19:06:32]save OK [19:06:32]Clear old archive folders... [19:06:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:06:32]tlvbuf is 0143E8A0 [19:06:32]SAM_PROTO_ClearQueue [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 09 00 00 [19:06:32]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [19:06:32]RAPDU: 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_ClearQueue done [19:06:32]KKMCreateOFDPacket [19:06:32]OFDProtocolAddRootSTLVToBuf [19:06:32]FM_MakeSignedData [19:06:32]FM_MakeSignedData [19:06:32]SAM_PROTO_SignData [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 0D 01 02 [19:06:32]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:06:32]RAPDU: 90 00 [19:06:32]wFMCommunicate OK [19:06:32]wFMCommunicate request_size=255 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AF 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 88 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A D9 02 00 35 04 06 00 5F A6 8C F9 [19:06:32]Write to MH i2c: E2 02 01 56 01 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 46 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AF 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 88 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A D9 02 00 35 04 06 00 5F A6 8C F9 00 00 EC [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:06:32]RAPDU: 90 00 [19:06:32]wFMCommunicate OK [19:06:32]wFMCommunicate request_size=7 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 0D 02 02 02 24 47 [19:06:32]Write to MH i2c: E2 0A 00 57 01 80 0D 02 02 02 00 24 47 00 00 41 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:06:32]RAPDU: 90 00 [19:06:32]wFMCommunicate OK [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 0D 03 02 [19:06:32]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0B 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 0B 00 58 01 00 4E DA 8C B5 91 A8 A8 98 90 00 B7 [19:06:32]RAPDU: 4E DA 8C B5 91 A8 A8 98 90 00 [19:06:32]wFMCommunicate OK [19:06:32]SAM_PROTO_SignData done [19:06:32]FM_MakeSignedData done [19:06:32]CreateOFDProtocolMessage [19:06:32]wFMCommunicate request_size=4 [19:06:32]MH_SAM_APDU [19:06:32]CAPDU: 80 11 00 00 [19:06:32]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:32]Read from MH i2c: E2 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 17 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [19:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:06:32]wFMCommunicate OK [19:06:32]CreateOFDProtocolMessage done [19:06:32]OFDSenderStorePacket 186634 [19:06:32]StoreOFDPacket docnum=186634 [19:06:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C8 6F 04 01 02 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AF 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 88 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A D9 02 00 35 04 06 00 5F A6 8C F9 24 47 4E DA 8C B5 91 A8 A8 98 [19:06:32]CheckFolder [19:06:32]dirname=/storage/ofd_packets [19:06:32]CheckFolder done [19:06:32]ProducePacketName [19:06:32]name=ofd_packets/00186634 [19:06:32]NVStorageSaveData ofd_packets/00186634 [19:06:32]File name is /storage/ofd_packets/00186634 [19:06:32]Write 298 bytes [19:06:32]NVStorageSaveData done [19:06:32]OFDSenderStorePacket done [19:06:32]KKMCreateOFDPacket done [19:06:32]NVStorageSaveData kkm_last_timestamp [19:06:32]File name is /storage/kkm_last_timestamp [19:06:32]Write 4 bytes [19:06:32]NVStorageSaveData done [19:06:32]ExternCall_PrintAddStr [19:06:32]wPrintStart [19:06:32]Write to MH i2c: 01 00 00 5A 01 5B [19:06:32]Write i2c OK [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: 01 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: 01 07 00 [19:06:32]MH_I2C_Read... [19:06:32]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [19:06:32]RasterBufferAndPrint [19:06:32]line Счет N : (1)411780 [19:06:32]line ИНН: 02508201610067 [19:06:32]line Контрольно-Кассовый Чек [19:06:32]line ПРОДАЖА [19:06:32]line ТРК (МРК, ГНК) : 5 [19:06:32]line Товар: 2710194210 [19:06:32]line ДТ-К-5 [19:06:32]line 37.190 * 72.60 [19:06:32]line = 2699.99 [19:06:32]line НДС 12% НСП 1% [19:06:32]line > о реализуемом товаре [19:06:32]line ИТОГО: 2699.99 [19:06:32]line НСП 1% : 23.89 [19:06:32]line НДС 12% : 286.72 [19:06:32]line Наличными: 0.00 [19:06:32]line Безнал.: 2699.99 [19:06:32]line Место: АЗС № 92 "Партнер Нефть" [19:06:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:06:32]line СНО: Общий режим [19:06:32]line Чек 221 17.02.2025 19:06 [19:06:32]line Смена: 644 ФФД: 1.0 [19:06:32]line ЗНМ: 0300000118 [19:06:32]line РНМ: 0000000000091857 [19:06:32]line Версия ККМ: 001 [19:06:32]line Платежная система: O! деньги [19:06:32]line ФМ: 0000000000871826 [19:06:32]line ФД: 186634 [19:06:32]line ФПД: 105168934347847 [19:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190631&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186634&fm=105168934347847&tin=02508201610067®Number=0000000000091857&sum=269999 [19:06:33]OFD Sender: Processing packet 186634 [packets to send 49, broken 48] [19:06:33]ProducePacketName [19:06:33]name=ofd_packets/00186634 [19:06:33]OFD Sender: To server: pG, [19:06:33]CommunicateWithHost lk.salyk.kg:30040 [19:06:33]ConnectInit lk.salyk.kg [19:06:33]written 0, free lines is 4095 [19:06:33]Connected sock=10 [19:06:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 C8 6F 04 01 02 9E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 91 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 AF 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AF 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 70 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AF 1E 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 B7 88 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A D9 02 00 35 04 06 00 5F A6 8C F9 24 47 4E DA 8C B5 91 A8 A8 98 [19:06:33]Write to MH i2c: 01 00 00 84 01 85 [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 07 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 0E 0D A7 [19:06:33]RasterBufferAndPrint [19:06:33]line [19:06:33]line [19:06:33]line [19:06:33]line [19:06:33]line [19:06:33]written 0, free lines is 3350 [19:06:33]MH_Cut [19:06:33]Write to MH i2c: D1 01 00 8B 01 01 5E [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: D1 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: D1 01 00 [19:06:33]MH_I2C_Read... [19:06:33]Read from MH i2c: D1 01 00 8B 01 00 5D [19:06:33]Write to MH i2c: 01 00 00 8C 01 8D [19:06:33]Write i2c OK [19:06:33]MH_I2C_Read... [19:06:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F1 1D 47 00 BC F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0A D9 02 00 F4 03 04 00 11 2F B3 67 B6 04 01 00 00 19 FE 15 D2 AC 9B DB 4E [19:06:33]CommunicateWithHost err = 0 [19:06:33]CheckOFDResponse [19:06:33]1017 (14) - 77093643461234 [19:06:33]1041 (16) - 0000000000871826 [19:06:33]1040 (4) - 186634 [19:06:33]1012 (4) - 17.02.2025 12:44 [19:06:33]1206 (1) - 0 [19:06:33]OFD Sender: Remove packet 186634 [19:06:33]ProducePacketName [19:06:33]name=ofd_packets/00186634 [19:06:33]NVStorageDeleteData [19:06:34]OFD Sender: No OFD packet to send [19:06:34]*** Cut start [19:06:34]*** Partial cut [19:06:34]*** CUTSNS_PIN = 1 [19:06:34]*** CUTSNS_PIN = 0 [19:06:34]*** Brake cut motor [19:06:35]Read from MH i2c: 01 [19:06:35]MH_I2C_Read... [19:06:35]*** Stop cut motor [19:06:35]*** Cut end [19:06:35]Read from MH i2c: 01 07 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [19:06:35]process_action close_receipt done [19:06:35]requested_data is exist [19:06:35]produce_requested_data [19:06:35]requested_item fm.sn is exist - process it [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 11 00 00 [19:06:35]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 17 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [19:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:06:35]wFMCommunicate OK [19:06:35]requested_item fd.num is exist - process it [19:06:35]SAM_PROTO_GetFieldsCounters [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 13 00 00 [19:06:35]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 62 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [19:06:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:35]wFMCommunicate OK [19:06:35]SAM_PROTO_GetFieldsCounters done [19:06:35]requested_item shift.num is exist - process it [19:06:35]requested_item shift.opened is exist - process it [19:06:35]req_shift_opened [19:06:35]FM_GetShiftState [19:06:35]SAM_PROTO_GetShiftState [19:06:35]wFMCommunicate request_size=4 [19:06:35]MH_SAM_APDU [19:06:35]CAPDU: 80 13 01 00 [19:06:35]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [19:06:35]Write i2c OK [19:06:35]MH_I2C_Read... [19:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:35]Read from MH i2c: E2 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 0E 00 [19:06:35]MH_I2C_Read... [19:06:35]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 31 [19:06:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:06:35]wFMCommunicate OK [19:06:35]SAM_PROTO_GetShiftState done [19:06:35]FM_GetShiftState done [19:06:35]req_shift_opened done [19:06:35]requested_item shift.open_date is exist - process it [19:06:35]req_shift_open_date [19:06:35]req_shift_open_date done [19:06:35]produce_requested_data done [19:06:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186634,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:06:35]process_action_free close_receipt [19:06:35]json_value_free [19:06:35]json_value_free done [19:06:35]process_json_proto returns [19:06:35]Send response to host [19:06:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186634,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:06:35]free response buf [19:06:35]execute_script done [19:06:35]execute_script returns [19:06:35]free content buf [19:06:35]Sock 9.Close socket [19:06:35]Sock 9.Thread stoped [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:47]accept exits with 7 [19:09:47]New connection [19:09:47]New thread 3066543460 created [19:09:47]Thread 3066686820 joined [19:09:47]Waiting for new connection... [19:09:47] Sock 7.Parse request [19:09:47]Sock 7.Check first char [19:09:47]Sock 7.First char is OK [19:09:47]request: POST /json_proto HTTP/1.0 [19:09:47]Method: POST [19:09:47]URL: /json_proto [19:09:47]Method is POST - this is cgi request [19:09:47]url: /json_proto [19:09:47]query_string will be loaded in cgi processing [19:09:47]execute_cgi json_proto POST (null) [19:09:47]execute_cgi path=json_proto method=POST [19:09:47]POST find Content-Length [19:09:47]Host: 172.17.46.131:8080 [19:09:47]Content-Length: 803 [19:09:47]Content-Type: application/json [19:09:47] [19:09:47]POST finish read [19:09:47]Found Content-Length = 803 [19:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:47]execute_script... [19:09:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 31.160, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:47]POST & json_proto [19:09:47]process_json_proto [19:09:47]json parsed OK: [19:09:47]protocol is kg_v1.0 [19:09:47]action value=close_receipt [19:09:47]process_action close_receipt [19:09:47]cmd_close_receipt [19:09:47]MH_GetDate [19:09:47]Write to MH i2c: F0 00 00 90 01 80 [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 09 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 09 00 90 01 00 7C 89 B3 67 7E 41 4F 65 1B [19:09:47]GetLastDocTimeStamp 1739819191 [19:09:47]current date 1739819388 [19:09:47]FM_GetShiftState [19:09:47]SAM_PROTO_GetShiftState [19:09:47]wFMCommunicate request_size=4 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 13 01 00 [19:09:47]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0E 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 33 [19:09:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:09:47]wFMCommunicate OK [19:09:47]SAM_PROTO_GetShiftState done [19:09:47]FM_GetShiftState done [19:09:47]opened in 1739752571 [19:09:47]opened+sec_in_day 1739838971 [19:09:47]quantity*price = 200047 [19:09:47]sum+1 = 200048 [19:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 222 17.02.2025 19:09 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186635 ФПД: 217766109217939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190948&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186635&fm=217766109217939&tin=02508201610067®Number=0000000000091857&sum=200047 [19:09:48]StoreToDocumentArchive [19:09:48]shift 644 fd 186635 [19:09:48]save to /storage/0644/doc_00186635 [19:09:48]save last doc name /storage/0644/doc_00186635 to /storage/kkm_last_doc_name [19:09:48]save OK [19:09:48]Clear old archive folders... [19:09:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:48]tlvbuf is 013ADFA0 [19:09:48]SAM_PROTO_ClearQueue [19:09:48]wFMCommunicate request_size=4 [19:09:48]MH_SAM_APDU [19:09:48]CAPDU: 80 09 00 00 [19:09:48]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:48]Read from MH i2c: E2 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 03 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [19:09:48]RAPDU: 90 00 [19:09:48]wFMCommunicate OK [19:09:48]SAM_PROTO_ClearQueue done [19:09:48]KKMCreateOFDPacket [19:09:48]OFDProtocolAddRootSTLVToBuf [19:09:48]FM_MakeSignedData [19:09:48]FM_MakeSignedData [19:09:48]SAM_PROTO_SignData [19:09:48]wFMCommunicate request_size=4 [19:09:48]MH_SAM_APDU [19:09:48]CAPDU: 80 0D 01 02 [19:09:48]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:48]Read from MH i2c: E2 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 03 00 [19:09:48]MH_I2C_Read... [19:09:48]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:09:48]RAPDU: 90 00 [19:09:48]wFMCommunicate OK [19:09:48]wFMCommunicate request_size=255 [19:09:48]MH_SAM_APDU [19:09:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7C 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B D9 02 00 35 04 06 00 C6 [19:09:48]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7C 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B D9 02 00 35 04 06 00 C6 00 00 6D [19:09:48]Write i2c OK [19:09:48]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]wFMCommunicate request_size=10 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 02 02 05 0E 9F 95 84 93 [19:09:49]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 0E 9F 95 84 93 00 00 7F [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 03 02 [19:09:49]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 0B 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 0B 00 A2 01 00 D8 C7 FD 8D 6A 36 03 A3 90 00 8E [19:09:49]RAPDU: D8 C7 FD 8D 6A 36 03 A3 90 00 [19:09:49]wFMCommunicate OK [19:09:49]SAM_PROTO_SignData done [19:09:49]FM_MakeSignedData done [19:09:49]CreateOFDProtocolMessage [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 11 00 00 [19:09:49]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 71 [19:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:49]wFMCommunicate OK [19:09:49]CreateOFDProtocolMessage done [19:09:49]OFDSenderStorePacket 186635 [19:09:49]StoreOFDPacket docnum=186635 [19:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C C3 07 01 D0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7C 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B D9 02 00 35 04 06 00 C6 0E 9F 95 84 93 D8 C7 FD 8D 6A 36 03 A3 [19:09:49]CheckFolder [19:09:49]dirname=/storage/ofd_packets [19:09:49]CheckFolder done [19:09:49]ProducePacketName [19:09:49]name=ofd_packets/00186635 [19:09:49]NVStorageSaveData ofd_packets/00186635 [19:09:49]File name is /storage/ofd_packets/00186635 [19:09:49]Write 301 bytes [19:09:49]NVStorageSaveData done [19:09:49]OFDSenderStorePacket done [19:09:49]KKMCreateOFDPacket done [19:09:49]NVStorageSaveData kkm_last_timestamp [19:09:49]File name is /storage/kkm_last_timestamp [19:09:49]Write 4 bytes [19:09:49]NVStorageSaveData done [19:09:49]ExternCall_PrintAddStr [19:09:49]wPrintStart [19:09:49]Write to MH i2c: 01 00 00 A4 01 A5 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 07 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [19:09:49]RasterBufferAndPrint [19:09:49]line Счет N : (1)411783 [19:09:49]line ИНН: 02508201610067 [19:09:49]line Контрольно-Кассовый Чек [19:09:49]line ПРОДАЖА [19:09:49]line ТРК (МРК, ГНК) : 22 [19:09:49]line Товар: 2710124130 [19:09:49]line Аи-92-К-2 [19:09:49]line 31.160 * 64.20 [19:09:49]line = 2000.47 [19:09:49]line НДС 12% НСП 1% [19:09:49]line > о реализуемом товаре [19:09:49]line ИТОГО: 2000.47 [19:09:49]line НСП 1% : 17.70 [19:09:49]line НДС 12% : 212.44 [19:09:49]line Наличными: 0.00 [19:09:49]line Безнал.: 2000.47 [19:09:49]line Место: АЗС № 92 "Партнер Нефть" [19:09:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:09:49]line СНО: Общий режим [19:09:49]line Чек 222 17.02.2025 19:09 [19:09:49]line Смена: 644 ФФД: 1.0 [19:09:49]line ЗНМ: 0300000118 [19:09:49]line РНМ: 0000000000091857 [19:09:49]line Версия ККМ: 001 [19:09:49]line Платежная система: O! деньги [19:09:49]line ФМ: 0000000000871826 [19:09:49]line ФД: 186635 [19:09:49]line ФПД: 217766109217939 [19:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T190948&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186635&fm=217766109217939&tin=02508201610067®Number=0000000000091857&sum=200047 [19:09:49]written 0, free lines is 4095 [19:09:49]OFD Sender: Processing packet 186635 [packets to send 49, broken 48] [19:09:49]ProducePacketName [19:09:49]name=ofd_packets/00186635 [19:09:49]OFD Sender: To server: pG, [19:09:49]CommunicateWithHost lk.salyk.kg:30040 [19:09:49]ConnectInit lk.salyk.kg [19:09:49]Connected sock=10 [19:09:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C C3 07 01 D0 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 79 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 7C 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B D9 02 00 35 04 06 00 C6 0E 9F 95 84 93 D8 C7 FD 8D 6A 36 03 A3 [19:09:50]Write to MH i2c: 01 00 00 CE 01 CF [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 0D 0D F0 [19:09:50]RasterBufferAndPrint [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]written 0, free lines is 3347 [19:09:50]MH_Cut [19:09:50]Write to MH i2c: D1 01 00 D5 01 01 A8 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 01 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 01 00 D5 01 00 A7 [19:09:50]Write to MH i2c: 01 00 00 D6 01 D7 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 56 47 00 E4 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0B D9 02 00 F4 03 04 00 D5 2F B3 67 B6 04 01 00 00 3F 6B C4 65 B3 FB 10 53 [19:09:50]CommunicateWithHost err = 0 [19:09:50]CheckOFDResponse [19:09:50]1017 (14) - 77093643461234 [19:09:50]1041 (16) - 0000000000871826 [19:09:50]1040 (4) - 186635 [19:09:50]1012 (4) - 17.02.2025 12:47 [19:09:50]1206 (1) - 0 [19:09:50]OFD Sender: Remove packet 186635 [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00186635 [19:09:50]NVStorageDeleteData [19:09:50]OFD Sender: No OFD packet to send [19:09:50]*** Cut start [19:09:50]*** Partial cut [19:09:50]*** CUTSNS_PIN = 1 [19:09:50]*** CUTSNS_PIN = 0 [19:09:51]*** Brake cut motor [19:09:51]Read from MH i2c: 01 [19:09:51]MH_I2C_Read... [19:09:51]*** Stop cut motor [19:09:51]*** Cut end [19:09:51]Read from MH i2c: 01 07 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [19:09:51]process_action close_receipt done [19:09:51]requested_data is exist [19:09:51]produce_requested_data [19:09:51]requested_item fm.sn is exist - process it [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 11 00 00 [19:09:51]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 17 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A5 [19:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:09:51]wFMCommunicate OK [19:09:51]requested_item fd.num is exist - process it [19:09:51]SAM_PROTO_GetFieldsCounters [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 13 00 00 [19:09:51]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 62 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:51]wFMCommunicate OK [19:09:51]SAM_PROTO_GetFieldsCounters done [19:09:51]requested_item shift.num is exist - process it [19:09:51]requested_item shift.opened is exist - process it [19:09:51]req_shift_opened [19:09:51]FM_GetShiftState [19:09:51]SAM_PROTO_GetShiftState [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 13 01 00 [19:09:51]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7B [19:09:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:09:51]wFMCommunicate OK [19:09:51]SAM_PROTO_GetShiftState done [19:09:51]FM_GetShiftState done [19:09:51]req_shift_opened done [19:09:51]requested_item shift.open_date is exist - process it [19:09:51]req_shift_open_date [19:09:51]req_shift_open_date done [19:09:51]produce_requested_data done [19:09:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186635,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:09:51]process_action_free close_receipt [19:09:51]json_value_free [19:09:51]json_value_free done [19:09:51]process_json_proto returns [19:09:51]Send response to host [19:09:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186635,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:09:51]free response buf [19:09:51]execute_script done [19:09:51]execute_script returns [19:09:51]free content buf [19:09:51]Sock 7.Close socket [19:09:51]Sock 7.Thread stoped [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:39]accept exits with 9 [19:11:39]New connection [19:11:39]New thread 3066686820 created [19:11:39]Thread 3066543460 joined [19:11:39]Waiting for new connection... [19:11:39] Sock 9.Parse request [19:11:39]Sock 9.Check first char [19:11:39]Sock 9.First char is OK [19:11:39]request: POST /json_proto HTTP/1.0 [19:11:39]Method: POST [19:11:39]URL: /json_proto [19:11:39]Method is POST - this is cgi request [19:11:39]url: /json_proto [19:11:39]query_string will be loaded in cgi processing [19:11:39]execute_cgi json_proto POST (null) [19:11:39]execute_cgi path=json_proto method=POST [19:11:39]POST find Content-Length [19:11:39]Host: 172.17.46.131:8080 [19:11:39]Content-Length: 678 [19:11:39]Content-Type: application/json [19:11:39] [19:11:39]POST finish read [19:11:39]Found Content-Length = 678 [19:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:39]execute_script... [19:11:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:39]POST & json_proto [19:11:39]process_json_proto [19:11:39]json parsed OK: [19:11:39]protocol is kg_v1.0 [19:11:39]action value=close_receipt [19:11:39]process_action close_receipt [19:11:39]cmd_close_receipt [19:11:39]MH_GetDate [19:11:39]Write to MH i2c: F0 00 00 DA 01 CA [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: F0 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: F0 09 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: F0 09 00 DA 01 00 EC 89 B3 67 7E 41 4F 65 D5 [19:11:39]GetLastDocTimeStamp 1739819388 [19:11:39]current date 1739819500 [19:11:39]FM_GetShiftState [19:11:39]SAM_PROTO_GetShiftState [19:11:39]wFMCommunicate request_size=4 [19:11:39]MH_SAM_APDU [19:11:39]CAPDU: 80 13 01 00 [19:11:39]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [19:11:39]Write i2c OK [19:11:39]MH_I2C_Read... [19:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:39]Read from MH i2c: E2 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 0E 00 [19:11:39]MH_I2C_Read... [19:11:39]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7D [19:11:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:11:39]wFMCommunicate OK [19:11:39]SAM_PROTO_GetShiftState done [19:11:39]FM_GetShiftState done [19:11:39]opened in 1739752571 [19:11:39]opened+sec_in_day 1739838971 [19:11:39]quantity*price = 100042 [19:11:39]sum+1 = 100044 [19:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 223 17.02.2025 19:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186636 ФПД: 159735839380769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191140&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186636&fm=159735839380769&tin=02508201610067®Number=0000000000091857&sum=100000 [19:11:40]StoreToDocumentArchive [19:11:40]shift 644 fd 186636 [19:11:40]save to /storage/0644/doc_00186636 [19:11:40]save last doc name /storage/0644/doc_00186636 to /storage/kkm_last_doc_name [19:11:40]save OK [19:11:40]Clear old archive folders... [19:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:11:40]tlvbuf is 013E6C20 [19:11:40]SAM_PROTO_ClearQueue [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 09 00 00 [19:11:40]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [19:11:40]RAPDU: 90 00 [19:11:40]wFMCommunicate OK [19:11:40]SAM_PROTO_ClearQueue done [19:11:40]KKMCreateOFDPacket [19:11:40]OFDProtocolAddRootSTLVToBuf [19:11:40]FM_MakeSignedData [19:11:40]FM_MakeSignedData [19:11:40]SAM_PROTO_SignData [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 0D 01 02 [19:11:40]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [19:11:40]RAPDU: 90 00 [19:11:40]wFMCommunicate OK [19:11:40]wFMCommunicate request_size=255 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EC 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C D9 02 00 35 04 06 00 91 47 65 F6 [19:11:40]Write to MH i2c: E2 02 01 EA 01 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EC 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C D9 02 00 35 04 06 00 91 47 65 F6 00 00 15 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]OFD Sender: No OFD packet to send [19:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [19:11:40]RAPDU: 90 00 [19:11:40]wFMCommunicate OK [19:11:40]wFMCommunicate request_size=7 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 0D 02 02 02 D5 21 [19:11:40]Write to MH i2c: E2 0A 00 EB 01 80 0D 02 02 02 00 D5 21 00 00 60 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [19:11:40]RAPDU: 90 00 [19:11:40]wFMCommunicate OK [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 0D 03 02 [19:11:40]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:40]Read from MH i2c: E2 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 0B 00 [19:11:40]MH_I2C_Read... [19:11:40]Read from MH i2c: E2 0B 00 EC 01 00 70 03 90 FB 13 DB 6D 4A 90 00 0C [19:11:40]RAPDU: 70 03 90 FB 13 DB 6D 4A 90 00 [19:11:40]wFMCommunicate OK [19:11:40]SAM_PROTO_SignData done [19:11:40]FM_MakeSignedData done [19:11:40]CreateOFDProtocolMessage [19:11:40]wFMCommunicate request_size=4 [19:11:40]MH_SAM_APDU [19:11:40]CAPDU: 80 11 00 00 [19:11:40]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [19:11:40]Write i2c OK [19:11:40]MH_I2C_Read... [19:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:41]Read from MH i2c: E2 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 17 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BB [19:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:11:41]wFMCommunicate OK [19:11:41]CreateOFDProtocolMessage done [19:11:41]OFDSenderStorePacket 186636 [19:11:41]StoreOFDPacket docnum=186636 [19:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AA BA 04 01 5C FF 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EC 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C D9 02 00 35 04 06 00 91 47 65 F6 D5 21 70 03 90 FB 13 DB 6D 4A [19:11:41]CheckFolder [19:11:41]dirname=/storage/ofd_packets [19:11:41]CheckFolder done [19:11:41]ProducePacketName [19:11:41]name=ofd_packets/00186636 [19:11:41]NVStorageSaveData ofd_packets/00186636 [19:11:41]File name is /storage/ofd_packets/00186636 [19:11:41]Write 298 bytes [19:11:41]NVStorageSaveData done [19:11:41]OFDSenderStorePacket done [19:11:41]KKMCreateOFDPacket done [19:11:41]NVStorageSaveData kkm_last_timestamp [19:11:41]File name is /storage/kkm_last_timestamp [19:11:41]Write 4 bytes [19:11:41]NVStorageSaveData done [19:11:41]ExternCall_PrintAddStr [19:11:41]wPrintStart [19:11:41]Write to MH i2c: 01 00 00 EE 01 EF [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 07 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [19:11:41]RasterBufferAndPrint [19:11:41]line Счет N : (1)411784 [19:11:41]line ИНН: 02508201610067 [19:11:41]line Контрольно-Кассовый Чек [19:11:41]line ПРОДАЖА [19:11:41]line ТРК (МРК, ГНК) : 6 [19:11:41]line Товар: 2710194210 [19:11:41]line ДТ-К-5 [19:11:41]line 13.780 * 72.60 [19:11:41]line = 1000.43 [19:11:41]line НДС 12% НСП 1% [19:11:41]line > о реализуемом товаре [19:11:41]line ОКРУГЛЕНИЕ: -0.43 [19:11:41]line ИТОГО: 1000.00 [19:11:41]line Внесено: 1000.00 [19:11:41]line СДАЧА: 0.00 [19:11:41]line НСП 1% : 8.85 [19:11:41]line НДС 12% : 106.24 [19:11:41]line Наличными: 1000.00 [19:11:41]line Безнал.: 0.00 [19:11:41]line Место: АЗС № 92 "Партнер Нефть" [19:11:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:11:41]line СНО: Общий режим [19:11:41]line Чек 223 17.02.2025 19:11 [19:11:41]line Смена: 644 ФФД: 1.0 [19:11:41]line ЗНМ: 0300000118 [19:11:41]line РНМ: 0000000000091857 [19:11:41]line Версия ККМ: 001 [19:11:41]line ФМ: 0000000000871826 [19:11:41]line ФД: 186636 [19:11:41]line ФПД: 159735839380769 [19:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191140&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186636&fm=159735839380769&tin=02508201610067®Number=0000000000091857&sum=100000 [19:11:41]OFD Sender: Processing packet 186636 [packets to send 49, broken 48] [19:11:41]ProducePacketName [19:11:41]name=ofd_packets/00186636 [19:11:41]OFD Sender: To server: pG, [19:11:41]CommunicateWithHost lk.salyk.kg:30040 [19:11:41]ConnectInit lk.salyk.kg [19:11:41]written 0, free lines is 4095 [19:11:41]Connected sock=10 [19:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 AA BA 04 01 5C FF 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 EC 89 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C D9 02 00 35 04 06 00 91 47 65 F6 D5 21 70 03 90 FB 13 DB 6D 4A [19:11:41]Write to MH i2c: 01 00 00 19 02 1B [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 07 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 EE 0C 1C [19:11:41]RasterBufferAndPrint [19:11:41]line [19:11:41]line [19:11:41]line [19:11:41]line [19:11:41]line [19:11:41]written 0, free lines is 3316 [19:11:41]MH_Cut [19:11:41]Write to MH i2c: D1 01 00 20 02 01 F4 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: D1 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: D1 01 00 [19:11:41]MH_I2C_Read... [19:11:41]Read from MH i2c: D1 01 00 20 02 00 F3 [19:11:41]Write to MH i2c: 01 00 00 21 02 23 [19:11:41]Write i2c OK [19:11:41]MH_I2C_Read... [19:11:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D0 81 47 00 0C 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0C D9 02 00 F4 03 04 00 45 30 B3 67 B6 04 01 00 00 A6 42 3E 66 88 A7 C9 06 [19:11:41]CommunicateWithHost err = 0 [19:11:41]CheckOFDResponse [19:11:41]1017 (14) - 77093643461234 [19:11:41]1041 (16) - 0000000000871826 [19:11:41]1040 (4) - 186636 [19:11:41]1012 (4) - 17.02.2025 12:49 [19:11:41]1206 (1) - 0 [19:11:41]OFD Sender: Remove packet 186636 [19:11:41]ProducePacketName [19:11:41]name=ofd_packets/00186636 [19:11:41]NVStorageDeleteData [19:11:42]OFD Sender: No OFD packet to send [19:11:42]*** Cut start [19:11:42]*** Partial cut [19:11:42]*** CUTSNS_PIN = 1 [19:11:42]*** CUTSNS_PIN = 0 [19:11:42]*** Brake cut motor [19:11:43]Read from MH i2c: 01 [19:11:43]MH_I2C_Read... [19:11:43]*** Stop cut motor [19:11:43]*** Cut end [19:11:43]Read from MH i2c: 01 07 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [19:11:43]process_action close_receipt done [19:11:43]requested_data is exist [19:11:43]produce_requested_data [19:11:43]requested_item fm.sn is exist - process it [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 11 00 00 [19:11:43]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F1 [19:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:11:43]wFMCommunicate OK [19:11:43]requested_item fd.num is exist - process it [19:11:43]SAM_PROTO_GetFieldsCounters [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 13 00 00 [19:11:43]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 62 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:11: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 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_GetFieldsCounters done [19:11:43]requested_item shift.num is exist - process it [19:11:43]requested_item shift.opened is exist - process it [19:11:43]req_shift_opened [19:11:43]FM_GetShiftState [19:11:43]SAM_PROTO_GetShiftState [19:11:43]wFMCommunicate request_size=4 [19:11:43]MH_SAM_APDU [19:11:43]CAPDU: 80 13 01 00 [19:11:43]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [19:11:43]Write i2c OK [19:11:43]MH_I2C_Read... [19:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:43]Read from MH i2c: E2 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0E 00 [19:11:43]MH_I2C_Read... [19:11:43]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C7 [19:11:43]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:11:43]wFMCommunicate OK [19:11:43]SAM_PROTO_GetShiftState done [19:11:43]FM_GetShiftState done [19:11:43]req_shift_opened done [19:11:43]requested_item shift.open_date is exist - process it [19:11:43]req_shift_open_date [19:11:43]req_shift_open_date done [19:11:43]produce_requested_data done [19:11:43]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186636,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:11:43]process_action_free close_receipt [19:11:43]json_value_free [19:11:43]json_value_free done [19:11:43]process_json_proto returns [19:11:43]Send response to host [19:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186636,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:11:43]free response buf [19:11:43]execute_script done [19:11:43]execute_script returns [19:11:43]free content buf [19:11:43]Sock 9.Close socket [19:11:43]Sock 9.Thread stoped [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:51]accept exits with 7 [19:16:51]New connection [19:16:51]New thread 3066543460 created [19:16:51]Thread 3066686820 joined [19:16:51]Waiting for new connection... [19:16:51] Sock 7.Parse request [19:16:51]Sock 7.Check first char [19:16:51]Sock 7.First char is OK [19:16:51]request: POST /json_proto HTTP/1.0 [19:16:51]Method: POST [19:16:51]URL: /json_proto [19:16:51]Method is POST - this is cgi request [19:16:51]url: /json_proto [19:16:51]query_string will be loaded in cgi processing [19:16:51]execute_cgi json_proto POST (null) [19:16:51]execute_cgi path=json_proto method=POST [19:16:51]POST find Content-Length [19:16:51]Host: 172.17.46.131:8080 [19:16:51]Content-Length: 800 [19:16:51]Content-Type: application/json [19:16:51] [19:16:51]POST finish read [19:16:51]Found Content-Length = 800 [19:16:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:51]execute_script... [19:16:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:51]POST & json_proto [19:16:51]process_json_proto [19:16:51]json parsed OK: [19:16:51]protocol is kg_v1.0 [19:16:51]action value=close_receipt [19:16:51]process_action close_receipt [19:16:51]cmd_close_receipt [19:16:51]MH_GetDate [19:16:51]Write to MH i2c: F0 00 00 25 02 16 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: F0 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: F0 09 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: F0 09 00 25 02 00 23 8B B3 67 7E 41 4F 65 5A [19:16:51]GetLastDocTimeStamp 1739819500 [19:16:51]current date 1739819811 [19:16:51]FM_GetShiftState [19:16:51]SAM_PROTO_GetShiftState [19:16:51]wFMCommunicate request_size=4 [19:16:51]MH_SAM_APDU [19:16:51]CAPDU: 80 13 01 00 [19:16:51]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [19:16:51]Write i2c OK [19:16:51]MH_I2C_Read... [19:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:51]Read from MH i2c: E2 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 0E 00 [19:16:51]MH_I2C_Read... [19:16:51]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C9 [19:16:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:16:51]wFMCommunicate OK [19:16:51]SAM_PROTO_GetShiftState done [19:16:51]FM_GetShiftState done [19:16:51]opened in 1739752571 [19:16:51]opened+sec_in_day 1739838971 [19:16:51]quantity*price = 100042 [19:16:51]sum+1 = 100044 [19:16:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 224 17.02.2025 19:16 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186637 ФПД: 204220741367110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186637&fm=204220741367110&tin=02508201610067®Number=0000000000091857&sum=100043 [19:16:52]StoreToDocumentArchive [19:16:52]shift 644 fd 186637 [19:16:52]save to /storage/0644/doc_00186637 [19:16:52]save last doc name /storage/0644/doc_00186637 to /storage/kkm_last_doc_name [19:16:52]save OK [19:16:52]Clear old archive folders... [19:16:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:16:52]tlvbuf is 013E67E0 [19:16:52]SAM_PROTO_ClearQueue [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 09 00 00 [19:16:52]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [19:16:52]RAPDU: 90 00 [19:16:52]wFMCommunicate OK [19:16:52]SAM_PROTO_ClearQueue done [19:16:52]KKMCreateOFDPacket [19:16:52]OFDProtocolAddRootSTLVToBuf [19:16:52]FM_MakeSignedData [19:16:52]FM_MakeSignedData [19:16:52]SAM_PROTO_SignData [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 0D 01 02 [19:16:52]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [19:16:52]RAPDU: 90 00 [19:16:52]wFMCommunicate OK [19:16:52]wFMCommunicate request_size=255 [19:16:52]MH_SAM_APDU [19:16:52]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 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 23 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D D9 02 00 35 04 06 00 B9 BC D8 BE [19:16:52]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 23 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D D9 02 00 35 04 06 00 B9 BC D8 BE 00 00 C7 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]OFD Sender: No OFD packet to send [19:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [19:16:52]RAPDU: 90 00 [19:16:52]wFMCommunicate OK [19:16:52]wFMCommunicate request_size=7 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 0D 02 02 02 B5 46 [19:16:52]Write to MH i2c: E2 0A 00 36 02 80 0D 02 02 02 00 B5 46 00 00 B1 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [19:16:52]RAPDU: 90 00 [19:16:52]wFMCommunicate OK [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 0D 03 02 [19:16:52]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0B 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 0B 00 37 02 00 F9 74 65 23 4D 6B A1 7C 90 00 7F [19:16:52]RAPDU: F9 74 65 23 4D 6B A1 7C 90 00 [19:16:52]wFMCommunicate OK [19:16:52]SAM_PROTO_SignData done [19:16:52]FM_MakeSignedData done [19:16:52]CreateOFDProtocolMessage [19:16:52]wFMCommunicate request_size=4 [19:16:52]MH_SAM_APDU [19:16:52]CAPDU: 80 11 00 00 [19:16:52]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:52]Read from MH i2c: E2 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 17 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 07 [19:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:16:52]wFMCommunicate OK [19:16:52]CreateOFDProtocolMessage done [19:16:52]OFDSenderStorePacket 186637 [19:16:52]StoreOFDPacket docnum=186637 [19:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8D 34 04 01 18 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 23 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D D9 02 00 35 04 06 00 B9 BC D8 BE B5 46 F9 74 65 23 4D 6B A1 7C [19:16:52]CheckFolder [19:16:52]dirname=/storage/ofd_packets [19:16:52]CheckFolder done [19:16:52]ProducePacketName [19:16:52]name=ofd_packets/00186637 [19:16:52]NVStorageSaveData ofd_packets/00186637 [19:16:52]File name is /storage/ofd_packets/00186637 [19:16:52]Write 298 bytes [19:16:52]NVStorageSaveData done [19:16:52]OFDSenderStorePacket done [19:16:52]KKMCreateOFDPacket done [19:16:52]NVStorageSaveData kkm_last_timestamp [19:16:52]File name is /storage/kkm_last_timestamp [19:16:52]Write 4 bytes [19:16:52]NVStorageSaveData done [19:16:52]ExternCall_PrintAddStr [19:16:52]wPrintStart [19:16:52]Write to MH i2c: 01 00 00 39 02 3B [19:16:52]Write i2c OK [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: 01 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: 01 07 00 [19:16:52]MH_I2C_Read... [19:16:52]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [19:16:52]RasterBufferAndPrint [19:16:52]line Счет N : (1)411785 [19:16:52]line ИНН: 02508201610067 [19:16:52]line Контрольно-Кассовый Чек [19:16:52]line ПРОДАЖА [19:16:52]line ТРК (МРК, ГНК) : 41 [19:16:52]line Товар: 2710194210 [19:16:52]line ДТ-К-2 [19:16:52]line 13.780 * 72.60 [19:16:52]line = 1000.43 [19:16:52]line НДС 12% НСП 1% [19:16:52]line > о реализуемом товаре [19:16:52]line ИТОГО: 1000.43 [19:16:52]line НСП 1% : 8.85 [19:16:52]line НДС 12% : 106.24 [19:16:52]line Наличными: 0.00 [19:16:52]line Безнал.: 1000.43 [19:16:52]line Место: АЗС № 92 "Партнер Нефть" [19:16:52]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:16:52]line СНО: Общий режим [19:16:52]line Чек 224 17.02.2025 19:16 [19:16:52]line Смена: 644 ФФД: 1.0 [19:16:52]line ЗНМ: 0300000118 [19:16:52]line РНМ: 0000000000091857 [19:16:52]line Версия ККМ: 001 [19:16:52]line Платежная система: O! деньги [19:16:52]line ФМ: 0000000000871826 [19:16:52]line ФД: 186637 [19:16:52]line ФПД: 204220741367110 [19:16:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191651&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186637&fm=204220741367110&tin=02508201610067®Number=0000000000091857&sum=100043 [19:16:53]OFD Sender: Processing packet 186637 [packets to send 49, broken 48] [19:16:53]ProducePacketName [19:16:53]name=ofd_packets/00186637 [19:16:53]OFD Sender: To server: pG, [19:16:53]CommunicateWithHost lk.salyk.kg:30040 [19:16:53]ConnectInit lk.salyk.kg [19:16:53]written 0, free lines is 4095 [19:16:53]Connected sock=10 [19:16:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8D 34 04 01 18 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 23 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D D9 02 00 35 04 06 00 B9 BC D8 BE B5 46 F9 74 65 23 4D 6B A1 7C [19:16:53]Write to MH i2c: 01 00 00 63 02 65 [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: 01 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: 01 07 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 FF 0C 77 [19:16:53]RasterBufferAndPrint [19:16:53]line [19:16:53]line [19:16:53]line [19:16:53]line [19:16:53]line [19:16:53]written 0, free lines is 3333 [19:16:53]MH_Cut [19:16:53]Write to MH i2c: D1 01 00 6A 02 01 3E [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: D1 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: D1 01 00 [19:16:53]MH_I2C_Read... [19:16:53]Read from MH i2c: D1 01 00 6A 02 00 3D [19:16:53]Write to MH i2c: 01 00 00 6B 02 6D [19:16:53]Write i2c OK [19:16:53]MH_I2C_Read... [19:16:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AA 54 47 00 17 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0D D9 02 00 F4 03 04 00 7D 31 B3 67 B6 04 01 00 00 53 24 1F 1A 25 4E 70 DF [19:16:53]CommunicateWithHost err = 0 [19:16:53]CheckOFDResponse [19:16:53]1017 (14) - 77093643461234 [19:16:53]1041 (16) - 0000000000871826 [19:16:53]1040 (4) - 186637 [19:16:53]1012 (4) - 17.02.2025 12:54 [19:16:53]1206 (1) - 0 [19:16:53]OFD Sender: Remove packet 186637 [19:16:53]ProducePacketName [19:16:53]name=ofd_packets/00186637 [19:16:53]NVStorageDeleteData [19:16:54]OFD Sender: No OFD packet to send [19:16:54]*** Cut start [19:16:54]*** Partial cut [19:16:54]*** CUTSNS_PIN = 1 [19:16:54]*** CUTSNS_PIN = 0 [19:16:54]*** Brake cut motor [19:16:55]Read from MH i2c: 01 [19:16:55]MH_I2C_Read... [19:16:55]*** Stop cut motor [19:16:55]*** Cut end [19:16:55]Read from MH i2c: 01 07 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [19:16:55]process_action close_receipt done [19:16:55]requested_data is exist [19:16:55]produce_requested_data [19:16:55]requested_item fm.sn is exist - process it [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 11 00 00 [19:16:55]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 17 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3B [19:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:16:55]wFMCommunicate OK [19:16:55]requested_item fd.num is exist - process it [19:16:55]SAM_PROTO_GetFieldsCounters [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 13 00 00 [19:16:55]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 62 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [19:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:55]wFMCommunicate OK [19:16:55]SAM_PROTO_GetFieldsCounters done [19:16:55]requested_item shift.num is exist - process it [19:16:55]requested_item shift.opened is exist - process it [19:16:55]req_shift_opened [19:16:55]FM_GetShiftState [19:16:55]SAM_PROTO_GetShiftState [19:16:55]wFMCommunicate request_size=4 [19:16:55]MH_SAM_APDU [19:16:55]CAPDU: 80 13 01 00 [19:16:55]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [19:16:55]Write i2c OK [19:16:55]MH_I2C_Read... [19:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:55]Read from MH i2c: E2 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0E 00 [19:16:55]MH_I2C_Read... [19:16:55]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 11 [19:16:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:16:55]wFMCommunicate OK [19:16:55]SAM_PROTO_GetShiftState done [19:16:55]FM_GetShiftState done [19:16:55]req_shift_opened done [19:16:55]requested_item shift.open_date is exist - process it [19:16:55]req_shift_open_date [19:16:55]req_shift_open_date done [19:16:55]produce_requested_data done [19:16:55]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186637,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:16:55]process_action_free close_receipt [19:16:55]json_value_free [19:16:55]json_value_free done [19:16:55]process_json_proto returns [19:16:55]Send response to host [19:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186637,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:16:55]free response buf [19:16:55]execute_script done [19:16:55]execute_script returns [19:16:55]free content buf [19:16:55]Sock 7.Close socket [19:16:55]Sock 7.Thread stoped [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:27]accept exits with 9 [19:17:27]New connection [19:17:27]New thread 3066686820 created [19:17:27]Thread 3066543460 joined [19:17:27]Waiting for new connection... [19:17:27] Sock 9.Parse request [19:17:27]Sock 9.Check first char [19:17:27]Sock 9.First char is OK [19:17:27]request: POST /json_proto HTTP/1.0 [19:17:27]Method: POST [19:17:27]URL: /json_proto [19:17:27]Method is POST - this is cgi request [19:17:27]url: /json_proto [19:17:27]query_string will be loaded in cgi processing [19:17:27]execute_cgi json_proto POST (null) [19:17:27]execute_cgi path=json_proto method=POST [19:17:27]POST find Content-Length [19:17:27]Host: 172.17.46.131:8080 [19:17:27]Content-Length: 799 [19:17:27]Content-Type: application/json [19:17:27] [19:17:27]POST finish read [19:17:27]Found Content-Length = 799 [19:17:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2400.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:27]execute_script... [19:17:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 33.060, "sum" : 2400.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2400.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:27]POST & json_proto [19:17:27]process_json_proto [19:17:27]json parsed OK: [19:17:27]protocol is kg_v1.0 [19:17:27]action value=close_receipt [19:17:27]process_action close_receipt [19:17:27]cmd_close_receipt [19:17:27]MH_GetDate [19:17:27]Write to MH i2c: F0 00 00 6F 02 60 [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: F0 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: F0 09 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: F0 09 00 6F 02 00 47 8B B3 67 7E 41 4F 65 C8 [19:17:27]GetLastDocTimeStamp 1739819811 [19:17:27]current date 1739819847 [19:17:27]FM_GetShiftState [19:17:27]SAM_PROTO_GetShiftState [19:17:27]wFMCommunicate request_size=4 [19:17:27]MH_SAM_APDU [19:17:27]CAPDU: 80 13 01 00 [19:17:27]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [19:17:27]Write i2c OK [19:17:27]MH_I2C_Read... [19:17:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:27]Read from MH i2c: E2 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 [19:17:27]MH_I2C_Read... [19:17:27]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 13 [19:17:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:17:27]wFMCommunicate OK [19:17:27]SAM_PROTO_GetShiftState done [19:17:27]FM_GetShiftState done [19:17:27]opened in 1739752571 [19:17:27]opened+sec_in_day 1739838971 [19:17:27]quantity*price = 240015 [19:17:27]sum+1 = 240017 [19:17:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2400.16 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 0.00 Безнал.: 2400.16 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 225 17.02.2025 19:17 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186638 ФПД: 92156660273462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191727&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186638&fm=92156660273462&tin=02508201610067®Number=0000000000091857&sum=240016 [19:17:28]StoreToDocumentArchive [19:17:28]shift 644 fd 186638 [19:17:28]save to /storage/0644/doc_00186638 [19:17:28]save last doc name /storage/0644/doc_00186638 to /storage/kkm_last_doc_name [19:17:28]save OK [19:17:28]Clear old archive folders... [19:17:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:17:28]tlvbuf is 013E0EC0 [19:17:28]SAM_PROTO_ClearQueue [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 09 00 00 [19:17:28]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]SAM_PROTO_ClearQueue done [19:17:28]KKMCreateOFDPacket [19:17:28]OFDProtocolAddRootSTLVToBuf [19:17:28]FM_MakeSignedData [19:17:28]FM_MakeSignedData [19:17:28]SAM_PROTO_SignData [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 0D 01 02 [19:17:28]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=255 [19:17:28]MH_SAM_APDU [19:17:28]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 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 47 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E D9 02 00 35 04 06 00 53 D0 E4 FF [19:17:28]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 47 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E D9 02 00 35 04 06 00 53 D0 E4 FF 00 00 B5 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=7 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 0D 02 02 02 D1 36 [19:17:28]Write to MH i2c: E2 0A 00 80 02 80 0D 02 02 02 00 D1 36 00 00 07 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [19:17:28]RAPDU: 90 00 [19:17:28]wFMCommunicate OK [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 0D 03 02 [19:17:28]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 0B 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 0B 00 81 02 00 64 A0 DB 93 9B 97 B8 BE 90 00 19 [19:17:28]RAPDU: 64 A0 DB 93 9B 97 B8 BE 90 00 [19:17:28]wFMCommunicate OK [19:17:28]SAM_PROTO_SignData done [19:17:28]FM_MakeSignedData done [19:17:28]CreateOFDProtocolMessage [19:17:28]wFMCommunicate request_size=4 [19:17:28]MH_SAM_APDU [19:17:28]CAPDU: 80 11 00 00 [19:17:28]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:28]Read from MH i2c: E2 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 17 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 51 [19:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:17:28]wFMCommunicate OK [19:17:28]CreateOFDProtocolMessage done [19:17:28]OFDSenderStorePacket 186638 [19:17:28]StoreOFDPacket docnum=186638 [19:17:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 04 12 04 01 08 0F 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 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 47 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E D9 02 00 35 04 06 00 53 D0 E4 FF D1 36 64 A0 DB 93 9B 97 B8 BE [19:17:28]CheckFolder [19:17:28]dirname=/storage/ofd_packets [19:17:28]CheckFolder done [19:17:28]ProducePacketName [19:17:28]name=ofd_packets/00186638 [19:17:28]NVStorageSaveData ofd_packets/00186638 [19:17:28]File name is /storage/ofd_packets/00186638 [19:17:28]Write 298 bytes [19:17:28]NVStorageSaveData done [19:17:28]OFDSenderStorePacket done [19:17:28]KKMCreateOFDPacket done [19:17:28]NVStorageSaveData kkm_last_timestamp [19:17:28]File name is /storage/kkm_last_timestamp [19:17:28]Write 4 bytes [19:17:28]NVStorageSaveData done [19:17:28]ExternCall_PrintAddStr [19:17:28]wPrintStart [19:17:28]Write to MH i2c: 01 00 00 83 02 85 [19:17:28]Write i2c OK [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 07 00 [19:17:28]MH_I2C_Read... [19:17:28]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [19:17:28]RasterBufferAndPrint [19:17:28]line Счет N : (1)411786 [19:17:28]line ИНН: 02508201610067 [19:17:28]line Контрольно-Кассовый Чек [19:17:28]line ПРОДАЖА [19:17:28]line ТРК (МРК, ГНК) : 5 [19:17:28]line Товар: 2710194210 [19:17:28]line ДТ-К-5 [19:17:28]line 33.060 * 72.60 [19:17:28]line = 2400.16 [19:17:28]line НДС 12% НСП 1% [19:17:28]line > о реализуемом товаре [19:17:28]line ИТОГО: 2400.16 [19:17:28]line НСП 1% : 21.24 [19:17:28]line НДС 12% : 254.88 [19:17:28]line Наличными: 0.00 [19:17:28]line Безнал.: 2400.16 [19:17:28]line Место: АЗС № 92 "Партнер Нефть" [19:17:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:17:28]line СНО: Общий режим [19:17:28]line Чек 225 17.02.2025 19:17 [19:17:28]line Смена: 644 ФФД: 1.0 [19:17:28]line ЗНМ: 0300000118 [19:17:28]line РНМ: 0000000000091857 [19:17:28]line Версия ККМ: 001 [19:17:28]line Платежная система: O! деньги [19:17:28]line ФМ: 0000000000871826 [19:17:28]line ФД: 186638 [19:17:28]line ФПД: 92156660273462 [19:17:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T191727&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186638&fm=92156660273462&tin=02508201610067®Number=0000000000091857&sum=240016 [19:17:29]OFD Sender: Processing packet 186638 [packets to send 49, broken 48] [19:17:29]ProducePacketName [19:17:29]name=ofd_packets/00186638 [19:17:29]OFD Sender: To server: pG, [19:17:29]CommunicateWithHost lk.salyk.kg:30040 [19:17:29]ConnectInit lk.salyk.kg [19:17:29]written 0, free lines is 4095 [19:17:29]Connected sock=10 [19:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 04 12 04 01 08 0F 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 24 81 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A9 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A9 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 63 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 A9 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 47 8B B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E D9 02 00 35 04 06 00 53 D0 E4 FF D1 36 64 A0 DB 93 9B 97 B8 BE [19:17:29]Write to MH i2c: 01 00 00 AD 02 AF [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 07 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0C C1 [19:17:29]RasterBufferAndPrint [19:17:29]line [19:17:29]line [19:17:29]line [19:17:29]line [19:17:29]line [19:17:29]written 0, free lines is 3333 [19:17:29]MH_Cut [19:17:29]Write to MH i2c: D1 01 00 B4 02 01 88 [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: D1 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: D1 01 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: D1 01 00 B4 02 00 87 [19:17:29]Write to MH i2c: 01 00 00 B5 02 B7 [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 EA F0 47 00 41 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0E D9 02 00 F4 03 04 00 A1 31 B3 67 B6 04 01 00 00 4F 52 32 92 54 84 04 DB [19:17:29]CommunicateWithHost err = 0 [19:17:29]CheckOFDResponse [19:17:29]1017 (14) - 77093643461234 [19:17:29]1041 (16) - 0000000000871826 [19:17:29]1040 (4) - 186638 [19:17:29]1012 (4) - 17.02.2025 12:54 [19:17:29]1206 (1) - 0 [19:17:29]OFD Sender: Remove packet 186638 [19:17:29]ProducePacketName [19:17:29]name=ofd_packets/00186638 [19:17:29]NVStorageDeleteData [19:17:30]OFD Sender: No OFD packet to send [19:17:30]*** Cut start [19:17:30]*** Partial cut [19:17:30]*** CUTSNS_PIN = 1 [19:17:30]*** CUTSNS_PIN = 0 [19:17:30]*** Brake cut motor [19:17:30]Read from MH i2c: 01 [19:17:30]MH_I2C_Read... [19:17:30]*** Stop cut motor [19:17:30]*** Cut end [19:17:30]Read from MH i2c: 01 07 00 [19:17:30]MH_I2C_Read... [19:17:30]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [19:17:30]process_action close_receipt done [19:17:30]requested_data is exist [19:17:30]produce_requested_data [19:17:30]requested_item fm.sn is exist - process it [19:17:30]wFMCommunicate request_size=4 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 11 00 00 [19:17:30]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [19:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:17:31]wFMCommunicate OK [19:17:31]requested_item fd.num is exist - process it [19:17:31]SAM_PROTO_GetFieldsCounters [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 13 00 00 [19:17:31]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 62 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [19:17:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:31]wFMCommunicate OK [19:17:31]SAM_PROTO_GetFieldsCounters done [19:17:31]requested_item shift.num is exist - process it [19:17:31]requested_item shift.opened is exist - process it [19:17:31]req_shift_opened [19:17:31]FM_GetShiftState [19:17:31]SAM_PROTO_GetShiftState [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 13 01 00 [19:17:31]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0E 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5B [19:17:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:17:31]wFMCommunicate OK [19:17:31]SAM_PROTO_GetShiftState done [19:17:31]FM_GetShiftState done [19:17:31]req_shift_opened done [19:17:31]requested_item shift.open_date is exist - process it [19:17:31]req_shift_open_date [19:17:31]req_shift_open_date done [19:17:31]produce_requested_data done [19:17:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186638,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:17:31]process_action_free close_receipt [19:17:31]json_value_free [19:17:31]json_value_free done [19:17:31]process_json_proto returns [19:17:31]Send response to host [19:17:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186638,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:17:31]free response buf [19:17:31]execute_script done [19:17:31]execute_script returns [19:17:31]free content buf [19:17:31]Sock 9.Close socket [19:17:31]Sock 9.Thread stoped [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:04]accept exits with 7 [19:24:04]New connection [19:24:04]New thread 3066543460 created [19:24:04]Thread 3066686820 joined [19:24:04]Waiting for new connection... [19:24:04] Sock 7.Parse request [19:24:04]Sock 7.Check first char [19:24:04]Sock 7.First char is OK [19:24:04]request: POST /json_proto HTTP/1.0 [19:24:04]Method: POST [19:24:04]URL: /json_proto [19:24:04]Method is POST - this is cgi request [19:24:04]url: /json_proto [19:24:04]query_string will be loaded in cgi processing [19:24:04]execute_cgi json_proto POST (null) [19:24:04]execute_cgi path=json_proto method=POST [19:24:04]POST find Content-Length [19:24:04]Host: 172.17.46.131:8080 [19:24:04]Content-Length: 677 [19:24:04]Content-Type: application/json [19:24:04] [19:24:04]POST finish read [19:24:04]Found Content-Length = 677 [19:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:04]execute_script... [19:24:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:04]POST & json_proto [19:24:04]process_json_proto [19:24:04]json parsed OK: [19:24:04]protocol is kg_v1.0 [19:24:04]action value=close_receipt [19:24:04]process_action close_receipt [19:24:04]cmd_close_receipt [19:24:04]MH_GetDate [19:24:04]Write to MH i2c: F0 00 00 B9 02 AA [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: F0 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: F0 09 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: F0 09 00 B9 02 00 D5 8C B3 67 7E 41 4F 65 A1 [19:24:04]GetLastDocTimeStamp 1739819847 [19:24:04]current date 1739820245 [19:24:04]FM_GetShiftState [19:24:04]SAM_PROTO_GetShiftState [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 13 01 00 [19:24:04]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0E 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5D [19:24:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_GetShiftState done [19:24:04]FM_GetShiftState done [19:24:04]opened in 1739752571 [19:24:04]opened+sec_in_day 1739838971 [19:24:04]quantity*price = 40060 [19:24:04]sum+1 = 40062 [19:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 226 17.02.2025 19:24 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186639 ФПД: 180262388723120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T192405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186639&fm=180262388723120&tin=02508201610067®Number=0000000000091857&sum=40000 [19:24:05]StoreToDocumentArchive [19:24:05]shift 644 fd 186639 [19:24:05]save to /storage/0644/doc_00186639 [19:24:05]save last doc name /storage/0644/doc_00186639 to /storage/kkm_last_doc_name [19:24:05]save OK [19:24:05]Clear old archive folders... [19:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:05]tlvbuf is B6F17510 [19:24:05]SAM_PROTO_ClearQueue [19:24:05]wFMCommunicate request_size=4 [19:24:05]MH_SAM_APDU [19:24:05]CAPDU: 80 09 00 00 [19:24:05]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:05]Read from MH i2c: E2 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: E2 03 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [19:24:05]RAPDU: 90 00 [19:24:05]wFMCommunicate OK [19:24:05]SAM_PROTO_ClearQueue done [19:24:05]KKMCreateOFDPacket [19:24:05]OFDProtocolAddRootSTLVToBuf [19:24:05]FM_MakeSignedData [19:24:05]FM_MakeSignedData [19:24:05]SAM_PROTO_SignData [19:24:05]wFMCommunicate request_size=4 [19:24:05]MH_SAM_APDU [19:24:05]CAPDU: 80 0D 01 02 [19:24:05]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [19:24:06]RAPDU: 90 00 [19:24:06]wFMCommunicate OK [19:24:06]wFMCommunicate request_size=255 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D5 8C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F D9 02 00 35 04 06 00 A3 [19:24:06]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D5 8C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F D9 02 00 35 04 06 00 A3 00 00 46 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [19:24:06]RAPDU: 90 00 [19:24:06]wFMCommunicate OK [19:24:06]wFMCommunicate request_size=10 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 0D 02 02 05 F2 9B A5 6D B0 [19:24:06]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 F2 9B A5 6D B0 00 00 9F [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [19:24:06]RAPDU: 90 00 [19:24:06]wFMCommunicate OK [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 0D 03 02 [19:24:06]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0B 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 0B 00 CB 02 00 D9 4F 31 67 11 7A 03 27 90 00 BE [19:24:06]RAPDU: D9 4F 31 67 11 7A 03 27 90 00 [19:24:06]wFMCommunicate OK [19:24:06]SAM_PROTO_SignData done [19:24:06]FM_MakeSignedData done [19:24:06]CreateOFDProtocolMessage [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 11 00 00 [19:24:06]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9B [19:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:24:06]wFMCommunicate OK [19:24:06]CreateOFDProtocolMessage done [19:24:06]OFDSenderStorePacket 186639 [19:24:06]StoreOFDPacket docnum=186639 [19:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 80 07 01 60 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D5 8C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F D9 02 00 35 04 06 00 A3 F2 9B A5 6D B0 D9 4F 31 67 11 7A 03 27 [19:24:06]CheckFolder [19:24:06]dirname=/storage/ofd_packets [19:24:06]CheckFolder done [19:24:06]ProducePacketName [19:24:06]name=ofd_packets/00186639 [19:24:06]NVStorageSaveData ofd_packets/00186639 [19:24:06]File name is /storage/ofd_packets/00186639 [19:24:06]Write 301 bytes [19:24:06]NVStorageSaveData done [19:24:06]OFDSenderStorePacket done [19:24:06]KKMCreateOFDPacket done [19:24:06]NVStorageSaveData kkm_last_timestamp [19:24:06]File name is /storage/kkm_last_timestamp [19:24:06]Write 4 bytes [19:24:06]NVStorageSaveData done [19:24:06]ExternCall_PrintAddStr [19:24:06]wPrintStart [19:24:06]Write to MH i2c: 01 00 00 CD 02 CF [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 07 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [19:24:06]RasterBufferAndPrint [19:24:06]line Счет N : (1)411787 [19:24:06]line ИНН: 02508201610067 [19:24:06]line Контрольно-Кассовый Чек [19:24:06]line ПРОДАЖА [19:24:06]line ТРК (МРК, ГНК) : 22 [19:24:06]line Товар: 2710124130 [19:24:06]line Аи-92-К-2 [19:24:06]line 6.240 * 64.20 [19:24:06]line = 400.61 [19:24:06]line НДС 12% НСП 1% [19:24:06]line > о реализуемом товаре [19:24:06]line ОКРУГЛЕНИЕ: -0.61 [19:24:06]line ИТОГО: 400.00 [19:24:06]line Внесено: 400.00 [19:24:06]line СДАЧА: 0.00 [19:24:06]line НСП 1% : 3.54 [19:24:06]line НДС 12% : 42.54 [19:24:06]line Наличными: 400.00 [19:24:06]line Безнал.: 0.00 [19:24:06]line Место: АЗС № 92 "Партнер Нефть" [19:24:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:24:06]line СНО: Общий режим [19:24:06]line Чек 226 17.02.2025 19:24 [19:24:06]line Смена: 644 ФФД: 1.0 [19:24:06]line ЗНМ: 0300000118 [19:24:06]line РНМ: 0000000000091857 [19:24:06]line Версия ККМ: 001 [19:24:06]line ФМ: 0000000000871826 [19:24:06]line ФД: 186639 [19:24:06]line ФПД: 180262388723120 [19:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T192405&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186639&fm=180262388723120&tin=02508201610067®Number=0000000000091857&sum=40000 [19:24:06]OFD Sender: Processing packet 186639 [packets to send 49, broken 48] [19:24:06]ProducePacketName [19:24:06]name=ofd_packets/00186639 [19:24:06]OFD Sender: To server: pG, [19:24:06]CommunicateWithHost lk.salyk.kg:30040 [19:24:06]ConnectInit lk.salyk.kg [19:24:06]written 0, free lines is 4095 [19:24:06]Connected sock=10 [19:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 99 80 07 01 60 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 D5 8C B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F D9 02 00 35 04 06 00 A3 F2 9B A5 6D B0 D9 4F 31 67 11 7A 03 27 [19:24:07]Write to MH i2c: 01 00 00 F8 02 FA [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: 01 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: 01 07 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: 01 07 00 F8 02 00 00 00 00 00 F0 0C FD [19:24:07]RasterBufferAndPrint [19:24:07]line [19:24:07]line [19:24:07]line [19:24:07]line [19:24:07]line [19:24:07]written 0, free lines is 3318 [19:24:07]MH_Cut [19:24:07]Write to MH i2c: D1 01 00 FF 02 01 D3 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: D1 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: D1 01 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: D1 01 00 FF 02 00 D2 [19:24:07]Write to MH i2c: 01 00 00 00 03 03 [19:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E2 8A 47 00 16 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 0F D9 02 00 F4 03 04 00 2E 33 B3 67 B6 04 01 00 00 0E FD C0 C5 B5 4F C3 86 [19:24:07]CommunicateWithHost err = 0 [19:24:07]CheckOFDResponse [19:24:07]1017 (14) - 77093643461234 [19:24:07]1041 (16) - 0000000000871826 [19:24:07]1040 (4) - 186639 [19:24:07]1012 (4) - 17.02.2025 13:01 [19:24:07]1206 (1) - 0 [19:24:07]OFD Sender: Remove packet 186639 [19:24:07]ProducePacketName [19:24:07]name=ofd_packets/00186639 [19:24:07]NVStorageDeleteData [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]OFD Sender: No OFD packet to send [19:24:07]*** Cut start [19:24:07]*** Partial cut [19:24:07]*** CUTSNS_PIN = 1 [19:24:07]*** CUTSNS_PIN = 0 [19:24:08]*** Brake cut motor [19:24:08]Read from MH i2c: 01 [19:24:08]MH_I2C_Read... [19:24:08]*** Stop cut motor [19:24:08]*** Cut end [19:24:08]Read from MH i2c: 01 07 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: 01 07 00 00 03 00 00 00 00 00 FF 0F 18 [19:24:08]process_action close_receipt done [19:24:08]requested_data is exist [19:24:08]produce_requested_data [19:24:08]requested_item fm.sn is exist - process it [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 11 00 00 [19:24:08]Write to MH i2c: E2 08 00 01 03 80 11 00 00 00 00 00 00 7E [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 17 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 17 00 01 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D1 [19:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:24:08]wFMCommunicate OK [19:24:08]requested_item fd.num is exist - process it [19:24:08]SAM_PROTO_GetFieldsCounters [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 13 00 00 [19:24:08]Write to MH i2c: E2 08 00 02 03 80 13 00 00 00 00 00 00 81 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 62 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 62 00 02 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [19:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 0F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:08]wFMCommunicate OK [19:24:08]SAM_PROTO_GetFieldsCounters done [19:24:08]requested_item shift.num is exist - process it [19:24:08]requested_item shift.opened is exist - process it [19:24:08]req_shift_opened [19:24:08]FM_GetShiftState [19:24:08]SAM_PROTO_GetShiftState [19:24:08]wFMCommunicate request_size=4 [19:24:08]MH_SAM_APDU [19:24:08]CAPDU: 80 13 01 00 [19:24:08]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [19:24:08]Write i2c OK [19:24:08]MH_I2C_Read... [19:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:08]Read from MH i2c: E2 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 0E 00 [19:24:08]MH_I2C_Read... [19:24:08]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A7 [19:24:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:24:08]wFMCommunicate OK [19:24:08]SAM_PROTO_GetShiftState done [19:24:08]FM_GetShiftState done [19:24:08]req_shift_opened done [19:24:08]requested_item shift.open_date is exist - process it [19:24:08]req_shift_open_date [19:24:08]req_shift_open_date done [19:24:08]produce_requested_data done [19:24:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186639,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:24:08]process_action_free close_receipt [19:24:08]json_value_free [19:24:08]json_value_free done [19:24:08]process_json_proto returns [19:24:08]Send response to host [19:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186639,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:24:08]free response buf [19:24:08]execute_script done [19:24:08]execute_script returns [19:24:08]free content buf [19:24:08]Sock 7.Close socket [19:24:08]Sock 7.Thread stoped [19:24:12]OFD Sender: No OFD packet to send [19:24:17]OFD Sender: No OFD packet to send [19:24:22]OFD Sender: No OFD packet to send [19:24:27]OFD Sender: No OFD packet to send [19:24:32]OFD Sender: No OFD packet to send [19:24:37]OFD Sender: No OFD packet to send [19:24:42]OFD Sender: No OFD packet to send [19:24:47]OFD Sender: No OFD packet to send [19:24:52]OFD Sender: No OFD packet to send [19:24:57]OFD Sender: No OFD packet to send [19:25:02]OFD Sender: No OFD packet to send [19:25:07]OFD Sender: No OFD packet to send [19:25:12]OFD Sender: No OFD packet to send [19:25:17]OFD Sender: No OFD packet to send [19:25:22]OFD Sender: No OFD packet to send [19:25:27]OFD Sender: No OFD packet to send [19:25:32]OFD Sender: No OFD packet to send [19:25:37]OFD Sender: No OFD packet to send [19:25:41]accept exits with 9 [19:25:41]New connection [19:25:41]New thread 3066686820 created [19:25:41]Thread 3066543460 joined [19:25:41]Waiting for new connection... [19:25:41] Sock 9.Parse request [19:25:41]Sock 9.Check first char [19:25:41]Sock 9.First char is OK [19:25:41]request: POST /json_proto HTTP/1.0 [19:25:41]Method: POST [19:25:41]URL: /json_proto [19:25:41]Method is POST - this is cgi request [19:25:41]url: /json_proto [19:25:41]query_string will be loaded in cgi processing [19:25:41]execute_cgi json_proto POST (null) [19:25:41]execute_cgi path=json_proto method=POST [19:25:41]POST find Content-Length [19:25:41]Host: 172.17.46.131:8080 [19:25:41]Content-Length: 679 [19:25:41]Content-Type: application/json [19:25:41] [19:25:41]POST finish read [19:25:41]Found Content-Length = 679 [19:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:41]execute_script... [19:25:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 20.670, "sum" : 1500.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:41]POST & json_proto [19:25:41]process_json_proto [19:25:41]json parsed OK: [19:25:41]protocol is kg_v1.0 [19:25:41]action value=close_receipt [19:25:41]process_action close_receipt [19:25:41]cmd_close_receipt [19:25:41]MH_GetDate [19:25:41]Write to MH i2c: F0 00 00 04 03 F6 [19:25:41]Write i2c OK [19:25:41]MH_I2C_Read... [19:25:41]Read from MH i2c: F0 [19:25:41]MH_I2C_Read... [19:25:41]Read from MH i2c: F0 09 00 [19:25:41]MH_I2C_Read... [19:25:41]Read from MH i2c: F0 09 00 04 03 00 36 8D B3 67 7E 41 4F 65 4F [19:25:41]GetLastDocTimeStamp 1739820245 [19:25:41]current date 1739820342 [19:25:41]FM_GetShiftState [19:25:41]SAM_PROTO_GetShiftState [19:25:41]wFMCommunicate request_size=4 [19:25:41]MH_SAM_APDU [19:25:41]CAPDU: 80 13 01 00 [19:25:41]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [19:25:41]Write i2c OK [19:25:41]MH_I2C_Read... [19:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:41]Read from MH i2c: E2 [19:25:41]MH_I2C_Read... [19:25:41]Read from MH i2c: E2 0E 00 [19:25:41]MH_I2C_Read... [19:25:41]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A9 [19:25:41]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:25:41]wFMCommunicate OK [19:25:41]SAM_PROTO_GetShiftState done [19:25:41]FM_GetShiftState done [19:25:41]opened in 1739752571 [19:25:41]opened+sec_in_day 1739838971 [19:25:41]quantity*price = 150064 [19:25:41]sum+1 = 150065 [19:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 227 17.02.2025 19:25 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186640 ФПД: 151608872318778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T192542&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186640&fm=151608872318778&tin=02508201610067®Number=0000000000091857&sum=150000 [19:25:42]StoreToDocumentArchive [19:25:42]shift 644 fd 186640 [19:25:42]save to /storage/0644/doc_00186640 [19:25:42]save last doc name /storage/0644/doc_00186640 to /storage/kkm_last_doc_name [19:25:42]save OK [19:25:42]Clear old archive folders... [19:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:25:42]tlvbuf is 013AC790 [19:25:42]SAM_PROTO_ClearQueue [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 09 00 00 [19:25:42]Write to MH i2c: E2 08 00 12 03 80 09 00 00 00 00 00 00 87 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [19:25:42]RAPDU: 90 00 [19:25:42]wFMCommunicate OK [19:25:42]SAM_PROTO_ClearQueue done [19:25:42]KKMCreateOFDPacket [19:25:42]OFDProtocolAddRootSTLVToBuf [19:25:42]FM_MakeSignedData [19:25:42]FM_MakeSignedData [19:25:42]SAM_PROTO_SignData [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 0D 01 02 [19:25:42]Write to MH i2c: E2 08 00 13 03 80 0D 01 02 00 00 00 00 8F [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [19:25:42]RAPDU: 90 00 [19:25:42]wFMCommunicate OK [19:25:42]wFMCommunicate request_size=255 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 36 8D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 D9 02 00 35 04 06 00 89 E3 30 FA [19:25:42]Write to MH i2c: E2 02 01 14 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 36 8D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 D9 02 00 35 04 06 00 89 E3 30 FA 00 00 E0 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]OFD Sender: No OFD packet to send [19:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [19:25:42]RAPDU: 90 00 [19:25:42]wFMCommunicate OK [19:25:42]wFMCommunicate request_size=7 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 0D 02 02 02 B7 3A [19:25:42]Write to MH i2c: E2 0A 00 15 03 80 0D 02 02 02 00 B7 3A 00 00 87 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:42]Read from MH i2c: E2 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 [19:25:42]MH_I2C_Read... [19:25:42]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [19:25:42]RAPDU: 90 00 [19:25:42]wFMCommunicate OK [19:25:42]wFMCommunicate request_size=4 [19:25:42]MH_SAM_APDU [19:25:42]CAPDU: 80 0D 03 02 [19:25:42]Write to MH i2c: E2 08 00 16 03 80 0D 03 02 00 00 00 00 94 [19:25:42]Write i2c OK [19:25:42]MH_I2C_Read... [19:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:43]Read from MH i2c: E2 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: E2 0B 00 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: E2 0B 00 16 03 00 A3 37 FF 8E 2E 16 4E 83 90 00 11 [19:25:43]RAPDU: A3 37 FF 8E 2E 16 4E 83 90 00 [19:25:43]wFMCommunicate OK [19:25:43]SAM_PROTO_SignData done [19:25:43]FM_MakeSignedData done [19:25:43]CreateOFDProtocolMessage [19:25:43]wFMCommunicate request_size=4 [19:25:43]MH_SAM_APDU [19:25:43]CAPDU: 80 11 00 00 [19:25:43]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [19:25:43]Write i2c OK [19:25:43]MH_I2C_Read... [19:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:43]Read from MH i2c: E2 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: E2 17 00 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E7 [19:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:25:43]wFMCommunicate OK [19:25:43]CreateOFDProtocolMessage done [19:25:43]OFDSenderStorePacket 186640 [19:25:43]StoreOFDPacket docnum=186640 [19:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F8 21 04 01 EC 38 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 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 36 8D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 D9 02 00 35 04 06 00 89 E3 30 FA B7 3A A3 37 FF 8E 2E 16 4E 83 [19:25:43]CheckFolder [19:25:43]dirname=/storage/ofd_packets [19:25:43]CheckFolder done [19:25:43]ProducePacketName [19:25:43]name=ofd_packets/00186640 [19:25:43]NVStorageSaveData ofd_packets/00186640 [19:25:43]File name is /storage/ofd_packets/00186640 [19:25:43]Write 298 bytes [19:25:43]NVStorageSaveData done [19:25:43]OFDSenderStorePacket done [19:25:43]KKMCreateOFDPacket done [19:25:43]NVStorageSaveData kkm_last_timestamp [19:25:43]File name is /storage/kkm_last_timestamp [19:25:43]Write 4 bytes [19:25:43]NVStorageSaveData done [19:25:43]ExternCall_PrintAddStr [19:25:43]wPrintStart [19:25:43]Write to MH i2c: 01 00 00 18 03 1B [19:25:43]Write i2c OK [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 07 00 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 07 00 18 03 00 00 00 00 00 FF 0F 30 [19:25:43]RasterBufferAndPrint [19:25:43]line Счет N : (1)411788 [19:25:43]line ИНН: 02508201610067 [19:25:43]line Контрольно-Кассовый Чек [19:25:43]line ПРОДАЖА [19:25:43]line ТРК (МРК, ГНК) : 11 [19:25:43]line Товар: 2710194210 [19:25:43]line ДТ-К-2 [19:25:43]line 20.670 * 72.60 [19:25:43]line = 1500.64 [19:25:43]line НДС 12% НСП 1% [19:25:43]line > о реализуемом товаре [19:25:43]line ОКРУГЛЕНИЕ: -0.64 [19:25:43]line ИТОГО: 1500.00 [19:25:43]line Внесено: 1500.00 [19:25:43]line СДАЧА: 0.00 [19:25:43]line НСП 1% : 13.28 [19:25:43]line НДС 12% : 159.36 [19:25:43]line Наличными: 1500.00 [19:25:43]line Безнал.: 0.00 [19:25:43]line Место: АЗС № 92 "Партнер Нефть" [19:25:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:25:43]line СНО: Общий режим [19:25:43]line Чек 227 17.02.2025 19:25 [19:25:43]line Смена: 644 ФФД: 1.0 [19:25:43]line ЗНМ: 0300000118 [19:25:43]line РНМ: 0000000000091857 [19:25:43]line Версия ККМ: 001 [19:25:43]line ФМ: 0000000000871826 [19:25:43]line ФД: 186640 [19:25:43]line ФПД: 151608872318778 [19:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T192542&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186640&fm=151608872318778&tin=02508201610067®Number=0000000000091857&sum=150000 [19:25:43]OFD Sender: Processing packet 186640 [packets to send 49, broken 48] [19:25:43]ProducePacketName [19:25:43]name=ofd_packets/00186640 [19:25:43]OFD Sender: To server: pG, [19:25:43]CommunicateWithHost lk.salyk.kg:30040 [19:25:43]ConnectInit lk.salyk.kg [19:25:43]written 0, free lines is 4095 [19:25:43]Connected sock=10 [19:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 F8 21 04 01 EC 38 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 32 FF 03 08 00 03 BE 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 36 8D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 D9 02 00 35 04 06 00 89 E3 30 FA B7 3A A3 37 FF 8E 2E 16 4E 83 [19:25:43]Write to MH i2c: 01 00 00 43 03 46 [19:25:43]Write i2c OK [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 07 00 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 EC 0C 45 [19:25:43]RasterBufferAndPrint [19:25:43]line [19:25:43]line [19:25:43]line [19:25:43]line [19:25:43]line [19:25:43]written 0, free lines is 3314 [19:25:43]MH_Cut [19:25:43]Write to MH i2c: D1 01 00 4A 03 01 1F [19:25:43]Write i2c OK [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: D1 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: D1 01 00 [19:25:43]MH_I2C_Read... [19:25:43]Read from MH i2c: D1 01 00 4A 03 00 1E [19:25:43]Write to MH i2c: 01 00 00 4B 03 4E [19:25:43]Write i2c OK [19:25:43]MH_I2C_Read... [19:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F3 8A 47 00 E7 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 10 D9 02 00 F4 03 04 00 8F 33 B3 67 B6 04 01 00 00 B6 33 26 8D D3 F5 93 11 [19:25:43]CommunicateWithHost err = 0 [19:25:43]CheckOFDResponse [19:25:43]1017 (14) - 77093643461234 [19:25:43]1041 (16) - 0000000000871826 [19:25:43]1040 (4) - 186640 [19:25:43]1012 (4) - 17.02.2025 13:03 [19:25:43]1206 (1) - 0 [19:25:43]OFD Sender: Remove packet 186640 [19:25:43]ProducePacketName [19:25:43]name=ofd_packets/00186640 [19:25:43]NVStorageDeleteData [19:25:44]OFD Sender: No OFD packet to send [19:25:44]*** Cut start [19:25:44]*** Partial cut [19:25:44]*** CUTSNS_PIN = 1 [19:25:44]*** CUTSNS_PIN = 0 [19:25:44]*** Brake cut motor [19:25:45]Read from MH i2c: 01 [19:25:45]MH_I2C_Read... [19:25:45]*** Stop cut motor [19:25:45]*** Cut end [19:25:45]Read from MH i2c: 01 07 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [19:25:45]process_action close_receipt done [19:25:45]requested_data is exist [19:25:45]produce_requested_data [19:25:45]requested_item fm.sn is exist - process it [19:25:45]wFMCommunicate request_size=4 [19:25:45]MH_SAM_APDU [19:25:45]CAPDU: 80 11 00 00 [19:25:45]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [19:25:45]Write i2c OK [19:25:45]MH_I2C_Read... [19:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:45]Read from MH i2c: E2 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 17 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1C [19:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:25:45]wFMCommunicate OK [19:25:45]requested_item fd.num is exist - process it [19:25:45]SAM_PROTO_GetFieldsCounters [19:25:45]wFMCommunicate request_size=4 [19:25:45]MH_SAM_APDU [19:25:45]CAPDU: 80 13 00 00 [19:25:45]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [19:25:45]Write i2c OK [19:25:45]MH_I2C_Read... [19:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:45]Read from MH i2c: E2 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 62 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [19:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 10 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:45]wFMCommunicate OK [19:25:45]SAM_PROTO_GetFieldsCounters done [19:25:45]requested_item shift.num is exist - process it [19:25:45]requested_item shift.opened is exist - process it [19:25:45]req_shift_opened [19:25:45]FM_GetShiftState [19:25:45]SAM_PROTO_GetShiftState [19:25:45]wFMCommunicate request_size=4 [19:25:45]MH_SAM_APDU [19:25:45]CAPDU: 80 13 01 00 [19:25:45]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [19:25:45]Write i2c OK [19:25:45]MH_I2C_Read... [19:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:45]Read from MH i2c: E2 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 0E 00 [19:25:45]MH_I2C_Read... [19:25:45]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F2 [19:25:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:25:45]wFMCommunicate OK [19:25:45]SAM_PROTO_GetShiftState done [19:25:45]FM_GetShiftState done [19:25:45]req_shift_opened done [19:25:45]requested_item shift.open_date is exist - process it [19:25:45]req_shift_open_date [19:25:45]req_shift_open_date done [19:25:45]produce_requested_data done [19:25:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186640,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:25:45]process_action_free close_receipt [19:25:45]json_value_free [19:25:45]json_value_free done [19:25:45]process_json_proto returns [19:25:45]Send response to host [19:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186640,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:25:45]free response buf [19:25:45]execute_script done [19:25:45]execute_script returns [19:25:45]free content buf [19:25:45]Sock 9.Close socket [19:25:45]Sock 9.Thread stoped [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:34:10]ConnectInit Can't connect to host [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:54]accept exits with 9 [19:36:54]New connection [19:36:54]New thread 3067194724 created [19:36:54]Thread 3067051364 joined [19:36:54]Waiting for new connection... [19:36:54] Sock 9.Parse request [19:36:54]Sock 9.Check first char [19:36:54]Sock 9.First char is OK [19:36:54]request: POST /json_proto HTTP/1.0 [19:36:54]Method: POST [19:36:54]URL: /json_proto [19:36:54]Method is POST - this is cgi request [19:36:54]url: /json_proto [19:36:54]query_string will be loaded in cgi processing [19:36:54]execute_cgi json_proto POST (null) [19:36:54]execute_cgi path=json_proto method=POST [19:36:54]POST find Content-Length [19:36:54]Host: 172.17.46.131:8080 [19:36:54]Content-Length: 799 [19:36:54]Content-Type: application/json [19:36:54] [19:36:54]POST finish read [19:36:54]Found Content-Length = 799 [19:36:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:54]execute_script... [19:36:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:54]POST & json_proto [19:36:54]process_json_proto [19:36:54]json parsed OK: [19:36:54]protocol is kg_v1.0 [19:36:54]action value=close_receipt [19:36:54]process_action close_receipt [19:36:54]cmd_close_receipt [19:36:54]MH_GetDate [19:36:54]Write to MH i2c: F0 00 00 1D 00 0C [19:36:54]Write i2c OK [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: F0 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: F0 09 00 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: F0 09 00 1D 00 00 D7 8F B3 67 7E 41 4F 65 08 [19:36:54]GetLastDocTimeStamp 1739820342 [19:36:54]current date 1739821015 [19:36:54]FM_GetShiftState [19:36:54]SAM_PROTO_GetShiftState [19:36:54]wFMCommunicate request_size=4 [19:36:54]MH_SAM_APDU [19:36:54]CAPDU: 80 13 01 00 [19:36:54]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [19:36:54]Write i2c OK [19:36:54]MH_I2C_Read... [19:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:54]Read from MH i2c: E2 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 0E 00 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BF [19:36:54]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:36:54]wFMCommunicate OK [19:36:54]SAM_PROTO_GetShiftState done [19:36:54]FM_GetShiftState done [19:36:54]opened in 1739752571 [19:36:54]opened+sec_in_day 1739838971 [19:36:54]quantity*price = 200013 [19:36:54]sum+1 = 200014 [19:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 228 17.02.2025 19:36 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186641 ФПД: 25076534938591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186641&fm=25076534938591&tin=02508201610067®Number=0000000000091857&sum=200013 [19:36:56]StoreToDocumentArchive [19:36:56]shift 644 fd 186641 [19:36:56]save to /storage/0644/doc_00186641 [19:36:56]save last doc name /storage/0644/doc_00186641 to /storage/kkm_last_doc_name [19:36:56]save OK [19:36:56]Clear old archive folders... [19:36:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:36:56]tlvbuf is 005CCB50 [19:36:56]SAM_PROTO_ClearQueue [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 09 00 00 [19:36:56]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]SAM_PROTO_ClearQueue done [19:36:56]KKMCreateOFDPacket [19:36:56]OFDProtocolAddRootSTLVToBuf [19:36:56]FM_MakeSignedData [19:36:56]FM_MakeSignedData [19:36:56]SAM_PROTO_SignData [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 01 02 [19:36:56]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=255 [19:36:56]MH_SAM_APDU [19:36:56]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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D7 8F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 D9 02 00 35 04 06 00 16 CE 95 F5 [19:36:56]Write to MH i2c: E2 02 01 2D 00 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D7 8F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 D9 02 00 35 04 06 00 16 CE 95 F5 00 00 1D [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=7 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 02 02 02 0B DF [19:36:56]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 0B DF 00 00 96 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [19:36:56]RAPDU: 90 00 [19:36:56]wFMCommunicate OK [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 0D 03 02 [19:36:56]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 0B 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 0B 00 2F 00 00 D8 C2 40 FD 79 3B 0D E3 90 00 26 [19:36:56]RAPDU: D8 C2 40 FD 79 3B 0D E3 90 00 [19:36:56]wFMCommunicate OK [19:36:56]SAM_PROTO_SignData done [19:36:56]FM_MakeSignedData done [19:36:56]CreateOFDProtocolMessage [19:36:56]wFMCommunicate request_size=4 [19:36:56]MH_SAM_APDU [19:36:56]CAPDU: 80 11 00 00 [19:36:56]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:56]Read from MH i2c: E2 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 17 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 FD [19:36:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:36:56]wFMCommunicate OK [19:36:56]CreateOFDProtocolMessage done [19:36:56]OFDSenderStorePacket 186641 [19:36:56]StoreOFDPacket docnum=186641 [19:36:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A1 3C 04 01 F1 7C 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D7 8F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 D9 02 00 35 04 06 00 16 CE 95 F5 0B DF D8 C2 40 FD 79 3B 0D E3 [19:36:56]CheckFolder [19:36:56]dirname=/storage/ofd_packets [19:36:56]CheckFolder done [19:36:56]ProducePacketName [19:36:56]name=ofd_packets/00186641 [19:36:56]NVStorageSaveData ofd_packets/00186641 [19:36:56]File name is /storage/ofd_packets/00186641 [19:36:56]Write 298 bytes [19:36:56]NVStorageSaveData done [19:36:56]OFDSenderStorePacket done [19:36:56]KKMCreateOFDPacket done [19:36:56]NVStorageSaveData kkm_last_timestamp [19:36:56]File name is /storage/kkm_last_timestamp [19:36:56]Write 4 bytes [19:36:56]NVStorageSaveData done [19:36:56]ExternCall_PrintAddStr [19:36:56]wPrintStart [19:36:56]Write to MH i2c: 01 00 00 31 00 31 [19:36:56]Write i2c OK [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 07 00 [19:36:56]MH_I2C_Read... [19:36:56]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [19:36:56]RasterBufferAndPrint [19:36:56]line Счет N : (1)411789 [19:36:56]line ИНН: 02508201610067 [19:36:56]line Контрольно-Кассовый Чек [19:36:56]line ПРОДАЖА [19:36:56]line ТРК (МРК, ГНК) : 5 [19:36:56]line Товар: 2710194210 [19:36:56]line ДТ-К-5 [19:36:56]line 27.550 * 72.60 [19:36:56]line = 2000.13 [19:36:56]line НДС 12% НСП 1% [19:36:56]line > о реализуемом товаре [19:36:56]line ИТОГО: 2000.13 [19:36:56]line НСП 1% : 17.70 [19:36:56]line НДС 12% : 212.40 [19:36:56]line Наличными: 0.00 [19:36:56]line Безнал.: 2000.13 [19:36:56]line Место: АЗС № 92 "Партнер Нефть" [19:36:56]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:36:56]line СНО: Общий режим [19:36:56]line Чек 228 17.02.2025 19:36 [19:36:56]line Смена: 644 ФФД: 1.0 [19:36:56]line ЗНМ: 0300000118 [19:36:56]line РНМ: 0000000000091857 [19:36:56]line Версия ККМ: 001 [19:36:56]line Платежная система: O! деньги [19:36:56]line ФМ: 0000000000871826 [19:36:56]line ФД: 186641 [19:36:56]line ФПД: 25076534938591 [19:36:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193655&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186641&fm=25076534938591&tin=02508201610067®Number=0000000000091857&sum=200013 [19:36:56]written 0, free lines is 4095 [19:36:56]OFD Sender: Processing packet 186641 [packets to send 49, broken 48] [19:36:56]ProducePacketName [19:36:56]name=ofd_packets/00186641 [19:36:56]OFD Sender: To server: pG, [19:36:56]CommunicateWithHost lk.salyk.kg:30040 [19:36:56]ConnectInit lk.salyk.kg [19:36:56]Connected sock=10 [19:36:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A1 3C 04 01 F1 7C 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 9E 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4D 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4D 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D7 8F B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 D9 02 00 35 04 06 00 16 CE 95 F5 0B DF D8 C2 40 FD 79 3B 0D E3 [19:36:57]Write to MH i2c: 01 00 00 5B 00 5B [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 07 00 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 15 0D 84 [19:36:57]RasterBufferAndPrint [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]line [19:36:57]written 0, free lines is 3355 [19:36:57]MH_Cut [19:36:57]Write to MH i2c: D1 01 00 62 00 01 34 [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 01 00 [19:36:57]MH_I2C_Read... [19:36:57]Read from MH i2c: D1 01 00 62 00 00 33 [19:36:57]Write to MH i2c: 01 00 00 63 00 63 [19:36:57]Write i2c OK [19:36:57]MH_I2C_Read... [19:36:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E0 E4 47 00 F3 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 11 D9 02 00 F4 03 04 00 30 36 B3 67 B6 04 01 00 00 9E 60 9C 44 B4 7B 04 24 [19:36:57]CommunicateWithHost err = 0 [19:36:57]CheckOFDResponse [19:36:57]1017 (14) - 77093643461234 [19:36:57]1041 (16) - 0000000000871826 [19:36:57]1040 (4) - 186641 [19:36:57]1012 (4) - 17.02.2025 13:14 [19:36:57]1206 (1) - 0 [19:36:57]OFD Sender: Remove packet 186641 [19:36:57]ProducePacketName [19:36:57]name=ofd_packets/00186641 [19:36:57]NVStorageDeleteData [19:36:57]OFD Sender: No OFD packet to send [19:36:57]*** Cut start [19:36:57]*** Partial cut [19:36:57]*** CUTSNS_PIN = 1 [19:36:57]*** CUTSNS_PIN = 0 [19:36:58]*** Brake cut motor [19:36:58]Read from MH i2c: 01 [19:36:58]MH_I2C_Read... [19:36:58]*** Stop cut motor [19:36:58]*** Cut end [19:36:58]Read from MH i2c: 01 07 00 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [19:36:58]process_action close_receipt done [19:36:58]requested_data is exist [19:36:58]produce_requested_data [19:36:58]requested_item fm.sn is exist - process it [19:36:58]wFMCommunicate request_size=4 [19:36:58]MH_SAM_APDU [19:36:58]CAPDU: 80 11 00 00 [19:36:58]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [19:36:58]Write i2c OK [19:36:58]MH_I2C_Read... [19:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:58]Read from MH i2c: E2 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 17 00 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 31 [19:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:36:58]wFMCommunicate OK [19:36:58]requested_item fd.num is exist - process it [19:36:58]SAM_PROTO_GetFieldsCounters [19:36:58]wFMCommunicate request_size=4 [19:36:58]MH_SAM_APDU [19:36:58]CAPDU: 80 13 00 00 [19:36:58]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [19:36:58]Write i2c OK [19:36:58]MH_I2C_Read... [19:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:58]Read from MH i2c: E2 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 62 00 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 11 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:58]wFMCommunicate OK [19:36:58]SAM_PROTO_GetFieldsCounters done [19:36:58]requested_item shift.num is exist - process it [19:36:58]requested_item shift.opened is exist - process it [19:36:58]req_shift_opened [19:36:58]FM_GetShiftState [19:36:58]SAM_PROTO_GetShiftState [19:36:58]wFMCommunicate request_size=4 [19:36:58]MH_SAM_APDU [19:36:58]CAPDU: 80 13 01 00 [19:36:58]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [19:36:58]Write i2c OK [19:36:58]MH_I2C_Read... [19:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:58]Read from MH i2c: E2 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 0E 00 [19:36:58]MH_I2C_Read... [19:36:58]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 07 [19:36:58]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:36:58]wFMCommunicate OK [19:36:58]SAM_PROTO_GetShiftState done [19:36:58]FM_GetShiftState done [19:36:58]req_shift_opened done [19:36:58]requested_item shift.open_date is exist - process it [19:36:58]req_shift_open_date [19:36:58]req_shift_open_date done [19:36:58]produce_requested_data done [19:36:58]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186641,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:36:58]process_action_free close_receipt [19:36:58]json_value_free [19:36:58]json_value_free done [19:36:58]process_json_proto returns [19:36:58]Send response to host [19:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186641,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:36:58]free response buf [19:36:58]execute_script done [19:36:58]execute_script returns [19:36:58]free content buf [19:36:58]Sock 9.Close socket [19:36:58]Sock 9.Thread stoped [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:05]accept exits with 7 [19:39:05]New connection [19:39:05]New thread 3067051364 created [19:39:05]Thread 3067194724 joined [19:39:05]Waiting for new connection... [19:39:05] Sock 7.Parse request [19:39:05]Sock 7.Check first char [19:39:05]Sock 7.First char is OK [19:39:05]request: POST /json_proto HTTP/1.0 [19:39:05]Method: POST [19:39:05]URL: /json_proto [19:39:05]Method is POST - this is cgi request [19:39:05]url: /json_proto [19:39:05]query_string will be loaded in cgi processing [19:39:05]execute_cgi json_proto POST (null) [19:39:05]execute_cgi path=json_proto method=POST [19:39:05]POST find Content-Length [19:39:05]Host: 172.17.46.131:8080 [19:39:05]Content-Length: 674 [19:39:05]Content-Type: application/json [19:39:05] [19:39:05]POST finish read [19:39:05]Found Content-Length = 674 [19:39:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:05]execute_script... [19:39:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 12.400, "sum" : 900.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:05]POST & json_proto [19:39:05]process_json_proto [19:39:05]json parsed OK: [19:39:05]protocol is kg_v1.0 [19:39:05]action value=close_receipt [19:39:05]process_action close_receipt [19:39:05]cmd_close_receipt [19:39:05]MH_GetDate [19:39:05]Write to MH i2c: F0 00 00 67 00 56 [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: F0 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: F0 09 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: F0 09 00 67 00 00 59 90 B3 67 7E 41 4F 65 D5 [19:39:05]GetLastDocTimeStamp 1739821015 [19:39:05]current date 1739821145 [19:39:05]FM_GetShiftState [19:39:05]SAM_PROTO_GetShiftState [19:39:05]wFMCommunicate request_size=4 [19:39:05]MH_SAM_APDU [19:39:05]CAPDU: 80 13 01 00 [19:39:05]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [19:39:05]Write i2c OK [19:39:05]MH_I2C_Read... [19:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:05]Read from MH i2c: E2 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 0E 00 [19:39:05]MH_I2C_Read... [19:39:05]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 09 [19:39:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:05]wFMCommunicate OK [19:39:05]SAM_PROTO_GetShiftState done [19:39:05]FM_GetShiftState done [19:39:05]opened in 1739752571 [19:39:05]opened+sec_in_day 1739838971 [19:39:05]quantity*price = 90024 [19:39:05]sum+1 = 90025 [19:39:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 229 17.02.2025 19:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186642 ФПД: 5487364795077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186642&fm=5487364795077&tin=02508201610067®Number=0000000000091857&sum=90000 [19:39:06]StoreToDocumentArchive [19:39:06]shift 644 fd 186642 [19:39:06]save to /storage/0644/doc_00186642 [19:39:06]save last doc name /storage/0644/doc_00186642 to /storage/kkm_last_doc_name [19:39:06]save OK [19:39:06]Clear old archive folders... [19:39:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:39:06]tlvbuf is 005C36D0 [19:39:06]SAM_PROTO_ClearQueue [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 09 00 00 [19:39:06]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_ClearQueue done [19:39:06]KKMCreateOFDPacket [19:39:06]OFDProtocolAddRootSTLVToBuf [19:39:06]FM_MakeSignedData [19:39:06]FM_MakeSignedData [19:39:06]SAM_PROTO_SignData [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 01 02 [19:39:06]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=255 [19:39:06]MH_SAM_APDU [19:39:06]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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 59 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 D9 02 00 35 04 06 00 04 FD A0 6D [19:39:06]Write to MH i2c: E2 02 01 77 00 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 59 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 D9 02 00 35 04 06 00 04 FD A0 6D 00 00 57 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=7 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 02 02 02 EA C5 [19:39:06]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 EA C5 00 00 A5 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [19:39:06]RAPDU: 90 00 [19:39:06]wFMCommunicate OK [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 0D 03 02 [19:39:06]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 0B 00 79 00 00 26 56 E7 18 F7 CF F7 58 90 00 85 [19:39:06]RAPDU: 26 56 E7 18 F7 CF F7 58 90 00 [19:39:06]wFMCommunicate OK [19:39:06]SAM_PROTO_SignData done [19:39:06]FM_MakeSignedData done [19:39:06]CreateOFDProtocolMessage [19:39:06]wFMCommunicate request_size=4 [19:39:06]MH_SAM_APDU [19:39:06]CAPDU: 80 11 00 00 [19:39:06]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:06]Read from MH i2c: E2 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 47 [19:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:06]wFMCommunicate OK [19:39:06]CreateOFDProtocolMessage done [19:39:06]OFDSenderStorePacket 186642 [19:39:06]StoreOFDPacket docnum=186642 [19:39:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2E 64 04 01 E9 15 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 59 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 D9 02 00 35 04 06 00 04 FD A0 6D EA C5 26 56 E7 18 F7 CF F7 58 [19:39:06]CheckFolder [19:39:06]dirname=/storage/ofd_packets [19:39:06]CheckFolder done [19:39:06]ProducePacketName [19:39:06]name=ofd_packets/00186642 [19:39:06]NVStorageSaveData ofd_packets/00186642 [19:39:06]File name is /storage/ofd_packets/00186642 [19:39:06]Write 298 bytes [19:39:06]NVStorageSaveData done [19:39:06]OFDSenderStorePacket done [19:39:06]KKMCreateOFDPacket done [19:39:06]NVStorageSaveData kkm_last_timestamp [19:39:06]File name is /storage/kkm_last_timestamp [19:39:06]Write 4 bytes [19:39:06]NVStorageSaveData done [19:39:06]ExternCall_PrintAddStr [19:39:06]wPrintStart [19:39:06]Write to MH i2c: 01 00 00 7B 00 7B [19:39:06]Write i2c OK [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 [19:39:06]MH_I2C_Read... [19:39:06]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [19:39:06]RasterBufferAndPrint [19:39:06]line Счет N : (1)411791 [19:39:06]line ИНН: 02508201610067 [19:39:06]line Контрольно-Кассовый Чек [19:39:06]line ПРОДАЖА [19:39:06]line ТРК (МРК, ГНК) : 6 [19:39:06]line Товар: 2710194210 [19:39:06]line ДТ-К-5 [19:39:06]line 12.400 * 72.60 [19:39:06]line = 900.24 [19:39:06]line НДС 12% НСП 1% [19:39:06]line > о реализуемом товаре [19:39:06]line ОКРУГЛЕНИЕ: -0.24 [19:39:06]line ИТОГО: 900.00 [19:39:06]line Внесено: 900.00 [19:39:06]line СДАЧА: 0.00 [19:39:06]line НСП 1% : 7.97 [19:39:06]line НДС 12% : 95.60 [19:39:06]line Наличными: 900.00 [19:39:06]line Безнал.: 0.00 [19:39:06]line Место: АЗС № 92 "Партнер Нефть" [19:39:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:39:06]line СНО: Общий режим [19:39:06]line Чек 229 17.02.2025 19:39 [19:39:06]line Смена: 644 ФФД: 1.0 [19:39:06]line ЗНМ: 0300000118 [19:39:06]line РНМ: 0000000000091857 [19:39:06]line Версия ККМ: 001 [19:39:06]line ФМ: 0000000000871826 [19:39:06]line ФД: 186642 [19:39:06]line ФПД: 5487364795077 [19:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193905&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186642&fm=5487364795077&tin=02508201610067®Number=0000000000091857&sum=90000 [19:39:07]OFD Sender: Processing packet 186642 [packets to send 49, broken 48] [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00186642 [19:39:07]OFD Sender: To server: pG, [19:39:07]CommunicateWithHost lk.salyk.kg:30040 [19:39:07]ConnectInit lk.salyk.kg [19:39:07]written 0, free lines is 4095 [19:39:07]Connected sock=10 [19:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 2E 64 04 01 E9 15 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 70 30 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A8 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 59 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 D9 02 00 35 04 06 00 04 FD A0 6D EA C5 26 56 E7 18 F7 CF F7 58 [19:39:07]Write to MH i2c: 01 00 00 A6 00 A6 [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 F3 0C AC [19:39:07]RasterBufferAndPrint [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]line [19:39:07]written 0, free lines is 3321 [19:39:07]MH_Cut [19:39:07]Write to MH i2c: D1 01 00 AD 00 01 7F [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 [19:39:07]MH_I2C_Read... [19:39:07]Read from MH i2c: D1 01 00 AD 00 00 7E [19:39:07]Write to MH i2c: 01 00 00 AE 00 AE [19:39:07]Write i2c OK [19:39:07]MH_I2C_Read... [19:39:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 18 C7 47 00 57 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 12 D9 02 00 F4 03 04 00 B3 36 B3 67 B6 04 01 00 00 C7 72 B8 3E 7F 54 7C 7F [19:39:07]CommunicateWithHost err = 0 [19:39:07]CheckOFDResponse [19:39:07]1017 (14) - 77093643461234 [19:39:07]1041 (16) - 0000000000871826 [19:39:07]1040 (4) - 186642 [19:39:07]1012 (4) - 17.02.2025 13:16 [19:39:07]1206 (1) - 0 [19:39:07]OFD Sender: Remove packet 186642 [19:39:07]ProducePacketName [19:39:07]name=ofd_packets/00186642 [19:39:07]NVStorageDeleteData [19:39:08]*** Cut start [19:39:08]*** Partial cut [19:39:08]*** CUTSNS_PIN = 1 [19:39:08]OFD Sender: No OFD packet to send [19:39:08]*** CUTSNS_PIN = 0 [19:39:08]*** Brake cut motor [19:39:08]Read from MH i2c: 01 [19:39:08]MH_I2C_Read... [19:39:08]*** Stop cut motor [19:39:08]*** Cut end [19:39:08]Read from MH i2c: 01 07 00 [19:39:08]MH_I2C_Read... [19:39:08]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [19:39:08]process_action close_receipt done [19:39:08]requested_data is exist [19:39:08]produce_requested_data [19:39:08]requested_item fm.sn is exist - process it [19:39:08]wFMCommunicate request_size=4 [19:39:08]MH_SAM_APDU [19:39:08]CAPDU: 80 11 00 00 [19:39:08]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [19:39:08]Write i2c OK [19:39:08]MH_I2C_Read... [19:39:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7C [19:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:09]wFMCommunicate OK [19:39:09]requested_item fd.num is exist - process it [19:39:09]SAM_PROTO_GetFieldsCounters [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 00 00 [19:39:09]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 62 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [19:39:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 12 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:09]wFMCommunicate OK [19:39:09]SAM_PROTO_GetFieldsCounters done [19:39:09]requested_item shift.num is exist - process it [19:39:09]requested_item shift.opened is exist - process it [19:39:09]req_shift_opened [19:39:09]FM_GetShiftState [19:39:09]SAM_PROTO_GetShiftState [19:39:09]wFMCommunicate request_size=4 [19:39:09]MH_SAM_APDU [19:39:09]CAPDU: 80 13 01 00 [19:39:09]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [19:39:09]Write i2c OK [19:39:09]MH_I2C_Read... [19:39:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:09]Read from MH i2c: E2 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 [19:39:09]MH_I2C_Read... [19:39:09]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 52 [19:39:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:09]wFMCommunicate OK [19:39:09]SAM_PROTO_GetShiftState done [19:39:09]FM_GetShiftState done [19:39:09]req_shift_opened done [19:39:09]requested_item shift.open_date is exist - process it [19:39:09]req_shift_open_date [19:39:09]req_shift_open_date done [19:39:09]produce_requested_data done [19:39:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186642,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:39:09]process_action_free close_receipt [19:39:09]json_value_free [19:39:09]json_value_free done [19:39:09]process_json_proto returns [19:39:09]Send response to host [19:39:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186642,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:39:09]free response buf [19:39:09]execute_script done [19:39:09]execute_script returns [19:39:09]free content buf [19:39:09]Sock 7.Close socket [19:39:09]Sock 7.Thread stoped [19:39:13]OFD Sender: No OFD packet to send [19:39:18]OFD Sender: No OFD packet to send [19:39:23]OFD Sender: No OFD packet to send [19:39:25]accept exits with 9 [19:39:25]New connection [19:39:25]New thread 3067194724 created [19:39:25]Thread 3067051364 joined [19:39:25]Waiting for new connection... [19:39:25] Sock 9.Parse request [19:39:25]Sock 9.Check first char [19:39:25]Sock 9.First char is OK [19:39:25]request: POST /json_proto HTTP/1.0 [19:39:25]Method: POST [19:39:25]URL: /json_proto [19:39:25]Method is POST - this is cgi request [19:39:25]url: /json_proto [19:39:25]query_string will be loaded in cgi processing [19:39:25]execute_cgi json_proto POST (null) [19:39:25]execute_cgi path=json_proto method=POST [19:39:25]POST find Content-Length [19:39:25]Host: 172.17.46.131:8080 [19:39:25]Content-Length: 800 [19:39:25]Content-Type: application/json [19:39:25] [19:39:25]POST finish read [19:39:25]Found Content-Length = 800 [19:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 19.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:25]execute_script... [19:39:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 19.870, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175348", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:25]POST & json_proto [19:39:25]process_json_proto [19:39:25]json parsed OK: [19:39:25]protocol is kg_v1.0 [19:39:25]action value=close_receipt [19:39:25]process_action close_receipt [19:39:25]cmd_close_receipt [19:39:25]MH_GetDate [19:39:25]Write to MH i2c: F0 00 00 B2 00 A1 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: F0 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: F0 09 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: F0 09 00 B2 00 00 6E 90 B3 67 7E 41 4F 65 35 [19:39:25]GetLastDocTimeStamp 1739821145 [19:39:25]current date 1739821166 [19:39:25]FM_GetShiftState [19:39:25]SAM_PROTO_GetShiftState [19:39:25]wFMCommunicate request_size=4 [19:39:25]MH_SAM_APDU [19:39:25]CAPDU: 80 13 01 00 [19:39:25]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [19:39:25]Write i2c OK [19:39:25]MH_I2C_Read... [19:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:25]Read from MH i2c: E2 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 0E 00 [19:39:25]MH_I2C_Read... [19:39:25]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 54 [19:39:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:25]wFMCommunicate OK [19:39:25]SAM_PROTO_GetShiftState done [19:39:25]FM_GetShiftState done [19:39:25]opened in 1739752571 [19:39:25]opened+sec_in_day 1739838971 [19:39:25]quantity*price = 0 [19:39:25]sum+1 = 1 [19:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 230 17.02.2025 19:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175348 ФМ: 0000000000871826 ФД: 186643 ФПД: 249452067163820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186643&fm=249452067163820&tin=02508201610067®Number=0000000000091857&sum=0 [19:39:27]StoreToDocumentArchive [19:39:27]shift 644 fd 186643 [19:39:27]save to /storage/0644/doc_00186643 [19:39:27]save last doc name /storage/0644/doc_00186643 to /storage/kkm_last_doc_name [19:39:27]save OK [19:39:27]Clear old archive folders... [19:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:27]tlvbuf is 005EAFD0 [19:39:27]SAM_PROTO_ClearQueue [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 09 00 00 [19:39:27]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_ClearQueue done [19:39:27]KKMCreateOFDPacket [19:39:27]OFDProtocolAddRootSTLVToBuf [19:39:27]FM_MakeSignedData [19:39:27]FM_MakeSignedData [19:39:27]SAM_PROTO_SignData [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 0D 01 02 [19:39:27]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]wFMCommunicate request_size=255 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 4D 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 E6 00 00 00 F4 03 04 00 6E 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 D9 02 00 35 04 06 00 E2 [19:39:27]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 4D 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 E6 00 00 00 F4 03 04 00 6E 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 D9 02 00 35 04 06 00 E2 00 00 85 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]wFMCommunicate request_size=10 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 0D 02 02 05 E0 15 DA 0E AC [19:39:27]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 E0 15 DA 0E AC 00 00 D0 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:39:27]RAPDU: 90 00 [19:39:27]wFMCommunicate OK [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 0D 03 02 [19:39:27]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0B 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 0B 00 C4 00 00 CE 39 FC A7 24 38 83 E6 90 00 AF [19:39:27]RAPDU: CE 39 FC A7 24 38 83 E6 90 00 [19:39:27]wFMCommunicate OK [19:39:27]SAM_PROTO_SignData done [19:39:27]FM_MakeSignedData done [19:39:27]CreateOFDProtocolMessage [19:39:27]wFMCommunicate request_size=4 [19:39:27]MH_SAM_APDU [19:39:27]CAPDU: 80 11 00 00 [19:39:27]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:27]Read from MH i2c: E2 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 17 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 92 [19:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:27]wFMCommunicate OK [19:39:27]CreateOFDProtocolMessage done [19:39:27]OFDSenderStorePacket 186643 [19:39:27]StoreOFDPacket docnum=186643 [19:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CF F7 07 01 DA AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 4D 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 E6 00 00 00 F4 03 04 00 6E 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 D9 02 00 35 04 06 00 E2 E0 15 DA 0E AC CE 39 FC A7 24 38 83 E6 [19:39:27]CheckFolder [19:39:27]dirname=/storage/ofd_packets [19:39:27]CheckFolder done [19:39:27]ProducePacketName [19:39:27]name=ofd_packets/00186643 [19:39:27]NVStorageSaveData ofd_packets/00186643 [19:39:27]File name is /storage/ofd_packets/00186643 [19:39:27]Write 301 bytes [19:39:27]NVStorageSaveData done [19:39:27]OFDSenderStorePacket done [19:39:27]KKMCreateOFDPacket done [19:39:27]NVStorageSaveData kkm_last_timestamp [19:39:27]File name is /storage/kkm_last_timestamp [19:39:27]Write 4 bytes [19:39:27]NVStorageSaveData done [19:39:27]ExternCall_PrintAddStr [19:39:27]wPrintStart [19:39:27]Write to MH i2c: 01 00 00 C6 00 C6 [19:39:27]Write i2c OK [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 [19:39:27]MH_I2C_Read... [19:39:27]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [19:39:27]RasterBufferAndPrint [19:39:27]line Счет N : (1)411792 [19:39:27]line ИНН: 02508201610067 [19:39:27]line Контрольно-Кассовый Чек [19:39:27]line ПРОДАЖА [19:39:27]line ТРК (МРК, ГНК) : 12 [19:39:27]line Товар: 2710124130 [19:39:27]line Аи-92-К-2 [19:39:27]line 19.870 * 0.00 [19:39:27]line = 0.00 [19:39:27]line НДС 12% НСП 1% [19:39:27]line > о реализуемом товаре [19:39:27]line ИТОГО: 0.00 [19:39:27]line НСП 1% : 0.00 [19:39:27]line НДС 12% : 0.00 [19:39:27]line Наличными: 0.00 [19:39:27]line Безнал.: 0.00 [19:39:27]line Место: АЗС № 92 "Партнер Нефть" [19:39:27]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:39:27]line СНО: Общий режим [19:39:27]line Чек 230 17.02.2025 19:39 [19:39:27]line Смена: 644 ФФД: 1.0 [19:39:27]line ЗНМ: 0300000118 [19:39:27]line РНМ: 0000000000091857 [19:39:27]line Версия ККМ: 001 [19:39:27]line Талоны: Топливные Талоны [19:39:27]line 4175348 [19:39:27]line ФМ: 0000000000871826 [19:39:27]line ФД: 186643 [19:39:27]line ФПД: 249452067163820 [19:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193926&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186643&fm=249452067163820&tin=02508201610067®Number=0000000000091857&sum=0 [19:39:27]written 0, free lines is 4095 [19:39:27]OFD Sender: Processing packet 186643 [packets to send 49, broken 48] [19:39:27]ProducePacketName [19:39:27]name=ofd_packets/00186643 [19:39:27]OFD Sender: To server: pG, [19:39:27]CommunicateWithHost lk.salyk.kg:30040 [19:39:27]ConnectInit lk.salyk.kg [19:39:28]Write to MH i2c: 01 00 00 F0 00 F0 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 FB 0C FE [19:39:28]RasterBufferAndPrint [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]line [19:39:28]written 0, free lines is 3347 [19:39:28]MH_Cut [19:39:28]Write to MH i2c: D1 01 00 F7 00 01 C9 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 01 00 [19:39:28]MH_I2C_Read... [19:39:28]Read from MH i2c: D1 01 00 F7 00 00 C8 [19:39:28]Write to MH i2c: 01 00 00 F8 00 F8 [19:39:28]Write i2c OK [19:39:28]MH_I2C_Read... [19:39:28]Connected sock=10 [19:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CF F7 07 01 DA AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 4D 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 E6 00 00 00 F4 03 04 00 6E 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 D9 02 00 35 04 06 00 E2 E0 15 DA 0E AC CE 39 FC A7 24 38 83 E6 [19:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 65 45 47 00 4B 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 13 D9 02 00 F4 03 04 00 C7 36 B3 67 B6 04 01 00 00 76 16 EB 47 EC B9 0E F4 [19:39:28]CommunicateWithHost err = 0 [19:39:28]CheckOFDResponse [19:39:28]1017 (14) - 77093643461234 [19:39:28]1041 (16) - 0000000000871826 [19:39:28]1040 (4) - 186643 [19:39:28]1012 (4) - 17.02.2025 13:16 [19:39:28]1206 (1) - 0 [19:39:28]OFD Sender: Remove packet 186643 [19:39:28]ProducePacketName [19:39:28]name=ofd_packets/00186643 [19:39:28]NVStorageDeleteData [19:39:28]*** Cut start [19:39:28]*** Partial cut [19:39:28]*** CUTSNS_PIN = 1 [19:39:28]*** CUTSNS_PIN = 0 [19:39:28]OFD Sender: No OFD packet to send [19:39:29]*** Brake cut motor [19:39:29]Read from MH i2c: 01 [19:39:29]MH_I2C_Read... [19:39:29]*** Stop cut motor [19:39:29]*** Cut end [19:39:29]Read from MH i2c: 01 07 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [19:39:29]process_action close_receipt done [19:39:29]requested_data is exist [19:39:29]produce_requested_data [19:39:29]requested_item fm.sn is exist - process it [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 11 00 00 [19:39:29]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 17 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C6 [19:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:29]wFMCommunicate OK [19:39:29]requested_item fd.num is exist - process it [19:39:29]SAM_PROTO_GetFieldsCounters [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 13 00 00 [19:39:29]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 62 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [19:39:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 13 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:29]wFMCommunicate OK [19:39:29]SAM_PROTO_GetFieldsCounters done [19:39:29]requested_item shift.num is exist - process it [19:39:29]requested_item shift.opened is exist - process it [19:39:29]req_shift_opened [19:39:29]FM_GetShiftState [19:39:29]SAM_PROTO_GetShiftState [19:39:29]wFMCommunicate request_size=4 [19:39:29]MH_SAM_APDU [19:39:29]CAPDU: 80 13 01 00 [19:39:29]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [19:39:29]Write i2c OK [19:39:29]MH_I2C_Read... [19:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:29]Read from MH i2c: E2 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 0E 00 [19:39:29]MH_I2C_Read... [19:39:29]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9C [19:39:29]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:29]wFMCommunicate OK [19:39:29]SAM_PROTO_GetShiftState done [19:39:29]FM_GetShiftState done [19:39:29]req_shift_opened done [19:39:29]requested_item shift.open_date is exist - process it [19:39:29]req_shift_open_date [19:39:29]req_shift_open_date done [19:39:29]produce_requested_data done [19:39:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186643,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:39:29]process_action_free close_receipt [19:39:29]json_value_free [19:39:29]json_value_free done [19:39:29]process_json_proto returns [19:39:29]Send response to host [19:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186643,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:39:29]free response buf [19:39:29]execute_script done [19:39:29]execute_script returns [19:39:29]free content buf [19:39:29]Sock 9.Close socket [19:39:29]Sock 9.Thread stoped [19:39:31]accept exits with 7 [19:39:31]New connection [19:39:31]New thread 3067051364 created [19:39:31]Thread 3067194724 joined [19:39:31]Waiting for new connection... [19:39:31] Sock 7.Parse request [19:39:31]Sock 7.Check first char [19:39:31]Sock 7.First char is OK [19:39:31]request: POST /json_proto HTTP/1.0 [19:39:31]Method: POST [19:39:31]URL: /json_proto [19:39:31]Method is POST - this is cgi request [19:39:31]url: /json_proto [19:39:31]query_string will be loaded in cgi processing [19:39:31]execute_cgi json_proto POST (null) [19:39:31]execute_cgi path=json_proto method=POST [19:39:31]POST find Content-Length [19:39:31]Host: 172.17.46.131:8080 [19:39:31]Content-Length: 800 [19:39:31]Content-Type: application/json [19:39:31] [19:39:31]POST finish read [19:39:31]Found Content-Length = 800 [19:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175346", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:31]execute_script... [19:39:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4175346", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:31]POST & json_proto [19:39:31]process_json_proto [19:39:31]json parsed OK: [19:39:31]protocol is kg_v1.0 [19:39:31]action value=close_receipt [19:39:31]process_action close_receipt [19:39:31]cmd_close_receipt [19:39:31]MH_GetDate [19:39:31]Write to MH i2c: F0 00 00 FC 00 EB [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 09 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: F0 09 00 FC 00 00 73 90 B3 67 7E 41 4F 65 84 [19:39:31]GetLastDocTimeStamp 1739821166 [19:39:31]current date 1739821171 [19:39:31]FM_GetShiftState [19:39:31]SAM_PROTO_GetShiftState [19:39:31]wFMCommunicate request_size=4 [19:39:31]MH_SAM_APDU [19:39:31]CAPDU: 80 13 01 00 [19:39:31]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [19:39:31]Write i2c OK [19:39:31]MH_I2C_Read... [19:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:31]Read from MH i2c: E2 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 [19:39:31]MH_I2C_Read... [19:39:31]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 9E [19:39:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:31]wFMCommunicate OK [19:39:31]SAM_PROTO_GetShiftState done [19:39:31]FM_GetShiftState done [19:39:31]opened in 1739752571 [19:39:31]opened+sec_in_day 1739838971 [19:39:31]quantity*price = 0 [19:39:31]sum+1 = 1 [19:39:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 231 17.02.2025 19:39 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4175346 ФМ: 0000000000871826 ФД: 186644 ФПД: 210904312485409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193931&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186644&fm=210904312485409&tin=02508201610067®Number=0000000000091857&sum=0 [19:39:32]StoreToDocumentArchive [19:39:32]shift 644 fd 186644 [19:39:32]save to /storage/0644/doc_00186644 [19:39:32]save last doc name /storage/0644/doc_00186644 to /storage/kkm_last_doc_name [19:39:32]save OK [19:39:32]Clear old archive folders... [19:39:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:39:32]tlvbuf is 005B6D10 [19:39:32]SAM_PROTO_ClearQueue [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 09 00 00 [19:39:32]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]SAM_PROTO_ClearQueue done [19:39:32]KKMCreateOFDPacket [19:39:32]OFDProtocolAddRootSTLVToBuf [19:39:32]FM_MakeSignedData [19:39:32]FM_MakeSignedData [19:39:32]SAM_PROTO_SignData [19:39:32]wFMCommunicate request_size=4 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 01 02 [19:39:32]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]wFMCommunicate request_size=255 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 73 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 D9 02 00 35 04 06 00 BF [19:39:32]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 73 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 D9 02 00 35 04 06 00 BF 00 00 37 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:32]Read from MH i2c: E2 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 [19:39:32]MH_I2C_Read... [19:39:32]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:39:32]RAPDU: 90 00 [19:39:32]wFMCommunicate OK [19:39:32]wFMCommunicate request_size=10 [19:39:32]MH_SAM_APDU [19:39:32]CAPDU: 80 0D 02 02 05 D0 FC A0 96 21 [19:39:32]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 D0 FC A0 96 21 00 00 B5 [19:39:32]Write i2c OK [19:39:32]MH_I2C_Read... [19:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:33]Read from MH i2c: E2 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 03 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:39:33]RAPDU: 90 00 [19:39:33]wFMCommunicate OK [19:39:33]wFMCommunicate request_size=4 [19:39:33]MH_SAM_APDU [19:39:33]CAPDU: 80 0D 03 02 [19:39:33]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:33]Read from MH i2c: E2 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 0B 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 0B 00 0E 01 00 9F 7B B4 8B F8 AE 0B 07 90 00 9C [19:39:33]RAPDU: 9F 7B B4 8B F8 AE 0B 07 90 00 [19:39:33]wFMCommunicate OK [19:39:33]SAM_PROTO_SignData done [19:39:33]FM_MakeSignedData done [19:39:33]CreateOFDProtocolMessage [19:39:33]wFMCommunicate request_size=4 [19:39:33]MH_SAM_APDU [19:39:33]CAPDU: 80 11 00 00 [19:39:33]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:33]Read from MH i2c: E2 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 17 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 DD [19:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:33]wFMCommunicate OK [19:39:33]CreateOFDProtocolMessage done [19:39:33]OFDSenderStorePacket 186644 [19:39:33]StoreOFDPacket docnum=186644 [19:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 00 07 01 DD A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 73 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 D9 02 00 35 04 06 00 BF D0 FC A0 96 21 9F 7B B4 8B F8 AE 0B 07 [19:39:33]CheckFolder [19:39:33]dirname=/storage/ofd_packets [19:39:33]CheckFolder done [19:39:33]ProducePacketName [19:39:33]name=ofd_packets/00186644 [19:39:33]NVStorageSaveData ofd_packets/00186644 [19:39:33]File name is /storage/ofd_packets/00186644 [19:39:33]Write 301 bytes [19:39:33]NVStorageSaveData done [19:39:33]OFDSenderStorePacket done [19:39:33]KKMCreateOFDPacket done [19:39:33]NVStorageSaveData kkm_last_timestamp [19:39:33]File name is /storage/kkm_last_timestamp [19:39:33]Write 4 bytes [19:39:33]NVStorageSaveData done [19:39:33]ExternCall_PrintAddStr [19:39:33]wPrintStart [19:39:33]Write to MH i2c: 01 00 00 10 01 11 [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [19:39:33]RasterBufferAndPrint [19:39:33]line Счет N : (1)411790 [19:39:33]line ИНН: 02508201610067 [19:39:33]line Контрольно-Кассовый Чек [19:39:33]line ПРОДАЖА [19:39:33]line ТРК (МРК, ГНК) : 22 [19:39:33]line Товар: 2710124130 [19:39:33]line Аи-92-К-2 [19:39:33]line 20.000 * 0.00 [19:39:33]line = 0.00 [19:39:33]line НДС 12% НСП 1% [19:39:33]line > о реализуемом товаре [19:39:33]line ИТОГО: 0.00 [19:39:33]line НСП 1% : 0.00 [19:39:33]line НДС 12% : 0.00 [19:39:33]line Наличными: 0.00 [19:39:33]line Безнал.: 0.00 [19:39:33]line Место: АЗС № 92 "Партнер Нефть" [19:39:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:39:33]line СНО: Общий режим [19:39:33]line Чек 231 17.02.2025 19:39 [19:39:33]line Смена: 644 ФФД: 1.0 [19:39:33]line ЗНМ: 0300000118 [19:39:33]line РНМ: 0000000000091857 [19:39:33]line Версия ККМ: 001 [19:39:33]line Талоны: Топливные Талоны [19:39:33]line 4175346 [19:39:33]line ФМ: 0000000000871826 [19:39:33]line ФД: 186644 [19:39:33]line ФПД: 210904312485409 [19:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T193931&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186644&fm=210904312485409&tin=02508201610067®Number=0000000000091857&sum=0 [19:39:33]OFD Sender: Processing packet 186644 [packets to send 49, broken 48] [19:39:33]ProducePacketName [19:39:33]name=ofd_packets/00186644 [19:39:33]OFD Sender: To server: pG, [19:39:33]CommunicateWithHost lk.salyk.kg:30040 [19:39:33]ConnectInit lk.salyk.kg [19:39:33]written 0, free lines is 4095 [19:39:33]Connected sock=11 [19:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D 00 07 01 DD A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 73 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 D9 02 00 35 04 06 00 BF D0 FC A0 96 21 9F 7B B4 8B F8 AE 0B 07 [19:39:33]Write to MH i2c: 01 00 00 3A 01 3B [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 0C 0D 5B [19:39:33]RasterBufferAndPrint [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]line [19:39:33]written 0, free lines is 3350 [19:39:33]MH_Cut [19:39:33]Write to MH i2c: D1 01 00 41 01 01 14 [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 01 00 [19:39:33]MH_I2C_Read... [19:39:33]Read from MH i2c: D1 01 00 41 01 00 13 [19:39:33]Write to MH i2c: 01 00 00 42 01 43 [19:39:33]Write i2c OK [19:39:33]MH_I2C_Read... [19:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 4B CB 47 00 6E D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 14 D9 02 00 F4 03 04 00 CD 36 B3 67 B6 04 01 00 00 DB 8C AD 21 C4 04 24 AA [19:39:34]CommunicateWithHost err = 0 [19:39:34]CheckOFDResponse [19:39:34]1017 (14) - 77093643461234 [19:39:34]1041 (16) - 0000000000871826 [19:39:34]1040 (4) - 186644 [19:39:34]1012 (4) - 17.02.2025 13:17 [19:39:34]1206 (1) - 0 [19:39:34]OFD Sender: Remove packet 186644 [19:39:34]ProducePacketName [19:39:34]name=ofd_packets/00186644 [19:39:34]NVStorageDeleteData [19:39:34]*** Cut start [19:39:34]*** Partial cut [19:39:34]*** CUTSNS_PIN = 1 [19:39:34]OFD Sender: No OFD packet to send [19:39:34]*** CUTSNS_PIN = 0 [19:39:35]*** Brake cut motor [19:39:35]Read from MH i2c: 01 [19:39:35]MH_I2C_Read... [19:39:35]*** Stop cut motor [19:39:35]*** Cut end [19:39:35]Read from MH i2c: 01 07 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [19:39:35]process_action close_receipt done [19:39:35]requested_data is exist [19:39:35]produce_requested_data [19:39:35]requested_item fm.sn is exist - process it [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 11 00 00 [19:39:35]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 17 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 11 [19:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:39:35]wFMCommunicate OK [19:39:35]requested_item fd.num is exist - process it [19:39:35]SAM_PROTO_GetFieldsCounters [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 00 00 [19:39:35]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 62 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [19:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 14 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetFieldsCounters done [19:39:35]requested_item shift.num is exist - process it [19:39:35]requested_item shift.opened is exist - process it [19:39:35]req_shift_opened [19:39:35]FM_GetShiftState [19:39:35]SAM_PROTO_GetShiftState [19:39:35]wFMCommunicate request_size=4 [19:39:35]MH_SAM_APDU [19:39:35]CAPDU: 80 13 01 00 [19:39:35]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [19:39:35]Write i2c OK [19:39:35]MH_I2C_Read... [19:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:35]Read from MH i2c: E2 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 [19:39:35]MH_I2C_Read... [19:39:35]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E7 [19:39:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:39:35]wFMCommunicate OK [19:39:35]SAM_PROTO_GetShiftState done [19:39:35]FM_GetShiftState done [19:39:35]req_shift_opened done [19:39:35]requested_item shift.open_date is exist - process it [19:39:35]req_shift_open_date [19:39:35]req_shift_open_date done [19:39:35]produce_requested_data done [19:39:35]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186644,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:39:35]process_action_free close_receipt [19:39:35]json_value_free [19:39:35]json_value_free done [19:39:35]process_json_proto returns [19:39:35]Send response to host [19:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186644,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:39:35]free response buf [19:39:35]execute_script done [19:39:35]execute_script returns [19:39:35]free content buf [19:39:35]Sock 7.Close socket [19:39:35]Sock 7.Thread stoped [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:28]accept exits with 9 [19:40:28]New connection [19:40:28]New thread 3067194724 created [19:40:28]Thread 3067051364 joined [19:40:28]Waiting for new connection... [19:40:28] Sock 9.Parse request [19:40:28]Sock 9.Check first char [19:40:28]Sock 9.First char is OK [19:40:28]request: POST /json_proto HTTP/1.0 [19:40:28]Method: POST [19:40:28]URL: /json_proto [19:40:28]Method is POST - this is cgi request [19:40:28]url: /json_proto [19:40:28]query_string will be loaded in cgi processing [19:40:28]execute_cgi json_proto POST (null) [19:40:28]execute_cgi path=json_proto method=POST [19:40:28]POST find Content-Length [19:40:28]Host: 172.17.46.131:8080 [19:40:28]Content-Length: 677 [19:40:28]Content-Type: application/json [19:40:28] [19:40:28]POST finish read [19:40:28]Found Content-Length = 677 [19:40:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:28]execute_script... [19:40:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 9.350, "sum" : 600.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:28]POST & json_proto [19:40:28]process_json_proto [19:40:28]json parsed OK: [19:40:28]protocol is kg_v1.0 [19:40:28]action value=close_receipt [19:40:28]process_action close_receipt [19:40:28]cmd_close_receipt [19:40:28]MH_GetDate [19:40:28]Write to MH i2c: F0 00 00 46 01 36 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: F0 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: F0 09 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: F0 09 00 46 01 00 AC 90 B3 67 7E 41 4F 65 08 [19:40:28]GetLastDocTimeStamp 1739821171 [19:40:28]current date 1739821228 [19:40:28]FM_GetShiftState [19:40:28]SAM_PROTO_GetShiftState [19:40:28]wFMCommunicate request_size=4 [19:40:28]MH_SAM_APDU [19:40:28]CAPDU: 80 13 01 00 [19:40:28]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [19:40:28]Write i2c OK [19:40:28]MH_I2C_Read... [19:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:28]Read from MH i2c: E2 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 0E 00 [19:40:28]MH_I2C_Read... [19:40:28]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E9 [19:40:28]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:40:28]wFMCommunicate OK [19:40:28]SAM_PROTO_GetShiftState done [19:40:28]FM_GetShiftState done [19:40:28]opened in 1739752571 [19:40:28]opened+sec_in_day 1739838971 [19:40:28]quantity*price = 60027 [19:40:28]sum+1 = 60028 [19:40:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 232 17.02.2025 19:40 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186645 ФПД: 168375942263774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186645&fm=168375942263774&tin=02508201610067®Number=0000000000091857&sum=60000 [19:40:29]StoreToDocumentArchive [19:40:29]shift 644 fd 186645 [19:40:29]save to /storage/0644/doc_00186645 [19:40:29]save last doc name /storage/0644/doc_00186645 to /storage/kkm_last_doc_name [19:40:29]save OK [19:40:29]Clear old archive folders... [19:40:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:29]tlvbuf is 005BAC20 [19:40:29]SAM_PROTO_ClearQueue [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 09 00 00 [19:40:29]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [19:40:29]RAPDU: 90 00 [19:40:29]wFMCommunicate OK [19:40:29]SAM_PROTO_ClearQueue done [19:40:29]KKMCreateOFDPacket [19:40:29]OFDProtocolAddRootSTLVToBuf [19:40:29]FM_MakeSignedData [19:40:29]FM_MakeSignedData [19:40:29]SAM_PROTO_SignData [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 0D 01 02 [19:40:29]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:40:29]RAPDU: 90 00 [19:40:29]wFMCommunicate OK [19:40:29]wFMCommunicate request_size=255 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AC 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 D9 02 00 35 04 06 00 99 [19:40:29]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AC 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 D9 02 00 35 04 06 00 99 00 00 0B [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:40:29]RAPDU: 90 00 [19:40:29]wFMCommunicate OK [19:40:29]wFMCommunicate request_size=10 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 0D 02 02 05 23 14 3A 33 DE [19:40:29]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 23 14 3A 33 DE 00 00 5E [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:40:29]RAPDU: 90 00 [19:40:29]wFMCommunicate OK [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 0D 03 02 [19:40:29]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:29]OFD Sender: No OFD packet to send [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 0B 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 0B 00 58 01 00 AB 76 E6 6A 49 65 33 B8 90 00 DF [19:40:29]RAPDU: AB 76 E6 6A 49 65 33 B8 90 00 [19:40:29]wFMCommunicate OK [19:40:29]SAM_PROTO_SignData done [19:40:29]FM_MakeSignedData done [19:40:29]CreateOFDProtocolMessage [19:40:29]wFMCommunicate request_size=4 [19:40:29]MH_SAM_APDU [19:40:29]CAPDU: 80 11 00 00 [19:40:29]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:29]Read from MH i2c: E2 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 17 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 27 [19:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:40:29]wFMCommunicate OK [19:40:29]CreateOFDProtocolMessage done [19:40:29]OFDSenderStorePacket 186645 [19:40:29]StoreOFDPacket docnum=186645 [19:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 25 07 01 63 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AC 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 D9 02 00 35 04 06 00 99 23 14 3A 33 DE AB 76 E6 6A 49 65 33 B8 [19:40:29]CheckFolder [19:40:29]dirname=/storage/ofd_packets [19:40:29]CheckFolder done [19:40:29]ProducePacketName [19:40:29]name=ofd_packets/00186645 [19:40:29]NVStorageSaveData ofd_packets/00186645 [19:40:29]File name is /storage/ofd_packets/00186645 [19:40:29]Write 301 bytes [19:40:29]NVStorageSaveData done [19:40:29]OFDSenderStorePacket done [19:40:29]KKMCreateOFDPacket done [19:40:29]NVStorageSaveData kkm_last_timestamp [19:40:29]File name is /storage/kkm_last_timestamp [19:40:29]Write 4 bytes [19:40:29]NVStorageSaveData done [19:40:29]ExternCall_PrintAddStr [19:40:29]wPrintStart [19:40:29]Write to MH i2c: 01 00 00 5A 01 5B [19:40:29]Write i2c OK [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 07 00 [19:40:29]MH_I2C_Read... [19:40:29]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [19:40:29]RasterBufferAndPrint [19:40:29]line Счет N : (1)411793 [19:40:29]line ИНН: 02508201610067 [19:40:29]line Контрольно-Кассовый Чек [19:40:29]line ПРОДАЖА [19:40:29]line ТРК (МРК, ГНК) : 42 [19:40:29]line Товар: 2710124130 [19:40:29]line Аи-92-К-2 [19:40:29]line 9.350 * 64.20 [19:40:29]line = 600.27 [19:40:29]line НДС 12% НСП 1% [19:40:29]line > о реализуемом товаре [19:40:29]line ОКРУГЛЕНИЕ: -0.27 [19:40:29]line ИТОГО: 600.00 [19:40:29]line Внесено: 600.00 [19:40:29]line СДАЧА: 0.00 [19:40:29]line НСП 1% : 5.31 [19:40:29]line НДС 12% : 63.74 [19:40:29]line Наличными: 600.00 [19:40:29]line Безнал.: 0.00 [19:40:29]line Место: АЗС № 92 "Партнер Нефть" [19:40:29]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:40:29]line СНО: Общий режим [19:40:29]line Чек 232 17.02.2025 19:40 [19:40:29]line Смена: 644 ФФД: 1.0 [19:40:29]line ЗНМ: 0300000118 [19:40:29]line РНМ: 0000000000091857 [19:40:29]line Версия ККМ: 001 [19:40:29]line ФМ: 0000000000871826 [19:40:29]line ФД: 186645 [19:40:29]line ФПД: 168375942263774 [19:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194028&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186645&fm=168375942263774&tin=02508201610067®Number=0000000000091857&sum=60000 [19:40:29]written 0, free lines is 4095 [19:40:29]OFD Sender: Processing packet 186645 [packets to send 49, broken 48] [19:40:29]ProducePacketName [19:40:29]name=ofd_packets/00186645 [19:40:29]OFD Sender: To server: pG, [19:40:29]CommunicateWithHost lk.salyk.kg:30040 [19:40:29]ConnectInit lk.salyk.kg [19:40:29]Connected sock=10 [19:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 25 07 01 63 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7B EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AC 90 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 D9 02 00 35 04 06 00 99 23 14 3A 33 DE AB 76 E6 6A 49 65 33 B8 [19:40:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 73 B8 47 00 26 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 15 D9 02 00 F4 03 04 00 05 37 B3 67 B6 04 01 00 00 E4 90 57 F1 C1 68 CF 10 [19:40:30]CommunicateWithHost err = 0 [19:40:30]CheckOFDResponse [19:40:30]1017 (14) - 77093643461234 [19:40:30]1041 (16) - 0000000000871826 [19:40:30]1040 (4) - 186645 [19:40:30]1012 (4) - 17.02.2025 13:17 [19:40:30]1206 (1) - 0 [19:40:30]OFD Sender: Remove packet 186645 [19:40:30]ProducePacketName [19:40:30]name=ofd_packets/00186645 [19:40:30]NVStorageDeleteData [19:40:30]Write to MH i2c: 01 00 00 85 01 86 [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: 01 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: 01 07 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 0C 0D A6 [19:40:30]RasterBufferAndPrint [19:40:30]line [19:40:30]line [19:40:30]line [19:40:30]line [19:40:30]line [19:40:30]written 0, free lines is 3346 [19:40:30]MH_Cut [19:40:30]Write to MH i2c: D1 01 00 8C 01 01 5F [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: D1 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: D1 01 00 [19:40:30]MH_I2C_Read... [19:40:30]Read from MH i2c: D1 01 00 8C 01 00 5E [19:40:30]Write to MH i2c: 01 00 00 8D 01 8E [19:40:30]Write i2c OK [19:40:30]MH_I2C_Read... [19:40:30]OFD Sender: No OFD packet to send [19:40:30]*** Cut start [19:40:30]*** Partial cut [19:40:30]*** CUTSNS_PIN = 1 [19:40:30]*** CUTSNS_PIN = 0 [19:40:31]*** Brake cut motor [19:40:31]Read from MH i2c: 01 [19:40:31]MH_I2C_Read... [19:40:31]*** Stop cut motor [19:40:31]*** Cut end [19:40:31]Read from MH i2c: 01 07 00 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [19:40:31]process_action close_receipt done [19:40:31]requested_data is exist [19:40:31]produce_requested_data [19:40:31]requested_item fm.sn is exist - process it [19:40:31]wFMCommunicate request_size=4 [19:40:31]MH_SAM_APDU [19:40:31]CAPDU: 80 11 00 00 [19:40:31]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [19:40:31]Write i2c OK [19:40:31]MH_I2C_Read... [19:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:31]Read from MH i2c: E2 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 17 00 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5C [19:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:40:31]wFMCommunicate OK [19:40:31]requested_item fd.num is exist - process it [19:40:31]SAM_PROTO_GetFieldsCounters [19:40:31]wFMCommunicate request_size=4 [19:40:31]MH_SAM_APDU [19:40:31]CAPDU: 80 13 00 00 [19:40:31]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [19:40:31]Write i2c OK [19:40:31]MH_I2C_Read... [19:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:31]Read from MH i2c: E2 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 62 00 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [19:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 15 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:31]wFMCommunicate OK [19:40:31]SAM_PROTO_GetFieldsCounters done [19:40:31]requested_item shift.num is exist - process it [19:40:31]requested_item shift.opened is exist - process it [19:40:31]req_shift_opened [19:40:31]FM_GetShiftState [19:40:31]SAM_PROTO_GetShiftState [19:40:31]wFMCommunicate request_size=4 [19:40:31]MH_SAM_APDU [19:40:31]CAPDU: 80 13 01 00 [19:40:31]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [19:40:31]Write i2c OK [19:40:31]MH_I2C_Read... [19:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:31]Read from MH i2c: E2 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 0E 00 [19:40:31]MH_I2C_Read... [19:40:31]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 32 [19:40:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:40:31]wFMCommunicate OK [19:40:31]SAM_PROTO_GetShiftState done [19:40:31]FM_GetShiftState done [19:40:31]req_shift_opened done [19:40:31]requested_item shift.open_date is exist - process it [19:40:31]req_shift_open_date [19:40:31]req_shift_open_date done [19:40:31]produce_requested_data done [19:40:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186645,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:40:31]process_action_free close_receipt [19:40:31]json_value_free [19:40:31]json_value_free done [19:40:31]process_json_proto returns [19:40:31]Send response to host [19:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186645,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:40:31]free response buf [19:40:31]execute_script done [19:40:31]execute_script returns [19:40:31]free content buf [19:40:31]Sock 9.Close socket [19:40:31]Sock 9.Thread stoped [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:36]accept exits with 7 [19:42:36]New connection [19:42:36]New thread 3067051364 created [19:42:36]Thread 3067194724 joined [19:42:36]Waiting for new connection... [19:42:36] Sock 7.Parse request [19:42:36]Sock 7.Check first char [19:42:36]Sock 7.First char is OK [19:42:36]request: POST /json_proto HTTP/1.0 [19:42:36]Method: POST [19:42:36]URL: /json_proto [19:42:36]Method is POST - this is cgi request [19:42:36]url: /json_proto [19:42:36]query_string will be loaded in cgi processing [19:42:36]execute_cgi json_proto POST (null) [19:42:36]execute_cgi path=json_proto method=POST [19:42:36]POST find Content-Length [19:42:36]Host: 172.17.46.131:8080 [19:42:36]Content-Length: 677 [19:42:36]Content-Type: application/json [19:42:36] [19:42:36]POST finish read [19:42:36]Found Content-Length = 677 [19:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:36]execute_script... [19:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:36]POST & json_proto [19:42:36]process_json_proto [19:42:36]json parsed OK: [19:42:36]protocol is kg_v1.0 [19:42:36]action value=close_receipt [19:42:36]process_action close_receipt [19:42:36]cmd_close_receipt [19:42:36]MH_GetDate [19:42:36]Write to MH i2c: F0 00 00 91 01 81 [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 09 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: F0 09 00 91 01 00 2D 91 B3 67 7E 41 4F 65 D5 [19:42:36]GetLastDocTimeStamp 1739821228 [19:42:36]current date 1739821357 [19:42:36]FM_GetShiftState [19:42:36]SAM_PROTO_GetShiftState [19:42:36]wFMCommunicate request_size=4 [19:42:36]MH_SAM_APDU [19:42:36]CAPDU: 80 13 01 00 [19:42:36]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [19:42:36]Write i2c OK [19:42:36]MH_I2C_Read... [19:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:36]Read from MH i2c: E2 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 [19:42:36]MH_I2C_Read... [19:42:36]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 34 [19:42:36]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:42:36]wFMCommunicate OK [19:42:36]SAM_PROTO_GetShiftState done [19:42:36]FM_GetShiftState done [19:42:36]opened in 1739752571 [19:42:36]opened+sec_in_day 1739838971 [19:42:36]quantity*price = 30045 [19:42:36]sum+1 = 30047 [19:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 233 17.02.2025 19:42 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186646 ФПД: 5380875521976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186646&fm=5380875521976&tin=02508201610067®Number=0000000000091857&sum=30000 [19:42:37]StoreToDocumentArchive [19:42:37]shift 644 fd 186646 [19:42:37]save to /storage/0644/doc_00186646 [19:42:37]save last doc name /storage/0644/doc_00186646 to /storage/kkm_last_doc_name [19:42:37]save OK [19:42:37]Clear old archive folders... [19:42:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:37]tlvbuf is 005BCD70 [19:42:37]SAM_PROTO_ClearQueue [19:42:37]wFMCommunicate request_size=4 [19:42:37]MH_SAM_APDU [19:42:37]CAPDU: 80 09 00 00 [19:42:37]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [19:42:37]Write i2c OK [19:42:37]MH_I2C_Read... [19:42:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:37]Read from MH i2c: E2 [19:42:37]MH_I2C_Read... [19:42:37]Read from MH i2c: E2 03 00 [19:42:37]MH_I2C_Read... [19:42:37]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:42:37]RAPDU: 90 00 [19:42:37]wFMCommunicate OK [19:42:37]SAM_PROTO_ClearQueue done [19:42:37]KKMCreateOFDPacket [19:42:37]OFDProtocolAddRootSTLVToBuf [19:42:37]FM_MakeSignedData [19:42:37]FM_MakeSignedData [19:42:37]SAM_PROTO_SignData [19:42:37]wFMCommunicate request_size=4 [19:42:37]MH_SAM_APDU [19:42:37]CAPDU: 80 0D 01 02 [19:42:37]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [19:42:37]Write i2c OK [19:42:37]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=255 [19:42:38]MH_SAM_APDU [19:42: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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2D 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 D9 02 00 35 04 06 00 04 [19:42:38]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2D 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 D9 02 00 35 04 06 00 04 00 00 94 [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=10 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 0D 02 02 05 E4 D5 2C 8F B8 [19:42:38]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 E4 D5 2C 8F B8 00 00 53 [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [19:42:38]RAPDU: 90 00 [19:42:38]wFMCommunicate OK [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 0D 03 02 [19:42:38]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 0B 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 0B 00 A3 01 00 48 CF F4 7B C4 43 69 85 90 00 9B [19:42:38]RAPDU: 48 CF F4 7B C4 43 69 85 90 00 [19:42:38]wFMCommunicate OK [19:42:38]SAM_PROTO_SignData done [19:42:38]FM_MakeSignedData done [19:42:38]CreateOFDProtocolMessage [19:42:38]wFMCommunicate request_size=4 [19:42:38]MH_SAM_APDU [19:42:38]CAPDU: 80 11 00 00 [19:42:38]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:38]Read from MH i2c: E2 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 17 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 72 [19:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:38]wFMCommunicate OK [19:42:38]CreateOFDProtocolMessage done [19:42:38]OFDSenderStorePacket 186646 [19:42:38]StoreOFDPacket docnum=186646 [19:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 0A 07 01 38 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2D 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 D9 02 00 35 04 06 00 04 E4 D5 2C 8F B8 48 CF F4 7B C4 43 69 85 [19:42:38]CheckFolder [19:42:38]dirname=/storage/ofd_packets [19:42:38]CheckFolder done [19:42:38]ProducePacketName [19:42:38]name=ofd_packets/00186646 [19:42:38]NVStorageSaveData ofd_packets/00186646 [19:42:38]File name is /storage/ofd_packets/00186646 [19:42:38]Write 301 bytes [19:42:38]NVStorageSaveData done [19:42:38]OFDSenderStorePacket done [19:42:38]KKMCreateOFDPacket done [19:42:38]NVStorageSaveData kkm_last_timestamp [19:42:38]File name is /storage/kkm_last_timestamp [19:42:38]Write 4 bytes [19:42:38]NVStorageSaveData done [19:42:38]ExternCall_PrintAddStr [19:42:38]wPrintStart [19:42:38]Write to MH i2c: 01 00 00 A5 01 A6 [19:42:38]Write i2c OK [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 07 00 [19:42:38]MH_I2C_Read... [19:42:38]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [19:42:38]RasterBufferAndPrint [19:42:38]line Счет N : (1)411795 [19:42:38]line ИНН: 02508201610067 [19:42:38]line Контрольно-Кассовый Чек [19:42:38]line ПРОДАЖА [19:42:38]line ТРК (МРК, ГНК) : 42 [19:42:38]line Товар: 2710124130 [19:42:38]line Аи-92-К-2 [19:42:38]line 4.680 * 64.20 [19:42:38]line = 300.46 [19:42:38]line НДС 12% НСП 1% [19:42:38]line > о реализуемом товаре [19:42:38]line ОКРУГЛЕНИЕ: -0.46 [19:42:38]line ИТОГО: 300.00 [19:42:38]line Внесено: 300.00 [19:42:38]line СДАЧА: 0.00 [19:42:38]line НСП 1% : 2.66 [19:42:38]line НДС 12% : 31.91 [19:42:38]line Наличными: 300.00 [19:42:38]line Безнал.: 0.00 [19:42:38]line Место: АЗС № 92 "Партнер Нефть" [19:42:38]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:42:38]line СНО: Общий режим [19:42:38]line Чек 233 17.02.2025 19:42 [19:42:38]line Смена: 644 ФФД: 1.0 [19:42:38]line ЗНМ: 0300000118 [19:42:38]line РНМ: 0000000000091857 [19:42:38]line Версия ККМ: 001 [19:42:38]line ФМ: 0000000000871826 [19:42:38]line ФД: 186646 [19:42:38]line ФПД: 5380875521976 [19:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194237&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186646&fm=5380875521976&tin=02508201610067®Number=0000000000091857&sum=30000 [19:42:38]OFD Sender: Processing packet 186646 [packets to send 49, broken 48] [19:42:38]ProducePacketName [19:42:38]name=ofd_packets/00186646 [19:42:38]OFD Sender: To server: pG, [19:42:38]CommunicateWithHost lk.salyk.kg:30040 [19:42:38]ConnectInit lk.salyk.kg [19:42:38]written 0, free lines is 4095 [19:42:38]Connected sock=10 [19:42:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 43 0A 07 01 38 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 2D 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 D9 02 00 35 04 06 00 04 E4 D5 2C 8F B8 48 CF F4 7B C4 43 69 85 [19:42:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 70 47 00 B8 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 16 D9 02 00 F4 03 04 00 86 37 B3 67 B6 04 01 00 00 55 58 8C 3D 0F 68 76 27 [19:42:39]CommunicateWithHost err = 0 [19:42:39]CheckOFDResponse [19:42:39]1017 (14) - 77093643461234 [19:42:39]1041 (16) - 0000000000871826 [19:42:39]1040 (4) - 186646 [19:42:39]1012 (4) - 17.02.2025 13:20 [19:42:39]1206 (1) - 0 [19:42:39]OFD Sender: Remove packet 186646 [19:42:39]ProducePacketName [19:42:39]name=ofd_packets/00186646 [19:42:39]NVStorageDeleteData [19:42:39]Write to MH i2c: 01 00 00 D0 01 D1 [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 07 00 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: 01 07 00 D0 01 00 00 00 00 00 F9 0C DD [19:42:39]RasterBufferAndPrint [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]line [19:42:39]written 0, free lines is 3327 [19:42:39]MH_Cut [19:42:39]Write to MH i2c: D1 01 00 D7 01 01 AA [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 01 00 [19:42:39]MH_I2C_Read... [19:42:39]Read from MH i2c: D1 01 00 D7 01 00 A9 [19:42:39]Write to MH i2c: 01 00 00 D8 01 D9 [19:42:39]Write i2c OK [19:42:39]MH_I2C_Read... [19:42:39]OFD Sender: No OFD packet to send [19:42:39]*** Cut start [19:42:39]*** Partial cut [19:42:39]*** CUTSNS_PIN = 1 [19:42:39]*** CUTSNS_PIN = 0 [19:42:40]*** Brake cut motor [19:42:40]Read from MH i2c: 01 [19:42:40]MH_I2C_Read... [19:42:40]*** Stop cut motor [19:42:40]*** Cut end [19:42:40]Read from MH i2c: 01 07 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: 01 07 00 D8 01 00 00 00 00 00 FF 0F EE [19:42:40]process_action close_receipt done [19:42:40]requested_data is exist [19:42:40]produce_requested_data [19:42:40]requested_item fm.sn is exist - process it [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 11 00 00 [19:42:40]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 17 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A7 [19:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:40]wFMCommunicate OK [19:42:40]requested_item fd.num is exist - process it [19:42:40]SAM_PROTO_GetFieldsCounters [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 13 00 00 [19:42:40]Write to MH i2c: E2 08 00 DA 01 80 13 00 00 00 00 00 00 57 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 62 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 62 00 DA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [19:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 16 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:40]wFMCommunicate OK [19:42:40]SAM_PROTO_GetFieldsCounters done [19:42:40]requested_item shift.num is exist - process it [19:42:40]requested_item shift.opened is exist - process it [19:42:40]req_shift_opened [19:42:40]FM_GetShiftState [19:42:40]SAM_PROTO_GetShiftState [19:42:40]wFMCommunicate request_size=4 [19:42:40]MH_SAM_APDU [19:42:40]CAPDU: 80 13 01 00 [19:42:40]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [19:42:40]Write i2c OK [19:42:40]MH_I2C_Read... [19:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:40]Read from MH i2c: E2 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 0E 00 [19:42:40]MH_I2C_Read... [19:42:40]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7D [19:42:40]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:42:40]wFMCommunicate OK [19:42:40]SAM_PROTO_GetShiftState done [19:42:40]FM_GetShiftState done [19:42:40]req_shift_opened done [19:42:40]requested_item shift.open_date is exist - process it [19:42:40]req_shift_open_date [19:42:40]req_shift_open_date done [19:42:40]produce_requested_data done [19:42:40]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186646,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:42:40]process_action_free close_receipt [19:42:40]json_value_free [19:42:40]json_value_free done [19:42:40]process_json_proto returns [19:42:40]Send response to host [19:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186646,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:42:40]free response buf [19:42:40]execute_script done [19:42:40]execute_script returns [19:42:40]free content buf [19:42:40]Sock 7.Close socket [19:42:40]Sock 7.Thread stoped [19:42:41]accept exits with 9 [19:42:41]New connection [19:42:41]New thread 3067194724 created [19:42:41]Thread 3067051364 joined [19:42:41]Waiting for new connection... [19:42:41] Sock 9.Parse request [19:42:41]Sock 9.Check first char [19:42:41]Sock 9.First char is OK [19:42:41]request: POST /json_proto HTTP/1.0 [19:42:41]Method: POST [19:42:41]URL: /json_proto [19:42:41]Method is POST - this is cgi request [19:42:41]url: /json_proto [19:42:41]query_string will be loaded in cgi processing [19:42:41]execute_cgi json_proto POST (null) [19:42:41]execute_cgi path=json_proto method=POST [19:42:41]POST find Content-Length [19:42:41]Host: 172.17.46.131:8080 [19:42:41]Content-Length: 800 [19:42:41]Content-Type: application/json [19:42:41] [19:42:41]POST finish read [19:42:41]Found Content-Length = 800 [19:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:41]execute_script... [19:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:41]POST & json_proto [19:42:41]process_json_proto [19:42:41]json parsed OK: [19:42:41]protocol is kg_v1.0 [19:42:41]action value=close_receipt [19:42:41]process_action close_receipt [19:42:41]cmd_close_receipt [19:42:41]MH_GetDate [19:42:41]Write to MH i2c: F0 00 00 DC 01 CC [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: F0 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: F0 09 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: F0 09 00 DC 01 00 31 91 B3 67 7E 41 4F 65 24 [19:42:41]GetLastDocTimeStamp 1739821357 [19:42:41]current date 1739821361 [19:42:41]FM_GetShiftState [19:42:41]SAM_PROTO_GetShiftState [19:42:41]wFMCommunicate request_size=4 [19:42:41]MH_SAM_APDU [19:42:41]CAPDU: 80 13 01 00 [19:42:41]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [19:42:41]Write i2c OK [19:42:41]MH_I2C_Read... [19:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:41]Read from MH i2c: E2 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0E 00 [19:42:41]MH_I2C_Read... [19:42:41]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7F [19:42:41]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:42:41]wFMCommunicate OK [19:42:41]SAM_PROTO_GetShiftState done [19:42:41]FM_GetShiftState done [19:42:41]opened in 1739752571 [19:42:41]opened+sec_in_day 1739838971 [19:42:41]quantity*price = 400026 [19:42:41]sum+1 = 400027 [19:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 234 17.02.2025 19:42 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186647 ФПД: 104897043098329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194241&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186647&fm=104897043098329&tin=02508201610067®Number=0000000000091857&sum=400026 [19:42:42]StoreToDocumentArchive [19:42:42]shift 644 fd 186647 [19:42:42]save to /storage/0644/doc_00186647 [19:42:42]save last doc name /storage/0644/doc_00186647 to /storage/kkm_last_doc_name [19:42:42]save OK [19:42:42]Clear old archive folders... [19:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:42:42]tlvbuf is 00051400 [19:42:42]SAM_PROTO_ClearQueue [19:42:42]wFMCommunicate request_size=4 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 09 00 00 [19:42:42]Write to MH i2c: E2 08 00 EA 01 80 09 00 00 00 00 00 00 5D [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:42]Read from MH i2c: E2 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [19:42:42]RAPDU: 90 00 [19:42:42]wFMCommunicate OK [19:42:42]SAM_PROTO_ClearQueue done [19:42:42]KKMCreateOFDPacket [19:42:42]OFDProtocolAddRootSTLVToBuf [19:42:42]FM_MakeSignedData [19:42:42]FM_MakeSignedData [19:42:42]SAM_PROTO_SignData [19:42:42]wFMCommunicate request_size=4 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 0D 01 02 [19:42:42]Write to MH i2c: E2 08 00 EB 01 80 0D 01 02 00 00 00 00 65 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:42]Read from MH i2c: E2 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [19:42:42]RAPDU: 90 00 [19:42:42]wFMCommunicate OK [19:42:42]wFMCommunicate request_size=255 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 31 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 D9 02 00 35 04 06 00 5F 67 3E FD [19:42:42]Write to MH i2c: E2 02 01 EC 01 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 32 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 31 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 D9 02 00 35 04 06 00 5F 67 3E FD 00 00 33 [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:42]Read from MH i2c: E2 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [19:42:42]RAPDU: 90 00 [19:42:42]wFMCommunicate OK [19:42:42]wFMCommunicate request_size=7 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 0D 02 02 02 EA D9 [19:42:42]Write to MH i2c: E2 0A 00 ED 01 80 0D 02 02 02 00 EA D9 00 00 2F [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:42]Read from MH i2c: E2 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 [19:42:42]MH_I2C_Read... [19:42:42]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [19:42:42]RAPDU: 90 00 [19:42:42]wFMCommunicate OK [19:42:42]wFMCommunicate request_size=4 [19:42:42]MH_SAM_APDU [19:42:42]CAPDU: 80 0D 03 02 [19:42:42]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [19:42:42]Write i2c OK [19:42:42]MH_I2C_Read... [19:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0B 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 0B 00 EE 01 00 4B D4 A4 B4 CD A5 C6 8A 90 00 A4 [19:42:43]RAPDU: 4B D4 A4 B4 CD A5 C6 8A 90 00 [19:42:43]wFMCommunicate OK [19:42:43]SAM_PROTO_SignData done [19:42:43]FM_MakeSignedData done [19:42:43]CreateOFDProtocolMessage [19:42:43]wFMCommunicate request_size=4 [19:42:43]MH_SAM_APDU [19:42:43]CAPDU: 80 11 00 00 [19:42:43]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:43]Read from MH i2c: E2 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 17 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 BD [19:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:43]wFMCommunicate OK [19:42:43]CreateOFDProtocolMessage done [19:42:43]OFDSenderStorePacket 186647 [19:42:43]StoreOFDPacket docnum=186647 [19:42:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 04 A9 04 01 33 13 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 32 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 31 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 D9 02 00 35 04 06 00 5F 67 3E FD EA D9 4B D4 A4 B4 CD A5 C6 8A [19:42:43]CheckFolder [19:42:43]dirname=/storage/ofd_packets [19:42:43]CheckFolder done [19:42:43]ProducePacketName [19:42:43]name=ofd_packets/00186647 [19:42:43]NVStorageSaveData ofd_packets/00186647 [19:42:43]File name is /storage/ofd_packets/00186647 [19:42:43]Write 298 bytes [19:42:43]NVStorageSaveData done [19:42:43]OFDSenderStorePacket done [19:42:43]KKMCreateOFDPacket done [19:42:43]NVStorageSaveData kkm_last_timestamp [19:42:43]File name is /storage/kkm_last_timestamp [19:42:43]Write 4 bytes [19:42:43]NVStorageSaveData done [19:42:43]ExternCall_PrintAddStr [19:42:43]wPrintStart [19:42:43]Write to MH i2c: 01 00 00 F0 01 F1 [19:42:43]Write i2c OK [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 07 00 [19:42:43]MH_I2C_Read... [19:42:43]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [19:42:43]RasterBufferAndPrint [19:42:43]line Счет N : (1)411794 [19:42:43]line ИНН: 02508201610067 [19:42:43]line Контрольно-Кассовый Чек [19:42:43]line ПРОДАЖА [19:42:43]line ТРК (МРК, ГНК) : 11 [19:42:43]line Товар: 2710194210 [19:42:43]line ДТ-К-2 [19:42:43]line 55.100 * 72.60 [19:42:43]line = 4000.26 [19:42:43]line НДС 12% НСП 1% [19:42:43]line > о реализуемом товаре [19:42:43]line ИТОГО: 4000.26 [19:42:43]line НСП 1% : 35.40 [19:42:43]line НДС 12% : 424.81 [19:42:43]line Наличными: 0.00 [19:42:43]line Безнал.: 4000.26 [19:42:43]line Место: АЗС № 92 "Партнер Нефть" [19:42:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:42:43]line СНО: Общий режим [19:42:43]line Чек 234 17.02.2025 19:42 [19:42:43]line Смена: 644 ФФД: 1.0 [19:42:43]line ЗНМ: 0300000118 [19:42:43]line РНМ: 0000000000091857 [19:42:43]line Версия ККМ: 001 [19:42:43]line Платежная система: O! деньги [19:42:43]line ФМ: 0000000000871826 [19:42:43]line ФД: 186647 [19:42:43]line ФПД: 104897043098329 [19:42:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194241&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186647&fm=104897043098329&tin=02508201610067®Number=0000000000091857&sum=400026 [19:42:43]OFD Sender: Processing packet 186647 [packets to send 49, broken 48] [19:42:43]ProducePacketName [19:42:43]name=ofd_packets/00186647 [19:42:43]OFD Sender: To server: pG, [19:42:43]CommunicateWithHost lk.salyk.kg:30040 [19:42:43]ConnectInit lk.salyk.kg [19:42:43]written 0, free lines is 4095 [19:42:43]Connected sock=10 [19:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 04 A9 04 01 33 13 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 32 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 31 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 D9 02 00 35 04 06 00 5F 67 3E FD EA D9 4B D4 A4 B4 CD A5 C6 8A [19:42:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1C D4 47 00 2B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 17 D9 02 00 F4 03 04 00 8B 37 B3 67 B6 04 01 00 00 EE 49 FC 8D 29 92 FB 57 [19:42:44]CommunicateWithHost err = 0 [19:42:44]CheckOFDResponse [19:42:44]1017 (14) - 77093643461234 [19:42:44]1041 (16) - 0000000000871826 [19:42:44]1040 (4) - 186647 [19:42:44]1012 (4) - 17.02.2025 13:20 [19:42:44]1206 (1) - 0 [19:42:44]OFD Sender: Remove packet 186647 [19:42:44]ProducePacketName [19:42:44]name=ofd_packets/00186647 [19:42:44]NVStorageDeleteData [19:42:44]Write to MH i2c: 01 00 00 1A 02 1C [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 07 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 12 0D 42 [19:42:44]RasterBufferAndPrint [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]line [19:42:44]written 0, free lines is 3359 [19:42:44]MH_Cut [19:42:44]Write to MH i2c: D1 01 00 21 02 01 F5 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 01 00 [19:42:44]MH_I2C_Read... [19:42:44]Read from MH i2c: D1 01 00 21 02 00 F4 [19:42:44]Write to MH i2c: 01 00 00 22 02 24 [19:42:44]Write i2c OK [19:42:44]MH_I2C_Read... [19:42:44]OFD Sender: No OFD packet to send [19:42:44]*** Cut start [19:42:44]*** Partial cut [19:42:44]*** CUTSNS_PIN = 1 [19:42:44]*** CUTSNS_PIN = 0 [19:42:45]*** Brake cut motor [19:42:45]Read from MH i2c: 01 [19:42:45]MH_I2C_Read... [19:42:45]*** Stop cut motor [19:42:45]*** Cut end [19:42:45]Read from MH i2c: 01 07 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [19:42:45]process_action close_receipt done [19:42:45]requested_data is exist [19:42:45]produce_requested_data [19:42:45]requested_item fm.sn is exist - process it [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 11 00 00 [19:42:45]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F2 [19:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:42:45]wFMCommunicate OK [19:42:45]requested_item fd.num is exist - process it [19:42:45]SAM_PROTO_GetFieldsCounters [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 13 00 00 [19:42:45]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 62 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [19:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 17 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_GetFieldsCounters done [19:42:45]requested_item shift.num is exist - process it [19:42:45]requested_item shift.opened is exist - process it [19:42:45]req_shift_opened [19:42:45]FM_GetShiftState [19:42:45]SAM_PROTO_GetShiftState [19:42:45]wFMCommunicate request_size=4 [19:42:45]MH_SAM_APDU [19:42:45]CAPDU: 80 13 01 00 [19:42:45]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [19:42:45]Write i2c OK [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 [19:42:45]MH_I2C_Read... [19:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:45]Read from MH i2c: E2 0E 00 [19:42:45]MH_I2C_Read... [19:42:45]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C8 [19:42:45]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:42:45]wFMCommunicate OK [19:42:45]SAM_PROTO_GetShiftState done [19:42:45]FM_GetShiftState done [19:42:45]req_shift_opened done [19:42:45]requested_item shift.open_date is exist - process it [19:42:45]req_shift_open_date [19:42:45]req_shift_open_date done [19:42:45]produce_requested_data done [19:42:45]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186647,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:42:45]process_action_free close_receipt [19:42:45]json_value_free [19:42:45]json_value_free done [19:42:45]process_json_proto returns [19:42:45]Send response to host [19:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186647,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:42:45]free response buf [19:42:45]execute_script done [19:42:45]execute_script returns [19:42:45]free content buf [19:42:45]Sock 9.Close socket [19:42:45]Sock 9.Thread stoped [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:15]accept exits with 7 [19:44:15]New connection [19:44:15]New thread 3067051364 created [19:44:15]Thread 3067194724 joined [19:44:15]Waiting for new connection... [19:44:15] Sock 7.Parse request [19:44:15]Sock 7.Check first char [19:44:15]Sock 7.First char is OK [19:44:15]request: POST /json_proto HTTP/1.0 [19:44:15]Method: POST [19:44:15]URL: /json_proto [19:44:15]Method is POST - this is cgi request [19:44:15]url: /json_proto [19:44:15]query_string will be loaded in cgi processing [19:44:15]execute_cgi json_proto POST (null) [19:44:15]execute_cgi path=json_proto method=POST [19:44:15]POST find Content-Length [19:44:15]Host: 172.17.46.131:8080 [19:44:15]Content-Length: 677 [19:44:15]Content-Type: application/json [19:44:15] [19:44:15]POST finish read [19:44:15]Found Content-Length = 677 [19:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]execute_script... [19:44:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 3.120, "sum" : 200.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]POST & json_proto [19:44:15]process_json_proto [19:44:15]json parsed OK: [19:44:15]protocol is kg_v1.0 [19:44:15]action value=close_receipt [19:44:15]process_action close_receipt [19:44:15]cmd_close_receipt [19:44:15]MH_GetDate [19:44:15]Write to MH i2c: F0 00 00 26 02 17 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 26 02 00 8F 91 B3 67 7E 41 4F 65 CD [19:44:15]GetLastDocTimeStamp 1739821361 [19:44:15]current date 1739821455 [19:44:15]FM_GetShiftState [19:44:15]SAM_PROTO_GetShiftState [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 13 01 00 [19:44:15]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CA [19:44:15]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:44:15]wFMCommunicate OK [19:44:15]SAM_PROTO_GetShiftState done [19:44:15]FM_GetShiftState done [19:44:15]opened in 1739752571 [19:44:15]opened+sec_in_day 1739838971 [19:44:15]quantity*price = 20030 [19:44:15]sum+1 = 20031 [19:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 235 17.02.2025 19:44 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186648 ФПД: 263984634543865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194415&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186648&fm=263984634543865&tin=02508201610067®Number=0000000000091857&sum=20000 [19:44:16]StoreToDocumentArchive [19:44:16]shift 644 fd 186648 [19:44:16]save to /storage/0644/doc_00186648 [19:44:16]save last doc name /storage/0644/doc_00186648 to /storage/kkm_last_doc_name [19:44:16]save OK [19:44:16]Clear old archive folders... [19:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:16]tlvbuf is 005DFA70 [19:44:16]SAM_PROTO_ClearQueue [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 09 00 00 [19:44:16]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [19:44:16]RAPDU: 90 00 [19:44:16]wFMCommunicate OK [19:44:16]SAM_PROTO_ClearQueue done [19:44:16]KKMCreateOFDPacket [19:44:16]OFDProtocolAddRootSTLVToBuf [19:44:16]FM_MakeSignedData [19:44:16]FM_MakeSignedData [19:44:16]SAM_PROTO_SignData [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 0D 01 02 [19:44:16]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [19:44:16]RAPDU: 90 00 [19:44:16]wFMCommunicate OK [19:44:16]wFMCommunicate request_size=255 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8F 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 D9 02 00 35 04 06 00 F0 [19:44:16]Write to MH i2c: E2 02 01 36 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8F 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 D9 02 00 35 04 06 00 F0 00 00 23 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [19:44:16]RAPDU: 90 00 [19:44:16]wFMCommunicate OK [19:44:16]wFMCommunicate request_size=10 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 0D 02 02 05 17 B6 5E 3E F9 [19:44:16]Write to MH i2c: E2 0D 00 37 02 80 0D 02 02 05 00 17 B6 5E 3E F9 00 00 1F [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [19:44:16]RAPDU: 90 00 [19:44:16]wFMCommunicate OK [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 0D 03 02 [19:44:16]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 0B 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 0B 00 38 02 00 0E 86 A9 EF 17 4E 29 DB 90 00 4B [19:44:16]RAPDU: 0E 86 A9 EF 17 4E 29 DB 90 00 [19:44:16]wFMCommunicate OK [19:44:16]SAM_PROTO_SignData done [19:44:16]FM_MakeSignedData done [19:44:16]CreateOFDProtocolMessage [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 11 00 00 [19:44:16]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 17 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 08 [19:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:44:16]wFMCommunicate OK [19:44:16]CreateOFDProtocolMessage done [19:44:16]OFDSenderStorePacket 186648 [19:44:16]StoreOFDPacket docnum=186648 [19:44:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 28 07 01 4F B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8F 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 D9 02 00 35 04 06 00 F0 17 B6 5E 3E F9 0E 86 A9 EF 17 4E 29 DB [19:44:16]CheckFolder [19:44:16]dirname=/storage/ofd_packets [19:44:16]CheckFolder done [19:44:16]ProducePacketName [19:44:16]name=ofd_packets/00186648 [19:44:16]NVStorageSaveData ofd_packets/00186648 [19:44:16]File name is /storage/ofd_packets/00186648 [19:44:16]Write 301 bytes [19:44:16]NVStorageSaveData done [19:44:16]OFDSenderStorePacket done [19:44:16]KKMCreateOFDPacket done [19:44:16]NVStorageSaveData kkm_last_timestamp [19:44:16]File name is /storage/kkm_last_timestamp [19:44:16]Write 4 bytes [19:44:16]NVStorageSaveData done [19:44:16]OFD Sender: Processing packet 186648 [packets to send 49, broken 48] [19:44:16]ProducePacketName [19:44:16]name=ofd_packets/00186648 [19:44:16]OFD Sender: To server: pG, [19:44:16]CommunicateWithHost lk.salyk.kg:30040 [19:44:16]ConnectInit lk.salyk.kg [19:44:16]ExternCall_PrintAddStr [19:44:16]wPrintStart [19:44:16]Write to MH i2c: 01 00 00 3A 02 3C [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: 01 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: 01 07 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [19:44:16]RasterBufferAndPrint [19:44:16]line Счет N : (1)411796 [19:44:16]line ИНН: 02508201610067 [19:44:16]line Контрольно-Кассовый Чек [19:44:16]line ПРОДАЖА [19:44:16]line ТРК (МРК, ГНК) : 42 [19:44:16]line Товар: 2710124130 [19:44:16]line Аи-92-К-2 [19:44:16]line 3.120 * 64.20 [19:44:16]line = 200.30 [19:44:16]line НДС 12% НСП 1% [19:44:16]line > о реализуемом товаре [19:44:16]line ОКРУГЛЕНИЕ: -0.30 [19:44:16]line ИТОГО: 200.00 [19:44:16]line Внесено: 200.00 [19:44:16]line СДАЧА: 0.00 [19:44:16]line НСП 1% : 1.77 [19:44:16]line НДС 12% : 21.27 [19:44:16]line Наличными: 200.00 [19:44:16]line Безнал.: 0.00 [19:44:16]line Место: АЗС № 92 "Партнер Нефть" [19:44:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:44:16]line СНО: Общий режим [19:44:16]line Чек 235 17.02.2025 19:44 [19:44:16]line Смена: 644 ФФД: 1.0 [19:44:16]line ЗНМ: 0300000118 [19:44:16]line РНМ: 0000000000091857 [19:44:16]line Версия ККМ: 001 [19:44:16]line ФМ: 0000000000871826 [19:44:16]line ФД: 186648 [19:44:16]line ФПД: 263984634543865 [19:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T194415&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186648&fm=263984634543865&tin=02508201610067®Number=0000000000091857&sum=20000 [19:44:17]Connected sock=11 [19:44:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 76 28 07 01 4F B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 3E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 8F 91 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 D9 02 00 35 04 06 00 F0 17 B6 5E 3E F9 0E 86 A9 EF 17 4E 29 DB [19:44:17]written 0, free lines is 4095 [19:44:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E4 75 47 00 08 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 18 D9 02 00 F4 03 04 00 E8 37 B3 67 B6 04 01 00 00 22 59 54 0F A8 3D 67 7A [19:44:17]CommunicateWithHost err = 0 [19:44:17]CheckOFDResponse [19:44:17]1017 (14) - 77093643461234 [19:44:17]1041 (16) - 0000000000871826 [19:44:17]1040 (4) - 186648 [19:44:17]1012 (4) - 17.02.2025 13:21 [19:44:17]1206 (1) - 0 [19:44:17]OFD Sender: Remove packet 186648 [19:44:17]ProducePacketName [19:44:17]name=ofd_packets/00186648 [19:44:17]NVStorageDeleteData [19:44:17]Write to MH i2c: 01 00 00 65 02 67 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 F3 0C 6D [19:44:17]RasterBufferAndPrint [19:44:17]line [19:44:17]line [19:44:17]line [19:44:17]line [19:44:17]line [19:44:17]written 0, free lines is 3321 [19:44:17]MH_Cut [19:44:17]Write to MH i2c: D1 01 00 6C 02 01 40 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: D1 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: D1 01 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: D1 01 00 6C 02 00 3F [19:44:17]Write to MH i2c: 01 00 00 6D 02 6F [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]OFD Sender: No OFD packet to send [19:44:18]*** Cut start [19:44:18]*** Partial cut [19:44:18]*** CUTSNS_PIN = 1 [19:44:18]*** CUTSNS_PIN = 0 [19:44:18]*** Brake cut motor [19:44:18]Read from MH i2c: 01 [19:44:18]MH_I2C_Read... [19:44:18]*** Stop cut motor [19:44:18]*** Cut end [19:44:18]Read from MH i2c: 01 07 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [19:44:18]process_action close_receipt done [19:44:18]requested_data is exist [19:44:18]produce_requested_data [19:44:18]requested_item fm.sn is exist - process it [19:44:18]wFMCommunicate request_size=4 [19:44:18]MH_SAM_APDU [19:44:18]CAPDU: 80 11 00 00 [19:44:18]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:19]Read from MH i2c: E2 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 17 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3D [19:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:44:19]wFMCommunicate OK [19:44:19]requested_item fd.num is exist - process it [19:44:19]SAM_PROTO_GetFieldsCounters [19:44:19]wFMCommunicate request_size=4 [19:44:19]MH_SAM_APDU [19:44:19]CAPDU: 80 13 00 00 [19:44:19]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:19]Read from MH i2c: E2 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 62 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 18 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:19]wFMCommunicate OK [19:44:19]SAM_PROTO_GetFieldsCounters done [19:44:19]requested_item shift.num is exist - process it [19:44:19]requested_item shift.opened is exist - process it [19:44:19]req_shift_opened [19:44:19]FM_GetShiftState [19:44:19]SAM_PROTO_GetShiftState [19:44:19]wFMCommunicate request_size=4 [19:44:19]MH_SAM_APDU [19:44:19]CAPDU: 80 13 01 00 [19:44:19]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:19]Read from MH i2c: E2 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 0E 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 13 [19:44:19]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:44:19]wFMCommunicate OK [19:44:19]SAM_PROTO_GetShiftState done [19:44:19]FM_GetShiftState done [19:44:19]req_shift_opened done [19:44:19]requested_item shift.open_date is exist - process it [19:44:19]req_shift_open_date [19:44:19]req_shift_open_date done [19:44:19]produce_requested_data done [19:44:19]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186648,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:44:19]process_action_free close_receipt [19:44:19]json_value_free [19:44:19]json_value_free done [19:44:19]process_json_proto returns [19:44:19]Send response to host [19:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186648,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:44:19]free response buf [19:44:19]execute_script done [19:44:19]execute_script returns [19:44:19]free content buf [19:44:19]Sock 7.Close socket [19:44:19]Sock 7.Thread stoped [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47:17]OFD Sender: No OFD packet to send [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:57]OFD Sender: No OFD packet to send [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:16]accept exits with 9 [19:53:16]New connection [19:53:16]New thread 3067194724 created [19:53:16]Thread 3067051364 joined [19:53:16]Waiting for new connection... [19:53:16] Sock 9.Parse request [19:53:16]Sock 9.Check first char [19:53:16]Sock 9.First char is OK [19:53:16]request: POST /json_proto HTTP/1.0 [19:53:16]Method: POST [19:53:16]URL: /json_proto [19:53:16]Method is POST - this is cgi request [19:53:16]url: /json_proto [19:53:16]query_string will be loaded in cgi processing [19:53:16]execute_cgi json_proto POST (null) [19:53:16]execute_cgi path=json_proto method=POST [19:53:16]POST find Content-Length [19:53:16]Host: 172.17.46.131:8080 [19:53:16]Content-Length: 673 [19:53:16]Content-Type: application/json [19:53:16] [19:53:16]POST finish read [19:53:16]Found Content-Length = 673 [19:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:16]execute_script... [19:53:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:16]POST & json_proto [19:53:16]process_json_proto [19:53:16]json parsed OK: [19:53:16]protocol is kg_v1.0 [19:53:16]action value=close_receipt [19:53:16]process_action close_receipt [19:53:16]cmd_close_receipt [19:53:16]MH_GetDate [19:53:16]Write to MH i2c: F0 00 00 71 02 62 [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: F0 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: F0 09 00 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: F0 09 00 71 02 00 AC 93 B3 67 7E 41 4F 65 37 [19:53:16]GetLastDocTimeStamp 1739821455 [19:53:16]current date 1739821996 [19:53:16]FM_GetShiftState [19:53:16]SAM_PROTO_GetShiftState [19:53:16]wFMCommunicate request_size=4 [19:53:16]MH_SAM_APDU [19:53:16]CAPDU: 80 13 01 00 [19:53:16]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [19:53:16]Write i2c OK [19:53:16]MH_I2C_Read... [19:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:16]Read from MH i2c: E2 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: E2 0E 00 [19:53:16]MH_I2C_Read... [19:53:16]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 15 [19:53:16]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:53:16]wFMCommunicate OK [19:53:16]SAM_PROTO_GetShiftState done [19:53:16]FM_GetShiftState done [19:53:16]opened in 1739752571 [19:53:16]opened+sec_in_day 1739838971 [19:53:16]quantity*price = 50021 [19:53:16]sum+1 = 50022 [19:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 236 17.02.2025 19:53 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186649 ФПД: 225769259201458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186649&fm=225769259201458&tin=02508201610067®Number=0000000000091857&sum=50000 [19:53:17]StoreToDocumentArchive [19:53:17]shift 644 fd 186649 [19:53:17]save to /storage/0644/doc_00186649 [19:53:17]save last doc name /storage/0644/doc_00186649 to /storage/kkm_last_doc_name [19:53:17]save OK [19:53:17]Clear old archive folders... [19:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:53:17]tlvbuf is 005D5040 [19:53:17]SAM_PROTO_ClearQueue [19:53:17]wFMCommunicate request_size=4 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 09 00 00 [19:53:17]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [19:53:17]RAPDU: 90 00 [19:53:17]wFMCommunicate OK [19:53:17]SAM_PROTO_ClearQueue done [19:53:17]KKMCreateOFDPacket [19:53:17]OFDProtocolAddRootSTLVToBuf [19:53:17]FM_MakeSignedData [19:53:17]FM_MakeSignedData [19:53:17]SAM_PROTO_SignData [19:53:17]wFMCommunicate request_size=4 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 0D 01 02 [19:53:17]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [19:53:17]RAPDU: 90 00 [19:53:17]wFMCommunicate OK [19:53:17]wFMCommunicate request_size=255 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 AC 93 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 D9 02 00 35 04 06 00 CD 56 00 7E [19:53:17]Write to MH i2c: E2 02 01 81 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 AC 93 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 D9 02 00 35 04 06 00 CD 56 00 7E 00 00 17 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [19:53:17]RAPDU: 90 00 [19:53:17]wFMCommunicate OK [19:53:17]wFMCommunicate request_size=7 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 0D 02 02 02 F3 B2 [19:53:17]Write to MH i2c: E2 0A 00 82 02 80 0D 02 02 02 00 F3 B2 00 00 A7 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [19:53:17]RAPDU: 90 00 [19:53:17]wFMCommunicate OK [19:53:17]wFMCommunicate request_size=4 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 0D 03 02 [19:53:17]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:17]Read from MH i2c: E2 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 0B 00 [19:53:17]MH_I2C_Read... [19:53:17]Read from MH i2c: E2 0B 00 83 02 00 18 5B 7E C3 0C 3B 83 80 90 00 FF [19:53:17]RAPDU: 18 5B 7E C3 0C 3B 83 80 90 00 [19:53:17]wFMCommunicate OK [19:53:17]SAM_PROTO_SignData done [19:53:17]FM_MakeSignedData done [19:53:17]CreateOFDProtocolMessage [19:53:17]wFMCommunicate request_size=4 [19:53:17]MH_SAM_APDU [19:53:17]CAPDU: 80 11 00 00 [19:53:17]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [19:53:17]Write i2c OK [19:53:17]MH_I2C_Read... [19:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:18]Read from MH i2c: E2 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 17 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 53 [19:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:53:18]wFMCommunicate OK [19:53:18]CreateOFDProtocolMessage done [19:53:18]OFDSenderStorePacket 186649 [19:53:18]StoreOFDPacket docnum=186649 [19:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 83 11 04 01 85 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 AC 93 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 D9 02 00 35 04 06 00 CD 56 00 7E F3 B2 18 5B 7E C3 0C 3B 83 80 [19:53:18]CheckFolder [19:53:18]dirname=/storage/ofd_packets [19:53:18]CheckFolder done [19:53:18]ProducePacketName [19:53:18]name=ofd_packets/00186649 [19:53:18]NVStorageSaveData ofd_packets/00186649 [19:53:18]File name is /storage/ofd_packets/00186649 [19:53:18]Write 298 bytes [19:53:18]NVStorageSaveData done [19:53:18]OFDSenderStorePacket done [19:53:18]KKMCreateOFDPacket done [19:53:18]NVStorageSaveData kkm_last_timestamp [19:53:18]File name is /storage/kkm_last_timestamp [19:53:18]Write 4 bytes [19:53:18]NVStorageSaveData done [19:53:18]ExternCall_PrintAddStr [19:53:18]wPrintStart [19:53:18]Write to MH i2c: 01 00 00 85 02 87 [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 07 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [19:53:18]RasterBufferAndPrint [19:53:18]line Счет N : (1)411797 [19:53:18]line ИНН: 02508201610067 [19:53:18]line Контрольно-Кассовый Чек [19:53:18]line ПРОДАЖА [19:53:18]line ТРК (МРК, ГНК) : 5 [19:53:18]line Товар: 2710194210 [19:53:18]line ДТ-К-5 [19:53:18]line 6.890 * 72.60 [19:53:18]line = 500.21 [19:53:18]line НДС 12% НСП 1% [19:53:18]line > о реализуемом товаре [19:53:18]line ОКРУГЛЕНИЕ: -0.21 [19:53:18]line ИТОГО: 500.00 [19:53:18]line Внесено: 500.00 [19:53:18]line СДАЧА: 0.00 [19:53:18]line НСП 1% : 4.43 [19:53:18]line НДС 12% : 53.12 [19:53:18]line Наличными: 500.00 [19:53:18]line Безнал.: 0.00 [19:53:18]line Место: АЗС № 92 "Партнер Нефть" [19:53:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:53:18]line СНО: Общий режим [19:53:18]line Чек 236 17.02.2025 19:53 [19:53:18]line Смена: 644 ФФД: 1.0 [19:53:18]line ЗНМ: 0300000118 [19:53:18]line РНМ: 0000000000091857 [19:53:18]line Версия ККМ: 001 [19:53:18]line ФМ: 0000000000871826 [19:53:18]line ФД: 186649 [19:53:18]line ФПД: 225769259201458 [19:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195316&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186649&fm=225769259201458&tin=02508201610067®Number=0000000000091857&sum=50000 [19:53:18]OFD Sender: Processing packet 186649 [packets to send 49, broken 48] [19:53:18]ProducePacketName [19:53:18]name=ofd_packets/00186649 [19:53:18]OFD Sender: To server: pG, [19:53:18]CommunicateWithHost lk.salyk.kg:30040 [19:53:18]ConnectInit lk.salyk.kg [19:53:18]written 0, free lines is 4095 [19:53:18]Connected sock=10 [19:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 83 11 04 01 85 26 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 AC 93 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 D9 02 00 35 04 06 00 CD 56 00 7E F3 B2 18 5B 7E C3 0C 3B 83 80 [19:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 78 A1 47 00 F9 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 19 D9 02 00 F4 03 04 00 06 3A B3 67 B6 04 01 00 00 8C 34 97 3E CE 8D BB CC [19:53:18]CommunicateWithHost err = 0 [19:53:18]CheckOFDResponse [19:53:18]1017 (14) - 77093643461234 [19:53:18]1041 (16) - 0000000000871826 [19:53:18]1040 (4) - 186649 [19:53:18]1012 (4) - 17.02.2025 13:30 [19:53:18]1206 (1) - 0 [19:53:18]OFD Sender: Remove packet 186649 [19:53:18]ProducePacketName [19:53:18]name=ofd_packets/00186649 [19:53:18]NVStorageDeleteData [19:53:18]Write to MH i2c: 01 00 00 B0 02 B2 [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 07 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 00 0D C6 [19:53:18]RasterBufferAndPrint [19:53:18]line [19:53:18]line [19:53:18]line [19:53:18]line [19:53:18]line [19:53:18]written 0, free lines is 3334 [19:53:18]MH_Cut [19:53:18]Write to MH i2c: D1 01 00 B7 02 01 8B [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: D1 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: D1 01 00 [19:53:18]MH_I2C_Read... [19:53:18]Read from MH i2c: D1 01 00 B7 02 00 8A [19:53:18]Write to MH i2c: 01 00 00 B8 02 BA [19:53:18]Write i2c OK [19:53:18]MH_I2C_Read... [19:53:19]OFD Sender: No OFD packet to send [19:53:19]*** Cut start [19:53:19]*** Partial cut [19:53:19]*** CUTSNS_PIN = 1 [19:53:19]*** CUTSNS_PIN = 0 [19:53:19]*** Brake cut motor [19:53:20]Read from MH i2c: 01 [19:53:20]MH_I2C_Read... [19:53:20]*** Stop cut motor [19:53:20]*** Cut end [19:53:20]Read from MH i2c: 01 07 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [19:53:20]process_action close_receipt done [19:53:20]requested_data is exist [19:53:20]produce_requested_data [19:53:20]requested_item fm.sn is exist - process it [19:53:20]wFMCommunicate request_size=4 [19:53:20]MH_SAM_APDU [19:53:20]CAPDU: 80 11 00 00 [19:53:20]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [19:53:20]Write i2c OK [19:53:20]MH_I2C_Read... [19:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:20]Read from MH i2c: E2 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 17 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 88 [19:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:53:20]wFMCommunicate OK [19:53:20]requested_item fd.num is exist - process it [19:53:20]SAM_PROTO_GetFieldsCounters [19:53:20]wFMCommunicate request_size=4 [19:53:20]MH_SAM_APDU [19:53:20]CAPDU: 80 13 00 00 [19:53:20]Write to MH i2c: E2 08 00 BA 02 80 13 00 00 00 00 00 00 38 [19:53:20]Write i2c OK [19:53:20]MH_I2C_Read... [19:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:20]Read from MH i2c: E2 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 62 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 62 00 BA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [19:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 19 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:20]wFMCommunicate OK [19:53:20]SAM_PROTO_GetFieldsCounters done [19:53:20]requested_item shift.num is exist - process it [19:53:20]requested_item shift.opened is exist - process it [19:53:20]req_shift_opened [19:53:20]FM_GetShiftState [19:53:20]SAM_PROTO_GetShiftState [19:53:20]wFMCommunicate request_size=4 [19:53:20]MH_SAM_APDU [19:53:20]CAPDU: 80 13 01 00 [19:53:20]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [19:53:20]Write i2c OK [19:53:20]MH_I2C_Read... [19:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:20]Read from MH i2c: E2 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 0E 00 [19:53:20]MH_I2C_Read... [19:53:20]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 5E [19:53:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:53:20]wFMCommunicate OK [19:53:20]SAM_PROTO_GetShiftState done [19:53:20]FM_GetShiftState done [19:53:20]req_shift_opened done [19:53:20]requested_item shift.open_date is exist - process it [19:53:20]req_shift_open_date [19:53:20]req_shift_open_date done [19:53:20]produce_requested_data done [19:53:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186649,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:53:20]process_action_free close_receipt [19:53:20]json_value_free [19:53:20]json_value_free done [19:53:20]process_json_proto returns [19:53:20]Send response to host [19:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186649,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:53:20]free response buf [19:53:20]execute_script done [19:53:20]execute_script returns [19:53:20]free content buf [19:53:20]Sock 9.Close socket [19:53:20]Sock 9.Thread stoped [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:31]accept exits with 7 [19:57:31]New connection [19:57:31]New thread 3067051364 created [19:57:31]Thread 3067194724 joined [19:57:31]Waiting for new connection... [19:57:31] Sock 7.Parse request [19:57:31]Sock 7.Check first char [19:57:31]Sock 7.First char is OK [19:57:31]request: POST /json_proto HTTP/1.0 [19:57:31]Method: POST [19:57:31]URL: /json_proto [19:57:31]Method is POST - this is cgi request [19:57:31]url: /json_proto [19:57:31]query_string will be loaded in cgi processing [19:57:31]execute_cgi json_proto POST (null) [19:57:31]execute_cgi path=json_proto method=POST [19:57:31]POST find Content-Length [19:57:31]Host: 172.17.46.131:8080 [19:57:31]Content-Length: 682 [19:57:31]Content-Type: application/json [19:57:31] [19:57:31]POST finish read [19:57:31]Found Content-Length = 682 [19:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:31]execute_script... [19:57:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 27.820, "sum" : 2000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:31]POST & json_proto [19:57:31]process_json_proto [19:57:31]json parsed OK: [19:57:31]protocol is kg_v1.0 [19:57:31]action value=close_receipt [19:57:31]process_action close_receipt [19:57:31]cmd_close_receipt [19:57:31]MH_GetDate [19:57:31]Write to MH i2c: F0 00 00 BC 02 AD [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: F0 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: F0 09 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: F0 09 00 BC 02 00 AB 94 B3 67 7E 41 4F 65 82 [19:57:31]GetLastDocTimeStamp 1739821996 [19:57:31]current date 1739822251 [19:57:31]FM_GetShiftState [19:57:31]SAM_PROTO_GetShiftState [19:57:31]wFMCommunicate request_size=4 [19:57:31]MH_SAM_APDU [19:57:31]CAPDU: 80 13 01 00 [19:57:31]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:31]Read from MH i2c: E2 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 0E 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 60 [19:57:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:57:31]wFMCommunicate OK [19:57:31]SAM_PROTO_GetShiftState done [19:57:31]FM_GetShiftState done [19:57:31]opened in 1739752571 [19:57:31]opened+sec_in_day 1739838971 [19:57:31]quantity*price = 200025 [19:57:31]sum+1 = 200027 [19:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 237 17.02.2025 19:57 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186650 ФПД: 48082180184840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186650&fm=48082180184840&tin=02508201610067®Number=0000000000091857&sum=200000 [19:57:32]StoreToDocumentArchive [19:57:32]shift 644 fd 186650 [19:57:32]save to /storage/0644/doc_00186650 [19:57:32]save last doc name /storage/0644/doc_00186650 to /storage/kkm_last_doc_name [19:57:32]save OK [19:57:32]Clear old archive folders... [19:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:32]tlvbuf is 005D6960 [19:57:32]SAM_PROTO_ClearQueue [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 09 00 00 [19:57:32]Write to MH i2c: E2 08 00 CA 02 80 09 00 00 00 00 00 00 3E [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [19:57:32]RAPDU: 90 00 [19:57:32]wFMCommunicate OK [19:57:32]SAM_PROTO_ClearQueue done [19:57:32]KKMCreateOFDPacket [19:57:32]OFDProtocolAddRootSTLVToBuf [19:57:32]FM_MakeSignedData [19:57:32]FM_MakeSignedData [19:57:32]SAM_PROTO_SignData [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 0D 01 02 [19:57:32]Write to MH i2c: E2 08 00 CB 02 80 0D 01 02 00 00 00 00 46 [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [19:57:32]RAPDU: 90 00 [19:57:32]wFMCommunicate OK [19:57:32]wFMCommunicate request_size=255 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 AB 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A D9 02 00 35 04 06 00 2B [19:57:32]Write to MH i2c: E2 02 01 CC 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 AB 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A D9 02 00 35 04 06 00 2B 00 00 D5 [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [19:57:32]RAPDU: 90 00 [19:57:32]wFMCommunicate OK [19:57:32]wFMCommunicate request_size=10 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 0D 02 02 05 BB 01 45 1B 08 [19:57:32]Write to MH i2c: E2 0D 00 CD 02 80 0D 02 02 05 00 BB 01 45 1B 08 00 00 77 [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [19:57:32]RAPDU: 90 00 [19:57:32]wFMCommunicate OK [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 0D 03 02 [19:57:32]Write to MH i2c: E2 08 00 CE 02 80 0D 03 02 00 00 00 00 4B [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0B 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0B 00 CE 02 00 72 76 40 CE 84 C7 7C AB 90 00 B4 [19:57:32]RAPDU: 72 76 40 CE 84 C7 7C AB 90 00 [19:57:32]wFMCommunicate OK [19:57:32]SAM_PROTO_SignData done [19:57:32]FM_MakeSignedData done [19:57:32]CreateOFDProtocolMessage [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 11 00 00 [19:57:32]Write to MH i2c: E2 08 00 CF 02 80 11 00 00 00 00 00 00 4B [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 17 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 17 00 CF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 9E [19:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:57:32]wFMCommunicate OK [19:57:32]CreateOFDProtocolMessage done [19:57:32]OFDSenderStorePacket 186650 [19:57:32]StoreOFDPacket docnum=186650 [19:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 7E 07 01 58 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 AB 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A D9 02 00 35 04 06 00 2B BB 01 45 1B 08 72 76 40 CE 84 C7 7C AB [19:57:32]CheckFolder [19:57:32]dirname=/storage/ofd_packets [19:57:32]CheckFolder done [19:57:32]ProducePacketName [19:57:32]name=ofd_packets/00186650 [19:57:32]NVStorageSaveData ofd_packets/00186650 [19:57:32]File name is /storage/ofd_packets/00186650 [19:57:32]Write 301 bytes [19:57:32]NVStorageSaveData done [19:57:32]OFDSenderStorePacket done [19:57:32]KKMCreateOFDPacket done [19:57:32]NVStorageSaveData kkm_last_timestamp [19:57:32]File name is /storage/kkm_last_timestamp [19:57:32]Write 4 bytes [19:57:32]NVStorageSaveData done [19:57:32]ExternCall_PrintAddStr [19:57:32]wPrintStart [19:57:32]Write to MH i2c: 01 00 00 D0 02 D2 [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: 01 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: 01 07 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [19:57:32]RasterBufferAndPrint [19:57:32]line Счет N : (1)411798 [19:57:32]line ИНН: 02508201610067 [19:57:32]line Контрольно-Кассовый Чек [19:57:32]line ПРОДАЖА [19:57:32]line ТРК (МРК, ГНК) : 23 [19:57:32]line Товар: 2710124500 [19:57:32]line Аи-95-К-5 [19:57:32]line 27.820 * 71.90 [19:57:32]line = 2000.26 [19:57:32]line НДС 12% НСП 1% [19:57:32]line > о реализуемом товаре [19:57:32]line ОКРУГЛЕНИЕ: -0.26 [19:57:32]line ИТОГО: 2000.00 [19:57:32]line Внесено: 2000.00 [19:57:32]line СДАЧА: 0.00 [19:57:32]line НСП 1% : 17.70 [19:57:32]line НДС 12% : 212.42 [19:57:32]line Наличными: 2000.00 [19:57:32]line Безнал.: 0.00 [19:57:32]line Место: АЗС № 92 "Партнер Нефть" [19:57:32]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:57:32]line СНО: Общий режим [19:57:32]line Чек 237 17.02.2025 19:57 [19:57:32]line Смена: 644 ФФД: 1.0 [19:57:32]line ЗНМ: 0300000118 [19:57:32]line РНМ: 0000000000091857 [19:57:32]line Версия ККМ: 001 [19:57:32]line ФМ: 0000000000871826 [19:57:32]line ФД: 186650 [19:57:32]line ФПД: 48082180184840 [19:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195731&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186650&fm=48082180184840&tin=02508201610067®Number=0000000000091857&sum=200000 [19:57:32]written 0, free lines is 4095 [19:57:32]OFD Sender: Processing packet 186650 [packets to send 49, broken 48] [19:57:32]ProducePacketName [19:57:32]name=ofd_packets/00186650 [19:57:32]OFD Sender: To server: pG, [19:57:32]CommunicateWithHost lk.salyk.kg:30040 [19:57:32]ConnectInit lk.salyk.kg [19:57:32]Connected sock=10 [19:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 89 7E 07 01 58 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 AC 6C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 5A 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 AB 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A D9 02 00 35 04 06 00 2B BB 01 45 1B 08 72 76 40 CE 84 C7 7C AB [19:57:33]Write to MH i2c: 01 00 00 FB 02 FD [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 F4 0C 04 [19:57:33]RasterBufferAndPrint [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]line [19:57:33]written 0, free lines is 3322 [19:57:33]MH_Cut [19:57:33]Write to MH i2c: D1 01 00 02 03 01 D7 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 01 00 [19:57:33]MH_I2C_Read... [19:57:33]Read from MH i2c: D1 01 00 02 03 00 D6 [19:57:33]Write to MH i2c: 01 00 00 03 03 06 [19:57:33]Write i2c OK [19:57:33]MH_I2C_Read... [19:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C6 38 47 00 F8 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1A D9 02 00 F4 03 04 00 04 3B B3 67 B6 04 01 00 00 30 C9 E9 22 D0 45 10 62 [19:57:33]CommunicateWithHost err = 0 [19:57:33]CheckOFDResponse [19:57:33]1017 (14) - 77093643461234 [19:57:33]1041 (16) - 0000000000871826 [19:57:33]1040 (4) - 186650 [19:57:33]1012 (4) - 17.02.2025 13:35 [19:57:33]1206 (1) - 0 [19:57:33]OFD Sender: Remove packet 186650 [19:57:33]ProducePacketName [19:57:33]name=ofd_packets/00186650 [19:57:33]NVStorageDeleteData [19:57:33]OFD Sender: No OFD packet to send [19:57:33]*** Cut start [19:57:33]*** Partial cut [19:57:33]*** CUTSNS_PIN = 1 [19:57:33]*** CUTSNS_PIN = 0 [19:57:34]*** Brake cut motor [19:57:34]Read from MH i2c: 01 [19:57:34]MH_I2C_Read... [19:57:34]*** Stop cut motor [19:57:34]*** Cut end [19:57:34]Read from MH i2c: 01 07 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: 01 07 00 03 03 00 00 00 00 00 FF 0F 1B [19:57:34]process_action close_receipt done [19:57:34]requested_data is exist [19:57:34]produce_requested_data [19:57:34]requested_item fm.sn is exist - process it [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 11 00 00 [19:57:34]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 17 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D4 [19:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:57:34]wFMCommunicate OK [19:57:34]requested_item fd.num is exist - process it [19:57:34]SAM_PROTO_GetFieldsCounters [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 13 00 00 [19:57:34]Write to MH i2c: E2 08 00 05 03 80 13 00 00 00 00 00 00 84 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 62 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 62 00 05 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:34]wFMCommunicate OK [19:57:34]SAM_PROTO_GetFieldsCounters done [19:57:34]requested_item shift.num is exist - process it [19:57:34]requested_item shift.opened is exist - process it [19:57:34]req_shift_opened [19:57:34]FM_GetShiftState [19:57:34]SAM_PROTO_GetShiftState [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 13 01 00 [19:57:34]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0E 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AA [19:57:34]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:57:34]wFMCommunicate OK [19:57:34]SAM_PROTO_GetShiftState done [19:57:34]FM_GetShiftState done [19:57:34]req_shift_opened done [19:57:34]requested_item shift.open_date is exist - process it [19:57:34]req_shift_open_date [19:57:34]req_shift_open_date done [19:57:34]produce_requested_data done [19:57:34]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186650,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:57:34]process_action_free close_receipt [19:57:34]json_value_free [19:57:34]json_value_free done [19:57:34]process_json_proto returns [19:57:34]Send response to host [19:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186650,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:57:34]free response buf [19:57:34]execute_script done [19:57:34]execute_script returns [19:57:34]free content buf [19:57:34]Sock 7.Close socket [19:57:34]Sock 7.Thread stoped [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]accept exits with 9 [19:58:33]New connection [19:58:33]New thread 3067194724 created [19:58:33]Thread 3067051364 joined [19:58:33]Waiting for new connection... [19:58:33] Sock 9.Parse request [19:58:33]Sock 9.Check first char [19:58:33]Sock 9.First char is OK [19:58:33]request: POST /json_proto HTTP/1.0 [19:58:33]Method: POST [19:58:33]URL: /json_proto [19:58:33]Method is POST - this is cgi request [19:58:33]url: /json_proto [19:58:33]query_string will be loaded in cgi processing [19:58:33]execute_cgi json_proto POST (null) [19:58:33]execute_cgi path=json_proto method=POST [19:58:33]POST find Content-Length [19:58:33]Host: 172.17.46.131:8080 [19:58:33]Content-Length: 799 [19:58:33]Content-Type: application/json [19:58:33] [19:58:33]POST finish read [19:58:33]Found Content-Length = 799 [19:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:33]execute_script... [19:58:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:33]POST & json_proto [19:58:33]process_json_proto [19:58:33]json parsed OK: [19:58:33]protocol is kg_v1.0 [19:58:33]action value=close_receipt [19:58:33]process_action close_receipt [19:58:33]cmd_close_receipt [19:58:33]MH_GetDate [19:58:33]Write to MH i2c: F0 00 00 07 03 F9 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: F0 09 00 07 03 00 EA 94 B3 67 7E 41 4F 65 0D [19:58:33]GetLastDocTimeStamp 1739822251 [19:58:33]current date 1739822314 [19:58:33]FM_GetShiftState [19:58:33]SAM_PROTO_GetShiftState [19:58:33]wFMCommunicate request_size=4 [19:58:33]MH_SAM_APDU [19:58:33]CAPDU: 80 13 01 00 [19:58:33]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [19:58:33]Write i2c OK [19:58:33]MH_I2C_Read... [19:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:33]Read from MH i2c: E2 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 [19:58:33]MH_I2C_Read... [19:58:33]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AC [19:58:33]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:58:33]wFMCommunicate OK [19:58:33]SAM_PROTO_GetShiftState done [19:58:33]FM_GetShiftState done [19:58:33]opened in 1739752571 [19:58:33]opened+sec_in_day 1739838971 [19:58:33]quantity*price = 100042 [19:58:33]sum+1 = 100044 [19:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 238 17.02.2025 19:58 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186651 ФПД: 131380061653769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186651&fm=131380061653769&tin=02508201610067®Number=0000000000091857&sum=100043 [19:58:34]StoreToDocumentArchive [19:58:34]shift 644 fd 186651 [19:58:34]save to /storage/0644/doc_00186651 [19:58:34]save last doc name /storage/0644/doc_00186651 to /storage/kkm_last_doc_name [19:58:34]save OK [19:58:34]Clear old archive folders... [19:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:58:34]tlvbuf is 005D5CD0 [19:58:34]SAM_PROTO_ClearQueue [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 09 00 00 [19:58:34]Write to MH i2c: E2 08 00 15 03 80 09 00 00 00 00 00 00 8A [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]SAM_PROTO_ClearQueue done [19:58:34]KKMCreateOFDPacket [19:58:34]OFDProtocolAddRootSTLVToBuf [19:58:34]FM_MakeSignedData [19:58:34]FM_MakeSignedData [19:58:34]SAM_PROTO_SignData [19:58:34]wFMCommunicate request_size=4 [19:58:34]MH_SAM_APDU [19:58:34]CAPDU: 80 0D 01 02 [19:58:34]Write to MH i2c: E2 08 00 16 03 80 0D 01 02 00 00 00 00 92 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:34]Read from MH i2c: E2 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 [19:58:34]MH_I2C_Read... [19:58:34]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [19:58:34]RAPDU: 90 00 [19:58:34]wFMCommunicate OK [19:58:34]wFMCommunicate request_size=255 [19:58:34]MH_SAM_APDU [19:58:34]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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 EA 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B D9 02 00 35 04 06 00 77 7D 4D E7 [19:58:34]Write to MH i2c: E2 02 01 17 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 EA 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B D9 02 00 35 04 06 00 77 7D 4D E7 00 00 B6 [19:58:34]Write i2c OK [19:58:34]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 03 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [19:58:35]RAPDU: 90 00 [19:58:35]wFMCommunicate OK [19:58:35]wFMCommunicate request_size=7 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 0D 02 02 02 CB 09 [19:58:35]Write to MH i2c: E2 0A 00 18 03 80 0D 02 02 02 00 CB 09 00 00 6D [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 03 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [19:58:35]RAPDU: 90 00 [19:58:35]wFMCommunicate OK [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 0D 03 02 [19:58:35]Write to MH i2c: E2 08 00 19 03 80 0D 03 02 00 00 00 00 97 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 0B 00 19 03 00 AE 24 9B E9 53 FF B1 EE 90 00 DF [19:58:35]RAPDU: AE 24 9B E9 53 FF B1 EE 90 00 [19:58:35]wFMCommunicate OK [19:58:35]SAM_PROTO_SignData done [19:58:35]FM_MakeSignedData done [19:58:35]CreateOFDProtocolMessage [19:58:35]wFMCommunicate request_size=4 [19:58:35]MH_SAM_APDU [19:58:35]CAPDU: 80 11 00 00 [19:58:35]Write to MH i2c: E2 08 00 1A 03 80 11 00 00 00 00 00 00 97 [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:35]Read from MH i2c: E2 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: E2 17 00 1A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EA [19:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:58:35]wFMCommunicate OK [19:58:35]CreateOFDProtocolMessage done [19:58:35]OFDSenderStorePacket 186651 [19:58:35]StoreOFDPacket docnum=186651 [19:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B5 74 04 01 6D CB 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 EA 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B D9 02 00 35 04 06 00 77 7D 4D E7 CB 09 AE 24 9B E9 53 FF B1 EE [19:58:35]CheckFolder [19:58:35]dirname=/storage/ofd_packets [19:58:35]CheckFolder done [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00186651 [19:58:35]NVStorageSaveData ofd_packets/00186651 [19:58:35]File name is /storage/ofd_packets/00186651 [19:58:35]Write 298 bytes [19:58:35]NVStorageSaveData done [19:58:35]OFDSenderStorePacket done [19:58:35]KKMCreateOFDPacket done [19:58:35]NVStorageSaveData kkm_last_timestamp [19:58:35]File name is /storage/kkm_last_timestamp [19:58:35]Write 4 bytes [19:58:35]NVStorageSaveData done [19:58:35]ExternCall_PrintAddStr [19:58:35]wPrintStart [19:58:35]Write to MH i2c: 01 00 00 1B 03 1E [19:58:35]Write i2c OK [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 [19:58:35]MH_I2C_Read... [19:58:35]Read from MH i2c: 01 07 00 1B 03 00 00 00 00 00 FF 0F 33 [19:58:35]RasterBufferAndPrint [19:58:35]line Счет N : (1)411799 [19:58:35]line ИНН: 02508201610067 [19:58:35]line Контрольно-Кассовый Чек [19:58:35]line ПРОДАЖА [19:58:35]line ТРК (МРК, ГНК) : 6 [19:58:35]line Товар: 2710194210 [19:58:35]line ДТ-К-5 [19:58:35]line 13.780 * 72.60 [19:58:35]line = 1000.43 [19:58:35]line НДС 12% НСП 1% [19:58:35]line > о реализуемом товаре [19:58:35]line ИТОГО: 1000.43 [19:58:35]line НСП 1% : 8.85 [19:58:35]line НДС 12% : 106.24 [19:58:35]line Наличными: 0.00 [19:58:35]line Безнал.: 1000.43 [19:58:35]line Место: АЗС № 92 "Партнер Нефть" [19:58:35]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [19:58:35]line СНО: Общий режим [19:58:35]line Чек 238 17.02.2025 19:58 [19:58:35]line Смена: 644 ФФД: 1.0 [19:58:35]line ЗНМ: 0300000118 [19:58:35]line РНМ: 0000000000091857 [19:58:35]line Версия ККМ: 001 [19:58:35]line Платежная система: O! деньги [19:58:35]line ФМ: 0000000000871826 [19:58:35]line ФД: 186651 [19:58:35]line ФПД: 131380061653769 [19:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T195834&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186651&fm=131380061653769&tin=02508201610067®Number=0000000000091857&sum=100043 [19:58:35]OFD Sender: Processing packet 186651 [packets to send 49, broken 48] [19:58:35]ProducePacketName [19:58:35]name=ofd_packets/00186651 [19:58:35]OFD Sender: To server: pG, [19:58:35]CommunicateWithHost lk.salyk.kg:30040 [19:58:35]ConnectInit lk.salyk.kg [19:58:35]written 0, free lines is 4095 [19:58:35]Connected sock=10 [19:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 B5 74 04 01 6D CB 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 EA 94 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B D9 02 00 35 04 06 00 77 7D 4D E7 CB 09 AE 24 9B E9 53 FF B1 EE [19:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 15 0A 47 00 7E 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1B D9 02 00 F4 03 04 00 43 3B B3 67 B6 04 01 00 00 74 49 32 32 2E 25 E6 87 [19:58:36]CommunicateWithHost err = 0 [19:58:36]CheckOFDResponse [19:58:36]1017 (14) - 77093643461234 [19:58:36]1041 (16) - 0000000000871826 [19:58:36]1040 (4) - 186651 [19:58:36]1012 (4) - 17.02.2025 13:36 [19:58:36]1206 (1) - 0 [19:58:36]OFD Sender: Remove packet 186651 [19:58:36]ProducePacketName [19:58:36]name=ofd_packets/00186651 [19:58:36]NVStorageDeleteData [19:58:36]Write to MH i2c: 01 00 00 45 03 48 [19:58:36]Write i2c OK [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: 01 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: 01 07 00 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FE 0C 59 [19:58:36]RasterBufferAndPrint [19:58:36]line [19:58:36]line [19:58:36]line [19:58:36]line [19:58:36]line [19:58:36]written 0, free lines is 3332 [19:58:36]MH_Cut [19:58:36]Write to MH i2c: D1 01 00 4C 03 01 21 [19:58:36]Write i2c OK [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: D1 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: D1 01 00 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: D1 01 00 4C 03 00 20 [19:58:36]Write to MH i2c: 01 00 00 4D 03 50 [19:58:36]Write i2c OK [19:58:36]MH_I2C_Read... [19:58:36]OFD Sender: No OFD packet to send [19:58:36]*** Cut start [19:58:36]*** Partial cut [19:58:36]*** CUTSNS_PIN = 1 [19:58:36]*** CUTSNS_PIN = 0 [19:58:37]*** Brake cut motor [19:58:37]Read from MH i2c: 01 [19:58:37]MH_I2C_Read... [19:58:37]*** Stop cut motor [19:58:37]*** Cut end [19:58:37]Read from MH i2c: 01 07 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 07 00 4D 03 00 00 00 00 00 FF 0F 65 [19:58:37]process_action close_receipt done [19:58:37]requested_data is exist [19:58:37]produce_requested_data [19:58:37]requested_item fm.sn is exist - process it [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 11 00 00 [19:58:37]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1E [19:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [19:58:37]wFMCommunicate OK [19:58:37]requested_item fd.num is exist - process it [19:58:37]SAM_PROTO_GetFieldsCounters [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 00 00 [19:58:37]Write to MH i2c: E2 08 00 4F 03 80 13 00 00 00 00 00 00 CE [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 62 00 4F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetFieldsCounters done [19:58:37]requested_item shift.num is exist - process it [19:58:37]requested_item shift.opened is exist - process it [19:58:37]req_shift_opened [19:58:37]FM_GetShiftState [19:58:37]SAM_PROTO_GetShiftState [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 13 01 00 [19:58:37]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F4 [19:58:37]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_GetShiftState done [19:58:37]FM_GetShiftState done [19:58:37]req_shift_opened done [19:58:37]requested_item shift.open_date is exist - process it [19:58:37]req_shift_open_date [19:58:37]req_shift_open_date done [19:58:37]produce_requested_data done [19:58:37]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186651,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [19:58:37]process_action_free close_receipt [19:58:37]json_value_free [19:58:37]json_value_free done [19:58:37]process_json_proto returns [19:58:37]Send response to host [19:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186651,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [19:58:37]free response buf [19:58:37]execute_script done [19:58:37]execute_script returns [19:58:37]free content buf [19:58:37]Sock 9.Close socket [19:58:37]Sock 9.Thread stoped [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:21]accept exits with 7 [20:11:21]New connection [20:11:21]New thread 3067051364 created [20:11:21]Thread 3067194724 joined [20:11:21]Waiting for new connection... [20:11:21] Sock 7.Parse request [20:11:21]Sock 7.Check first char [20:11:21]Sock 7.First char is OK [20:11:21]request: POST /json_proto HTTP/1.0 [20:11:21]Method: POST [20:11:21]URL: /json_proto [20:11:21]Method is POST - this is cgi request [20:11:21]url: /json_proto [20:11:21]query_string will be loaded in cgi processing [20:11:21]execute_cgi json_proto POST (null) [20:11:21]execute_cgi path=json_proto method=POST [20:11:21]POST find Content-Length [20:11:21]Host: 172.17.46.131:8080 [20:11:21]Content-Length: 677 [20:11:21]Content-Type: application/json [20:11:21] [20:11:21]POST finish read [20:11:21]Found Content-Length = 677 [20:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:21]execute_script... [20:11:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:21]POST & json_proto [20:11:21]process_json_proto [20:11:21]json parsed OK: [20:11:21]protocol is kg_v1.0 [20:11:21]action value=close_receipt [20:11:21]process_action close_receipt [20:11:21]cmd_close_receipt [20:11:21]MH_GetDate [20:11:21]Write to MH i2c: F0 00 00 51 03 43 [20:11:21]Write i2c OK [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: F0 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: F0 09 00 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: F0 09 00 51 03 00 E9 97 B3 67 7E 41 4F 65 59 [20:11:21]GetLastDocTimeStamp 1739822314 [20:11:21]current date 1739823081 [20:11:21]FM_GetShiftState [20:11:21]SAM_PROTO_GetShiftState [20:11:21]wFMCommunicate request_size=4 [20:11:21]MH_SAM_APDU [20:11:21]CAPDU: 80 13 01 00 [20:11:21]Write to MH i2c: E2 08 00 52 03 80 13 01 00 00 00 00 00 D2 [20:11:21]Write i2c OK [20:11:21]MH_I2C_Read... [20:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:21]Read from MH i2c: E2 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: E2 0E 00 [20:11:21]MH_I2C_Read... [20:11:21]Read from MH i2c: E2 0E 00 52 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 F6 [20:11:21]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:11:21]wFMCommunicate OK [20:11:21]SAM_PROTO_GetShiftState done [20:11:21]FM_GetShiftState done [20:11:21]opened in 1739752571 [20:11:21]opened+sec_in_day 1739838971 [20:11:21]quantity*price = 40060 [20:11:21]sum+1 = 40062 [20:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 239 17.02.2025 20:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186652 ФПД: 154475592296775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T201122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186652&fm=154475592296775&tin=02508201610067®Number=0000000000091857&sum=40000 [20:11:22]StoreToDocumentArchive [20:11:22]shift 644 fd 186652 [20:11:22]save to /storage/0644/doc_00186652 [20:11:22]save last doc name /storage/0644/doc_00186652 to /storage/kkm_last_doc_name [20:11:22]save OK [20:11:22]Clear old archive folders... [20:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:22]tlvbuf is 005BB470 [20:11:22]SAM_PROTO_ClearQueue [20:11:22]wFMCommunicate request_size=4 [20:11:22]MH_SAM_APDU [20:11:22]CAPDU: 80 09 00 00 [20:11:22]Write to MH i2c: E2 08 00 5F 03 80 09 00 00 00 00 00 00 D4 [20:11:22]Write i2c OK [20:11:22]MH_I2C_Read... [20:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:22]Read from MH i2c: E2 [20:11:22]MH_I2C_Read... [20:11:22]Read from MH i2c: E2 03 00 [20:11:22]MH_I2C_Read... [20:11:22]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [20:11:22]RAPDU: 90 00 [20:11:22]wFMCommunicate OK [20:11:22]SAM_PROTO_ClearQueue done [20:11:22]KKMCreateOFDPacket [20:11:22]OFDProtocolAddRootSTLVToBuf [20:11:22]FM_MakeSignedData [20:11:22]FM_MakeSignedData [20:11:22]SAM_PROTO_SignData [20:11:22]wFMCommunicate request_size=4 [20:11:22]MH_SAM_APDU [20:11:22]CAPDU: 80 0D 01 02 [20:11:22]Write to MH i2c: E2 08 00 60 03 80 0D 01 02 00 00 00 00 DC [20:11:22]Write i2c OK [20:11:22]MH_I2C_Read... [20:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:22]Read from MH i2c: E2 [20:11:22]MH_I2C_Read... [20:11:22]Read from MH i2c: E2 03 00 [20:11:22]MH_I2C_Read... [20:11:22]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [20:11:22]RAPDU: 90 00 [20:11:22]wFMCommunicate OK [20:11:22]wFMCommunicate request_size=255 [20:11:22]MH_SAM_APDU [20:11:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 EA 97 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C D9 02 00 35 04 06 00 8C [20:11:22]Write to MH i2c: E2 02 01 61 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 EA 97 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C D9 02 00 35 04 06 00 8C 00 00 02 [20:11:22]Write i2c OK [20:11:22]MH_I2C_Read... [20:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:23]Read from MH i2c: E2 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 03 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [20:11:23]RAPDU: 90 00 [20:11:23]wFMCommunicate OK [20:11:23]wFMCommunicate request_size=10 [20:11:23]MH_SAM_APDU [20:11:23]CAPDU: 80 0D 02 02 05 7E A6 CE 29 47 [20:11:23]Write to MH i2c: E2 0D 00 62 03 80 0D 02 02 05 00 7E A6 CE 29 47 00 00 4B [20:11:23]Write i2c OK [20:11:23]MH_I2C_Read... [20:11:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:23]Read from MH i2c: E2 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 03 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [20:11:23]RAPDU: 90 00 [20:11:23]wFMCommunicate OK [20:11:23]wFMCommunicate request_size=4 [20:11:23]MH_SAM_APDU [20:11:23]CAPDU: 80 0D 03 02 [20:11:23]Write to MH i2c: E2 08 00 63 03 80 0D 03 02 00 00 00 00 E1 [20:11:23]Write i2c OK [20:11:23]MH_I2C_Read... [20:11:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:23]Read from MH i2c: E2 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 0B 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 0B 00 63 03 00 DD 34 3C C0 0C 2F E7 33 90 00 44 [20:11:23]RAPDU: DD 34 3C C0 0C 2F E7 33 90 00 [20:11:23]wFMCommunicate OK [20:11:23]SAM_PROTO_SignData done [20:11:23]FM_MakeSignedData done [20:11:23]CreateOFDProtocolMessage [20:11:23]wFMCommunicate request_size=4 [20:11:23]MH_SAM_APDU [20:11:23]CAPDU: 80 11 00 00 [20:11:23]Write to MH i2c: E2 08 00 64 03 80 11 00 00 00 00 00 00 E1 [20:11:23]Write i2c OK [20:11:23]MH_I2C_Read... [20:11:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:23]Read from MH i2c: E2 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 17 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: E2 17 00 64 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 34 [20:11:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:11:23]wFMCommunicate OK [20:11:23]CreateOFDProtocolMessage done [20:11:23]OFDSenderStorePacket 186652 [20:11:23]StoreOFDPacket docnum=186652 [20:11:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C F6 07 01 07 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 EA 97 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C D9 02 00 35 04 06 00 8C 7E A6 CE 29 47 DD 34 3C C0 0C 2F E7 33 [20:11:23]CheckFolder [20:11:23]dirname=/storage/ofd_packets [20:11:23]CheckFolder done [20:11:23]ProducePacketName [20:11:23]name=ofd_packets/00186652 [20:11:23]NVStorageSaveData ofd_packets/00186652 [20:11:23]File name is /storage/ofd_packets/00186652 [20:11:23]Write 301 bytes [20:11:23]NVStorageSaveData done [20:11:23]OFDSenderStorePacket done [20:11:23]KKMCreateOFDPacket done [20:11:23]NVStorageSaveData kkm_last_timestamp [20:11:23]File name is /storage/kkm_last_timestamp [20:11:23]Write 4 bytes [20:11:23]NVStorageSaveData done [20:11:23]OFD Sender: Processing packet 186652 [packets to send 49, broken 48] [20:11:23]ProducePacketName [20:11:23]name=ofd_packets/00186652 [20:11:23]OFD Sender: To server: pG, [20:11:23]CommunicateWithHost lk.salyk.kg:30040 [20:11:23]ConnectInit lk.salyk.kg [20:11:23]ExternCall_PrintAddStr [20:11:23]wPrintStart [20:11:23]Write to MH i2c: 01 00 00 65 03 68 [20:11:23]Write i2c OK [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 07 00 [20:11:23]MH_I2C_Read... [20:11:23]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [20:11:23]RasterBufferAndPrint [20:11:23]line Счет N : (1)411800 [20:11:23]line ИНН: 02508201610067 [20:11:23]line Контрольно-Кассовый Чек [20:11:23]line ПРОДАЖА [20:11:23]line ТРК (МРК, ГНК) : 22 [20:11:23]line Товар: 2710124130 [20:11:23]line Аи-92-К-2 [20:11:23]line 6.240 * 64.20 [20:11:23]line = 400.61 [20:11:23]line НДС 12% НСП 1% [20:11:23]line > о реализуемом товаре [20:11:23]line ОКРУГЛЕНИЕ: -0.61 [20:11:23]line ИТОГО: 400.00 [20:11:23]line Внесено: 400.00 [20:11:23]line СДАЧА: 0.00 [20:11:23]line НСП 1% : 3.54 [20:11:23]line НДС 12% : 42.54 [20:11:23]line Наличными: 400.00 [20:11:23]line Безнал.: 0.00 [20:11:23]line Место: АЗС № 92 "Партнер Нефть" [20:11:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:11:23]line СНО: Общий режим [20:11:23]line Чек 239 17.02.2025 20:11 [20:11:23]line Смена: 644 ФФД: 1.0 [20:11:23]line ЗНМ: 0300000118 [20:11:23]line РНМ: 0000000000091857 [20:11:23]line Версия ККМ: 001 [20:11:23]line ФМ: 0000000000871826 [20:11:23]line ФД: 186652 [20:11:23]line ФПД: 154475592296775 [20:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T201122&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186652&fm=154475592296775&tin=02508201610067®Number=0000000000091857&sum=40000 [20:11:23]Connected sock=11 [20:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 2C F6 07 01 07 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 EA 97 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C D9 02 00 35 04 06 00 8C 7E A6 CE 29 47 DD 34 3C C0 0C 2F E7 33 [20:11:23]written 0, free lines is 4095 [20:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F9 04 47 00 81 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1C D9 02 00 F4 03 04 00 43 3E B3 67 B6 04 01 00 00 3C 82 4F E0 D9 6F 74 44 [20:11:23]CommunicateWithHost err = 0 [20:11:23]CheckOFDResponse [20:11:23]1017 (14) - 77093643461234 [20:11:23]1041 (16) - 0000000000871826 [20:11:23]1040 (4) - 186652 [20:11:23]1012 (4) - 17.02.2025 13:48 [20:11:23]1206 (1) - 0 [20:11:23]OFD Sender: Remove packet 186652 [20:11:23]ProducePacketName [20:11:23]name=ofd_packets/00186652 [20:11:23]NVStorageDeleteData [20:11:24]Write to MH i2c: 01 00 00 90 03 93 [20:11:24]Write i2c OK [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: 01 [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: 01 07 00 [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 ED 0C 93 [20:11:24]RasterBufferAndPrint [20:11:24]line [20:11:24]line [20:11:24]line [20:11:24]line [20:11:24]line [20:11:24]written 0, free lines is 3315 [20:11:24]MH_Cut [20:11:24]Write to MH i2c: D1 01 00 97 03 01 6C [20:11:24]Write i2c OK [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: D1 [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: D1 01 00 [20:11:24]MH_I2C_Read... [20:11:24]Read from MH i2c: D1 01 00 97 03 00 6B [20:11:24]Write to MH i2c: 01 00 00 98 03 9B [20:11:24]Write i2c OK [20:11:24]MH_I2C_Read... [20:11:24]OFD Sender: No OFD packet to send [20:11:24]*** Cut start [20:11:24]*** Partial cut [20:11:24]*** CUTSNS_PIN = 1 [20:11:24]*** CUTSNS_PIN = 0 [20:11:25]*** Brake cut motor [20:11:25]Read from MH i2c: 01 [20:11:25]MH_I2C_Read... [20:11:25]*** Stop cut motor [20:11:25]*** Cut end [20:11:25]Read from MH i2c: 01 07 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [20:11:25]process_action close_receipt done [20:11:25]requested_data is exist [20:11:25]produce_requested_data [20:11:25]requested_item fm.sn is exist - process it [20:11:25]wFMCommunicate request_size=4 [20:11:25]MH_SAM_APDU [20:11:25]CAPDU: 80 11 00 00 [20:11:25]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:25]Read from MH i2c: E2 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 17 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 69 [20:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:11:25]wFMCommunicate OK [20:11:25]requested_item fd.num is exist - process it [20:11:25]SAM_PROTO_GetFieldsCounters [20:11:25]wFMCommunicate request_size=4 [20:11:25]MH_SAM_APDU [20:11:25]CAPDU: 80 13 00 00 [20:11:25]Write to MH i2c: E2 08 00 9A 03 80 13 00 00 00 00 00 00 19 [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:25]Read from MH i2c: E2 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 62 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 62 00 9A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [20:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:25]wFMCommunicate OK [20:11:25]SAM_PROTO_GetFieldsCounters done [20:11:25]requested_item shift.num is exist - process it [20:11:25]requested_item shift.opened is exist - process it [20:11:25]req_shift_opened [20:11:25]FM_GetShiftState [20:11:25]SAM_PROTO_GetShiftState [20:11:25]wFMCommunicate request_size=4 [20:11:25]MH_SAM_APDU [20:11:25]CAPDU: 80 13 01 00 [20:11:25]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [20:11:25]Write i2c OK [20:11:25]MH_I2C_Read... [20:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:25]Read from MH i2c: E2 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 0E 00 [20:11:25]MH_I2C_Read... [20:11:25]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 3F [20:11:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:11:25]wFMCommunicate OK [20:11:25]SAM_PROTO_GetShiftState done [20:11:25]FM_GetShiftState done [20:11:25]req_shift_opened done [20:11:25]requested_item shift.open_date is exist - process it [20:11:25]req_shift_open_date [20:11:25]req_shift_open_date done [20:11:25]produce_requested_data done [20:11:25]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186652,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [20:11:25]process_action_free close_receipt [20:11:25]json_value_free [20:11:25]json_value_free done [20:11:25]process_json_proto returns [20:11:25]Send response to host [20:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186652,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [20:11:25]free response buf [20:11:25]execute_script done [20:11:25]execute_script returns [20:11:25]free content buf [20:11:25]Sock 7.Close socket [20:11:25]Sock 7.Thread stoped [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:24]OFD Sender: No OFD packet to send [20:14:29]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:20]accept exits with 9 [20:18:20]New connection [20:18:20]New thread 3067194724 created [20:18:20]Thread 3067051364 joined [20:18:20]Waiting for new connection... [20:18:20] Sock 9.Parse request [20:18:20]Sock 9.Check first char [20:18:20]Sock 9.First char is OK [20:18:20]request: POST /json_proto HTTP/1.0 [20:18:20]Method: POST [20:18:20]URL: /json_proto [20:18:20]Method is POST - this is cgi request [20:18:20]url: /json_proto [20:18:20]query_string will be loaded in cgi processing [20:18:20]execute_cgi json_proto POST (null) [20:18:20]execute_cgi path=json_proto method=POST [20:18:20]POST find Content-Length [20:18:20]Host: 172.17.46.131:8080 [20:18:20]Content-Length: 678 [20:18:20]Content-Type: application/json [20:18:20] [20:18:20]POST finish read [20:18:20]Found Content-Length = 678 [20:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]execute_script... [20:18: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)411801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 10.440, "sum" : 750.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:20]POST & json_proto [20:18:20]process_json_proto [20:18:20]json parsed OK: [20:18:20]protocol is kg_v1.0 [20:18:20]action value=close_receipt [20:18:20]process_action close_receipt [20:18:20]cmd_close_receipt [20:18:20]MH_GetDate [20:18:20]Write to MH i2c: F0 00 00 9C 03 8E [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: F0 09 00 9C 03 00 8D 99 B3 67 7E 41 4F 65 4A [20:18:20]GetLastDocTimeStamp 1739823082 [20:18:20]current date 1739823501 [20:18:20]FM_GetShiftState [20:18:20]SAM_PROTO_GetShiftState [20:18:20]wFMCommunicate request_size=4 [20:18:20]MH_SAM_APDU [20:18:20]CAPDU: 80 13 01 00 [20:18:20]Write to MH i2c: E2 08 00 9D 03 80 13 01 00 00 00 00 00 1D [20:18:20]Write i2c OK [20:18:20]MH_I2C_Read... [20:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:20]Read from MH i2c: E2 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 [20:18:20]MH_I2C_Read... [20:18:20]Read from MH i2c: E2 0E 00 9D 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 41 [20:18:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:18:20]wFMCommunicate OK [20:18:20]SAM_PROTO_GetShiftState done [20:18:20]FM_GetShiftState done [20:18:20]opened in 1739752571 [20:18:20]opened+sec_in_day 1739838971 [20:18:20]quantity*price = 75063 [20:18:20]sum+1 = 75065 [20:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 240 17.02.2025 20:18 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186653 ФПД: 29344933213243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T201821&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186653&fm=29344933213243&tin=02508201610067®Number=0000000000091857&sum=75000 [20:18:21]StoreToDocumentArchive [20:18:21]shift 644 fd 186653 [20:18:21]save to /storage/0644/doc_00186653 [20:18:21]save last doc name /storage/0644/doc_00186653 to /storage/kkm_last_doc_name [20:18:21]save OK [20:18:21]Clear old archive folders... [20:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:21]tlvbuf is 005F6E40 [20:18:21]SAM_PROTO_ClearQueue [20:18:21]wFMCommunicate request_size=4 [20:18:21]MH_SAM_APDU [20:18:21]CAPDU: 80 09 00 00 [20:18:21]Write to MH i2c: E2 08 00 AA 03 80 09 00 00 00 00 00 00 1F [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]SAM_PROTO_ClearQueue done [20:18:22]KKMCreateOFDPacket [20:18:22]OFDProtocolAddRootSTLVToBuf [20:18:22]FM_MakeSignedData [20:18:22]FM_MakeSignedData [20:18:22]SAM_PROTO_SignData [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 01 02 [20:18:22]Write to MH i2c: E2 08 00 AB 03 80 0D 01 02 00 00 00 00 27 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]wFMCommunicate request_size=255 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 99 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D D9 02 00 35 04 06 00 1A [20:18:22]Write to MH i2c: E2 02 01 AC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 99 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D D9 02 00 35 04 06 00 1A 00 00 98 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]wFMCommunicate request_size=10 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 02 02 05 B0 66 51 F4 3B [20:18:22]Write to MH i2c: E2 0D 00 AD 03 80 0D 02 02 05 00 B0 66 51 F4 3B 00 00 CA [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [20:18:22]RAPDU: 90 00 [20:18:22]wFMCommunicate OK [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 0D 03 02 [20:18:22]Write to MH i2c: E2 08 00 AE 03 80 0D 03 02 00 00 00 00 2C [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0B 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 0B 00 AE 03 00 03 A1 31 B7 4F 9F 1A 9E 90 00 5F [20:18:22]RAPDU: 03 A1 31 B7 4F 9F 1A 9E 90 00 [20:18:22]wFMCommunicate OK [20:18:22]SAM_PROTO_SignData done [20:18:22]FM_MakeSignedData done [20:18:22]CreateOFDProtocolMessage [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 11 00 00 [20:18:22]Write to MH i2c: E2 08 00 AF 03 80 11 00 00 00 00 00 00 2C [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 AF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 7F [20:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:18:22]wFMCommunicate OK [20:18:22]CreateOFDProtocolMessage done [20:18:22]OFDSenderStorePacket 186653 [20:18:22]StoreOFDPacket docnum=186653 [20:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 25 07 01 4C 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 99 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D D9 02 00 35 04 06 00 1A B0 66 51 F4 3B 03 A1 31 B7 4F 9F 1A 9E [20:18:22]CheckFolder [20:18:22]dirname=/storage/ofd_packets [20:18:22]CheckFolder done [20:18:22]ProducePacketName [20:18:22]name=ofd_packets/00186653 [20:18:22]NVStorageSaveData ofd_packets/00186653 [20:18:22]File name is /storage/ofd_packets/00186653 [20:18:22]Write 301 bytes [20:18:22]NVStorageSaveData done [20:18:22]OFDSenderStorePacket done [20:18:22]KKMCreateOFDPacket done [20:18:22]NVStorageSaveData kkm_last_timestamp [20:18:22]File name is /storage/kkm_last_timestamp [20:18:22]Write 4 bytes [20:18:22]NVStorageSaveData done [20:18:22]ExternCall_PrintAddStr [20:18:22]wPrintStart [20:18:22]Write to MH i2c: 01 00 00 B0 03 B3 [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [20:18:22]RasterBufferAndPrint [20:18:22]line Счет N : (1)411801 [20:18:22]line ИНН: 02508201610067 [20:18:22]line Контрольно-Кассовый Чек [20:18:22]line ПРОДАЖА [20:18:22]line ТРК (МРК, ГНК) : 33 [20:18:22]line Товар: 2710124500 [20:18:22]line Аи-95-К-5 [20:18:22]line 10.440 * 71.90 [20:18:22]line = 750.64 [20:18:22]line НДС 12% НСП 1% [20:18:22]line > о реализуемом товаре [20:18:22]line ОКРУГЛЕНИЕ: -0.64 [20:18:22]line ИТОГО: 750.00 [20:18:22]line Внесено: 750.00 [20:18:22]line СДАЧА: 0.00 [20:18:22]line НСП 1% : 6.64 [20:18:22]line НДС 12% : 79.71 [20:18:22]line Наличными: 750.00 [20:18:22]line Безнал.: 0.00 [20:18:22]line Место: АЗС № 92 "Партнер Нефть" [20:18:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:18:22]line СНО: Общий режим [20:18:22]line Чек 240 17.02.2025 20:18 [20:18:22]line Смена: 644 ФФД: 1.0 [20:18:22]line ЗНМ: 0300000118 [20:18:22]line РНМ: 0000000000091857 [20:18:22]line Версия ККМ: 001 [20:18:22]line ФМ: 0000000000871826 [20:18:22]line ФД: 186653 [20:18:22]line ФПД: 29344933213243 [20:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T201821&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186653&fm=29344933213243&tin=02508201610067®Number=0000000000091857&sum=75000 [20:18:22]written 0, free lines is 4095 [20:18:22]OFD Sender: Processing packet 186653 [packets to send 49, broken 48] [20:18:22]ProducePacketName [20:18:22]name=ofd_packets/00186653 [20:18:22]OFD Sender: To server: pG, [20:18:22]CommunicateWithHost lk.salyk.kg:30040 [20:18:22]ConnectInit lk.salyk.kg [20:18:23]Connected sock=10 [20:18:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 28 25 07 01 4C 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C8 28 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 38 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 99 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D D9 02 00 35 04 06 00 1A B0 66 51 F4 3B 03 A1 31 B7 4F 9F 1A 9E [20:18:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 99 45 47 00 9A 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1D D9 02 00 F4 03 04 00 E6 3F B3 67 B6 04 01 00 00 17 78 28 44 F6 93 B3 FE [20:18:23]CommunicateWithHost err = 0 [20:18:23]CheckOFDResponse [20:18:23]1017 (14) - 77093643461234 [20:18:23]1041 (16) - 0000000000871826 [20:18:23]1040 (4) - 186653 [20:18:23]1012 (4) - 17.02.2025 13:55 [20:18:23]1206 (1) - 0 [20:18:23]OFD Sender: Remove packet 186653 [20:18:23]ProducePacketName [20:18:23]name=ofd_packets/00186653 [20:18:23]NVStorageDeleteData [20:18:23]Write to MH i2c: 01 00 00 DB 03 DE [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 07 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: 01 07 00 DB 03 00 00 00 00 00 E4 0C D5 [20:18:23]RasterBufferAndPrint [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]line [20:18:23]written 0, free lines is 3306 [20:18:23]MH_Cut [20:18:23]Write to MH i2c: D1 01 00 E2 03 01 B7 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 01 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: D1 01 00 E2 03 00 B6 [20:18:23]Write to MH i2c: 01 00 00 E3 03 E6 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]OFD Sender: No OFD packet to send [20:18:23]*** Cut start [20:18:23]*** Partial cut [20:18:23]*** CUTSNS_PIN = 1 [20:18:24]*** CUTSNS_PIN = 0 [20:18:24]*** Brake cut motor [20:18:24]Read from MH i2c: 01 [20:18:24]MH_I2C_Read... [20:18:24]*** Stop cut motor [20:18:24]*** Cut end [20:18:24]Read from MH i2c: 01 07 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [20:18:24]process_action close_receipt done [20:18:24]requested_data is exist [20:18:24]produce_requested_data [20:18:24]requested_item fm.sn is exist - process it [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 11 00 00 [20:18:24]Write to MH i2c: E2 08 00 E4 03 80 11 00 00 00 00 00 00 61 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 17 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 17 00 E4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B4 [20:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:18:24]wFMCommunicate OK [20:18:24]requested_item fd.num is exist - process it [20:18:24]SAM_PROTO_GetFieldsCounters [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 13 00 00 [20:18:24]Write to MH i2c: E2 08 00 E5 03 80 13 00 00 00 00 00 00 64 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 62 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 62 00 E5 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [20:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:24]wFMCommunicate OK [20:18:24]SAM_PROTO_GetFieldsCounters done [20:18:24]requested_item shift.num is exist - process it [20:18:24]requested_item shift.opened is exist - process it [20:18:24]req_shift_opened [20:18:24]FM_GetShiftState [20:18:24]SAM_PROTO_GetShiftState [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 13 01 00 [20:18:24]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 0E 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8A [20:18:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:18:24]wFMCommunicate OK [20:18:24]SAM_PROTO_GetShiftState done [20:18:24]FM_GetShiftState done [20:18:24]req_shift_opened done [20:18:24]requested_item shift.open_date is exist - process it [20:18:24]req_shift_open_date [20:18:24]req_shift_open_date done [20:18:24]produce_requested_data done [20:18:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186653,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [20:18:24]process_action_free close_receipt [20:18:24]json_value_free [20:18:24]json_value_free done [20:18:24]process_json_proto returns [20:18:24]Send response to host [20:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186653,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [20:18:24]free response buf [20:18:24]execute_script done [20:18:24]execute_script returns [20:18:24]free content buf [20:18:24]Sock 9.Close socket [20:18:24]Sock 9.Thread stoped [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:20]accept exits with 7 [20:20:20]New connection [20:20:20]New thread 3067051364 created [20:20:20]Thread 3067194724 joined [20:20:20]Waiting for new connection... [20:20:20] Sock 7.Parse request [20:20:20]Sock 7.Check first char [20:20:20]Sock 7.First char is OK [20:20:20]request: POST /json_proto HTTP/1.0 [20:20:20]Method: POST [20:20:20]URL: /json_proto [20:20:20]Method is POST - this is cgi request [20:20:20]url: /json_proto [20:20:20]query_string will be loaded in cgi processing [20:20:20]execute_cgi json_proto POST (null) [20:20:20]execute_cgi path=json_proto method=POST [20:20:20]POST find Content-Length [20:20:20]Host: 172.17.46.131:8080 [20:20:20]Content-Length: 682 [20:20:20]Content-Type: application/json [20:20:20] [20:20:20]POST finish read [20:20:20]Found Content-Length = 682 [20:20:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 24.930, "sum" : 1600.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:20]execute_script... [20:20: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)411802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 24.930, "sum" : 1600.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:20]POST & json_proto [20:20:20]process_json_proto [20:20:20]json parsed OK: [20:20:20]protocol is kg_v1.0 [20:20:20]action value=close_receipt [20:20:20]process_action close_receipt [20:20:20]cmd_close_receipt [20:20:20]MH_GetDate [20:20:20]Write to MH i2c: F0 00 00 E7 03 D9 [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: F0 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: F0 09 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: F0 09 00 E7 03 00 05 9A B3 67 7E 41 4F 65 0E [20:20:20]GetLastDocTimeStamp 1739823501 [20:20:20]current date 1739823621 [20:20:20]FM_GetShiftState [20:20:20]SAM_PROTO_GetShiftState [20:20:20]wFMCommunicate request_size=4 [20:20:20]MH_SAM_APDU [20:20:20]CAPDU: 80 13 01 00 [20:20:20]Write to MH i2c: E2 08 00 E8 03 80 13 01 00 00 00 00 00 68 [20:20:20]Write i2c OK [20:20:20]MH_I2C_Read... [20:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:20]Read from MH i2c: E2 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 0E 00 [20:20:20]MH_I2C_Read... [20:20:20]Read from MH i2c: E2 0E 00 E8 03 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8C [20:20:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:20:20]wFMCommunicate OK [20:20:20]SAM_PROTO_GetShiftState done [20:20:20]FM_GetShiftState done [20:20:20]opened in 1739752571 [20:20:20]opened+sec_in_day 1739838971 [20:20:20]quantity*price = 160050 [20:20:20]sum+1 = 160052 [20:20:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.97 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 241 17.02.2025 20:20 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186654 ФПД: 192534020125231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T202021&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186654&fm=192534020125231&tin=02508201610067®Number=0000000000091857&sum=160000 [20:20:21]StoreToDocumentArchive [20:20:21]shift 644 fd 186654 [20:20:21]save to /storage/0644/doc_00186654 [20:20:21]save last doc name /storage/0644/doc_00186654 to /storage/kkm_last_doc_name [20:20:21]save OK [20:20:21]Clear old archive folders... [20:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:20:21]tlvbuf is 005D5D00 [20:20:21]SAM_PROTO_ClearQueue [20:20:21]wFMCommunicate request_size=4 [20:20:21]MH_SAM_APDU [20:20:21]CAPDU: 80 09 00 00 [20:20:21]Write to MH i2c: E2 08 00 F5 03 80 09 00 00 00 00 00 00 6A [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:21]Read from MH i2c: E2 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 03 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [20:20:21]RAPDU: 90 00 [20:20:21]wFMCommunicate OK [20:20:21]SAM_PROTO_ClearQueue done [20:20:21]KKMCreateOFDPacket [20:20:21]OFDProtocolAddRootSTLVToBuf [20:20:21]FM_MakeSignedData [20:20:21]FM_MakeSignedData [20:20:21]SAM_PROTO_SignData [20:20:21]wFMCommunicate request_size=4 [20:20:21]MH_SAM_APDU [20:20:21]CAPDU: 80 0D 01 02 [20:20:21]Write to MH i2c: E2 08 00 F6 03 80 0D 01 02 00 00 00 00 72 [20:20:21]Write i2c OK [20:20:21]MH_I2C_Read... [20:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:21]Read from MH i2c: E2 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 03 00 [20:20:21]MH_I2C_Read... [20:20:21]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [20:20:21]RAPDU: 90 00 [20:20:21]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=255 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 05 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E D9 02 00 35 04 06 00 AF [20:20:22]Write to MH i2c: E2 02 01 F7 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 05 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E D9 02 00 35 04 06 00 AF 00 00 06 [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=10 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 02 02 05 1B D1 E0 72 2F [20:20:22]Write to MH i2c: E2 0D 00 F8 03 80 0D 02 02 05 00 1B D1 E0 72 2F 00 00 EC [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [20:20:22]RAPDU: 90 00 [20:20:22]wFMCommunicate OK [20:20:22]wFMCommunicate request_size=4 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 0D 03 02 [20:20:22]Write to MH i2c: E2 08 00 F9 03 80 0D 03 02 00 00 00 00 77 [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 0B 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 0B 00 F9 03 00 A7 63 F0 8F B0 6A CE 97 90 00 80 [20:20:22]RAPDU: A7 63 F0 8F B0 6A CE 97 90 00 [20:20:22]wFMCommunicate OK [20:20:22]SAM_PROTO_SignData done [20:20:22]FM_MakeSignedData done [20:20:22]CreateOFDProtocolMessage [20:20:22]wFMCommunicate request_size=4 [20:20:22]MH_SAM_APDU [20:20:22]CAPDU: 80 11 00 00 [20:20:22]Write to MH i2c: E2 08 00 FA 03 80 11 00 00 00 00 00 00 77 [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:22]Read from MH i2c: E2 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 17 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: E2 17 00 FA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CA [20:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:20:22]wFMCommunicate OK [20:20:22]CreateOFDProtocolMessage done [20:20:22]OFDSenderStorePacket 186654 [20:20:22]StoreOFDPacket docnum=186654 [20:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 8D 07 01 08 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 05 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E D9 02 00 35 04 06 00 AF 1B D1 E0 72 2F A7 63 F0 8F B0 6A CE 97 [20:20:22]CheckFolder [20:20:22]dirname=/storage/ofd_packets [20:20:22]CheckFolder done [20:20:22]ProducePacketName [20:20:22]name=ofd_packets/00186654 [20:20:22]NVStorageSaveData ofd_packets/00186654 [20:20:22]File name is /storage/ofd_packets/00186654 [20:20:22]Write 301 bytes [20:20:22]NVStorageSaveData done [20:20:22]OFDSenderStorePacket done [20:20:22]KKMCreateOFDPacket done [20:20:22]NVStorageSaveData kkm_last_timestamp [20:20:22]File name is /storage/kkm_last_timestamp [20:20:22]Write 4 bytes [20:20:22]NVStorageSaveData done [20:20:22]ExternCall_PrintAddStr [20:20:22]wPrintStart [20:20:22]Write to MH i2c: 01 00 00 FB 03 FE [20:20:22]Write i2c OK [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 07 00 [20:20:22]MH_I2C_Read... [20:20:22]Read from MH i2c: 01 07 00 FB 03 00 00 00 00 00 FF 0F 13 [20:20:22]RasterBufferAndPrint [20:20:22]line Счет N : (1)411802 [20:20:22]line ИНН: 02508201610067 [20:20:22]line Контрольно-Кассовый Чек [20:20:22]line ПРОДАЖА [20:20:22]line ТРК (МРК, ГНК) : 12 [20:20:22]line Товар: 2710124130 [20:20:22]line Аи-92-К-2 [20:20:22]line 24.930 * 64.20 [20:20:22]line = 1600.51 [20:20:22]line НДС 12% НСП 1% [20:20:22]line > о реализуемом товаре [20:20:22]line ОКРУГЛЕНИЕ: -0.51 [20:20:22]line ИТОГО: 1600.00 [20:20:22]line Внесено: 1600.00 [20:20:22]line СДАЧА: 0.00 [20:20:22]line НСП 1% : 14.16 [20:20:22]line НДС 12% : 169.97 [20:20:22]line Наличными: 1600.00 [20:20:22]line Безнал.: 0.00 [20:20:22]line Место: АЗС № 92 "Партнер Нефть" [20:20:22]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:20:22]line СНО: Общий режим [20:20:22]line Чек 241 17.02.2025 20:20 [20:20:22]line Смена: 644 ФФД: 1.0 [20:20:22]line ЗНМ: 0300000118 [20:20:22]line РНМ: 0000000000091857 [20:20:22]line Версия ККМ: 001 [20:20:22]line ФМ: 0000000000871826 [20:20:22]line ФД: 186654 [20:20:22]line ФПД: 192534020125231 [20:20:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T202021&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186654&fm=192534020125231&tin=02508201610067®Number=0000000000091857&sum=160000 [20:20:22]OFD Sender: Processing packet 186654 [packets to send 49, broken 48] [20:20:22]ProducePacketName [20:20:22]name=ofd_packets/00186654 [20:20:22]OFD Sender: To server: pG, [20:20:22]CommunicateWithHost lk.salyk.kg:30040 [20:20:22]ConnectInit lk.salyk.kg [20:20:22]written 0, free lines is 4095 [20:20:23]Connected sock=10 [20:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 92 8D 07 01 08 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 62 61 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 33 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 05 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E D9 02 00 35 04 06 00 AF 1B D1 E0 72 2F A7 63 F0 8F B0 6A CE 97 [20:20:23]Write to MH i2c: 01 00 00 26 04 2A [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 07 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 F6 0C 33 [20:20:23]RasterBufferAndPrint [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]line [20:20:23]written 0, free lines is 3324 [20:20:23]MH_Cut [20:20:23]Write to MH i2c: D1 01 00 2D 04 01 03 [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 01 00 [20:20:23]MH_I2C_Read... [20:20:23]Read from MH i2c: D1 01 00 2D 04 00 02 [20:20:23]Write to MH i2c: 01 00 00 2E 04 32 [20:20:23]Write i2c OK [20:20:23]MH_I2C_Read... [20:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 59 45 47 00 84 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1E D9 02 00 F4 03 04 00 5E 40 B3 67 B6 04 01 00 00 C7 8B 17 C5 F4 A9 4F D8 [20:20:23]CommunicateWithHost err = 0 [20:20:23]CheckOFDResponse [20:20:23]1017 (14) - 77093643461234 [20:20:23]1041 (16) - 0000000000871826 [20:20:23]1040 (4) - 186654 [20:20:23]1012 (4) - 17.02.2025 13:57 [20:20:23]1206 (1) - 0 [20:20:23]OFD Sender: Remove packet 186654 [20:20:23]ProducePacketName [20:20:23]name=ofd_packets/00186654 [20:20:23]NVStorageDeleteData [20:20:23]*** Cut start [20:20:23]*** Partial cut [20:20:23]*** CUTSNS_PIN = 1 [20:20:23]*** CUTSNS_PIN = 0 [20:20:23]OFD Sender: No OFD packet to send [20:20:24]*** Brake cut motor [20:20:24]Read from MH i2c: 01 [20:20:24]MH_I2C_Read... [20:20:24]*** Stop cut motor [20:20:24]*** Cut end [20:20:24]Read from MH i2c: 01 07 00 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [20:20:24]process_action close_receipt done [20:20:24]requested_data is exist [20:20:24]produce_requested_data [20:20:24]requested_item fm.sn is exist - process it [20:20:24]wFMCommunicate request_size=4 [20:20:24]MH_SAM_APDU [20:20:24]CAPDU: 80 11 00 00 [20:20:24]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [20:20:24]Write i2c OK [20:20:24]MH_I2C_Read... [20:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:24]Read from MH i2c: E2 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 17 00 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 00 [20:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:20:24]wFMCommunicate OK [20:20:24]requested_item fd.num is exist - process it [20:20:24]SAM_PROTO_GetFieldsCounters [20:20:24]wFMCommunicate request_size=4 [20:20:24]MH_SAM_APDU [20:20:24]CAPDU: 80 13 00 00 [20:20:24]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [20:20:24]Write i2c OK [20:20:24]MH_I2C_Read... [20:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:24]Read from MH i2c: E2 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 62 00 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 62 00 30 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [20:20:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:24]wFMCommunicate OK [20:20:24]SAM_PROTO_GetFieldsCounters done [20:20:24]requested_item shift.num is exist - process it [20:20:24]requested_item shift.opened is exist - process it [20:20:24]req_shift_opened [20:20:24]FM_GetShiftState [20:20:24]SAM_PROTO_GetShiftState [20:20:24]wFMCommunicate request_size=4 [20:20:24]MH_SAM_APDU [20:20:24]CAPDU: 80 13 01 00 [20:20:24]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [20:20:24]Write i2c OK [20:20:24]MH_I2C_Read... [20:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:24]Read from MH i2c: E2 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 0E 00 [20:20:24]MH_I2C_Read... [20:20:24]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D6 [20:20:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:20:24]wFMCommunicate OK [20:20:24]SAM_PROTO_GetShiftState done [20:20:24]FM_GetShiftState done [20:20:24]req_shift_opened done [20:20:24]requested_item shift.open_date is exist - process it [20:20:24]req_shift_open_date [20:20:24]req_shift_open_date done [20:20:24]produce_requested_data done [20:20:24]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186654,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [20:20:24]process_action_free close_receipt [20:20:24]json_value_free [20:20:24]json_value_free done [20:20:24]process_json_proto returns [20:20:24]Send response to host [20:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186654,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [20:20:24]free response buf [20:20:24]execute_script done [20:20:24]execute_script returns [20:20:24]free content buf [20:20:24]Sock 7.Close socket [20:20:24]Sock 7.Thread stoped [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:05]accept exits with 9 [20:21:05]New connection [20:21:05]New thread 3067194724 created [20:21:05]Thread 3067051364 joined [20:21:05]Waiting for new connection... [20:21:05] Sock 9.Parse request [20:21:05]Sock 9.Check first char [20:21:05]Sock 9.First char is OK [20:21:05]request: POST /json_proto HTTP/1.0 [20:21:05]Method: POST [20:21:05]URL: /json_proto [20:21:05]Method is POST - this is cgi request [20:21:05]url: /json_proto [20:21:05]query_string will be loaded in cgi processing [20:21:05]execute_cgi json_proto POST (null) [20:21:05]execute_cgi path=json_proto method=POST [20:21:05]POST find Content-Length [20:21:05]Host: 172.17.46.131:8080 [20:21:05]Content-Length: 678 [20:21:05]Content-Type: application/json [20:21:05] [20:21:05]POST finish read [20:21:05]Found Content-Length = 678 [20:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]execute_script... [20:21:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 11.130, "sum" : 800.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:05]POST & json_proto [20:21:05]process_json_proto [20:21:05]json parsed OK: [20:21:05]protocol is kg_v1.0 [20:21:05]action value=close_receipt [20:21:05]process_action close_receipt [20:21:05]cmd_close_receipt [20:21:05]MH_GetDate [20:21:05]Write to MH i2c: F0 00 00 32 04 25 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: F0 09 00 32 04 00 32 9A B3 67 7E 41 4F 65 87 [20:21:05]GetLastDocTimeStamp 1739823621 [20:21:05]current date 1739823666 [20:21:05]FM_GetShiftState [20:21:05]SAM_PROTO_GetShiftState [20:21:05]wFMCommunicate request_size=4 [20:21:05]MH_SAM_APDU [20:21:05]CAPDU: 80 13 01 00 [20:21:05]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [20:21:05]Write i2c OK [20:21:05]MH_I2C_Read... [20:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:05]Read from MH i2c: E2 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 [20:21:05]MH_I2C_Read... [20:21:05]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 D8 [20:21:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:21:05]wFMCommunicate OK [20:21:05]SAM_PROTO_GetShiftState done [20:21:05]FM_GetShiftState done [20:21:05]opened in 1739752571 [20:21:05]opened+sec_in_day 1739838971 [20:21:05]quantity*price = 80024 [20:21:05]sum+1 = 80026 [20:21:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 242 17.02.2025 20:21 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186655 ФПД: 143380174507337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T202106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186655&fm=143380174507337&tin=02508201610067®Number=0000000000091857&sum=80000 [20:21:07]StoreToDocumentArchive [20:21:07]shift 644 fd 186655 [20:21:07]save to /storage/0644/doc_00186655 [20:21:07]save last doc name /storage/0644/doc_00186655 to /storage/kkm_last_doc_name [20:21:07]save OK [20:21:07]Clear old archive folders... [20:21:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:21:07]tlvbuf is 005E5380 [20:21:07]SAM_PROTO_ClearQueue [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 09 00 00 [20:21:07]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_ClearQueue done [20:21:07]KKMCreateOFDPacket [20:21:07]OFDProtocolAddRootSTLVToBuf [20:21:07]FM_MakeSignedData [20:21:07]FM_MakeSignedData [20:21:07]SAM_PROTO_SignData [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 01 02 [20:21:07]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=255 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 32 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F D9 02 00 35 04 06 00 82 [20:21:07]Write to MH i2c: E2 02 01 42 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 32 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F D9 02 00 35 04 06 00 82 00 00 DF [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=10 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 02 02 05 67 4C 5E 8D 49 [20:21:07]Write to MH i2c: E2 0D 00 43 04 80 0D 02 02 05 00 67 4C 5E 8D 49 00 00 B2 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [20:21:07]RAPDU: 90 00 [20:21:07]wFMCommunicate OK [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 0D 03 02 [20:21:07]Write to MH i2c: E2 08 00 44 04 80 0D 03 02 00 00 00 00 C3 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 0B 00 44 04 00 97 59 E1 E7 0D 2A A1 34 90 00 88 [20:21:07]RAPDU: 97 59 E1 E7 0D 2A A1 34 90 00 [20:21:07]wFMCommunicate OK [20:21:07]SAM_PROTO_SignData done [20:21:07]FM_MakeSignedData done [20:21:07]CreateOFDProtocolMessage [20:21:07]wFMCommunicate request_size=4 [20:21:07]MH_SAM_APDU [20:21:07]CAPDU: 80 11 00 00 [20:21:07]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:07]Read from MH i2c: E2 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: E2 17 00 45 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [20:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:21:07]wFMCommunicate OK [20:21:07]CreateOFDProtocolMessage done [20:21:07]OFDSenderStorePacket 186655 [20:21:07]StoreOFDPacket docnum=186655 [20:21:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B 94 07 01 EF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 32 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F D9 02 00 35 04 06 00 82 67 4C 5E 8D 49 97 59 E1 E7 0D 2A A1 34 [20:21:07]CheckFolder [20:21:07]dirname=/storage/ofd_packets [20:21:07]CheckFolder done [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00186655 [20:21:07]NVStorageSaveData ofd_packets/00186655 [20:21:07]File name is /storage/ofd_packets/00186655 [20:21:07]Write 301 bytes [20:21:07]NVStorageSaveData done [20:21:07]OFDSenderStorePacket done [20:21:07]KKMCreateOFDPacket done [20:21:07]NVStorageSaveData kkm_last_timestamp [20:21:07]File name is /storage/kkm_last_timestamp [20:21:07]Write 4 bytes [20:21:07]NVStorageSaveData done [20:21:07]ExternCall_PrintAddStr [20:21:07]wPrintStart [20:21:07]Write to MH i2c: 01 00 00 46 04 4A [20:21:07]Write i2c OK [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 [20:21:07]MH_I2C_Read... [20:21:07]Read from MH i2c: 01 07 00 46 04 00 00 00 00 00 FF 0F 5F [20:21:07]RasterBufferAndPrint [20:21:07]line Счет N : (1)411804 [20:21:07]line ИНН: 02508201610067 [20:21:07]line Контрольно-Кассовый Чек [20:21:07]line ПРОДАЖА [20:21:07]line ТРК (МРК, ГНК) : 43 [20:21:07]line Товар: 2710124500 [20:21:07]line Аи-95-К-5 [20:21:07]line 11.130 * 71.90 [20:21:07]line = 800.25 [20:21:07]line НДС 12% НСП 1% [20:21:07]line > о реализуемом товаре [20:21:07]line ОКРУГЛЕНИЕ: -0.25 [20:21:07]line ИТОГО: 800.00 [20:21:07]line Внесено: 800.00 [20:21:07]line СДАЧА: 0.00 [20:21:07]line НСП 1% : 7.08 [20:21:07]line НДС 12% : 84.98 [20:21:07]line Наличными: 800.00 [20:21:07]line Безнал.: 0.00 [20:21:07]line Место: АЗС № 92 "Партнер Нефть" [20:21:07]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:21:07]line СНО: Общий режим [20:21:07]line Чек 242 17.02.2025 20:21 [20:21:07]line Смена: 644 ФФД: 1.0 [20:21:07]line ЗНМ: 0300000118 [20:21:07]line РНМ: 0000000000091857 [20:21:07]line Версия ККМ: 001 [20:21:07]line ФМ: 0000000000871826 [20:21:07]line ФД: 186655 [20:21:07]line ФПД: 143380174507337 [20:21:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T202106&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186655&fm=143380174507337&tin=02508201610067®Number=0000000000091857&sum=80000 [20:21:07]OFD Sender: Processing packet 186655 [packets to send 49, broken 48] [20:21:07]ProducePacketName [20:21:07]name=ofd_packets/00186655 [20:21:07]OFD Sender: To server: pG, [20:21:07]CommunicateWithHost lk.salyk.kg:30040 [20:21:07]ConnectInit lk.salyk.kg [20:21:07]written 0, free lines is 4095 [20:21:08]Connected sock=10 [20:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8B 94 07 01 EF 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 2B 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 99 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 32 9A B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F D9 02 00 35 04 06 00 82 67 4C 5E 8D 49 97 59 E1 E7 0D 2A A1 34 [20:21:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 92 8E 47 00 76 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 1F D9 02 00 F4 03 04 00 8B 40 B3 67 B6 04 01 00 00 E6 8E AC CC 0C 34 85 21 [20:21:08]CommunicateWithHost err = 0 [20:21:08]CheckOFDResponse [20:21:08]1017 (14) - 77093643461234 [20:21:08]1041 (16) - 0000000000871826 [20:21:08]1040 (4) - 186655 [20:21:08]1012 (4) - 17.02.2025 13:58 [20:21:08]1206 (1) - 0 [20:21:08]OFD Sender: Remove packet 186655 [20:21:08]ProducePacketName [20:21:08]name=ofd_packets/00186655 [20:21:08]NVStorageDeleteData [20:21:08]Write to MH i2c: 01 00 00 71 04 75 [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 07 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 E8 0C 70 [20:21:08]RasterBufferAndPrint [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]line [20:21:08]written 0, free lines is 3311 [20:21:08]MH_Cut [20:21:08]Write to MH i2c: D1 01 00 78 04 01 4E [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 01 00 [20:21:08]MH_I2C_Read... [20:21:08]Read from MH i2c: D1 01 00 78 04 00 4D [20:21:08]Write to MH i2c: 01 00 00 79 04 7D [20:21:08]Write i2c OK [20:21:08]MH_I2C_Read... [20:21:08]OFD Sender: No OFD packet to send [20:21:09]*** Cut start [20:21:09]*** Partial cut [20:21:09]*** CUTSNS_PIN = 1 [20:21:09]*** CUTSNS_PIN = 0 [20:21:09]*** Brake cut motor [20:21:09]Read from MH i2c: 01 [20:21:09]MH_I2C_Read... [20:21:09]*** Stop cut motor [20:21:09]*** Cut end [20:21:09]Read from MH i2c: 01 07 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [20:21:09]process_action close_receipt done [20:21:09]requested_data is exist [20:21:09]produce_requested_data [20:21:09]requested_item fm.sn is exist - process it [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 11 00 00 [20:21:09]Write to MH i2c: E2 08 00 7A 04 80 11 00 00 00 00 00 00 F8 [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 17 00 7A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4B [20:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:21:09]wFMCommunicate OK [20:21:09]requested_item fd.num is exist - process it [20:21:09]SAM_PROTO_GetFieldsCounters [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 13 00 00 [20:21:09]Write to MH i2c: E2 08 00 7B 04 80 13 00 00 00 00 00 00 FB [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 62 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 62 00 7B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [20:21:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 1F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:09]wFMCommunicate OK [20:21:09]SAM_PROTO_GetFieldsCounters done [20:21:09]requested_item shift.num is exist - process it [20:21:09]requested_item shift.opened is exist - process it [20:21:09]req_shift_opened [20:21:09]FM_GetShiftState [20:21:09]SAM_PROTO_GetShiftState [20:21:09]wFMCommunicate request_size=4 [20:21:09]MH_SAM_APDU [20:21:09]CAPDU: 80 13 01 00 [20:21:09]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [20:21:09]Write i2c OK [20:21:09]MH_I2C_Read... [20:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:09]Read from MH i2c: E2 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 0E 00 [20:21:09]MH_I2C_Read... [20:21:09]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 21 [20:21:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:21:09]wFMCommunicate OK [20:21:09]SAM_PROTO_GetShiftState done [20:21:09]FM_GetShiftState done [20:21:09]req_shift_opened done [20:21:09]requested_item shift.open_date is exist - process it [20:21:09]req_shift_open_date [20:21:09]req_shift_open_date done [20:21:09]produce_requested_data done [20:21:09]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186655,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [20:21:09]process_action_free close_receipt [20:21:09]json_value_free [20:21:09]json_value_free done [20:21:09]process_json_proto returns [20:21:09]Send response to host [20:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186655,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [20:21:09]free response buf [20:21:09]execute_script done [20:21:09]execute_script returns [20:21:09]free content buf [20:21:09]Sock 9.Close socket [20:21:09]Sock 9.Thread stoped [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:16]accept exits with 7 [20:36:16]New connection [20:36:16]New thread 3067051364 created [20:36:16]Thread 3067194724 joined [20:36:16]Waiting for new connection... [20:36:16] Sock 7.Parse request [20:36:16]Sock 7.Check first char [20:36:16]Sock 7.First char is OK [20:36:16]request: POST /json_proto HTTP/1.0 [20:36:16]Method: POST [20:36:16]URL: /json_proto [20:36:16]Method is POST - this is cgi request [20:36:16]url: /json_proto [20:36:16]query_string will be loaded in cgi processing [20:36:16]execute_cgi json_proto POST (null) [20:36:16]execute_cgi path=json_proto method=POST [20:36:16]POST find Content-Length [20:36:16]Host: 172.17.46.131:8080 [20:36:16]Content-Length: 678 [20:36:16]Content-Type: application/json [20:36:16] [20:36:16]POST finish read [20:36:16]Found Content-Length = 678 [20:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:16]execute_script... [20:36:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:16]POST & json_proto [20:36:16]process_json_proto [20:36:16]json parsed OK: [20:36:16]protocol is kg_v1.0 [20:36:16]action value=close_receipt [20:36:16]process_action close_receipt [20:36:16]cmd_close_receipt [20:36:16]MH_GetDate [20:36:16]Write to MH i2c: F0 00 00 7D 04 70 [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 09 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: F0 09 00 7D 04 00 C1 9D B3 67 7E 41 4F 65 64 [20:36:16]GetLastDocTimeStamp 1739823666 [20:36:16]current date 1739824577 [20:36:16]FM_GetShiftState [20:36:16]SAM_PROTO_GetShiftState [20:36:16]wFMCommunicate request_size=4 [20:36:16]MH_SAM_APDU [20:36:16]CAPDU: 80 13 01 00 [20:36:16]Write to MH i2c: E2 08 00 7E 04 80 13 01 00 00 00 00 00 FF [20:36:16]Write i2c OK [20:36:16]MH_I2C_Read... [20:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:16]Read from MH i2c: E2 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 [20:36:16]MH_I2C_Read... [20:36:16]Read from MH i2c: E2 0E 00 7E 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 23 [20:36:16]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:36:16]wFMCommunicate OK [20:36:16]SAM_PROTO_GetShiftState done [20:36:16]FM_GetShiftState done [20:36:16]opened in 1739752571 [20:36:16]opened+sec_in_day 1739838971 [20:36:16]quantity*price = 100042 [20:36:16]sum+1 = 100044 [20:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 243 17.02.2025 20:36 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186656 ФПД: 281162380992518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T203617&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186656&fm=281162380992518&tin=02508201610067®Number=0000000000091857&sum=100000 [20:36:17]StoreToDocumentArchive [20:36:17]shift 644 fd 186656 [20:36:17]save to /storage/0644/doc_00186656 [20:36:17]save last doc name /storage/0644/doc_00186656 to /storage/kkm_last_doc_name [20:36:17]save OK [20:36:17]Clear old archive folders... [20:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:36:17]tlvbuf is 005F89C0 [20:36:17]SAM_PROTO_ClearQueue [20:36:17]wFMCommunicate request_size=4 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 09 00 00 [20:36:17]Write to MH i2c: E2 08 00 8B 04 80 09 00 00 00 00 00 00 01 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:17]Read from MH i2c: E2 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [20:36:17]RAPDU: 90 00 [20:36:17]wFMCommunicate OK [20:36:17]SAM_PROTO_ClearQueue done [20:36:17]KKMCreateOFDPacket [20:36:17]OFDProtocolAddRootSTLVToBuf [20:36:17]FM_MakeSignedData [20:36:17]FM_MakeSignedData [20:36:17]SAM_PROTO_SignData [20:36:17]wFMCommunicate request_size=4 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 0D 01 02 [20:36:17]Write to MH i2c: E2 08 00 8C 04 80 0D 01 02 00 00 00 00 09 [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:17]Read from MH i2c: E2 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 [20:36:17]MH_I2C_Read... [20:36:17]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [20:36:17]RAPDU: 90 00 [20:36:17]wFMCommunicate OK [20:36:17]wFMCommunicate request_size=255 [20:36:17]MH_SAM_APDU [20:36:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C1 9D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 D9 02 00 35 04 06 00 FF B7 37 D7 [20:36:17]Write to MH i2c: E2 02 01 8D 04 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C1 9D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 D9 02 00 35 04 06 00 FF B7 37 D7 00 00 5D [20:36:17]Write i2c OK [20:36:17]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [20:36:18]RAPDU: 90 00 [20:36:18]wFMCommunicate OK [20:36:18]wFMCommunicate request_size=7 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 0D 02 02 02 E0 06 [20:36:18]Write to MH i2c: E2 0A 00 8E 04 80 0D 02 02 02 00 E0 06 00 00 F6 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [20:36:18]RAPDU: 90 00 [20:36:18]wFMCommunicate OK [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 0D 03 02 [20:36:18]Write to MH i2c: E2 08 00 8F 04 80 0D 03 02 00 00 00 00 0E [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0B 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 0B 00 8F 04 00 FF A6 7A 41 D7 AB 36 B5 90 00 DC [20:36:18]RAPDU: FF A6 7A 41 D7 AB 36 B5 90 00 [20:36:18]wFMCommunicate OK [20:36:18]SAM_PROTO_SignData done [20:36:18]FM_MakeSignedData done [20:36:18]CreateOFDProtocolMessage [20:36:18]wFMCommunicate request_size=4 [20:36:18]MH_SAM_APDU [20:36:18]CAPDU: 80 11 00 00 [20:36:18]Write to MH i2c: E2 08 00 90 04 80 11 00 00 00 00 00 00 0E [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:18]Read from MH i2c: E2 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: E2 17 00 90 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [20:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:36:18]wFMCommunicate OK [20:36:18]CreateOFDProtocolMessage done [20:36:18]OFDSenderStorePacket 186656 [20:36:18]StoreOFDPacket docnum=186656 [20:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3D BD 04 01 BA 80 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C1 9D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 D9 02 00 35 04 06 00 FF B7 37 D7 E0 06 FF A6 7A 41 D7 AB 36 B5 [20:36:18]CheckFolder [20:36:18]dirname=/storage/ofd_packets [20:36:18]CheckFolder done [20:36:18]ProducePacketName [20:36:18]name=ofd_packets/00186656 [20:36:18]NVStorageSaveData ofd_packets/00186656 [20:36:18]File name is /storage/ofd_packets/00186656 [20:36:18]Write 298 bytes [20:36:18]NVStorageSaveData done [20:36:18]OFDSenderStorePacket done [20:36:18]KKMCreateOFDPacket done [20:36:18]NVStorageSaveData kkm_last_timestamp [20:36:18]File name is /storage/kkm_last_timestamp [20:36:18]Write 4 bytes [20:36:18]NVStorageSaveData done [20:36:18]ExternCall_PrintAddStr [20:36:18]wPrintStart [20:36:18]Write to MH i2c: 01 00 00 91 04 95 [20:36:18]Write i2c OK [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 [20:36:18]MH_I2C_Read... [20:36:18]Read from MH i2c: 01 07 00 91 04 00 00 00 00 00 FF 0F AA [20:36:18]RasterBufferAndPrint [20:36:18]line Счет N : (1)411805 [20:36:18]line ИНН: 02508201610067 [20:36:18]line Контрольно-Кассовый Чек [20:36:18]line ПРОДАЖА [20:36:18]line ТРК (МРК, ГНК) : 5 [20:36:18]line Товар: 2710194210 [20:36:18]line ДТ-К-5 [20:36:18]line 13.780 * 72.60 [20:36:18]line = 1000.43 [20:36:18]line НДС 12% НСП 1% [20:36:18]line > о реализуемом товаре [20:36:18]line ОКРУГЛЕНИЕ: -0.43 [20:36:18]line ИТОГО: 1000.00 [20:36:18]line Внесено: 1000.00 [20:36:18]line СДАЧА: 0.00 [20:36:18]line НСП 1% : 8.85 [20:36:18]line НДС 12% : 106.24 [20:36:18]line Наличными: 1000.00 [20:36:18]line Безнал.: 0.00 [20:36:18]line Место: АЗС № 92 "Партнер Нефть" [20:36:18]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [20:36:18]line СНО: Общий режим [20:36:18]line Чек 243 17.02.2025 20:36 [20:36:18]line Смена: 644 ФФД: 1.0 [20:36:18]line ЗНМ: 0300000118 [20:36:18]line РНМ: 0000000000091857 [20:36:18]line Версия ККМ: 001 [20:36:18]line ФМ: 0000000000871826 [20:36:18]line ФД: 186656 [20:36:18]line ФПД: 281162380992518 [20:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T203617&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186656&fm=281162380992518&tin=02508201610067®Number=0000000000091857&sum=100000 [20:36:18]OFD Sender: Processing packet 186656 [packets to send 49, broken 48] [20:36:18]ProducePacketName [20:36:18]name=ofd_packets/00186656 [20:36:18]OFD Sender: To server: pG, [20:36:18]CommunicateWithHost lk.salyk.kg:30040 [20:36:18]ConnectInit lk.salyk.kg [20:36:18]written 0, free lines is 4095 [20:36:19]Write to MH i2c: 01 00 00 BC 04 C0 [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: 01 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: 01 07 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: 01 07 00 BC 04 00 00 00 00 00 E7 0C BA [20:36:19]RasterBufferAndPrint [20:36:19]line [20:36:19]line [20:36:19]line [20:36:19]line [20:36:19]line [20:36:19]written 0, free lines is 3307 [20:36:19]MH_Cut [20:36:19]Write to MH i2c: D1 01 00 C3 04 01 99 [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: D1 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: D1 01 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: D1 01 00 C3 04 00 98 [20:36:19]Write to MH i2c: 01 00 00 C4 04 C8 [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]*** Cut start [20:36:19]*** Partial cut [20:36:19]*** CUTSNS_PIN = 1 [20:36:19]*** CUTSNS_PIN = 0 [20:36:20]*** Brake cut motor [20:36:20]Read from MH i2c: 01 [20:36:20]MH_I2C_Read... [20:36:20]*** Stop cut motor [20:36:20]*** Cut end [20:36:20]Read from MH i2c: 01 07 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: 01 07 00 C4 04 00 00 00 00 00 FF 0F DD [20:36:20]process_action close_receipt done [20:36:20]requested_data is exist [20:36:20]produce_requested_data [20:36:20]requested_item fm.sn is exist - process it [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 11 00 00 [20:36:20]Write to MH i2c: E2 08 00 C5 04 80 11 00 00 00 00 00 00 43 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 17 00 C5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [20:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [20:36:20]wFMCommunicate OK [20:36:20]requested_item fd.num is exist - process it [20:36:20]SAM_PROTO_GetFieldsCounters [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 13 00 00 [20:36:20]Write to MH i2c: E2 08 00 C6 04 80 13 00 00 00 00 00 00 46 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 62 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 62 00 C6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [20:36:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 20 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_GetFieldsCounters done [20:36:20]requested_item shift.num is exist - process it [20:36:20]requested_item shift.opened is exist - process it [20:36:20]req_shift_opened [20:36:20]FM_GetShiftState [20:36:20]SAM_PROTO_GetShiftState [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 13 01 00 [20:36:20]Write to MH i2c: E2 08 00 C7 04 80 13 01 00 00 00 00 00 48 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 C7 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6C [20:36:20]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_GetShiftState done [20:36:20]FM_GetShiftState done [20:36:20]req_shift_opened done [20:36:20]requested_item shift.open_date is exist - process it [20:36:20]req_shift_open_date [20:36:20]req_shift_open_date done [20:36:20]produce_requested_data done [20:36:20]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186656,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [20:36:20]process_action_free close_receipt [20:36:20]json_value_free [20:36:20]json_value_free done [20:36:20]process_json_proto returns [20:36:20]Send response to host [20:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186656,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [20:36:20]free response buf [20:36:20]execute_script done [20:36:20]execute_script returns [20:36:20]free content buf [20:36:20]Sock 7.Close socket [20:36:20]Sock 7.Thread stoped [20:38:31]ConnectInit Can't connect to host [20:38:31]CommunicateWithHost connect error [20:38:31]CommunicateWithHost err = -1 [20:38:31]OFD Sender: Server communicate error [20:38:36]OFD Sender: Processing packet 186656 [packets to send 49, broken 48] [20:38:36]ProducePacketName [20:38:36]name=ofd_packets/00186656 [20:38:36]OFD Sender: To server: pG, [20:38:36]CommunicateWithHost lk.salyk.kg:30040 [20:38:36]ConnectInit lk.salyk.kg [20:38:36]Connected sock=7 [20:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 3D BD 04 01 BA 80 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C1 9D B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 D9 02 00 35 04 06 00 FF B7 37 D7 E0 06 FF A6 7A 41 D7 AB 36 B5 [20:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1E 10 47 00 13 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 20 D9 02 00 F4 03 04 00 A4 44 B3 67 B6 04 01 00 00 0D D0 D8 8F EE 2E 7C 3F [20:38:36]CommunicateWithHost err = 0 [20:38:36]CheckOFDResponse [20:38:36]1017 (14) - 77093643461234 [20:38:36]1041 (16) - 0000000000871826 [20:38:36]1040 (4) - 186656 [20:38:36]1012 (4) - 17.02.2025 14:16 [20:38:36]1206 (1) - 0 [20:38:36]OFD Sender: Remove packet 186656 [20:38:36]ProducePacketName [20:38:36]name=ofd_packets/00186656 [20:38:36]NVStorageDeleteData [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:04]accept exits with 9 [21:01:04]New connection [21:01:04]New thread 3067194724 created [21:01:04]Thread 3067051364 joined [21:01:04]Waiting for new connection... [21:01:04] Sock 9.Parse request [21:01:04]Sock 9.Check first char [21:01:04]Sock 9.First char is OK [21:01:04]request: POST /json_proto HTTP/1.0 [21:01:04]Method: POST [21:01:04]URL: /json_proto [21:01:04]Method is POST - this is cgi request [21:01:04]url: /json_proto [21:01:04]query_string will be loaded in cgi processing [21:01:04]execute_cgi json_proto POST (null) [21:01:04]execute_cgi path=json_proto method=POST [21:01:04]POST find Content-Length [21:01:04]Host: 172.17.46.131:8080 [21:01:04]Content-Length: 800 [21:01:04]Content-Type: application/json [21:01:04] [21:01:04]POST finish read [21:01:04]Found Content-Length = 800 [21:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:04]execute_script... [21:01:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:04]POST & json_proto [21:01:04]process_json_proto [21:01:04]json parsed OK: [21:01:04]protocol is kg_v1.0 [21:01:04]action value=close_receipt [21:01:04]process_action close_receipt [21:01:04]cmd_close_receipt [21:01:04]MH_GetDate [21:01:04]Write to MH i2c: F0 00 00 C8 04 BB [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: F0 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: F0 09 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: F0 09 00 C8 04 00 90 A3 B3 67 7E 41 4F 65 84 [21:01:04]GetLastDocTimeStamp 1739824577 [21:01:04]current date 1739826064 [21:01:04]FM_GetShiftState [21:01:04]SAM_PROTO_GetShiftState [21:01:04]wFMCommunicate request_size=4 [21:01:04]MH_SAM_APDU [21:01:04]CAPDU: 80 13 01 00 [21:01:04]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [21:01:04]Write i2c OK [21:01:04]MH_I2C_Read... [21:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:04]Read from MH i2c: E2 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0E 00 [21:01:04]MH_I2C_Read... [21:01:04]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6E [21:01:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:01:04]wFMCommunicate OK [21:01:04]SAM_PROTO_GetShiftState done [21:01:04]FM_GetShiftState done [21:01:04]opened in 1739752571 [21:01:04]opened+sec_in_day 1739838971 [21:01:04]quantity*price = 50011 [21:01:04]sum+1 = 50013 [21:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.12 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.12 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 244 17.02.2025 21:01 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186657 ФПД: 74095020922053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210104&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186657&fm=74095020922053&tin=02508201610067®Number=0000000000091857&sum=50012 [21:01:05]StoreToDocumentArchive [21:01:05]shift 644 fd 186657 [21:01:05]save to /storage/0644/doc_00186657 [21:01:05]save last doc name /storage/0644/doc_00186657 to /storage/kkm_last_doc_name [21:01:05]save OK [21:01:05]Clear old archive folders... [21:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:05]tlvbuf is 005BB690 [21:01:05]SAM_PROTO_ClearQueue [21:01:05]wFMCommunicate request_size=4 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 09 00 00 [21:01:05]Write to MH i2c: E2 08 00 D6 04 80 09 00 00 00 00 00 00 4C [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [21:01:05]RAPDU: 90 00 [21:01:05]wFMCommunicate OK [21:01:05]SAM_PROTO_ClearQueue done [21:01:05]KKMCreateOFDPacket [21:01:05]OFDProtocolAddRootSTLVToBuf [21:01:05]FM_MakeSignedData [21:01:05]FM_MakeSignedData [21:01:05]SAM_PROTO_SignData [21:01:05]wFMCommunicate request_size=4 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 0D 01 02 [21:01:05]Write to MH i2c: E2 08 00 D7 04 80 0D 01 02 00 00 00 00 54 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [21:01:05]RAPDU: 90 00 [21:01:05]wFMCommunicate OK [21:01:05]wFMCommunicate request_size=255 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 90 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 D9 02 00 35 04 06 00 43 [21:01:05]Write to MH i2c: E2 02 01 D8 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 90 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 D9 02 00 35 04 06 00 43 00 00 0B [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [21:01:05]RAPDU: 90 00 [21:01:05]wFMCommunicate OK [21:01:05]wFMCommunicate request_size=10 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 0D 02 02 05 63 97 66 D4 C5 [21:01:05]Write to MH i2c: E2 0D 00 D9 04 80 0D 02 02 05 00 63 97 66 D4 C5 00 00 5A [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [21:01:05]RAPDU: 90 00 [21:01:05]wFMCommunicate OK [21:01:05]wFMCommunicate request_size=4 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 0D 03 02 [21:01:05]Write to MH i2c: E2 08 00 DA 04 80 0D 03 02 00 00 00 00 59 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 0B 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 0B 00 DA 04 00 2F 1D F8 F0 5C 80 93 F6 90 00 F3 [21:01:05]RAPDU: 2F 1D F8 F0 5C 80 93 F6 90 00 [21:01:05]wFMCommunicate OK [21:01:05]SAM_PROTO_SignData done [21:01:05]FM_MakeSignedData done [21:01:05]CreateOFDProtocolMessage [21:01:05]wFMCommunicate request_size=4 [21:01:05]MH_SAM_APDU [21:01:05]CAPDU: 80 11 00 00 [21:01:05]Write to MH i2c: E2 08 00 DB 04 80 11 00 00 00 00 00 00 59 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:05]Read from MH i2c: E2 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 17 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: E2 17 00 DB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [21:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:01:05]wFMCommunicate OK [21:01:05]CreateOFDProtocolMessage done [21:01:05]OFDSenderStorePacket 186657 [21:01:05]StoreOFDPacket docnum=186657 [21:01:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB 10 07 01 DD 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 90 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 D9 02 00 35 04 06 00 43 63 97 66 D4 C5 2F 1D F8 F0 5C 80 93 F6 [21:01:05]CheckFolder [21:01:05]dirname=/storage/ofd_packets [21:01:05]CheckFolder done [21:01:05]ProducePacketName [21:01:05]name=ofd_packets/00186657 [21:01:05]NVStorageSaveData ofd_packets/00186657 [21:01:05]File name is /storage/ofd_packets/00186657 [21:01:05]Write 301 bytes [21:01:05]NVStorageSaveData done [21:01:05]OFDSenderStorePacket done [21:01:05]KKMCreateOFDPacket done [21:01:05]NVStorageSaveData kkm_last_timestamp [21:01:05]File name is /storage/kkm_last_timestamp [21:01:05]Write 4 bytes [21:01:05]NVStorageSaveData done [21:01:05]ExternCall_PrintAddStr [21:01:05]wPrintStart [21:01:05]Write to MH i2c: 01 00 00 DC 04 E0 [21:01:05]Write i2c OK [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 [21:01:05]MH_I2C_Read... [21:01:05]Read from MH i2c: 01 07 00 DC 04 00 00 00 00 00 FF 0F F5 [21:01:05]RasterBufferAndPrint [21:01:05]line Счет N : (1)411806 [21:01:05]line ИНН: 02508201610067 [21:01:05]line Контрольно-Кассовый Чек [21:01:05]line ПРОДАЖА [21:01:05]line ТРК (МРК, ГНК) : 22 [21:01:05]line Товар: 2710124130 [21:01:05]line Аи-92-К-2 [21:01:05]line 7.790 * 64.20 [21:01:05]line = 500.12 [21:01:05]line НДС 12% НСП 1% [21:01:05]line > о реализуемом товаре [21:01:05]line ИТОГО: 500.12 [21:01:05]line НСП 1% : 4.43 [21:01:05]line НДС 12% : 53.11 [21:01:05]line Наличными: 0.00 [21:01:05]line Безнал.: 500.12 [21:01:05]line Место: АЗС № 92 "Партнер Нефть" [21:01:05]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:01:05]line СНО: Общий режим [21:01:05]line Чек 244 17.02.2025 21:01 [21:01:05]line Смена: 644 ФФД: 1.0 [21:01:05]line ЗНМ: 0300000118 [21:01:05]line РНМ: 0000000000091857 [21:01:05]line Версия ККМ: 001 [21:01:05]line Платежная система: O! деньги [21:01:05]line ФМ: 0000000000871826 [21:01:05]line ФД: 186657 [21:01:05]line ФПД: 74095020922053 [21:01:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210104&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186657&fm=74095020922053&tin=02508201610067®Number=0000000000091857&sum=50012 [21:01:05]written 0, free lines is 4095 [21:01:05]OFD Sender: Processing packet 186657 [packets to send 49, broken 48] [21:01:05]ProducePacketName [21:01:05]name=ofd_packets/00186657 [21:01:06]OFD Sender: To server: pG, [21:01:06]CommunicateWithHost lk.salyk.kg:30040 [21:01:06]ConnectInit lk.salyk.kg [21:01:06]Write to MH i2c: 01 00 00 06 05 0B [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: 01 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: 01 07 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 F6 0C 14 [21:01:06]RasterBufferAndPrint [21:01:06]line [21:01:06]line [21:01:06]line [21:01:06]line [21:01:06]line [21:01:06]written 0, free lines is 3324 [21:01:06]MH_Cut [21:01:06]Write to MH i2c: D1 01 00 0D 05 01 E4 [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: D1 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: D1 01 00 [21:01:06]MH_I2C_Read... [21:01:06]Read from MH i2c: D1 01 00 0D 05 00 E3 [21:01:06]Write to MH i2c: 01 00 00 0E 05 13 [21:01:06]Write i2c OK [21:01:06]MH_I2C_Read... [21:01:06]Connected sock=10 [21:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB 10 07 01 DD 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 90 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 D9 02 00 35 04 06 00 43 63 97 66 D4 C5 2F 1D F8 F0 5C 80 93 F6 [21:01:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 62 1E 47 00 57 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 21 D9 02 00 F4 03 04 00 EA 49 B3 67 B6 04 01 00 00 31 BB 48 A2 9D 61 75 3D [21:01:07]CommunicateWithHost err = 0 [21:01:07]CheckOFDResponse [21:01:07]1017 (14) - 77093643461234 [21:01:07]1041 (16) - 0000000000871826 [21:01:07]1040 (4) - 186657 [21:01:07]1012 (4) - 17.02.2025 14:38 [21:01:07]1206 (1) - 0 [21:01:07]OFD Sender: Remove packet 186657 [21:01:07]ProducePacketName [21:01:07]name=ofd_packets/00186657 [21:01:07]NVStorageDeleteData [21:01:07]*** Cut start [21:01:07]*** Partial cut [21:01:07]*** CUTSNS_PIN = 1 [21:01:07]*** CUTSNS_PIN = 0 [21:01:07]*** Brake cut motor [21:01:07]OFD Sender: No OFD packet to send [21:01:07]Read from MH i2c: 01 [21:01:07]MH_I2C_Read... [21:01:07]*** Stop cut motor [21:01:07]*** Cut end [21:01:07]Read from MH i2c: 01 07 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [21:01:07]process_action close_receipt done [21:01:07]requested_data is exist [21:01:07]produce_requested_data [21:01:07]requested_item fm.sn is exist - process it [21:01:07]wFMCommunicate request_size=4 [21:01:07]MH_SAM_APDU [21:01:07]CAPDU: 80 11 00 00 [21:01:07]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [21:01:07]Write i2c OK [21:01:07]MH_I2C_Read... [21:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:07]Read from MH i2c: E2 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 17 00 [21:01:07]MH_I2C_Read... [21:01:07]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [21:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:01:07]wFMCommunicate OK [21:01:07]requested_item fd.num is exist - process it [21:01:07]SAM_PROTO_GetFieldsCounters [21:01:07]wFMCommunicate request_size=4 [21:01:07]MH_SAM_APDU [21:01:07]CAPDU: 80 13 00 00 [21:01:07]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [21:01:07]Write i2c OK [21:01:07]MH_I2C_Read... [21:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:08]Read from MH i2c: E2 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: E2 62 00 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: E2 62 00 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 21 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:08]wFMCommunicate OK [21:01:08]SAM_PROTO_GetFieldsCounters done [21:01:08]requested_item shift.num is exist - process it [21:01:08]requested_item shift.opened is exist - process it [21:01:08]req_shift_opened [21:01:08]FM_GetShiftState [21:01:08]SAM_PROTO_GetShiftState [21:01:08]wFMCommunicate request_size=4 [21:01:08]MH_SAM_APDU [21:01:08]CAPDU: 80 13 01 00 [21:01:08]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [21:01:08]Write i2c OK [21:01:08]MH_I2C_Read... [21:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:08]Read from MH i2c: E2 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: E2 0E 00 [21:01:08]MH_I2C_Read... [21:01:08]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B7 [21:01:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:01:08]wFMCommunicate OK [21:01:08]SAM_PROTO_GetShiftState done [21:01:08]FM_GetShiftState done [21:01:08]req_shift_opened done [21:01:08]requested_item shift.open_date is exist - process it [21:01:08]req_shift_open_date [21:01:08]req_shift_open_date done [21:01:08]produce_requested_data done [21:01:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186657,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:01:08]process_action_free close_receipt [21:01:08]json_value_free [21:01:08]json_value_free done [21:01:08]process_json_proto returns [21:01:08]Send response to host [21:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186657,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:01:08]free response buf [21:01:08]execute_script done [21:01:08]execute_script returns [21:01:08]free content buf [21:01:08]Sock 9.Close socket [21:01:08]Sock 9.Thread stoped [21:01:12]OFD Sender: No OFD packet to send [21:01:17]OFD Sender: No OFD packet to send [21:01:22]OFD Sender: No OFD packet to send [21:01:27]OFD Sender: No OFD packet to send [21:01:32]OFD Sender: No OFD packet to send [21:01:37]OFD Sender: No OFD packet to send [21:01:42]OFD Sender: No OFD packet to send [21:01:47]OFD Sender: No OFD packet to send [21:01:52]OFD Sender: No OFD packet to send [21:01:57]OFD Sender: No OFD packet to send [21:01:59]accept exits with 7 [21:01:59]New connection [21:01:59]New thread 3067051364 created [21:01:59]Thread 3067194724 joined [21:01:59]Waiting for new connection... [21:01:59] Sock 7.Parse request [21:01:59]Sock 7.Check first char [21:01:59]Sock 7.First char is OK [21:01:59]request: POST /json_proto HTTP/1.0 [21:01:59]Method: POST [21:01:59]URL: /json_proto [21:01:59]Method is POST - this is cgi request [21:01:59]url: /json_proto [21:01:59]query_string will be loaded in cgi processing [21:01:59]execute_cgi json_proto POST (null) [21:01:59]execute_cgi path=json_proto method=POST [21:01:59]POST find Content-Length [21:01:59]Host: 172.17.46.131:8080 [21:01:59]Content-Length: 803 [21:01:59]Content-Type: application/json [21:01:59] [21:01:59]POST finish read [21:01:59]Found Content-Length = 803 [21:01:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 23.650, "sum" : 1700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:59]execute_script... [21:01:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 23.650, "sum" : 1700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:59]POST & json_proto [21:01:59]process_json_proto [21:01:59]json parsed OK: [21:01:59]protocol is kg_v1.0 [21:01:59]action value=close_receipt [21:01:59]process_action close_receipt [21:01:59]cmd_close_receipt [21:01:59]MH_GetDate [21:01:59]Write to MH i2c: F0 00 00 12 05 06 [21:01:59]Write i2c OK [21:01:59]MH_I2C_Read... [21:01:59]Read from MH i2c: F0 [21:01:59]MH_I2C_Read... [21:01:59]Read from MH i2c: F0 09 00 [21:01:59]MH_I2C_Read... [21:01:59]Read from MH i2c: F0 09 00 12 05 00 C8 A3 B3 67 7E 41 4F 65 07 [21:01:59]GetLastDocTimeStamp 1739826064 [21:01:59]current date 1739826120 [21:01:59]FM_GetShiftState [21:01:59]SAM_PROTO_GetShiftState [21:01:59]wFMCommunicate request_size=4 [21:01:59]MH_SAM_APDU [21:01:59]CAPDU: 80 13 01 00 [21:01:59]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [21:01:59]Write i2c OK [21:01:59]MH_I2C_Read... [21:01:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:59]Read from MH i2c: E2 [21:01:59]MH_I2C_Read... [21:01:59]Read from MH i2c: E2 0E 00 [21:01:59]MH_I2C_Read... [21:01:59]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B9 [21:01:59]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:01:59]wFMCommunicate OK [21:01:59]SAM_PROTO_GetShiftState done [21:01:59]FM_GetShiftState done [21:01:59]opened in 1739752571 [21:01:59]opened+sec_in_day 1739838971 [21:01:59]quantity*price = 170043 [21:01:59]sum+1 = 170045 [21:01:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.44 НСП 1% : 15.05 НДС 12% : 180.58 Наличными: 0.00 Безнал.: 1700.44 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 245 17.02.2025 21:02 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186658 ФПД: 148975952858898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186658&fm=148975952858898&tin=02508201610067®Number=0000000000091857&sum=170044 [21:02:01]StoreToDocumentArchive [21:02:01]shift 644 fd 186658 [21:02:01]save to /storage/0644/doc_00186658 [21:02:01]save last doc name /storage/0644/doc_00186658 to /storage/kkm_last_doc_name [21:02:01]save OK [21:02:01]Clear old archive folders... [21:02:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:01]tlvbuf is 005E4430 [21:02:01]SAM_PROTO_ClearQueue [21:02:01]wFMCommunicate request_size=4 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 09 00 00 [21:02:01]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [21:02:01]RAPDU: 90 00 [21:02:01]wFMCommunicate OK [21:02:01]SAM_PROTO_ClearQueue done [21:02:01]KKMCreateOFDPacket [21:02:01]OFDProtocolAddRootSTLVToBuf [21:02:01]FM_MakeSignedData [21:02:01]FM_MakeSignedData [21:02:01]SAM_PROTO_SignData [21:02:01]wFMCommunicate request_size=4 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 0D 01 02 [21:02:01]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [21:02:01]RAPDU: 90 00 [21:02:01]wFMCommunicate OK [21:02:01]wFMCommunicate request_size=255 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 C8 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 D9 02 00 35 04 06 00 87 [21:02:01]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 C8 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 D9 02 00 35 04 06 00 87 00 00 5E [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [21:02:01]RAPDU: 90 00 [21:02:01]wFMCommunicate OK [21:02:01]wFMCommunicate request_size=10 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 0D 02 02 05 7E 2A C0 0F 12 [21:02:01]Write to MH i2c: E2 0D 00 23 05 80 0D 02 02 05 00 7E 2A C0 0F 12 00 00 35 [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [21:02:01]RAPDU: 90 00 [21:02:01]wFMCommunicate OK [21:02:01]wFMCommunicate request_size=4 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 0D 03 02 [21:02:01]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 0B 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 0B 00 24 05 00 03 AF 0E 90 68 4E 02 62 90 00 0F [21:02:01]RAPDU: 03 AF 0E 90 68 4E 02 62 90 00 [21:02:01]wFMCommunicate OK [21:02:01]SAM_PROTO_SignData done [21:02:01]FM_MakeSignedData done [21:02:01]CreateOFDProtocolMessage [21:02:01]wFMCommunicate request_size=4 [21:02:01]MH_SAM_APDU [21:02:01]CAPDU: 80 11 00 00 [21:02:01]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:01]Read from MH i2c: E2 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 17 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [21:02:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:02:01]wFMCommunicate OK [21:02:01]CreateOFDProtocolMessage done [21:02:01]OFDSenderStorePacket 186658 [21:02:01]StoreOFDPacket docnum=186658 [21:02:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 21 70 07 01 29 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 C8 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 D9 02 00 35 04 06 00 87 7E 2A C0 0F 12 03 AF 0E 90 68 4E 02 62 [21:02:01]CheckFolder [21:02:01]dirname=/storage/ofd_packets [21:02:01]CheckFolder done [21:02:01]ProducePacketName [21:02:01]name=ofd_packets/00186658 [21:02:01]NVStorageSaveData ofd_packets/00186658 [21:02:01]File name is /storage/ofd_packets/00186658 [21:02:01]Write 301 bytes [21:02:01]NVStorageSaveData done [21:02:01]OFDSenderStorePacket done [21:02:01]KKMCreateOFDPacket done [21:02:01]NVStorageSaveData kkm_last_timestamp [21:02:01]File name is /storage/kkm_last_timestamp [21:02:01]Write 4 bytes [21:02:01]NVStorageSaveData done [21:02:01]ExternCall_PrintAddStr [21:02:01]wPrintStart [21:02:01]Write to MH i2c: 01 00 00 26 05 2B [21:02:01]Write i2c OK [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: 01 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: 01 07 00 [21:02:01]MH_I2C_Read... [21:02:01]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [21:02:01]RasterBufferAndPrint [21:02:01]line Счет N : (1)411807 [21:02:01]line ИНН: 02508201610067 [21:02:01]line Контрольно-Кассовый Чек [21:02:01]line ПРОДАЖА [21:02:01]line ТРК (МРК, ГНК) : 33 [21:02:01]line Товар: 2710124500 [21:02:01]line Аи-95-К-5 [21:02:01]line 23.650 * 71.90 [21:02:01]line = 1700.44 [21:02:01]line НДС 12% НСП 1% [21:02:01]line > о реализуемом товаре [21:02:01]line ИТОГО: 1700.44 [21:02:01]line НСП 1% : 15.05 [21:02:01]line НДС 12% : 180.58 [21:02:01]line Наличными: 0.00 [21:02:01]line Безнал.: 1700.44 [21:02:01]line Место: АЗС № 92 "Партнер Нефть" [21:02:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:02:01]line СНО: Общий режим [21:02:01]line Чек 245 17.02.2025 21:02 [21:02:01]line Смена: 644 ФФД: 1.0 [21:02:01]line ЗНМ: 0300000118 [21:02:01]line РНМ: 0000000000091857 [21:02:01]line Версия ККМ: 001 [21:02:01]line Платежная система: O! деньги [21:02:01]line ФМ: 0000000000871826 [21:02:01]line ФД: 186658 [21:02:01]line ФПД: 148975952858898 [21:02:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186658&fm=148975952858898&tin=02508201610067®Number=0000000000091857&sum=170044 [21:02:01]written 0, free lines is 4095 [21:02:01]OFD Sender: Processing packet 186658 [packets to send 49, broken 48] [21:02:01]ProducePacketName [21:02:01]name=ofd_packets/00186658 [21:02:01]OFD Sender: To server: pG, [21:02:01]CommunicateWithHost lk.salyk.kg:30040 [21:02:01]ConnectInit lk.salyk.kg [21:02:02]Connected sock=10 [21:02:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 21 70 07 01 29 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 5C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 3C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 C8 A3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 D9 02 00 35 04 06 00 87 7E 2A C0 0F 12 03 AF 0E 90 68 4E 02 62 [21:02:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 00 CB 47 00 86 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 22 D9 02 00 F4 03 04 00 21 4A B3 67 B6 04 01 00 00 92 E1 E1 6D D5 9F 05 F0 [21:02:02]CommunicateWithHost err = 0 [21:02:02]CheckOFDResponse [21:02:02]1017 (14) - 77093643461234 [21:02:02]1041 (16) - 0000000000871826 [21:02:02]1040 (4) - 186658 [21:02:02]1012 (4) - 17.02.2025 14:39 [21:02:02]1206 (1) - 0 [21:02:02]OFD Sender: Remove packet 186658 [21:02:02]ProducePacketName [21:02:02]name=ofd_packets/00186658 [21:02:02]NVStorageDeleteData [21:02:02]Write to MH i2c: 01 00 00 50 05 55 [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 02 0D 6B [21:02:02]RasterBufferAndPrint [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]line [21:02:02]written 0, free lines is 3336 [21:02:02]MH_Cut [21:02:02]Write to MH i2c: D1 01 00 57 05 01 2E [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 01 00 [21:02:02]MH_I2C_Read... [21:02:02]Read from MH i2c: D1 01 00 57 05 00 2D [21:02:02]Write to MH i2c: 01 00 00 58 05 5D [21:02:02]Write i2c OK [21:02:02]MH_I2C_Read... [21:02:02]OFD Sender: No OFD packet to send [21:02:03]*** Cut start [21:02:03]*** Partial cut [21:02:03]*** CUTSNS_PIN = 1 [21:02:03]*** CUTSNS_PIN = 0 [21:02:03]*** Brake cut motor [21:02:03]Read from MH i2c: 01 [21:02:03]MH_I2C_Read... [21:02:03]*** Stop cut motor [21:02:03]*** Cut end [21:02:03]Read from MH i2c: 01 07 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: 01 07 00 58 05 00 00 00 00 00 FF 0F 72 [21:02:03]process_action close_receipt done [21:02:03]requested_data is exist [21:02:03]produce_requested_data [21:02:03]requested_item fm.sn is exist - process it [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 11 00 00 [21:02:03]Write to MH i2c: E2 08 00 59 05 80 11 00 00 00 00 00 00 D8 [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:03]Read from MH i2c: E2 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 17 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 17 00 59 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2B [21:02:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:02:03]wFMCommunicate OK [21:02:03]requested_item fd.num is exist - process it [21:02:03]SAM_PROTO_GetFieldsCounters [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 13 00 00 [21:02:03]Write to MH i2c: E2 08 00 5A 05 80 13 00 00 00 00 00 00 DB [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:03]Read from MH i2c: E2 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 62 00 [21:02:03]MH_I2C_Read... [21:02:03]Read from MH i2c: E2 62 00 5A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [21:02:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 22 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:03]wFMCommunicate OK [21:02:03]SAM_PROTO_GetFieldsCounters done [21:02:03]requested_item shift.num is exist - process it [21:02:03]requested_item shift.opened is exist - process it [21:02:03]req_shift_opened [21:02:03]FM_GetShiftState [21:02:03]SAM_PROTO_GetShiftState [21:02:03]wFMCommunicate request_size=4 [21:02:03]MH_SAM_APDU [21:02:03]CAPDU: 80 13 01 00 [21:02:03]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [21:02:03]Write i2c OK [21:02:03]MH_I2C_Read... [21:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:04]Read from MH i2c: E2 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: E2 0E 00 [21:02:04]MH_I2C_Read... [21:02:04]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 01 [21:02:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:02:04]wFMCommunicate OK [21:02:04]SAM_PROTO_GetShiftState done [21:02:04]FM_GetShiftState done [21:02:04]req_shift_opened done [21:02:04]requested_item shift.open_date is exist - process it [21:02:04]req_shift_open_date [21:02:04]req_shift_open_date done [21:02:04]produce_requested_data done [21:02:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186658,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:02:04]process_action_free close_receipt [21:02:04]json_value_free [21:02:04]json_value_free done [21:02:04]process_json_proto returns [21:02:04]Send response to host [21:02:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186658,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:02:04]free response buf [21:02:04]execute_script done [21:02:04]execute_script returns [21:02:04]free content buf [21:02:04]Sock 7.Close socket [21:02:04]Sock 7.Thread stoped [21:02:07]OFD Sender: No OFD packet to send [21:02:12]OFD Sender: No OFD packet to send [21:02:17]OFD Sender: No OFD packet to send [21:02:22]OFD Sender: No OFD packet to send [21:02:27]OFD Sender: No OFD packet to send [21:02:32]OFD Sender: No OFD packet to send [21:02:37]OFD Sender: No OFD packet to send [21:02:42]OFD Sender: No OFD packet to send [21:02:47]OFD Sender: No OFD packet to send [21:02:52]OFD Sender: No OFD packet to send [21:02:57]OFD Sender: No OFD packet to send [21:03:02]OFD Sender: No OFD packet to send [21:03:07]OFD Sender: No OFD packet to send [21:03:12]OFD Sender: No OFD packet to send [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:00]accept exits with 9 [21:04:00]New connection [21:04:00]New thread 3067194724 created [21:04:00]Thread 3067051364 joined [21:04:00]Waiting for new connection... [21:04:00] Sock 9.Parse request [21:04:00]Sock 9.Check first char [21:04:00]Sock 9.First char is OK [21:04:00]request: POST /json_proto HTTP/1.0 [21:04:00]Method: POST [21:04:00]URL: /json_proto [21:04:00]Method is POST - this is cgi request [21:04:00]url: /json_proto [21:04:00]query_string will be loaded in cgi processing [21:04:00]execute_cgi json_proto POST (null) [21:04:00]execute_cgi path=json_proto method=POST [21:04:00]POST find Content-Length [21:04:00]Host: 172.17.46.131:8080 [21:04:00]Content-Length: 677 [21:04:00]Content-Type: application/json [21:04:00] [21:04:00]POST finish read [21:04:00]Found Content-Length = 677 [21:04:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:00]execute_script... [21:04:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:00]POST & json_proto [21:04:00]process_json_proto [21:04:00]json parsed OK: [21:04:00]protocol is kg_v1.0 [21:04:00]action value=close_receipt [21:04:00]process_action close_receipt [21:04:00]cmd_close_receipt [21:04:00]MH_GetDate [21:04:00]Write to MH i2c: F0 00 00 5C 05 50 [21:04:00]Write i2c OK [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: F0 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: F0 09 00 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: F0 09 00 5C 05 00 41 A4 B3 67 7E 41 4F 65 CB [21:04:00]GetLastDocTimeStamp 1739826120 [21:04:00]current date 1739826241 [21:04:00]FM_GetShiftState [21:04:00]SAM_PROTO_GetShiftState [21:04:00]wFMCommunicate request_size=4 [21:04:00]MH_SAM_APDU [21:04:00]CAPDU: 80 13 01 00 [21:04:00]Write to MH i2c: E2 08 00 5D 05 80 13 01 00 00 00 00 00 DF [21:04:00]Write i2c OK [21:04:00]MH_I2C_Read... [21:04:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:00]Read from MH i2c: E2 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: E2 0E 00 [21:04:00]MH_I2C_Read... [21:04:00]Read from MH i2c: E2 0E 00 5D 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 03 [21:04:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:04:00]wFMCommunicate OK [21:04:00]SAM_PROTO_GetShiftState done [21:04:00]FM_GetShiftState done [21:04:00]opened in 1739752571 [21:04:00]opened+sec_in_day 1739838971 [21:04:00]quantity*price = 50011 [21:04:00]sum+1 = 50013 [21:04:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 246 17.02.2025 21:04 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186659 ФПД: 173751866281811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210401&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186659&fm=173751866281811&tin=02508201610067®Number=0000000000091857&sum=50000 [21:04:01]StoreToDocumentArchive [21:04:01]shift 644 fd 186659 [21:04:01]save to /storage/0644/doc_00186659 [21:04:01]save last doc name /storage/0644/doc_00186659 to /storage/kkm_last_doc_name [21:04:01]save OK [21:04:01]Clear old archive folders... [21:04:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:01]tlvbuf is 005CED00 [21:04:01]SAM_PROTO_ClearQueue [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 09 00 00 [21:04:01]Write to MH i2c: E2 08 00 6A 05 80 09 00 00 00 00 00 00 E1 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [21:04:01]RAPDU: 90 00 [21:04:01]wFMCommunicate OK [21:04:01]SAM_PROTO_ClearQueue done [21:04:01]KKMCreateOFDPacket [21:04:01]OFDProtocolAddRootSTLVToBuf [21:04:01]FM_MakeSignedData [21:04:01]FM_MakeSignedData [21:04:01]SAM_PROTO_SignData [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 0D 01 02 [21:04:01]Write to MH i2c: E2 08 00 6B 05 80 0D 01 02 00 00 00 00 E9 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [21:04:01]RAPDU: 90 00 [21:04:01]wFMCommunicate OK [21:04:01]wFMCommunicate request_size=255 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 41 A4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 D9 02 00 35 04 06 00 9E [21:04:01]Write to MH i2c: E2 02 01 6C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 41 A4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 D9 02 00 35 04 06 00 9E 00 00 99 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [21:04:01]RAPDU: 90 00 [21:04:01]wFMCommunicate OK [21:04:01]wFMCommunicate request_size=10 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 0D 02 02 05 06 C2 44 CF 53 [21:04:01]Write to MH i2c: E2 0D 00 6D 05 80 0D 02 02 05 00 06 C2 44 CF 53 00 00 24 [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:01]Read from MH i2c: E2 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 [21:04:01]MH_I2C_Read... [21:04:01]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [21:04:01]RAPDU: 90 00 [21:04:01]wFMCommunicate OK [21:04:01]wFMCommunicate request_size=4 [21:04:01]MH_SAM_APDU [21:04:01]CAPDU: 80 0D 03 02 [21:04:01]Write to MH i2c: E2 08 00 6E 05 80 0D 03 02 00 00 00 00 EE [21:04:01]Write i2c OK [21:04:01]MH_I2C_Read... [21:04:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:02]Read from MH i2c: E2 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: E2 0B 00 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: E2 0B 00 6E 05 00 5D 1E B3 E8 06 7A CB 0F 90 00 5F [21:04:02]RAPDU: 5D 1E B3 E8 06 7A CB 0F 90 00 [21:04:02]wFMCommunicate OK [21:04:02]SAM_PROTO_SignData done [21:04:02]FM_MakeSignedData done [21:04:02]CreateOFDProtocolMessage [21:04:02]wFMCommunicate request_size=4 [21:04:02]MH_SAM_APDU [21:04:02]CAPDU: 80 11 00 00 [21:04:02]Write to MH i2c: E2 08 00 6F 05 80 11 00 00 00 00 00 00 EE [21:04:02]Write i2c OK [21:04:02]MH_I2C_Read... [21:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:02]Read from MH i2c: E2 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: E2 17 00 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: E2 17 00 6F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 41 [21:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:02]wFMCommunicate OK [21:04:02]CreateOFDProtocolMessage done [21:04:02]OFDSenderStorePacket 186659 [21:04:02]StoreOFDPacket docnum=186659 [21:04:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8C A9 07 01 8C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 41 A4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 D9 02 00 35 04 06 00 9E 06 C2 44 CF 53 5D 1E B3 E8 06 7A CB 0F [21:04:02]CheckFolder [21:04:02]dirname=/storage/ofd_packets [21:04:02]CheckFolder done [21:04:02]ProducePacketName [21:04:02]name=ofd_packets/00186659 [21:04:02]NVStorageSaveData ofd_packets/00186659 [21:04:02]File name is /storage/ofd_packets/00186659 [21:04:02]Write 301 bytes [21:04:02]NVStorageSaveData done [21:04:02]OFDSenderStorePacket done [21:04:02]KKMCreateOFDPacket done [21:04:02]NVStorageSaveData kkm_last_timestamp [21:04:02]File name is /storage/kkm_last_timestamp [21:04:02]Write 4 bytes [21:04:02]NVStorageSaveData done [21:04:02]OFD Sender: Processing packet 186659 [packets to send 49, broken 48] [21:04:02]ProducePacketName [21:04:02]name=ofd_packets/00186659 [21:04:02]OFD Sender: To server: pG, [21:04:02]CommunicateWithHost lk.salyk.kg:30040 [21:04:02]ConnectInit lk.salyk.kg [21:04:02]ExternCall_PrintAddStr [21:04:02]wPrintStart [21:04:02]Write to MH i2c: 01 00 00 70 05 75 [21:04:02]Write i2c OK [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 07 00 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 07 00 70 05 00 00 00 00 00 FF 0F 8A [21:04:02]RasterBufferAndPrint [21:04:02]line Счет N : (1)411808 [21:04:02]line ИНН: 02508201610067 [21:04:02]line Контрольно-Кассовый Чек [21:04:02]line ПРОДАЖА [21:04:02]line ТРК (МРК, ГНК) : 42 [21:04:02]line Товар: 2710124130 [21:04:02]line Аи-92-К-2 [21:04:02]line 7.790 * 64.20 [21:04:02]line = 500.12 [21:04:02]line НДС 12% НСП 1% [21:04:02]line > о реализуемом товаре [21:04:02]line ОКРУГЛЕНИЕ: -0.12 [21:04:02]line ИТОГО: 500.00 [21:04:02]line Внесено: 500.00 [21:04:02]line СДАЧА: 0.00 [21:04:02]line НСП 1% : 4.43 [21:04:02]line НДС 12% : 53.11 [21:04:02]line Наличными: 500.00 [21:04:02]line Безнал.: 0.00 [21:04:02]line Место: АЗС № 92 "Партнер Нефть" [21:04:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:04:02]line СНО: Общий режим [21:04:02]line Чек 246 17.02.2025 21:04 [21:04:02]line Смена: 644 ФФД: 1.0 [21:04:02]line ЗНМ: 0300000118 [21:04:02]line РНМ: 0000000000091857 [21:04:02]line Версия ККМ: 001 [21:04:02]line ФМ: 0000000000871826 [21:04:02]line ФД: 186659 [21:04:02]line ФПД: 173751866281811 [21:04:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T210401&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186659&fm=173751866281811&tin=02508201610067®Number=0000000000091857&sum=50000 [21:04:02]Connected sock=11 [21:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8C A9 07 01 8C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 41 A4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 D9 02 00 35 04 06 00 9E 06 C2 44 CF 53 5D 1E B3 E8 06 7A CB 0F [21:04:02]written 0, free lines is 4095 [21:04:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CE 87 47 00 20 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 23 D9 02 00 F4 03 04 00 9A 4A B3 67 B6 04 01 00 00 8E B2 62 B8 00 DE B7 07 [21:04:02]CommunicateWithHost err = 0 [21:04:02]CheckOFDResponse [21:04:02]1017 (14) - 77093643461234 [21:04:02]1041 (16) - 0000000000871826 [21:04:02]1040 (4) - 186659 [21:04:02]1012 (4) - 17.02.2025 14:41 [21:04:02]1206 (1) - 0 [21:04:02]OFD Sender: Remove packet 186659 [21:04:02]ProducePacketName [21:04:02]name=ofd_packets/00186659 [21:04:02]NVStorageDeleteData [21:04:02]Write to MH i2c: 01 00 00 9B 05 A0 [21:04:02]Write i2c OK [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 07 00 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: 01 07 00 9B 05 00 00 00 00 00 E4 0C 97 [21:04:02]RasterBufferAndPrint [21:04:02]line [21:04:02]line [21:04:02]line [21:04:02]line [21:04:02]line [21:04:02]written 0, free lines is 3306 [21:04:02]MH_Cut [21:04:02]Write to MH i2c: D1 01 00 A2 05 01 79 [21:04:02]Write i2c OK [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: D1 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: D1 01 00 [21:04:02]MH_I2C_Read... [21:04:02]Read from MH i2c: D1 01 00 A2 05 00 78 [21:04:02]Write to MH i2c: 01 00 00 A3 05 A8 [21:04:02]Write i2c OK [21:04:02]MH_I2C_Read... [21:04:03]OFD Sender: No OFD packet to send [21:04:03]*** Cut start [21:04:03]*** Partial cut [21:04:03]*** CUTSNS_PIN = 1 [21:04:03]*** CUTSNS_PIN = 0 [21:04:03]*** Brake cut motor [21:04:04]Read from MH i2c: 01 [21:04:04]MH_I2C_Read... [21:04:04]*** Stop cut motor [21:04:04]*** Cut end [21:04:04]Read from MH i2c: 01 07 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: 01 07 00 A3 05 00 00 00 00 00 FF 0F BD [21:04:04]process_action close_receipt done [21:04:04]requested_data is exist [21:04:04]produce_requested_data [21:04:04]requested_item fm.sn is exist - process it [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 11 00 00 [21:04:04]Write to MH i2c: E2 08 00 A4 05 80 11 00 00 00 00 00 00 23 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 17 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 17 00 A4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 76 [21:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:04:04]wFMCommunicate OK [21:04:04]requested_item fd.num is exist - process it [21:04:04]SAM_PROTO_GetFieldsCounters [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 13 00 00 [21:04:04]Write to MH i2c: E2 08 00 A5 05 80 13 00 00 00 00 00 00 26 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 62 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 62 00 A5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [21:04:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 23 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:04]wFMCommunicate OK [21:04:04]SAM_PROTO_GetFieldsCounters done [21:04:04]requested_item shift.num is exist - process it [21:04:04]requested_item shift.opened is exist - process it [21:04:04]req_shift_opened [21:04:04]FM_GetShiftState [21:04:04]SAM_PROTO_GetShiftState [21:04:04]wFMCommunicate request_size=4 [21:04:04]MH_SAM_APDU [21:04:04]CAPDU: 80 13 01 00 [21:04:04]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [21:04:04]Write i2c OK [21:04:04]MH_I2C_Read... [21:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:04]Read from MH i2c: E2 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 0E 00 [21:04:04]MH_I2C_Read... [21:04:04]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4C [21:04:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:04:04]wFMCommunicate OK [21:04:04]SAM_PROTO_GetShiftState done [21:04:04]FM_GetShiftState done [21:04:04]req_shift_opened done [21:04:04]requested_item shift.open_date is exist - process it [21:04:04]req_shift_open_date [21:04:04]req_shift_open_date done [21:04:04]produce_requested_data done [21:04:04]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186659,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:04:04]process_action_free close_receipt [21:04:04]json_value_free [21:04:04]json_value_free done [21:04:04]process_json_proto returns [21:04:04]Send response to host [21:04:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186659,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:04:04]free response buf [21:04:04]execute_script done [21:04:04]execute_script returns [21:04:04]free content buf [21:04:04]Sock 9.Close socket [21:04:04]Sock 9.Thread stoped [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06:58]OFD Sender: No OFD packet to send [21:07:03]OFD Sender: No OFD packet to send [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:23]OFD Sender: No OFD packet to send [21:13:28]OFD Sender: No OFD packet to send [21:13:33]OFD Sender: No OFD packet to send [21:13:38]OFD Sender: No OFD packet to send [21:13:43]OFD Sender: No OFD packet to send [21:13:48]OFD Sender: No OFD packet to send [21:13:53]OFD Sender: No OFD packet to send [21:13:58]OFD Sender: No OFD packet to send [21:14:03]OFD Sender: No OFD packet to send [21:14:08]OFD Sender: No OFD packet to send [21:14:13]OFD Sender: No OFD packet to send [21:14:18]OFD Sender: No OFD packet to send [21:14:23]OFD Sender: No OFD packet to send [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:07]accept exits with 7 [21:15:07]New connection [21:15:07]New thread 3067051364 created [21:15:07]Thread 3067194724 joined [21:15:07]Waiting for new connection... [21:15:07] Sock 7.Parse request [21:15:07]Sock 7.Check first char [21:15:07]Sock 7.First char is OK [21:15:07]request: POST /json_proto HTTP/1.0 [21:15:07]Method: POST [21:15:07]URL: /json_proto [21:15:07]Method is POST - this is cgi request [21:15:07]url: /json_proto [21:15:07]query_string will be loaded in cgi processing [21:15:07]execute_cgi json_proto POST (null) [21:15:07]execute_cgi path=json_proto method=POST [21:15:07]POST find Content-Length [21:15:07]Host: 172.17.46.131:8080 [21:15:07]Content-Length: 682 [21:15:07]Content-Type: application/json [21:15:07] [21:15:07]POST finish read [21:15:07]Found Content-Length = 682 [21:15:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:07]execute_script... [21:15:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:15:07]POST & json_proto [21:15:07]process_json_proto [21:15:07]json parsed OK: [21:15:07]protocol is kg_v1.0 [21:15:07]action value=close_receipt [21:15:07]process_action close_receipt [21:15:07]cmd_close_receipt [21:15:07]MH_GetDate [21:15:07]Write to MH i2c: F0 00 00 A7 05 9B [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 09 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: F0 09 00 A7 05 00 DC A6 B3 67 7E 41 4F 65 B3 [21:15:07]GetLastDocTimeStamp 1739826241 [21:15:07]current date 1739826908 [21:15:07]FM_GetShiftState [21:15:07]SAM_PROTO_GetShiftState [21:15:07]wFMCommunicate request_size=4 [21:15:07]MH_SAM_APDU [21:15:07]CAPDU: 80 13 01 00 [21:15:07]Write to MH i2c: E2 08 00 A8 05 80 13 01 00 00 00 00 00 2A [21:15:07]Write i2c OK [21:15:07]MH_I2C_Read... [21:15:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:07]Read from MH i2c: E2 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 [21:15:07]MH_I2C_Read... [21:15:07]Read from MH i2c: E2 0E 00 A8 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 4E [21:15:07]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:15:07]wFMCommunicate OK [21:15:07]SAM_PROTO_GetShiftState done [21:15:07]FM_GetShiftState done [21:15:07]opened in 1739752571 [21:15:07]opened+sec_in_day 1739838971 [21:15:07]quantity*price = 150035 [21:15:07]sum+1 = 150036 [21:15:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 247 17.02.2025 21:15 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186660 ФПД: 88047604716418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T211508&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186660&fm=88047604716418&tin=02508201610067®Number=0000000000091857&sum=150000 [21:15:09]StoreToDocumentArchive [21:15:09]shift 644 fd 186660 [21:15:09]save to /storage/0644/doc_00186660 [21:15:09]save last doc name /storage/0644/doc_00186660 to /storage/kkm_last_doc_name [21:15:09]save OK [21:15:09]Clear old archive folders... [21:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:15:09]tlvbuf is 005DB980 [21:15:09]SAM_PROTO_ClearQueue [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 09 00 00 [21:15:09]Write to MH i2c: E2 08 00 B5 05 80 09 00 00 00 00 00 00 2C [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_ClearQueue done [21:15:09]KKMCreateOFDPacket [21:15:09]OFDProtocolAddRootSTLVToBuf [21:15:09]FM_MakeSignedData [21:15:09]FM_MakeSignedData [21:15:09]SAM_PROTO_SignData [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 01 02 [21:15:09]Write to MH i2c: E2 08 00 B6 05 80 0D 01 02 00 00 00 00 34 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=255 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 DC A6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 D9 02 00 35 04 06 00 50 [21:15:09]Write to MH i2c: E2 02 01 B7 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 DC A6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 D9 02 00 35 04 06 00 50 00 00 FF [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=10 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 02 02 05 14 2E 33 D3 82 [21:15:09]Write to MH i2c: E2 0D 00 B8 05 80 0D 02 02 05 00 14 2E 33 D3 82 00 00 0B [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [21:15:09]RAPDU: 90 00 [21:15:09]wFMCommunicate OK [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 0D 03 02 [21:15:09]Write to MH i2c: E2 08 00 B9 05 80 0D 03 02 00 00 00 00 39 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0B 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 0B 00 B9 05 00 6F 0C 7E A8 E3 09 A6 D3 90 00 40 [21:15:09]RAPDU: 6F 0C 7E A8 E3 09 A6 D3 90 00 [21:15:09]wFMCommunicate OK [21:15:09]SAM_PROTO_SignData done [21:15:09]FM_MakeSignedData done [21:15:09]CreateOFDProtocolMessage [21:15:09]wFMCommunicate request_size=4 [21:15:09]MH_SAM_APDU [21:15:09]CAPDU: 80 11 00 00 [21:15:09]Write to MH i2c: E2 08 00 BA 05 80 11 00 00 00 00 00 00 39 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:09]Read from MH i2c: E2 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 17 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: E2 17 00 BA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8C [21:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:15:09]wFMCommunicate OK [21:15:09]CreateOFDProtocolMessage done [21:15:09]OFDSenderStorePacket 186660 [21:15:09]StoreOFDPacket docnum=186660 [21:15:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 4F 07 01 48 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 DC A6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 D9 02 00 35 04 06 00 50 14 2E 33 D3 82 6F 0C 7E A8 E3 09 A6 D3 [21:15:09]CheckFolder [21:15:09]dirname=/storage/ofd_packets [21:15:09]CheckFolder done [21:15:09]ProducePacketName [21:15:09]name=ofd_packets/00186660 [21:15:09]NVStorageSaveData ofd_packets/00186660 [21:15:09]File name is /storage/ofd_packets/00186660 [21:15:09]Write 301 bytes [21:15:09]NVStorageSaveData done [21:15:09]OFDSenderStorePacket done [21:15:09]KKMCreateOFDPacket done [21:15:09]NVStorageSaveData kkm_last_timestamp [21:15:09]File name is /storage/kkm_last_timestamp [21:15:09]Write 4 bytes [21:15:09]NVStorageSaveData done [21:15:09]OFD Sender: Processing packet 186660 [packets to send 49, broken 48] [21:15:09]ProducePacketName [21:15:09]name=ofd_packets/00186660 [21:15:09]OFD Sender: To server: pG, [21:15:09]CommunicateWithHost lk.salyk.kg:30040 [21:15:09]ConnectInit lk.salyk.kg [21:15:09]ExternCall_PrintAddStr [21:15:09]wPrintStart [21:15:09]Write to MH i2c: 01 00 00 BB 05 C0 [21:15:09]Write i2c OK [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 [21:15:09]MH_I2C_Read... [21:15:09]Read from MH i2c: 01 07 00 BB 05 00 00 00 00 00 FF 0F D5 [21:15:09]RasterBufferAndPrint [21:15:09]line Счет N : (1)411809 [21:15:09]line ИНН: 02508201610067 [21:15:09]line Контрольно-Кассовый Чек [21:15:09]line ПРОДАЖА [21:15:09]line ТРК (МРК, ГНК) : 42 [21:15:09]line Товар: 2710124130 [21:15:09]line Аи-92-К-2 [21:15:09]line 23.370 * 64.20 [21:15:09]line = 1500.35 [21:15:09]line НДС 12% НСП 1% [21:15:09]line > о реализуемом товаре [21:15:09]line ОКРУГЛЕНИЕ: -0.35 [21:15:09]line ИТОГО: 1500.00 [21:15:09]line Внесено: 1500.00 [21:15:09]line СДАЧА: 0.00 [21:15:09]line НСП 1% : 13.28 [21:15:09]line НДС 12% : 159.33 [21:15:09]line Наличными: 1500.00 [21:15:09]line Безнал.: 0.00 [21:15:09]line Место: АЗС № 92 "Партнер Нефть" [21:15:09]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:15:09]line СНО: Общий режим [21:15:09]line Чек 247 17.02.2025 21:15 [21:15:09]line Смена: 644 ФФД: 1.0 [21:15:09]line ЗНМ: 0300000118 [21:15:09]line РНМ: 0000000000091857 [21:15:09]line Версия ККМ: 001 [21:15:09]line ФМ: 0000000000871826 [21:15:09]line ФД: 186660 [21:15:09]line ФПД: 88047604716418 [21:15:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T211508&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186660&fm=88047604716418&tin=02508201610067®Number=0000000000091857&sum=150000 [21:15:09]Connected sock=11 [21:15:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 56 4F 07 01 48 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 DC A6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 D9 02 00 35 04 06 00 50 14 2E 33 D3 82 6F 0C 7E A8 E3 09 A6 D3 [21:15:09]written 0, free lines is 4095 [21:15:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AA 91 47 00 FD C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 24 D9 02 00 F4 03 04 00 35 4D B3 67 B6 04 01 00 00 2D C8 E1 A1 F8 87 20 40 [21:15:10]CommunicateWithHost err = 0 [21:15:10]CheckOFDResponse [21:15:10]1017 (14) - 77093643461234 [21:15:10]1041 (16) - 0000000000871826 [21:15:10]1040 (4) - 186660 [21:15:10]1012 (4) - 17.02.2025 14:52 [21:15:10]1206 (1) - 0 [21:15:10]OFD Sender: Remove packet 186660 [21:15:10]ProducePacketName [21:15:10]name=ofd_packets/00186660 [21:15:10]NVStorageDeleteData [21:15:10]Write to MH i2c: 01 00 00 E6 05 EB [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 07 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 EF 0C ED [21:15:10]RasterBufferAndPrint [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]line [21:15:10]written 0, free lines is 3317 [21:15:10]MH_Cut [21:15:10]Write to MH i2c: D1 01 00 ED 05 01 C4 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 01 00 [21:15:10]MH_I2C_Read... [21:15:10]Read from MH i2c: D1 01 00 ED 05 00 C3 [21:15:10]Write to MH i2c: 01 00 00 EE 05 F3 [21:15:10]Write i2c OK [21:15:10]MH_I2C_Read... [21:15:10]OFD Sender: No OFD packet to send [21:15:11]*** Cut start [21:15:11]*** Partial cut [21:15:11]*** CUTSNS_PIN = 1 [21:15:11]*** CUTSNS_PIN = 0 [21:15:11]*** Brake cut motor [21:15:11]Read from MH i2c: 01 [21:15:11]MH_I2C_Read... [21:15:11]*** Stop cut motor [21:15:11]*** Cut end [21:15:11]Read from MH i2c: 01 07 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [21:15:11]process_action close_receipt done [21:15:11]requested_data is exist [21:15:11]produce_requested_data [21:15:11]requested_item fm.sn is exist - process it [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 11 00 00 [21:15:11]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:15:11]Read from MH i2c: E2 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 17 00 [21:15:11]MH_I2C_Read... [21:15:11]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C1 [21:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:15:11]wFMCommunicate OK [21:15:11]requested_item fd.num is exist - process it [21:15:11]SAM_PROTO_GetFieldsCounters [21:15:11]wFMCommunicate request_size=4 [21:15:11]MH_SAM_APDU [21:15:11]CAPDU: 80 13 00 00 [21:15:11]Write to MH i2c: E2 08 00 F0 05 80 13 00 00 00 00 00 00 71 [21:15:11]Write i2c OK [21:15:11]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 62 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 62 00 F0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [21:15:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 24 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:15:12]wFMCommunicate OK [21:15:12]SAM_PROTO_GetFieldsCounters done [21:15:12]requested_item shift.num is exist - process it [21:15:12]requested_item shift.opened is exist - process it [21:15:12]req_shift_opened [21:15:12]FM_GetShiftState [21:15:12]SAM_PROTO_GetShiftState [21:15:12]wFMCommunicate request_size=4 [21:15:12]MH_SAM_APDU [21:15:12]CAPDU: 80 13 01 00 [21:15:12]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [21:15:12]Write i2c OK [21:15:12]MH_I2C_Read... [21:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:15:12]Read from MH i2c: E2 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0E 00 [21:15:12]MH_I2C_Read... [21:15:12]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 97 [21:15:12]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:15:12]wFMCommunicate OK [21:15:12]SAM_PROTO_GetShiftState done [21:15:12]FM_GetShiftState done [21:15:12]req_shift_opened done [21:15:12]requested_item shift.open_date is exist - process it [21:15:12]req_shift_open_date [21:15:12]req_shift_open_date done [21:15:12]produce_requested_data done [21:15:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186660,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:15:12]process_action_free close_receipt [21:15:12]json_value_free [21:15:12]json_value_free done [21:15:12]process_json_proto returns [21:15:12]Send response to host [21:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186660,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:15:12]free response buf [21:15:12]execute_script done [21:15:12]execute_script returns [21:15:12]free content buf [21:15:12]Sock 7.Close socket [21:15:12]Sock 7.Thread stoped [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:21:59]accept exits with 9 [21:21:59]New connection [21:21:59]New thread 3067194724 created [21:21:59]Thread 3067051364 joined [21:21:59]Waiting for new connection... [21:21:59] Sock 9.Parse request [21:21:59]Sock 9.Check first char [21:21:59]Sock 9.First char is OK [21:21:59]request: POST /json_proto HTTP/1.0 [21:21:59]Method: POST [21:21:59]URL: /json_proto [21:21:59]Method is POST - this is cgi request [21:21:59]url: /json_proto [21:21:59]query_string will be loaded in cgi processing [21:21:59]execute_cgi json_proto POST (null) [21:21:59]execute_cgi path=json_proto method=POST [21:21:59]POST find Content-Length [21:21:59]Host: 172.17.46.131:8080 [21:21:59]Content-Length: 800 [21:21:59]Content-Type: application/json [21:21:59] [21:21:59]POST finish read [21:21:59]Found Content-Length = 800 [21:21:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:59]execute_script... [21:21:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-2", "price" : 72.60, "quantity" : 41.330, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:21:59]POST & json_proto [21:21:59]process_json_proto [21:21:59]json parsed OK: [21:21:59]protocol is kg_v1.0 [21:21:59]action value=close_receipt [21:21:59]process_action close_receipt [21:21:59]cmd_close_receipt [21:21:59]MH_GetDate [21:21:59]Write to MH i2c: F0 00 00 F2 05 E6 [21:21:59]Write i2c OK [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: F0 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: F0 09 00 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: F0 09 00 F2 05 00 78 A8 B3 67 7E 41 4F 65 9C [21:21:59]GetLastDocTimeStamp 1739826908 [21:21:59]current date 1739827320 [21:21:59]FM_GetShiftState [21:21:59]SAM_PROTO_GetShiftState [21:21:59]wFMCommunicate request_size=4 [21:21:59]MH_SAM_APDU [21:21:59]CAPDU: 80 13 01 00 [21:21:59]Write to MH i2c: E2 08 00 F3 05 80 13 01 00 00 00 00 00 75 [21:21:59]Write i2c OK [21:21:59]MH_I2C_Read... [21:21:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:21:59]Read from MH i2c: E2 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 0E 00 [21:21:59]MH_I2C_Read... [21:21:59]Read from MH i2c: E2 0E 00 F3 05 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 99 [21:21:59]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:21:59]wFMCommunicate OK [21:21:59]SAM_PROTO_GetShiftState done [21:21:59]FM_GetShiftState done [21:21:59]opened in 1739752571 [21:21:59]opened+sec_in_day 1739838971 [21:21:59]quantity*price = 300055 [21:21:59]sum+1 = 300057 [21:21:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.56 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 0.00 Безнал.: 3000.56 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 248 17.02.2025 21:22 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186661 ФПД: 277040343616709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186661&fm=277040343616709&tin=02508201610067®Number=0000000000091857&sum=300056 [21:22:00]StoreToDocumentArchive [21:22:00]shift 644 fd 186661 [21:22:00]save to /storage/0644/doc_00186661 [21:22:00]save last doc name /storage/0644/doc_00186661 to /storage/kkm_last_doc_name [21:22:00]save OK [21:22:00]Clear old archive folders... [21:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:22:00]tlvbuf is 005C9850 [21:22:00]SAM_PROTO_ClearQueue [21:22:00]wFMCommunicate request_size=4 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 09 00 00 [21:22:00]Write to MH i2c: E2 08 00 00 06 80 09 00 00 00 00 00 00 78 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 03 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 03 00 00 06 00 90 00 7A [21:22:00]RAPDU: 90 00 [21:22:00]wFMCommunicate OK [21:22:00]SAM_PROTO_ClearQueue done [21:22:00]KKMCreateOFDPacket [21:22:00]OFDProtocolAddRootSTLVToBuf [21:22:00]FM_MakeSignedData [21:22:00]FM_MakeSignedData [21:22:00]SAM_PROTO_SignData [21:22:00]wFMCommunicate request_size=4 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 0D 01 02 [21:22:00]Write to MH i2c: E2 08 00 01 06 80 0D 01 02 00 00 00 00 80 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:00]Read from MH i2c: E2 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 03 00 [21:22:00]MH_I2C_Read... [21:22:00]Read from MH i2c: E2 03 00 01 06 00 90 00 7B [21:22:00]RAPDU: 90 00 [21:22:00]wFMCommunicate OK [21:22:00]wFMCommunicate request_size=255 [21:22:00]MH_SAM_APDU [21:22:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 78 A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 D9 02 00 35 04 06 00 FB F7 7B 45 [21:22:00]Write to MH i2c: E2 02 01 02 06 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 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 78 A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 D9 02 00 35 04 06 00 FB F7 7B 45 00 00 41 [21:22:00]Write i2c OK [21:22:00]MH_I2C_Read... [21:22:01]OFD Sender: No OFD packet to send [21:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 02 06 00 90 00 7C [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=7 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 02 02 02 0C C5 [21:22:01]Write to MH i2c: E2 0A 00 03 06 80 0D 02 02 02 00 0C C5 00 00 58 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 03 00 03 06 00 90 00 7D [21:22:01]RAPDU: 90 00 [21:22:01]wFMCommunicate OK [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 0D 03 02 [21:22:01]Write to MH i2c: E2 08 00 04 06 80 0D 03 02 00 00 00 00 85 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 0B 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 0B 00 04 06 00 91 2E 23 7A 53 3F FE 8C 90 00 FE [21:22:01]RAPDU: 91 2E 23 7A 53 3F FE 8C 90 00 [21:22:01]wFMCommunicate OK [21:22:01]SAM_PROTO_SignData done [21:22:01]FM_MakeSignedData done [21:22:01]CreateOFDProtocolMessage [21:22:01]wFMCommunicate request_size=4 [21:22:01]MH_SAM_APDU [21:22:01]CAPDU: 80 11 00 00 [21:22:01]Write to MH i2c: E2 08 00 05 06 80 11 00 00 00 00 00 00 85 [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:01]Read from MH i2c: E2 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 17 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: E2 17 00 05 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D8 [21:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:22:01]wFMCommunicate OK [21:22:01]CreateOFDProtocolMessage done [21:22:01]OFDSenderStorePacket 186661 [21:22:01]StoreOFDPacket docnum=186661 [21:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 D7 04 01 4E EB 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 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 78 A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 D9 02 00 35 04 06 00 FB F7 7B 45 0C C5 91 2E 23 7A 53 3F FE 8C [21:22:01]CheckFolder [21:22:01]dirname=/storage/ofd_packets [21:22:01]CheckFolder done [21:22:01]ProducePacketName [21:22:01]name=ofd_packets/00186661 [21:22:01]NVStorageSaveData ofd_packets/00186661 [21:22:01]File name is /storage/ofd_packets/00186661 [21:22:01]Write 298 bytes [21:22:01]NVStorageSaveData done [21:22:01]OFDSenderStorePacket done [21:22:01]KKMCreateOFDPacket done [21:22:01]NVStorageSaveData kkm_last_timestamp [21:22:01]File name is /storage/kkm_last_timestamp [21:22:01]Write 4 bytes [21:22:01]NVStorageSaveData done [21:22:01]OFD Sender: Processing packet 186661 [packets to send 49, broken 48] [21:22:01]ProducePacketName [21:22:01]name=ofd_packets/00186661 [21:22:01]OFD Sender: To server: pG, [21:22:01]CommunicateWithHost lk.salyk.kg:30040 [21:22:01]ConnectInit lk.salyk.kg [21:22:01]ExternCall_PrintAddStr [21:22:01]wPrintStart [21:22:01]Write to MH i2c: 01 00 00 06 06 0C [21:22:01]Write i2c OK [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 07 00 [21:22:01]MH_I2C_Read... [21:22:01]Read from MH i2c: 01 07 00 06 06 00 00 00 00 00 FF 0F 21 [21:22:01]RasterBufferAndPrint [21:22:01]line Счет N : (1)411810 [21:22:01]line ИНН: 02508201610067 [21:22:01]line Контрольно-Кассовый Чек [21:22:01]line ПРОДАЖА [21:22:01]line ТРК (МРК, ГНК) : 11 [21:22:01]line Товар: 2710194210 [21:22:01]line ДТ-К-2 [21:22:01]line 41.330 * 72.60 [21:22:01]line = 3000.56 [21:22:01]line НДС 12% НСП 1% [21:22:01]line > о реализуемом товаре [21:22:01]line ИТОГО: 3000.56 [21:22:01]line НСП 1% : 26.55 [21:22:01]line НДС 12% : 318.64 [21:22:01]line Наличными: 0.00 [21:22:01]line Безнал.: 3000.56 [21:22:01]line Место: АЗС № 92 "Партнер Нефть" [21:22:01]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:22:01]line СНО: Общий режим [21:22:01]line Чек 248 17.02.2025 21:22 [21:22:01]line Смена: 644 ФФД: 1.0 [21:22:01]line ЗНМ: 0300000118 [21:22:01]line РНМ: 0000000000091857 [21:22:01]line Версия ККМ: 001 [21:22:01]line Платежная система: O! деньги [21:22:01]line ФМ: 0000000000871826 [21:22:01]line ФД: 186661 [21:22:01]line ФПД: 277040343616709 [21:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212200&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186661&fm=277040343616709&tin=02508201610067®Number=0000000000091857&sum=300056 [21:22:01]Connected sock=11 [21:22:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 43 D7 04 01 4E EB 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 32 FF 03 08 00 03 72 A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 18 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 78 A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 D9 02 00 35 04 06 00 FB F7 7B 45 0C C5 91 2E 23 7A 53 3F FE 8C [21:22:01]written 0, free lines is 4095 [21:22:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 94 AF 47 00 63 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 25 D9 02 00 F4 03 04 00 D1 4E B3 67 B6 04 01 00 00 7A FC E4 7B A7 E0 05 20 [21:22:01]CommunicateWithHost err = 0 [21:22:01]CheckOFDResponse [21:22:01]1017 (14) - 77093643461234 [21:22:01]1041 (16) - 0000000000871826 [21:22:01]1040 (4) - 186661 [21:22:01]1012 (4) - 17.02.2025 14:59 [21:22:01]1206 (1) - 0 [21:22:01]OFD Sender: Remove packet 186661 [21:22:01]ProducePacketName [21:22:01]name=ofd_packets/00186661 [21:22:01]NVStorageDeleteData [21:22:02]Write to MH i2c: 01 00 00 30 06 36 [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: 01 07 00 30 06 00 00 00 00 00 03 0D 4D [21:22:02]RasterBufferAndPrint [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]line [21:22:02]written 0, free lines is 3337 [21:22:02]MH_Cut [21:22:02]Write to MH i2c: D1 01 00 37 06 01 0F [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 [21:22:02]MH_I2C_Read... [21:22:02]Read from MH i2c: D1 01 00 37 06 00 0E [21:22:02]Write to MH i2c: 01 00 00 38 06 3E [21:22:02]Write i2c OK [21:22:02]MH_I2C_Read... [21:22:02]OFD Sender: No OFD packet to send [21:22:02]*** Cut start [21:22:02]*** Partial cut [21:22:02]*** CUTSNS_PIN = 1 [21:22:02]*** CUTSNS_PIN = 0 [21:22:03]*** Brake cut motor [21:22:03]Read from MH i2c: 01 [21:22:03]MH_I2C_Read... [21:22:03]*** Stop cut motor [21:22:03]*** Cut end [21:22:03]Read from MH i2c: 01 07 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [21:22:03]process_action close_receipt done [21:22:03]requested_data is exist [21:22:03]produce_requested_data [21:22:03]requested_item fm.sn is exist - process it [21:22:03]wFMCommunicate request_size=4 [21:22:03]MH_SAM_APDU [21:22:03]CAPDU: 80 11 00 00 [21:22:03]Write to MH i2c: E2 08 00 39 06 80 11 00 00 00 00 00 00 B9 [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:03]Read from MH i2c: E2 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 17 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 17 00 39 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0C [21:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:22:03]wFMCommunicate OK [21:22:03]requested_item fd.num is exist - process it [21:22:03]SAM_PROTO_GetFieldsCounters [21:22:03]wFMCommunicate request_size=4 [21:22:03]MH_SAM_APDU [21:22:03]CAPDU: 80 13 00 00 [21:22:03]Write to MH i2c: E2 08 00 3A 06 80 13 00 00 00 00 00 00 BC [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:03]Read from MH i2c: E2 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 62 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 62 00 3A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [21:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 25 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:03]wFMCommunicate OK [21:22:03]SAM_PROTO_GetFieldsCounters done [21:22:03]requested_item shift.num is exist - process it [21:22:03]requested_item shift.opened is exist - process it [21:22:03]req_shift_opened [21:22:03]FM_GetShiftState [21:22:03]SAM_PROTO_GetShiftState [21:22:03]wFMCommunicate request_size=4 [21:22:03]MH_SAM_APDU [21:22:03]CAPDU: 80 13 01 00 [21:22:03]Write to MH i2c: E2 08 00 3B 06 80 13 01 00 00 00 00 00 BE [21:22:03]Write i2c OK [21:22:03]MH_I2C_Read... [21:22:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:03]Read from MH i2c: E2 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 0E 00 [21:22:03]MH_I2C_Read... [21:22:03]Read from MH i2c: E2 0E 00 3B 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E2 [21:22:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:22:03]wFMCommunicate OK [21:22:03]SAM_PROTO_GetShiftState done [21:22:03]FM_GetShiftState done [21:22:03]req_shift_opened done [21:22:03]requested_item shift.open_date is exist - process it [21:22:03]req_shift_open_date [21:22:03]req_shift_open_date done [21:22:03]produce_requested_data done [21:22:03]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186661,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:22:03]process_action_free close_receipt [21:22:03]json_value_free [21:22:03]json_value_free done [21:22:03]process_json_proto returns [21:22:03]Send response to host [21:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186661,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:22:03]free response buf [21:22:03]execute_script done [21:22:03]execute_script returns [21:22:03]free content buf [21:22:03]Sock 9.Close socket [21:22:03]Sock 9.Thread stoped [21:22:04]accept exits with 7 [21:22:04]New connection [21:22:04]New thread 3067051364 created [21:22:04]Thread 3067194724 joined [21:22:04]Waiting for new connection... [21:22:04] Sock 7.Parse request [21:22:04]Sock 7.Check first char [21:22:04]Sock 7.First char is OK [21:22:04]request: POST /json_proto HTTP/1.0 [21:22:04]Method: POST [21:22:04]URL: /json_proto [21:22:04]Method is POST - this is cgi request [21:22:04]url: /json_proto [21:22:04]query_string will be loaded in cgi processing [21:22:04]execute_cgi json_proto POST (null) [21:22:04]execute_cgi path=json_proto method=POST [21:22:04]POST find Content-Length [21:22:04]Host: 172.17.46.131:8080 [21:22:04]Content-Length: 677 [21:22:04]Content-Type: application/json [21:22:04] [21:22:04]POST finish read [21:22:04]Found Content-Length = 677 [21:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:04]execute_script... [21:22:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:04]POST & json_proto [21:22:04]process_json_proto [21:22:04]json parsed OK: [21:22:04]protocol is kg_v1.0 [21:22:04]action value=close_receipt [21:22:04]process_action close_receipt [21:22:04]cmd_close_receipt [21:22:04]MH_GetDate [21:22:04]Write to MH i2c: F0 00 00 3C 06 31 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 09 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: F0 09 00 3C 06 00 7C A8 B3 67 7E 41 4F 65 EB [21:22:04]GetLastDocTimeStamp 1739827320 [21:22:04]current date 1739827324 [21:22:04]FM_GetShiftState [21:22:04]SAM_PROTO_GetShiftState [21:22:04]wFMCommunicate request_size=4 [21:22:04]MH_SAM_APDU [21:22:04]CAPDU: 80 13 01 00 [21:22:04]Write to MH i2c: E2 08 00 3D 06 80 13 01 00 00 00 00 00 C0 [21:22:04]Write i2c OK [21:22:04]MH_I2C_Read... [21:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:04]Read from MH i2c: E2 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 [21:22:04]MH_I2C_Read... [21:22:04]Read from MH i2c: E2 0E 00 3D 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 E4 [21:22:04]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:22:04]wFMCommunicate OK [21:22:04]SAM_PROTO_GetShiftState done [21:22:04]FM_GetShiftState done [21:22:04]opened in 1739752571 [21:22:04]opened+sec_in_day 1739838971 [21:22:04]quantity*price = 50011 [21:22:04]sum+1 = 50013 [21:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 249 17.02.2025 21:22 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186662 ФПД: 254614479531433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186662&fm=254614479531433&tin=02508201610067®Number=0000000000091857&sum=50000 [21:22:05]StoreToDocumentArchive [21:22:05]shift 644 fd 186662 [21:22:05]save to /storage/0644/doc_00186662 [21:22:05]save last doc name /storage/0644/doc_00186662 to /storage/kkm_last_doc_name [21:22:05]save OK [21:22:05]Clear old archive folders... [21:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:05]tlvbuf is 00601C10 [21:22:05]SAM_PROTO_ClearQueue [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 09 00 00 [21:22:05]Write to MH i2c: E2 08 00 4A 06 80 09 00 00 00 00 00 00 C2 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 4A 06 00 90 00 C4 [21:22:05]RAPDU: 90 00 [21:22:05]wFMCommunicate OK [21:22:05]SAM_PROTO_ClearQueue done [21:22:05]KKMCreateOFDPacket [21:22:05]OFDProtocolAddRootSTLVToBuf [21:22:05]FM_MakeSignedData [21:22:05]FM_MakeSignedData [21:22:05]SAM_PROTO_SignData [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 0D 01 02 [21:22:05]Write to MH i2c: E2 08 00 4B 06 80 0D 01 02 00 00 00 00 CA [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 4B 06 00 90 00 C5 [21:22:05]RAPDU: 90 00 [21:22:05]wFMCommunicate OK [21:22:05]wFMCommunicate request_size=255 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7C A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 D9 02 00 35 04 06 00 E7 [21:22:05]Write to MH i2c: E2 02 01 4C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7C A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 D9 02 00 35 04 06 00 E7 00 00 08 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 4C 06 00 90 00 C6 [21:22:05]RAPDU: 90 00 [21:22:05]wFMCommunicate OK [21:22:05]wFMCommunicate request_size=10 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 0D 02 02 05 92 0D 9B 6D A9 [21:22:05]Write to MH i2c: E2 0D 00 4D 06 80 0D 02 02 05 00 92 0D 9B 6D A9 00 00 27 [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 03 00 4D 06 00 90 00 C7 [21:22:05]RAPDU: 90 00 [21:22:05]wFMCommunicate OK [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 0D 03 02 [21:22:05]Write to MH i2c: E2 08 00 4E 06 80 0D 03 02 00 00 00 00 CF [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:05]Read from MH i2c: E2 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0B 00 [21:22:05]MH_I2C_Read... [21:22:05]Read from MH i2c: E2 0B 00 4E 06 00 90 1A 03 43 CF 12 CA BC 90 00 27 [21:22:05]RAPDU: 90 1A 03 43 CF 12 CA BC 90 00 [21:22:05]wFMCommunicate OK [21:22:05]SAM_PROTO_SignData done [21:22:05]FM_MakeSignedData done [21:22:05]CreateOFDProtocolMessage [21:22:05]wFMCommunicate request_size=4 [21:22:05]MH_SAM_APDU [21:22:05]CAPDU: 80 11 00 00 [21:22:05]Write to MH i2c: E2 08 00 4F 06 80 11 00 00 00 00 00 00 CF [21:22:05]Write i2c OK [21:22:05]MH_I2C_Read... [21:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:06]Read from MH i2c: E2 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 17 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: E2 17 00 4F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 22 [21:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:22:06]wFMCommunicate OK [21:22:06]CreateOFDProtocolMessage done [21:22:06]OFDSenderStorePacket 186662 [21:22:06]StoreOFDPacket docnum=186662 [21:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 5E 07 01 CB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7C A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 D9 02 00 35 04 06 00 E7 92 0D 9B 6D A9 90 1A 03 43 CF 12 CA BC [21:22:06]CheckFolder [21:22:06]dirname=/storage/ofd_packets [21:22:06]CheckFolder done [21:22:06]ProducePacketName [21:22:06]name=ofd_packets/00186662 [21:22:06]NVStorageSaveData ofd_packets/00186662 [21:22:06]File name is /storage/ofd_packets/00186662 [21:22:06]Write 301 bytes [21:22:06]NVStorageSaveData done [21:22:06]OFDSenderStorePacket done [21:22:06]KKMCreateOFDPacket done [21:22:06]NVStorageSaveData kkm_last_timestamp [21:22:06]File name is /storage/kkm_last_timestamp [21:22:06]Write 4 bytes [21:22:06]NVStorageSaveData done [21:22:06]ExternCall_PrintAddStr [21:22:06]wPrintStart [21:22:06]Write to MH i2c: 01 00 00 50 06 56 [21:22:06]OFD Sender: Processing packet 186662 [packets to send 49, broken 48] [21:22:06]ProducePacketName [21:22:06]name=ofd_packets/00186662 [21:22:06]OFD Sender: To server: pG, [21:22:06]CommunicateWithHost lk.salyk.kg:30040 [21:22:06]ConnectInit lk.salyk.kg [21:22:06]Write i2c OK [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 [21:22:06]MH_I2C_Read... [21:22:06]Read from MH i2c: 01 07 00 50 06 00 00 00 00 00 FF 0F 6B [21:22:06]RasterBufferAndPrint [21:22:06]line Счет N : (1)411811 [21:22:06]line ИНН: 02508201610067 [21:22:06]line Контрольно-Кассовый Чек [21:22:06]line ПРОДАЖА [21:22:06]line ТРК (МРК, ГНК) : 22 [21:22:06]line Товар: 2710124130 [21:22:06]line Аи-92-К-2 [21:22:06]line 7.790 * 64.20 [21:22:06]line = 500.12 [21:22:06]line НДС 12% НСП 1% [21:22:06]line > о реализуемом товаре [21:22:06]line ОКРУГЛЕНИЕ: -0.12 [21:22:06]line ИТОГО: 500.00 [21:22:06]line Внесено: 500.00 [21:22:06]line СДАЧА: 0.00 [21:22:06]line НСП 1% : 4.43 [21:22:06]line НДС 12% : 53.11 [21:22:06]line Наличными: 500.00 [21:22:06]line Безнал.: 0.00 [21:22:06]line Место: АЗС № 92 "Партнер Нефть" [21:22:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:22:06]line СНО: Общий режим [21:22:06]line Чек 249 17.02.2025 21:22 [21:22:06]line Смена: 644 ФФД: 1.0 [21:22:06]line ЗНМ: 0300000118 [21:22:06]line РНМ: 0000000000091857 [21:22:06]line Версия ККМ: 001 [21:22:06]line ФМ: 0000000000871826 [21:22:06]line ФД: 186662 [21:22:06]line ФПД: 254614479531433 [21:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212204&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186662&fm=254614479531433&tin=02508201610067®Number=0000000000091857&sum=50000 [21:22:06]Connected sock=10 [21:22:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 87 5E 07 01 CB 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 written 0, free lines is 4095 [21:22:06]00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 7C A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 D9 02 00 35 04 06 00 E7 92 0D 9B 6D A9 90 1A 03 43 CF 12 CA BC [21:22:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E1 9E 47 00 FA FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 26 D9 02 00 F4 03 04 00 D6 4E B3 67 B6 04 01 00 00 D9 A9 83 F1 3E B7 13 45 [21:22:06]CommunicateWithHost err = 0 [21:22:06]CheckOFDResponse [21:22:06]1017 (14) - 77093643461234 [21:22:06]1041 (16) - 0000000000871826 [21:22:06]1040 (4) - 186662 [21:22:06]1012 (4) - 17.02.2025 14:59 [21:22:06]1206 (1) - 0 [21:22:06]OFD Sender: Remove packet 186662 [21:22:06]ProducePacketName [21:22:06]name=ofd_packets/00186662 [21:22:06]NVStorageDeleteData [21:22:07]Write to MH i2c: 01 00 00 7B 06 81 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: 01 07 00 7B 06 00 00 00 00 00 F4 0C 88 [21:22:07]RasterBufferAndPrint [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]line [21:22:07]written 0, free lines is 3329 [21:22:07]MH_Cut [21:22:07]Write to MH i2c: D1 01 00 82 06 01 5A [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 01 00 [21:22:07]MH_I2C_Read... [21:22:07]Read from MH i2c: D1 01 00 82 06 00 59 [21:22:07]Write to MH i2c: 01 00 00 83 06 89 [21:22:07]Write i2c OK [21:22:07]MH_I2C_Read... [21:22:07]OFD Sender: No OFD packet to send [21:22:07]*** Cut start [21:22:07]*** Partial cut [21:22:07]*** CUTSNS_PIN = 1 [21:22:07]*** CUTSNS_PIN = 0 [21:22:08]*** Brake cut motor [21:22:08]Read from MH i2c: 01 [21:22:08]MH_I2C_Read... [21:22:08]*** Stop cut motor [21:22:08]*** Cut end [21:22:08]Read from MH i2c: 01 07 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: 01 07 00 83 06 00 00 00 00 00 FF 0F 9E [21:22:08]process_action close_receipt done [21:22:08]requested_data is exist [21:22:08]produce_requested_data [21:22:08]requested_item fm.sn is exist - process it [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 11 00 00 [21:22:08]Write to MH i2c: E2 08 00 84 06 80 11 00 00 00 00 00 00 04 [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 17 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 17 00 84 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 57 [21:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:22:08]wFMCommunicate OK [21:22:08]requested_item fd.num is exist - process it [21:22:08]SAM_PROTO_GetFieldsCounters [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 13 00 00 [21:22:08]Write to MH i2c: E2 08 00 85 06 80 13 00 00 00 00 00 00 07 [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 62 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 62 00 85 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [21:22:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 26 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:08]wFMCommunicate OK [21:22:08]SAM_PROTO_GetFieldsCounters done [21:22:08]requested_item shift.num is exist - process it [21:22:08]requested_item shift.opened is exist - process it [21:22:08]req_shift_opened [21:22:08]FM_GetShiftState [21:22:08]SAM_PROTO_GetShiftState [21:22:08]wFMCommunicate request_size=4 [21:22:08]MH_SAM_APDU [21:22:08]CAPDU: 80 13 01 00 [21:22:08]Write to MH i2c: E2 08 00 86 06 80 13 01 00 00 00 00 00 09 [21:22:08]Write i2c OK [21:22:08]MH_I2C_Read... [21:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:08]Read from MH i2c: E2 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 0E 00 [21:22:08]MH_I2C_Read... [21:22:08]Read from MH i2c: E2 0E 00 86 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2D [21:22:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:22:08]wFMCommunicate OK [21:22:08]SAM_PROTO_GetShiftState done [21:22:08]FM_GetShiftState done [21:22:08]req_shift_opened done [21:22:08]requested_item shift.open_date is exist - process it [21:22:08]req_shift_open_date [21:22:08]req_shift_open_date done [21:22:08]produce_requested_data done [21:22:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186662,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:22:08]process_action_free close_receipt [21:22:08]json_value_free [21:22:08]json_value_free done [21:22:08]process_json_proto returns [21:22:08]Send response to host [21:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186662,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:22:08]free response buf [21:22:08]execute_script done [21:22:08]execute_script returns [21:22:08]free content buf [21:22:08]Sock 7.Close socket [21:22:08]Sock 7.Thread stoped [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:56]accept exits with 9 [21:23:56]New connection [21:23:56]New thread 3067194724 created [21:23:56]Thread 3067051364 joined [21:23:56]Waiting for new connection... [21:23:56] Sock 9.Parse request [21:23:56]Sock 9.Check first char [21:23:56]Sock 9.First char is OK [21:23:56]request: POST /json_proto HTTP/1.0 [21:23:56]Method: POST [21:23:56]URL: /json_proto [21:23:56]Method is POST - this is cgi request [21:23:56]url: /json_proto [21:23:56]query_string will be loaded in cgi processing [21:23:56]execute_cgi json_proto POST (null) [21:23:56]execute_cgi path=json_proto method=POST [21:23:56]POST find Content-Length [21:23:56]Host: 172.17.46.131:8080 [21:23:56]Content-Length: 677 [21:23:56]Content-Type: application/json [21:23:56] [21:23:56]POST finish read [21:23:56]Found Content-Length = 677 [21:23:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:56]execute_script... [21:23: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)411812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:23:56]POST & json_proto [21:23:56]process_json_proto [21:23:56]json parsed OK: [21:23:56]protocol is kg_v1.0 [21:23:56]action value=close_receipt [21:23:56]process_action close_receipt [21:23:56]cmd_close_receipt [21:23:56]MH_GetDate [21:23:56]Write to MH i2c: F0 00 00 87 06 7C [21:23:56]Write i2c OK [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: F0 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: F0 09 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: F0 09 00 87 06 00 ED A8 B3 67 7E 41 4F 65 A7 [21:23:56]GetLastDocTimeStamp 1739827324 [21:23:56]current date 1739827437 [21:23:56]FM_GetShiftState [21:23:56]SAM_PROTO_GetShiftState [21:23:56]wFMCommunicate request_size=4 [21:23:56]MH_SAM_APDU [21:23:56]CAPDU: 80 13 01 00 [21:23:56]Write to MH i2c: E2 08 00 88 06 80 13 01 00 00 00 00 00 0B [21:23:56]Write i2c OK [21:23:56]MH_I2C_Read... [21:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:23:56]Read from MH i2c: E2 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 0E 00 [21:23:56]MH_I2C_Read... [21:23:56]Read from MH i2c: E2 0E 00 88 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 2F [21:23:56]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:23:56]wFMCommunicate OK [21:23:56]SAM_PROTO_GetShiftState done [21:23:56]FM_GetShiftState done [21:23:56]opened in 1739752571 [21:23:56]opened+sec_in_day 1739838971 [21:23:56]quantity*price = 50011 [21:23:56]sum+1 = 50013 [21:23:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 250 17.02.2025 21:23 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186663 ФПД: 21443822182699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212357&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186663&fm=21443822182699&tin=02508201610067®Number=0000000000091857&sum=50000 [21:23:57]StoreToDocumentArchive [21:23:57]shift 644 fd 186663 [21:23:57]save to /storage/0644/doc_00186663 [21:23:57]save last doc name /storage/0644/doc_00186663 to /storage/kkm_last_doc_name [21:23:57]save OK [21:23:57]Clear old archive folders... [21:23:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:23:57]tlvbuf is 005E0980 [21:23:57]SAM_PROTO_ClearQueue [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 09 00 00 [21:23:57]Write to MH i2c: E2 08 00 95 06 80 09 00 00 00 00 00 00 0D [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 95 06 00 90 00 0F [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]SAM_PROTO_ClearQueue done [21:23:57]KKMCreateOFDPacket [21:23:57]OFDProtocolAddRootSTLVToBuf [21:23:57]FM_MakeSignedData [21:23:57]FM_MakeSignedData [21:23:57]SAM_PROTO_SignData [21:23:57]wFMCommunicate request_size=4 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 01 02 [21:23:57]Write to MH i2c: E2 08 00 96 06 80 0D 01 02 00 00 00 00 15 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 96 06 00 90 00 10 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]wFMCommunicate request_size=255 [21:23:57]MH_SAM_APDU [21:23: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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 ED A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 D9 02 00 35 04 06 00 13 [21:23:57]Write to MH i2c: E2 02 01 97 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 ED A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 D9 02 00 35 04 06 00 13 00 00 F2 [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:57]Read from MH i2c: E2 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 [21:23:57]MH_I2C_Read... [21:23:57]Read from MH i2c: E2 03 00 97 06 00 90 00 11 [21:23:57]RAPDU: 90 00 [21:23:57]wFMCommunicate OK [21:23:57]wFMCommunicate request_size=10 [21:23:57]MH_SAM_APDU [21:23:57]CAPDU: 80 0D 02 02 05 80 C7 67 61 2B [21:23:57]Write to MH i2c: E2 0D 00 98 06 80 0D 02 02 05 00 80 C7 67 61 2B 00 00 5C [21:23:57]Write i2c OK [21:23:57]MH_I2C_Read... [21:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:23:58]Read from MH i2c: E2 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 03 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [21:23:58]RAPDU: 90 00 [21:23:58]wFMCommunicate OK [21:23:58]wFMCommunicate request_size=4 [21:23:58]MH_SAM_APDU [21:23:58]CAPDU: 80 0D 03 02 [21:23:58]Write to MH i2c: E2 08 00 99 06 80 0D 03 02 00 00 00 00 1A [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:23:58]Read from MH i2c: E2 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 0B 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 0B 00 99 06 00 C2 89 D5 D1 02 21 8B 25 90 00 DF [21:23:58]RAPDU: C2 89 D5 D1 02 21 8B 25 90 00 [21:23:58]wFMCommunicate OK [21:23:58]SAM_PROTO_SignData done [21:23:58]FM_MakeSignedData done [21:23:58]CreateOFDProtocolMessage [21:23:58]wFMCommunicate request_size=4 [21:23:58]MH_SAM_APDU [21:23:58]CAPDU: 80 11 00 00 [21:23:58]Write to MH i2c: E2 08 00 9A 06 80 11 00 00 00 00 00 00 1A [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:23:58]Read from MH i2c: E2 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 17 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: E2 17 00 9A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 6D [21:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:23:58]wFMCommunicate OK [21:23:58]CreateOFDProtocolMessage done [21:23:58]OFDSenderStorePacket 186663 [21:23:58]StoreOFDPacket docnum=186663 [21:23:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 45 07 01 3D F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 ED A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 D9 02 00 35 04 06 00 13 80 C7 67 61 2B C2 89 D5 D1 02 21 8B 25 [21:23:58]CheckFolder [21:23:58]dirname=/storage/ofd_packets [21:23:58]CheckFolder done [21:23:58]ProducePacketName [21:23:58]name=ofd_packets/00186663 [21:23:58]NVStorageSaveData ofd_packets/00186663 [21:23:58]File name is /storage/ofd_packets/00186663 [21:23:58]Write 301 bytes [21:23:58]NVStorageSaveData done [21:23:58]OFDSenderStorePacket done [21:23:58]KKMCreateOFDPacket done [21:23:58]NVStorageSaveData kkm_last_timestamp [21:23:58]File name is /storage/kkm_last_timestamp [21:23:58]Write 4 bytes [21:23:58]NVStorageSaveData done [21:23:58]ExternCall_PrintAddStr [21:23:58]wPrintStart [21:23:58]Write to MH i2c: 01 00 00 9B 06 A1 [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 9B 06 00 00 00 00 00 FF 0F B6 [21:23:58]RasterBufferAndPrint [21:23:58]line Счет N : (1)411812 [21:23:58]line ИНН: 02508201610067 [21:23:58]line Контрольно-Кассовый Чек [21:23:58]line ПРОДАЖА [21:23:58]line ТРК (МРК, ГНК) : 32 [21:23:58]line Товар: 2710124130 [21:23:58]line Аи-92-К-2 [21:23:58]line 7.790 * 64.20 [21:23:58]line = 500.12 [21:23:58]line НДС 12% НСП 1% [21:23:58]line > о реализуемом товаре [21:23:58]line ОКРУГЛЕНИЕ: -0.12 [21:23:58]line ИТОГО: 500.00 [21:23:58]line Внесено: 500.00 [21:23:58]line СДАЧА: 0.00 [21:23:58]line НСП 1% : 4.43 [21:23:58]line НДС 12% : 53.11 [21:23:58]line Наличными: 500.00 [21:23:58]line Безнал.: 0.00 [21:23:58]line Место: АЗС № 92 "Партнер Нефть" [21:23:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:23:58]line СНО: Общий режим [21:23:58]line Чек 250 17.02.2025 21:23 [21:23:58]line Смена: 644 ФФД: 1.0 [21:23:58]line ЗНМ: 0300000118 [21:23:58]line РНМ: 0000000000091857 [21:23:58]line Версия ККМ: 001 [21:23:58]line ФМ: 0000000000871826 [21:23:58]line ФД: 186663 [21:23:58]line ФПД: 21443822182699 [21:23:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212357&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186663&fm=21443822182699&tin=02508201610067®Number=0000000000091857&sum=50000 [21:23:58]OFD Sender: Processing packet 186663 [packets to send 49, broken 48] [21:23:58]ProducePacketName [21:23:58]name=ofd_packets/00186663 [21:23:58]OFD Sender: To server: pG, [21:23:58]CommunicateWithHost lk.salyk.kg:30040 [21:23:58]ConnectInit lk.salyk.kg [21:23:58]written 0, free lines is 4095 [21:23:58]Connected sock=10 [21:23:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 1E 45 07 01 3D F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 ED A8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 D9 02 00 35 04 06 00 13 80 C7 67 61 2B C2 89 D5 D1 02 21 8B 25 [21:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B 29 47 00 F1 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 27 D9 02 00 F4 03 04 00 46 4F B3 67 B6 04 01 00 00 B1 AB 87 B5 71 85 3F AB [21:23:58]CommunicateWithHost err = 0 [21:23:58]CheckOFDResponse [21:23:58]1017 (14) - 77093643461234 [21:23:58]1041 (16) - 0000000000871826 [21:23:58]1040 (4) - 186663 [21:23:58]1012 (4) - 17.02.2025 15:01 [21:23:58]1206 (1) - 0 [21:23:58]OFD Sender: Remove packet 186663 [21:23:58]ProducePacketName [21:23:58]name=ofd_packets/00186663 [21:23:58]NVStorageDeleteData [21:23:58]Write to MH i2c: 01 00 00 C6 06 CC [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 EB 0C CA [21:23:58]RasterBufferAndPrint [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]line [21:23:58]written 0, free lines is 3313 [21:23:58]MH_Cut [21:23:58]Write to MH i2c: D1 01 00 CD 06 01 A5 [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 01 00 [21:23:58]MH_I2C_Read... [21:23:58]Read from MH i2c: D1 01 00 CD 06 00 A4 [21:23:58]Write to MH i2c: 01 00 00 CE 06 D4 [21:23:58]Write i2c OK [21:23:58]MH_I2C_Read... [21:23:59]OFD Sender: No OFD packet to send [21:23:59]*** Cut start [21:23:59]*** Partial cut [21:23:59]*** CUTSNS_PIN = 1 [21:23:59]*** CUTSNS_PIN = 0 [21:23:59]*** Brake cut motor [21:24:00]Read from MH i2c: 01 [21:24:00]MH_I2C_Read... [21:24:00]*** Stop cut motor [21:24:00]*** Cut end [21:24:00]Read from MH i2c: 01 07 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: 01 07 00 CE 06 00 00 00 00 00 FF 0F E9 [21:24:00]process_action close_receipt done [21:24:00]requested_data is exist [21:24:00]produce_requested_data [21:24:00]requested_item fm.sn is exist - process it [21:24:00]wFMCommunicate request_size=4 [21:24:00]MH_SAM_APDU [21:24:00]CAPDU: 80 11 00 00 [21:24:00]Write to MH i2c: E2 08 00 CF 06 80 11 00 00 00 00 00 00 4F [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:00]Read from MH i2c: E2 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 17 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 17 00 CF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A2 [21:24:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:24:00]wFMCommunicate OK [21:24:00]requested_item fd.num is exist - process it [21:24:00]SAM_PROTO_GetFieldsCounters [21:24:00]wFMCommunicate request_size=4 [21:24:00]MH_SAM_APDU [21:24:00]CAPDU: 80 13 00 00 [21:24:00]Write to MH i2c: E2 08 00 D0 06 80 13 00 00 00 00 00 00 52 [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:00]Read from MH i2c: E2 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 62 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 62 00 D0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [21:24:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 27 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:00]wFMCommunicate OK [21:24:00]SAM_PROTO_GetFieldsCounters done [21:24:00]requested_item shift.num is exist - process it [21:24:00]requested_item shift.opened is exist - process it [21:24:00]req_shift_opened [21:24:00]FM_GetShiftState [21:24:00]SAM_PROTO_GetShiftState [21:24:00]wFMCommunicate request_size=4 [21:24:00]MH_SAM_APDU [21:24:00]CAPDU: 80 13 01 00 [21:24:00]Write to MH i2c: E2 08 00 D1 06 80 13 01 00 00 00 00 00 54 [21:24:00]Write i2c OK [21:24:00]MH_I2C_Read... [21:24:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:00]Read from MH i2c: E2 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 0E 00 [21:24:00]MH_I2C_Read... [21:24:00]Read from MH i2c: E2 0E 00 D1 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 78 [21:24:00]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:24:00]wFMCommunicate OK [21:24:00]SAM_PROTO_GetShiftState done [21:24:00]FM_GetShiftState done [21:24:00]req_shift_opened done [21:24:00]requested_item shift.open_date is exist - process it [21:24:00]req_shift_open_date [21:24:00]req_shift_open_date done [21:24:00]produce_requested_data done [21:24:00]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186663,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:24:00]process_action_free close_receipt [21:24:00]json_value_free [21:24:00]json_value_free done [21:24:00]process_json_proto returns [21:24:00]Send response to host [21:24:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186663,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:24:00]free response buf [21:24:00]execute_script done [21:24:00]execute_script returns [21:24:00]free content buf [21:24:00]Sock 9.Close socket [21:24:00]Sock 9.Thread stoped [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:14]OFD Sender: No OFD packet to send [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:53]accept exits with 7 [21:28:53]New connection [21:28:53]New thread 3067051364 created [21:28:53]Thread 3067194724 joined [21:28:53]Waiting for new connection... [21:28:53] Sock 7.Parse request [21:28:53]Sock 7.Check first char [21:28:53]Sock 7.First char is OK [21:28:53]request: POST /json_proto HTTP/1.0 [21:28:53]Method: POST [21:28:53]URL: /json_proto [21:28:53]Method is POST - this is cgi request [21:28:53]url: /json_proto [21:28:53]query_string will be loaded in cgi processing [21:28:53]execute_cgi json_proto POST (null) [21:28:53]execute_cgi path=json_proto method=POST [21:28:53]POST find Content-Length [21:28:53]Host: 172.17.46.131:8080 [21:28:53]Content-Length: 808 [21:28:53]Content-Type: application/json [21:28:53] [21:28:53]POST finish read [21:28:53]Found Content-Length = 808 [21:28:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997512.4997513", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:53]execute_script... [21:28:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4997512.4997513", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:53]POST & json_proto [21:28:53]process_json_proto [21:28:53]json parsed OK: [21:28:53]protocol is kg_v1.0 [21:28:53]action value=close_receipt [21:28:53]process_action close_receipt [21:28:53]cmd_close_receipt [21:28:53]MH_GetDate [21:28:53]Write to MH i2c: F0 00 00 D2 06 C7 [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: F0 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: F0 09 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: F0 09 00 D2 06 00 15 AA B3 67 7E 41 4F 65 1C [21:28:53]GetLastDocTimeStamp 1739827437 [21:28:53]current date 1739827733 [21:28:53]FM_GetShiftState [21:28:53]SAM_PROTO_GetShiftState [21:28:53]wFMCommunicate request_size=4 [21:28:53]MH_SAM_APDU [21:28:53]CAPDU: 80 13 01 00 [21:28:53]Write to MH i2c: E2 08 00 D3 06 80 13 01 00 00 00 00 00 56 [21:28:53]Write i2c OK [21:28:53]MH_I2C_Read... [21:28:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:53]Read from MH i2c: E2 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 0E 00 [21:28:53]MH_I2C_Read... [21:28:53]Read from MH i2c: E2 0E 00 D3 06 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 7A [21:28:53]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:28:53]wFMCommunicate OK [21:28:53]SAM_PROTO_GetShiftState done [21:28:53]FM_GetShiftState done [21:28:53]opened in 1739752571 [21:28:53]opened+sec_in_day 1739838971 [21:28:53]quantity*price = 0 [21:28:53]sum+1 = 1 [21:28:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 251 17.02.2025 21:28 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Талоны: Топливные Талоны 4997512.4997513 ФМ: 0000000000871826 ФД: 186664 ФПД: 235629688013940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186664&fm=235629688013940&tin=02508201610067®Number=0000000000091857&sum=0 [21:28:54]StoreToDocumentArchive [21:28:54]shift 644 fd 186664 [21:28:54]save to /storage/0644/doc_00186664 [21:28:54]save last doc name /storage/0644/doc_00186664 to /storage/kkm_last_doc_name [21:28:54]save OK [21:28:54]Clear old archive folders... [21:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:28:54]tlvbuf is 005D2D70 [21:28:54]SAM_PROTO_ClearQueue [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 09 00 00 [21:28:54]Write to MH i2c: E2 08 00 E0 06 80 09 00 00 00 00 00 00 58 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 E0 06 00 90 00 5A [21:28:54]RAPDU: 90 00 [21:28:54]wFMCommunicate OK [21:28:54]SAM_PROTO_ClearQueue done [21:28:54]KKMCreateOFDPacket [21:28:54]OFDProtocolAddRootSTLVToBuf [21:28:54]FM_MakeSignedData [21:28:54]FM_MakeSignedData [21:28:54]SAM_PROTO_SignData [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 0D 01 02 [21:28:54]Write to MH i2c: E2 08 00 E1 06 80 0D 01 02 00 00 00 00 60 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 E1 06 00 90 00 5B [21:28:54]RAPDU: 90 00 [21:28:54]wFMCommunicate OK [21:28:54]wFMCommunicate request_size=255 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 AA B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 D9 02 00 35 04 06 00 D6 [21:28:54]Write to MH i2c: E2 02 01 E2 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 AA B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 D9 02 00 35 04 06 00 D6 00 00 0D [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]OFD Sender: No OFD packet to send [21:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [21:28:54]RAPDU: 90 00 [21:28:54]wFMCommunicate OK [21:28:54]wFMCommunicate request_size=10 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 0D 02 02 05 4D CF DA 44 74 [21:28:54]Write to MH i2c: E2 0D 00 E3 06 80 0D 02 02 05 00 4D CF DA 44 74 00 00 1B [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [21:28:54]RAPDU: 90 00 [21:28:54]wFMCommunicate OK [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 0D 03 02 [21:28:54]Write to MH i2c: E2 08 00 E4 06 80 0D 03 02 00 00 00 00 65 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 0B 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 0B 00 E4 06 00 64 9C F1 89 3B 9C 96 0D 90 00 5A [21:28:54]RAPDU: 64 9C F1 89 3B 9C 96 0D 90 00 [21:28:54]wFMCommunicate OK [21:28:54]SAM_PROTO_SignData done [21:28:54]FM_MakeSignedData done [21:28:54]CreateOFDProtocolMessage [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 11 00 00 [21:28:54]Write to MH i2c: E2 08 00 E5 06 80 11 00 00 00 00 00 00 65 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 17 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 17 00 E5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B8 [21:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:28:54]wFMCommunicate OK [21:28:54]CreateOFDProtocolMessage done [21:28:54]OFDSenderStorePacket 186664 [21:28:54]StoreOFDPacket docnum=186664 [21:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 6E 07 01 2D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 AA B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 D9 02 00 35 04 06 00 D6 4D CF DA 44 74 64 9C F1 89 3B 9C 96 0D [21:28:54]CheckFolder [21:28:54]dirname=/storage/ofd_packets [21:28:54]CheckFolder done [21:28:54]ProducePacketName [21:28:54]name=ofd_packets/00186664 [21:28:54]NVStorageSaveData ofd_packets/00186664 [21:28:54]File name is /storage/ofd_packets/00186664 [21:28:54]Write 301 bytes [21:28:54]NVStorageSaveData done [21:28:54]OFDSenderStorePacket done [21:28:54]KKMCreateOFDPacket done [21:28:54]NVStorageSaveData kkm_last_timestamp [21:28:54]File name is /storage/kkm_last_timestamp [21:28:54]Write 4 bytes [21:28:54]NVStorageSaveData done [21:28:54]ExternCall_PrintAddStr [21:28:54]wPrintStart [21:28:54]Write to MH i2c: 01 00 00 E6 06 EC [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: 01 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: 01 07 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: 01 07 00 E6 06 00 00 00 00 00 FF 0F 01 [21:28:54]RasterBufferAndPrint [21:28:54]line Счет N : (1)411813 [21:28:54]line ИНН: 02508201610067 [21:28:54]line Контрольно-Кассовый Чек [21:28:54]line ПРОДАЖА [21:28:54]line ТРК (МРК, ГНК) : 42 [21:28:54]line Товар: 2710124130 [21:28:54]line Аи-92-К-2 [21:28:54]line 20.000 * 0.00 [21:28:54]line = 0.00 [21:28:54]line НДС 12% НСП 1% [21:28:54]line > о реализуемом товаре [21:28:54]line ИТОГО: 0.00 [21:28:54]line НСП 1% : 0.00 [21:28:54]line НДС 12% : 0.00 [21:28:54]line Наличными: 0.00 [21:28:54]line Безнал.: 0.00 [21:28:54]line Место: АЗС № 92 "Партнер Нефть" [21:28:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:28:54]line СНО: Общий режим [21:28:54]line Чек 251 17.02.2025 21:28 [21:28:54]line Смена: 644 ФФД: 1.0 [21:28:54]line ЗНМ: 0300000118 [21:28:54]line РНМ: 0000000000091857 [21:28:54]line Версия ККМ: 001 [21:28:54]line Талоны: Топливные Талоны [21:28:54]line 4997512.4997513 [21:28:54]line ФМ: 0000000000871826 [21:28:54]line ФД: 186664 [21:28:54]line ФПД: 235629688013940 [21:28:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T212853&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186664&fm=235629688013940&tin=02508201610067®Number=0000000000091857&sum=0 [21:28:55]OFD Sender: Processing packet 186664 [packets to send 49, broken 48] [21:28:55]ProducePacketName [21:28:55]name=ofd_packets/00186664 [21:28:55]OFD Sender: To server: pG, [21:28:55]CommunicateWithHost lk.salyk.kg:30040 [21:28:55]ConnectInit lk.salyk.kg [21:28:55]written 0, free lines is 4095 [21:28:55]Connected sock=10 [21:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 77 6E 07 01 2D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 AA B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 D9 02 00 35 04 06 00 D6 4D CF DA 44 74 64 9C F1 89 3B 9C 96 0D [21:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 2E 29 47 00 60 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 28 D9 02 00 F4 03 04 00 6F 50 B3 67 B6 04 01 00 00 C7 BF 0E 48 96 67 3F 94 [21:28:55]CommunicateWithHost err = 0 [21:28:55]CheckOFDResponse [21:28:55]1017 (14) - 77093643461234 [21:28:55]1041 (16) - 0000000000871826 [21:28:55]1040 (4) - 186664 [21:28:55]1012 (4) - 17.02.2025 15:06 [21:28:55]1206 (1) - 0 [21:28:55]OFD Sender: Remove packet 186664 [21:28:55]ProducePacketName [21:28:55]name=ofd_packets/00186664 [21:28:55]NVStorageDeleteData [21:28:55]Write to MH i2c: 01 00 00 10 07 17 [21:28:55]Write i2c OK [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: 01 [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: 01 07 00 [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 13 0D 3E [21:28:55]RasterBufferAndPrint [21:28:55]line [21:28:55]line [21:28:55]line [21:28:55]line [21:28:55]line [21:28:55]written 0, free lines is 3353 [21:28:55]MH_Cut [21:28:55]Write to MH i2c: D1 01 00 17 07 01 F0 [21:28:55]Write i2c OK [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: D1 [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: D1 01 00 [21:28:55]MH_I2C_Read... [21:28:55]Read from MH i2c: D1 01 00 17 07 00 EF [21:28:55]Write to MH i2c: 01 00 00 18 07 1F [21:28:55]Write i2c OK [21:28:55]MH_I2C_Read... [21:28:56]OFD Sender: No OFD packet to send [21:28:56]*** Cut start [21:28:56]*** Partial cut [21:28:56]*** CUTSNS_PIN = 1 [21:28:56]*** CUTSNS_PIN = 0 [21:28:56]*** Brake cut motor [21:28:56]Read from MH i2c: 01 [21:28:56]MH_I2C_Read... [21:28:56]*** Stop cut motor [21:28:56]*** Cut end [21:28:56]Read from MH i2c: 01 07 00 [21:28:56]MH_I2C_Read... [21:28:56]Read from MH i2c: 01 07 00 18 07 00 00 00 00 00 FF 0F 34 [21:28:56]process_action close_receipt done [21:28:56]requested_data is exist [21:28:56]produce_requested_data [21:28:56]requested_item fm.sn is exist - process it [21:28:56]wFMCommunicate request_size=4 [21:28:56]MH_SAM_APDU [21:28:56]CAPDU: 80 11 00 00 [21:28:56]Write to MH i2c: E2 08 00 19 07 80 11 00 00 00 00 00 00 9A [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 17 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 17 00 19 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 ED [21:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:28:57]wFMCommunicate OK [21:28:57]requested_item fd.num is exist - process it [21:28:57]SAM_PROTO_GetFieldsCounters [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 13 00 00 [21:28:57]Write to MH i2c: E2 08 00 1A 07 80 13 00 00 00 00 00 00 9D [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 62 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 62 00 1A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [21:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 28 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:57]wFMCommunicate OK [21:28:57]SAM_PROTO_GetFieldsCounters done [21:28:57]requested_item shift.num is exist - process it [21:28:57]requested_item shift.opened is exist - process it [21:28:57]req_shift_opened [21:28:57]FM_GetShiftState [21:28:57]SAM_PROTO_GetShiftState [21:28:57]wFMCommunicate request_size=4 [21:28:57]MH_SAM_APDU [21:28:57]CAPDU: 80 13 01 00 [21:28:57]Write to MH i2c: E2 08 00 1B 07 80 13 01 00 00 00 00 00 9F [21:28:57]Write i2c OK [21:28:57]MH_I2C_Read... [21:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:57]Read from MH i2c: E2 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0E 00 [21:28:57]MH_I2C_Read... [21:28:57]Read from MH i2c: E2 0E 00 1B 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C3 [21:28:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:28:57]wFMCommunicate OK [21:28:57]SAM_PROTO_GetShiftState done [21:28:57]FM_GetShiftState done [21:28:57]req_shift_opened done [21:28:57]requested_item shift.open_date is exist - process it [21:28:57]req_shift_open_date [21:28:57]req_shift_open_date done [21:28:57]produce_requested_data done [21:28:57]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186664,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:28:57]process_action_free close_receipt [21:28:57]json_value_free [21:28:57]json_value_free done [21:28:57]process_json_proto returns [21:28:57]Send response to host [21:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186664,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:28:57]free response buf [21:28:57]execute_script done [21:28:57]execute_script returns [21:28:57]free content buf [21:28:57]Sock 7.Close socket [21:28:57]Sock 7.Thread stoped [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:21]accept exits with 9 [21:34:21]New connection [21:34:21]New thread 3067194724 created [21:34:21]Thread 3067051364 joined [21:34:21]Waiting for new connection... [21:34:21] Sock 9.Parse request [21:34:21]Sock 9.Check first char [21:34:21]Sock 9.First char is OK [21:34:21]request: POST /json_proto HTTP/1.0 [21:34:21]Method: POST [21:34:21]URL: /json_proto [21:34:21]Method is POST - this is cgi request [21:34:21]url: /json_proto [21:34:21]query_string will be loaded in cgi processing [21:34:21]execute_cgi json_proto POST (null) [21:34:21]execute_cgi path=json_proto method=POST [21:34:21]POST find Content-Length [21:34:21]Host: 172.17.46.131:8080 [21:34:21]Content-Length: 803 [21:34:21]Content-Type: application/json [21:34:21] [21:34:21]POST finish read [21:34:21]Found Content-Length = 803 [21:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:21]execute_script... [21:34:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:21]POST & json_proto [21:34:21]process_json_proto [21:34:21]json parsed OK: [21:34:21]protocol is kg_v1.0 [21:34:21]action value=close_receipt [21:34:21]process_action close_receipt [21:34:21]cmd_close_receipt [21:34:21]MH_GetDate [21:34:21]Write to MH i2c: F0 00 00 1C 07 12 [21:34:21]Write i2c OK [21:34:21]MH_I2C_Read... [21:34:21]Read from MH i2c: F0 [21:34:21]MH_I2C_Read... [21:34:21]Read from MH i2c: F0 09 00 [21:34:21]MH_I2C_Read... [21:34:21]Read from MH i2c: F0 09 00 1C 07 00 5E AB B3 67 7E 41 4F 65 B1 [21:34:21]GetLastDocTimeStamp 1739827733 [21:34:21]current date 1739828062 [21:34:21]FM_GetShiftState [21:34:21]SAM_PROTO_GetShiftState [21:34:21]wFMCommunicate request_size=4 [21:34:21]MH_SAM_APDU [21:34:21]CAPDU: 80 13 01 00 [21:34:21]Write to MH i2c: E2 08 00 1D 07 80 13 01 00 00 00 00 00 A1 [21:34:21]Write i2c OK [21:34:21]MH_I2C_Read... [21:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:22]Read from MH i2c: E2 [21:34:22]MH_I2C_Read... [21:34:22]Read from MH i2c: E2 0E 00 [21:34:22]MH_I2C_Read... [21:34:22]Read from MH i2c: E2 0E 00 1D 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 C5 [21:34:22]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:34:22]wFMCommunicate OK [21:34:22]SAM_PROTO_GetShiftState done [21:34:22]FM_GetShiftState done [21:34:22]opened in 1739752571 [21:34:22]opened+sec_in_day 1739838971 [21:34:22]quantity*price = 100023 [21:34:22]sum+1 = 100025 [21:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 252 17.02.2025 21:34 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186665 ФПД: 117070362233330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T213422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186665&fm=117070362233330&tin=02508201610067®Number=0000000000091857&sum=100024 [21:34:23]StoreToDocumentArchive [21:34:23]shift 644 fd 186665 [21:34:23]save to /storage/0644/doc_00186665 [21:34:23]save last doc name /storage/0644/doc_00186665 to /storage/kkm_last_doc_name [21:34:23]save OK [21:34:23]Clear old archive folders... [21:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:34:23]tlvbuf is B6EFCD00 [21:34:23]SAM_PROTO_ClearQueue [21:34:23]wFMCommunicate request_size=4 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 09 00 00 [21:34:23]Write to MH i2c: E2 08 00 2A 07 80 09 00 00 00 00 00 00 A3 [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 2A 07 00 90 00 A5 [21:34:23]RAPDU: 90 00 [21:34:23]wFMCommunicate OK [21:34:23]SAM_PROTO_ClearQueue done [21:34:23]KKMCreateOFDPacket [21:34:23]OFDProtocolAddRootSTLVToBuf [21:34:23]FM_MakeSignedData [21:34:23]FM_MakeSignedData [21:34:23]SAM_PROTO_SignData [21:34:23]wFMCommunicate request_size=4 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 0D 01 02 [21:34:23]Write to MH i2c: E2 08 00 2B 07 80 0D 01 02 00 00 00 00 AB [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 2B 07 00 90 00 A6 [21:34:23]RAPDU: 90 00 [21:34:23]wFMCommunicate OK [21:34:23]wFMCommunicate request_size=255 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E AB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 D9 02 00 35 04 06 00 6A [21:34:23]Write to MH i2c: E2 02 01 2C 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E AB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 D9 02 00 35 04 06 00 6A 00 00 EB [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 2C 07 00 90 00 A7 [21:34:23]RAPDU: 90 00 [21:34:23]wFMCommunicate OK [21:34:23]wFMCommunicate request_size=10 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 0D 02 02 05 79 91 5A C9 F2 [21:34:23]Write to MH i2c: E2 0D 00 2D 07 80 0D 02 02 05 00 79 91 5A C9 F2 00 00 D7 [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [21:34:23]RAPDU: 90 00 [21:34:23]wFMCommunicate OK [21:34:23]wFMCommunicate request_size=4 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 0D 03 02 [21:34:23]Write to MH i2c: E2 08 00 2E 07 80 0D 03 02 00 00 00 00 B0 [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 0B 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 0B 00 2E 07 00 27 2F F8 D0 61 A4 19 0C 90 00 F9 [21:34:23]RAPDU: 27 2F F8 D0 61 A4 19 0C 90 00 [21:34:23]wFMCommunicate OK [21:34:23]SAM_PROTO_SignData done [21:34:23]FM_MakeSignedData done [21:34:23]CreateOFDProtocolMessage [21:34:23]wFMCommunicate request_size=4 [21:34:23]MH_SAM_APDU [21:34:23]CAPDU: 80 11 00 00 [21:34:23]Write to MH i2c: E2 08 00 2F 07 80 11 00 00 00 00 00 00 B0 [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:23]Read from MH i2c: E2 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 17 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: E2 17 00 2F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 03 [21:34:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:34:23]wFMCommunicate OK [21:34:23]CreateOFDProtocolMessage done [21:34:23]OFDSenderStorePacket 186665 [21:34:23]StoreOFDPacket docnum=186665 [21:34:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 3B 07 01 82 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E AB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 D9 02 00 35 04 06 00 6A 79 91 5A C9 F2 27 2F F8 D0 61 A4 19 0C [21:34:23]CheckFolder [21:34:23]dirname=/storage/ofd_packets [21:34:23]CheckFolder done [21:34:23]ProducePacketName [21:34:23]name=ofd_packets/00186665 [21:34:23]NVStorageSaveData ofd_packets/00186665 [21:34:23]File name is /storage/ofd_packets/00186665 [21:34:23]Write 301 bytes [21:34:23]NVStorageSaveData done [21:34:23]OFDSenderStorePacket done [21:34:23]KKMCreateOFDPacket done [21:34:23]NVStorageSaveData kkm_last_timestamp [21:34:23]File name is /storage/kkm_last_timestamp [21:34:23]Write 4 bytes [21:34:23]NVStorageSaveData done [21:34:23]ExternCall_PrintAddStr [21:34:23]wPrintStart [21:34:23]Write to MH i2c: 01 00 00 30 07 37 [21:34:23]Write i2c OK [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: 01 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: 01 07 00 [21:34:23]MH_I2C_Read... [21:34:23]Read from MH i2c: 01 07 00 30 07 00 00 00 00 00 FF 0F 4C [21:34:23]RasterBufferAndPrint [21:34:23]line Счет N : (1)411814 [21:34:23]line ИНН: 02508201610067 [21:34:23]line Контрольно-Кассовый Чек [21:34:23]line ПРОДАЖА [21:34:23]line ТРК (МРК, ГНК) : 32 [21:34:23]line Товар: 2710124130 [21:34:23]line Аи-92-К-2 [21:34:23]line 15.580 * 64.20 [21:34:23]line = 1000.24 [21:34:23]line НДС 12% НСП 1% [21:34:23]line > о реализуемом товаре [21:34:23]line ИТОГО: 1000.24 [21:34:23]line НСП 1% : 8.85 [21:34:23]line НДС 12% : 106.22 [21:34:23]line Наличными: 0.00 [21:34:23]line Безнал.: 1000.24 [21:34:23]line Место: АЗС № 92 "Партнер Нефть" [21:34:23]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:34:23]line СНО: Общий режим [21:34:23]line Чек 252 17.02.2025 21:34 [21:34:23]line Смена: 644 ФФД: 1.0 [21:34:23]line ЗНМ: 0300000118 [21:34:23]line РНМ: 0000000000091857 [21:34:23]line Версия ККМ: 001 [21:34:23]line Платежная система: O! деньги [21:34:23]line ФМ: 0000000000871826 [21:34:23]line ФД: 186665 [21:34:23]line ФПД: 117070362233330 [21:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T213422&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186665&fm=117070362233330&tin=02508201610067®Number=0000000000091857&sum=100024 [21:34:23]written 0, free lines is 4095 [21:34:23]OFD Sender: Processing packet 186665 [packets to send 49, broken 48] [21:34:23]ProducePacketName [21:34:23]name=ofd_packets/00186665 [21:34:24]OFD Sender: To server: pG, [21:34:24]CommunicateWithHost lk.salyk.kg:30040 [21:34:24]ConnectInit lk.salyk.kg [21:34:24]Connected sock=10 [21:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5A 3B 07 01 82 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 5E AB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 D9 02 00 35 04 06 00 6A 79 91 5A C9 F2 27 2F F8 D0 61 A4 19 0C [21:34:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7D 51 47 00 C9 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 29 D9 02 00 F4 03 04 00 B7 51 B3 67 B6 04 01 00 00 73 3D EC F6 51 31 B6 7D [21:34:24]CommunicateWithHost err = 0 [21:34:24]CheckOFDResponse [21:34:24]1017 (14) - 77093643461234 [21:34:24]1041 (16) - 0000000000871826 [21:34:24]1040 (4) - 186665 [21:34:24]1012 (4) - 17.02.2025 15:11 [21:34:24]1206 (1) - 0 [21:34:24]OFD Sender: Remove packet 186665 [21:34:24]ProducePacketName [21:34:24]name=ofd_packets/00186665 [21:34:24]NVStorageDeleteData [21:34:24]Write to MH i2c: 01 00 00 5A 07 61 [21:34:24]Write i2c OK [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 07 00 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0C 73 [21:34:24]RasterBufferAndPrint [21:34:24]line [21:34:24]line [21:34:24]line [21:34:24]line [21:34:24]line [21:34:24]written 0, free lines is 3333 [21:34:24]MH_Cut [21:34:24]Write to MH i2c: D1 01 00 61 07 01 3A [21:34:24]Write i2c OK [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: D1 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: D1 01 00 [21:34:24]MH_I2C_Read... [21:34:24]Read from MH i2c: D1 01 00 61 07 00 39 [21:34:24]Write to MH i2c: 01 00 00 62 07 69 [21:34:24]Write i2c OK [21:34:24]MH_I2C_Read... [21:34:24]OFD Sender: No OFD packet to send [21:34:25]*** Cut start [21:34:25]*** Partial cut [21:34:25]*** CUTSNS_PIN = 1 [21:34:25]*** CUTSNS_PIN = 0 [21:34:25]*** Brake cut motor [21:34:25]Read from MH i2c: 01 [21:34:25]MH_I2C_Read... [21:34:25]*** Stop cut motor [21:34:25]*** Cut end [21:34:25]Read from MH i2c: 01 07 00 [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 FF 0F 7E [21:34:25]process_action close_receipt done [21:34:25]requested_data is exist [21:34:25]produce_requested_data [21:34:25]requested_item fm.sn is exist - process it [21:34:25]wFMCommunicate request_size=4 [21:34:25]MH_SAM_APDU [21:34:25]CAPDU: 80 11 00 00 [21:34:25]Write to MH i2c: E2 08 00 63 07 80 11 00 00 00 00 00 00 E4 [21:34:25]Write i2c OK [21:34:25]MH_I2C_Read... [21:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:25]Read from MH i2c: E2 [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: E2 17 00 [21:34:25]MH_I2C_Read... [21:34:25]Read from MH i2c: E2 17 00 63 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 37 [21:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:34:25]wFMCommunicate OK [21:34:25]requested_item fd.num is exist - process it [21:34:25]SAM_PROTO_GetFieldsCounters [21:34:25]wFMCommunicate request_size=4 [21:34:25]MH_SAM_APDU [21:34:25]CAPDU: 80 13 00 00 [21:34:25]Write to MH i2c: E2 08 00 64 07 80 13 00 00 00 00 00 00 E7 [21:34:25]Write i2c OK [21:34:25]MH_I2C_Read... [21:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:26]Read from MH i2c: E2 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: E2 62 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: E2 62 00 64 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [21:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 29 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:26]wFMCommunicate OK [21:34:26]SAM_PROTO_GetFieldsCounters done [21:34:26]requested_item shift.num is exist - process it [21:34:26]requested_item shift.opened is exist - process it [21:34:26]req_shift_opened [21:34:26]FM_GetShiftState [21:34:26]SAM_PROTO_GetShiftState [21:34:26]wFMCommunicate request_size=4 [21:34:26]MH_SAM_APDU [21:34:26]CAPDU: 80 13 01 00 [21:34:26]Write to MH i2c: E2 08 00 65 07 80 13 01 00 00 00 00 00 E9 [21:34:26]Write i2c OK [21:34:26]MH_I2C_Read... [21:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:26]Read from MH i2c: E2 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: E2 0E 00 [21:34:26]MH_I2C_Read... [21:34:26]Read from MH i2c: E2 0E 00 65 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0D [21:34:26]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:34:26]wFMCommunicate OK [21:34:26]SAM_PROTO_GetShiftState done [21:34:26]FM_GetShiftState done [21:34:26]req_shift_opened done [21:34:26]requested_item shift.open_date is exist - process it [21:34:26]req_shift_open_date [21:34:26]req_shift_open_date done [21:34:26]produce_requested_data done [21:34:26]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186665,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:34:26]process_action_free close_receipt [21:34:26]json_value_free [21:34:26]json_value_free done [21:34:26]process_json_proto returns [21:34:26]Send response to host [21:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186665,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:34:26]free response buf [21:34:26]execute_script done [21:34:26]execute_script returns [21:34:26]free content buf [21:34:26]Sock 9.Close socket [21:34:26]Sock 9.Thread stoped [21:34:29]OFD Sender: No OFD packet to send [21:34:34]OFD Sender: No OFD packet to send [21:34:39]OFD Sender: No OFD packet to send [21:34:44]OFD Sender: No OFD packet to send [21:34:49]OFD Sender: No OFD packet to send [21:34:54]OFD Sender: No OFD packet to send [21:34:59]OFD Sender: No OFD packet to send [21:35:04]OFD Sender: No OFD packet to send [21:35:09]OFD Sender: No OFD packet to send [21:35:14]OFD Sender: No OFD packet to send [21:35:19]OFD Sender: No OFD packet to send [21:35:24]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:27]accept exits with 7 [21:49:27]New connection [21:49:27]New thread 3067051364 created [21:49:27]Thread 3067194724 joined [21:49:27]Waiting for new connection... [21:49:27] Sock 7.Parse request [21:49:27]Sock 7.Check first char [21:49:27]Sock 7.First char is OK [21:49:27]request: POST /json_proto HTTP/1.0 [21:49:27]Method: POST [21:49:27]URL: /json_proto [21:49:27]Method is POST - this is cgi request [21:49:27]url: /json_proto [21:49:27]query_string will be loaded in cgi processing [21:49:27]execute_cgi json_proto POST (null) [21:49:27]execute_cgi path=json_proto method=POST [21:49:27]POST find Content-Length [21:49:27]Host: 172.17.46.131:8080 [21:49:27]Content-Length: 803 [21:49:27]Content-Type: application/json [21:49:27] [21:49:27]POST finish read [21:49:27]Found Content-Length = 803 [21:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:27]execute_script... [21:49:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:27]POST & json_proto [21:49:27]process_json_proto [21:49:27]json parsed OK: [21:49:27]protocol is kg_v1.0 [21:49:27]action value=close_receipt [21:49:27]process_action close_receipt [21:49:27]cmd_close_receipt [21:49:27]MH_GetDate [21:49:27]Write to MH i2c: F0 00 00 66 07 5C [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 09 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: F0 09 00 66 07 00 E8 AE B3 67 7E 41 4F 65 88 [21:49:27]GetLastDocTimeStamp 1739828062 [21:49:27]current date 1739828968 [21:49:27]FM_GetShiftState [21:49:27]SAM_PROTO_GetShiftState [21:49:27]wFMCommunicate request_size=4 [21:49:27]MH_SAM_APDU [21:49:27]CAPDU: 80 13 01 00 [21:49:27]Write to MH i2c: E2 08 00 67 07 80 13 01 00 00 00 00 00 EB [21:49:27]Write i2c OK [21:49:27]MH_I2C_Read... [21:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:27]Read from MH i2c: E2 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0E 00 [21:49:27]MH_I2C_Read... [21:49:27]Read from MH i2c: E2 0E 00 67 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 0F [21:49:27]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:49:27]wFMCommunicate OK [21:49:27]SAM_PROTO_GetShiftState done [21:49:27]FM_GetShiftState done [21:49:27]opened in 1739752571 [21:49:27]opened+sec_in_day 1739838971 [21:49:27]quantity*price = 100023 [21:49:27]sum+1 = 100025 [21:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.24 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.24 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 253 17.02.2025 21:49 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186666 ФПД: 28206547058314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T214928&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186666&fm=28206547058314&tin=02508201610067®Number=0000000000091857&sum=100024 [21:49:28]StoreToDocumentArchive [21:49:28]shift 644 fd 186666 [21:49:28]save to /storage/0644/doc_00186666 [21:49:28]save last doc name /storage/0644/doc_00186666 to /storage/kkm_last_doc_name [21:49:28]save OK [21:49:28]Clear old archive folders... [21:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:28]tlvbuf is 005D51C0 [21:49:28]SAM_PROTO_ClearQueue [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 09 00 00 [21:49:28]Write to MH i2c: E2 08 00 74 07 80 09 00 00 00 00 00 00 ED [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 74 07 00 90 00 EF [21:49:28]RAPDU: 90 00 [21:49:28]wFMCommunicate OK [21:49:28]SAM_PROTO_ClearQueue done [21:49:28]KKMCreateOFDPacket [21:49:28]OFDProtocolAddRootSTLVToBuf [21:49:28]FM_MakeSignedData [21:49:28]FM_MakeSignedData [21:49:28]SAM_PROTO_SignData [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 0D 01 02 [21:49:28]Write to MH i2c: E2 08 00 75 07 80 0D 01 02 00 00 00 00 F5 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 75 07 00 90 00 F0 [21:49:28]RAPDU: 90 00 [21:49:28]wFMCommunicate OK [21:49:28]wFMCommunicate request_size=255 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E8 AE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A D9 02 00 35 04 06 00 19 [21:49:28]Write to MH i2c: E2 02 01 76 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E8 AE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A D9 02 00 35 04 06 00 19 00 00 73 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 76 07 00 90 00 F1 [21:49:28]RAPDU: 90 00 [21:49:28]wFMCommunicate OK [21:49:28]wFMCommunicate request_size=10 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 0D 02 02 05 A7 59 37 BE 8A [21:49:28]Write to MH i2c: E2 0D 00 77 07 80 0D 02 02 05 00 A7 59 37 BE 8A 00 00 81 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 03 00 77 07 00 90 00 F2 [21:49:28]RAPDU: 90 00 [21:49:28]wFMCommunicate OK [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 0D 03 02 [21:49:28]Write to MH i2c: E2 08 00 78 07 80 0D 03 02 00 00 00 00 FA [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0B 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 0B 00 78 07 00 BB AA 09 2D DB 1F 36 8F 90 00 55 [21:49:28]RAPDU: BB AA 09 2D DB 1F 36 8F 90 00 [21:49:28]wFMCommunicate OK [21:49:28]SAM_PROTO_SignData done [21:49:28]FM_MakeSignedData done [21:49:28]CreateOFDProtocolMessage [21:49:28]wFMCommunicate request_size=4 [21:49:28]MH_SAM_APDU [21:49:28]CAPDU: 80 11 00 00 [21:49:28]Write to MH i2c: E2 08 00 79 07 80 11 00 00 00 00 00 00 FA [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:28]Read from MH i2c: E2 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 17 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: E2 17 00 79 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [21:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:49:28]wFMCommunicate OK [21:49:28]CreateOFDProtocolMessage done [21:49:28]OFDSenderStorePacket 186666 [21:49:28]StoreOFDPacket docnum=186666 [21:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 9F 07 01 4D 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E8 AE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A D9 02 00 35 04 06 00 19 A7 59 37 BE 8A BB AA 09 2D DB 1F 36 8F [21:49:28]CheckFolder [21:49:28]dirname=/storage/ofd_packets [21:49:28]CheckFolder done [21:49:28]ProducePacketName [21:49:28]name=ofd_packets/00186666 [21:49:28]NVStorageSaveData ofd_packets/00186666 [21:49:28]File name is /storage/ofd_packets/00186666 [21:49:28]Write 301 bytes [21:49:28]NVStorageSaveData done [21:49:28]OFDSenderStorePacket done [21:49:28]KKMCreateOFDPacket done [21:49:28]NVStorageSaveData kkm_last_timestamp [21:49:28]File name is /storage/kkm_last_timestamp [21:49:28]Write 4 bytes [21:49:28]NVStorageSaveData done [21:49:28]OFD Sender: Processing packet 186666 [packets to send 49, broken 48] [21:49:28]ProducePacketName [21:49:28]name=ofd_packets/00186666 [21:49:28]OFD Sender: To server: pG, [21:49:28]CommunicateWithHost lk.salyk.kg:30040 [21:49:28]ConnectInit lk.salyk.kg [21:49:28]ExternCall_PrintAddStr [21:49:28]wPrintStart [21:49:28]Write to MH i2c: 01 00 00 7A 07 81 [21:49:28]Write i2c OK [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 07 00 [21:49:28]MH_I2C_Read... [21:49:28]Read from MH i2c: 01 07 00 7A 07 00 00 00 00 00 FF 0F 96 [21:49:28]RasterBufferAndPrint [21:49:28]line Счет N : (1)411815 [21:49:28]line ИНН: 02508201610067 [21:49:28]line Контрольно-Кассовый Чек [21:49:28]line ПРОДАЖА [21:49:28]line ТРК (МРК, ГНК) : 32 [21:49:28]line Товар: 2710124130 [21:49:28]line Аи-92-К-2 [21:49:28]line 15.580 * 64.20 [21:49:28]line = 1000.24 [21:49:28]line НДС 12% НСП 1% [21:49:28]line > о реализуемом товаре [21:49:28]line ИТОГО: 1000.24 [21:49:28]line НСП 1% : 8.85 [21:49:28]line НДС 12% : 106.22 [21:49:28]line Наличными: 0.00 [21:49:28]line Безнал.: 1000.24 [21:49:28]line Место: АЗС № 92 "Партнер Нефть" [21:49:28]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [21:49:28]line СНО: Общий режим [21:49:28]line Чек 253 17.02.2025 21:49 [21:49:28]line Смена: 644 ФФД: 1.0 [21:49:28]line ЗНМ: 0300000118 [21:49:28]line РНМ: 0000000000091857 [21:49:28]line Версия ККМ: 001 [21:49:28]line Платежная система: O! деньги [21:49:28]line ФМ: 0000000000871826 [21:49:28]line ФД: 186666 [21:49:28]line ФПД: 28206547058314 [21:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T214928&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186666&fm=28206547058314&tin=02508201610067®Number=0000000000091857&sum=100024 [21:49:29]Connected sock=11 [21:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 3E 9F 07 01 4D 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 E8 AE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A D9 02 00 35 04 06 00 19 A7 59 37 BE 8A BB AA 09 2D DB 1F 36 8F [21:49:29]written 0, free lines is 4095 [21:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 84 0B 47 00 D6 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2A D9 02 00 F4 03 04 00 40 55 B3 67 B6 04 01 00 00 3A 25 06 98 74 6D D9 1A [21:49:29]CommunicateWithHost err = 0 [21:49:29]CheckOFDResponse [21:49:29]1017 (14) - 77093643461234 [21:49:29]1041 (16) - 0000000000871826 [21:49:29]1040 (4) - 186666 [21:49:29]1012 (4) - 17.02.2025 15:26 [21:49:29]1206 (1) - 0 [21:49:29]OFD Sender: Remove packet 186666 [21:49:29]ProducePacketName [21:49:29]name=ofd_packets/00186666 [21:49:29]NVStorageDeleteData [21:49:29]Write to MH i2c: 01 00 00 A4 07 AB [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 07 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 02 0D C1 [21:49:29]RasterBufferAndPrint [21:49:29]line [21:49:29]line [21:49:29]line [21:49:29]line [21:49:29]line [21:49:29]written 0, free lines is 3336 [21:49:29]MH_Cut [21:49:29]Write to MH i2c: D1 01 00 AB 07 01 84 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: D1 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: D1 01 00 [21:49:29]MH_I2C_Read... [21:49:29]Read from MH i2c: D1 01 00 AB 07 00 83 [21:49:29]Write to MH i2c: 01 00 00 AC 07 B3 [21:49:29]Write i2c OK [21:49:29]MH_I2C_Read... [21:49:29]OFD Sender: No OFD packet to send [21:49:30]*** Cut start [21:49:30]*** Partial cut [21:49:30]*** CUTSNS_PIN = 1 [21:49:30]*** CUTSNS_PIN = 0 [21:49:30]*** Brake cut motor [21:49:31]Read from MH i2c: 01 [21:49:31]MH_I2C_Read... [21:49:31]*** Stop cut motor [21:49:31]*** Cut end [21:49:31]Read from MH i2c: 01 07 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 AC 07 00 00 00 00 00 FF 0F C8 [21:49:31]process_action close_receipt done [21:49:31]requested_data is exist [21:49:31]produce_requested_data [21:49:31]requested_item fm.sn is exist - process it [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 11 00 00 [21:49:31]Write to MH i2c: E2 08 00 AD 07 80 11 00 00 00 00 00 00 2E [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 AD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 81 [21:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [21:49:31]wFMCommunicate OK [21:49:31]requested_item fd.num is exist - process it [21:49:31]SAM_PROTO_GetFieldsCounters [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 13 00 00 [21:49:31]Write to MH i2c: E2 08 00 AE 07 80 13 00 00 00 00 00 00 31 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 62 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 62 00 AE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [21:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_GetFieldsCounters done [21:49:31]requested_item shift.num is exist - process it [21:49:31]requested_item shift.opened is exist - process it [21:49:31]req_shift_opened [21:49:31]FM_GetShiftState [21:49:31]SAM_PROTO_GetShiftState [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 13 01 00 [21:49:31]Write to MH i2c: E2 08 00 AF 07 80 13 01 00 00 00 00 00 33 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0E 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0E 00 AF 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 57 [21:49:31]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_GetShiftState done [21:49:31]FM_GetShiftState done [21:49:31]req_shift_opened done [21:49:31]requested_item shift.open_date is exist - process it [21:49:31]req_shift_open_date [21:49:31]req_shift_open_date done [21:49:31]produce_requested_data done [21:49:31]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186666,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [21:49:31]process_action_free close_receipt [21:49:31]json_value_free [21:49:31]json_value_free done [21:49:31]process_json_proto returns [21:49:31]Send response to host [21:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186666,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [21:49:31]free response buf [21:49:31]execute_script done [21:49:31]execute_script returns [21:49:31]free content buf [21:49:31]Sock 7.Close socket [21:49:31]Sock 7.Thread stoped [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:01]accept exits with 9 [22:10:01]New connection [22:10:01]New thread 3067194724 created [22:10:01]Thread 3067051364 joined [22:10:01]Waiting for new connection... [22:10:01] Sock 9.Parse request [22:10:01]Sock 9.Check first char [22:10:01]Sock 9.First char is OK [22:10:01]request: POST /json_proto HTTP/1.0 [22:10:01]Method: POST [22:10:01]URL: /json_proto [22:10:01]Method is POST - this is cgi request [22:10:01]url: /json_proto [22:10:01]query_string will be loaded in cgi processing [22:10:01]execute_cgi json_proto POST (null) [22:10:01]execute_cgi path=json_proto method=POST [22:10:01]POST find Content-Length [22:10:01]Host: 172.17.46.131:8080 [22:10:01]Content-Length: 799 [22:10:01]Content-Type: application/json [22:10:01] [22:10:01]POST finish read [22:10:01]Found Content-Length = 799 [22:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 15.850, "sum" : 1150.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1150.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:01]execute_script... [22:10:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 15.850, "sum" : 1150.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1150.71 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:10:01]POST & json_proto [22:10:01]process_json_proto [22:10:01]json parsed OK: [22:10:01]protocol is kg_v1.0 [22:10:01]action value=close_receipt [22:10:01]process_action close_receipt [22:10:01]cmd_close_receipt [22:10:01]MH_GetDate [22:10:01]Write to MH i2c: F0 00 00 B0 07 A6 [22:10:01]Write i2c OK [22:10:01]MH_I2C_Read... [22:10:01]Read from MH i2c: F0 [22:10:01]MH_I2C_Read... [22:10:01]Read from MH i2c: F0 09 00 [22:10:01]MH_I2C_Read... [22:10:01]Read from MH i2c: F0 09 00 B0 07 00 BA B3 B3 67 7E 41 4F 65 A9 [22:10:01]GetLastDocTimeStamp 1739828968 [22:10:01]current date 1739830202 [22:10:01]FM_GetShiftState [22:10:01]SAM_PROTO_GetShiftState [22:10:01]wFMCommunicate request_size=4 [22:10:01]MH_SAM_APDU [22:10:01]CAPDU: 80 13 01 00 [22:10:01]Write to MH i2c: E2 08 00 B1 07 80 13 01 00 00 00 00 00 35 [22:10:01]Write i2c OK [22:10:01]MH_I2C_Read... [22:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:01]Read from MH i2c: E2 [22:10:01]MH_I2C_Read... [22:10:01]Read from MH i2c: E2 0E 00 [22:10:01]MH_I2C_Read... [22:10:01]Read from MH i2c: E2 0E 00 B1 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 59 [22:10:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:10:01]wFMCommunicate OK [22:10:01]SAM_PROTO_GetShiftState done [22:10:01]FM_GetShiftState done [22:10:01]opened in 1739752571 [22:10:01]opened+sec_in_day 1739838971 [22:10:01]quantity*price = 115071 [22:10:01]sum+1 = 115072 [22:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1150.71 НСП 1% : 10.18 НДС 12% : 122.20 Наличными: 0.00 Безнал.: 1150.71 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 254 17.02.2025 22:10 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186667 ФПД: 39365462907947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186667&fm=39365462907947&tin=02508201610067®Number=0000000000091857&sum=115071 [22:10:02]StoreToDocumentArchive [22:10:02]shift 644 fd 186667 [22:10:02]save to /storage/0644/doc_00186667 [22:10:02]save last doc name /storage/0644/doc_00186667 to /storage/kkm_last_doc_name [22:10:02]save OK [22:10:02]Clear old archive folders... [22:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:10:02]tlvbuf is 005CA960 [22:10:02]SAM_PROTO_ClearQueue [22:10:02]wFMCommunicate request_size=4 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 09 00 00 [22:10:02]Write to MH i2c: E2 08 00 BE 07 80 09 00 00 00 00 00 00 37 [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 BE 07 00 90 00 39 [22:10:02]RAPDU: 90 00 [22:10:02]wFMCommunicate OK [22:10:02]SAM_PROTO_ClearQueue done [22:10:02]KKMCreateOFDPacket [22:10:02]OFDProtocolAddRootSTLVToBuf [22:10:02]FM_MakeSignedData [22:10:02]FM_MakeSignedData [22:10:02]SAM_PROTO_SignData [22:10:02]wFMCommunicate request_size=4 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 0D 01 02 [22:10:02]Write to MH i2c: E2 08 00 BF 07 80 0D 01 02 00 00 00 00 3F [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 BF 07 00 90 00 3A [22:10:02]RAPDU: 90 00 [22:10:02]wFMCommunicate OK [22:10:02]wFMCommunicate request_size=255 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7F C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BA B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B D9 02 00 35 04 06 00 23 CD 7C 6E [22:10:02]Write to MH i2c: E2 02 01 C0 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7F C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BA B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B D9 02 00 35 04 06 00 23 CD 7C 6E 00 00 D6 [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:02]Read from MH i2c: E2 03 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 C0 07 00 90 00 3B [22:10:02]RAPDU: 90 00 [22:10:02]wFMCommunicate OK [22:10:02]wFMCommunicate request_size=7 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 0D 02 02 02 DC 2B [22:10:02]Write to MH i2c: E2 0A 00 C1 07 80 0D 02 02 02 00 DC 2B 00 00 4D [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 03 00 C1 07 00 90 00 3C [22:10:02]RAPDU: 90 00 [22:10:02]wFMCommunicate OK [22:10:02]wFMCommunicate request_size=4 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 0D 03 02 [22:10:02]Write to MH i2c: E2 08 00 C2 07 80 0D 03 02 00 00 00 00 44 [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 0B 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 0B 00 C2 07 00 20 76 37 FB EC ED B1 F7 90 00 8E [22:10:02]RAPDU: 20 76 37 FB EC ED B1 F7 90 00 [22:10:02]wFMCommunicate OK [22:10:02]SAM_PROTO_SignData done [22:10:02]FM_MakeSignedData done [22:10:02]CreateOFDProtocolMessage [22:10:02]wFMCommunicate request_size=4 [22:10:02]MH_SAM_APDU [22:10:02]CAPDU: 80 11 00 00 [22:10:02]Write to MH i2c: E2 08 00 C3 07 80 11 00 00 00 00 00 00 44 [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:02]Read from MH i2c: E2 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 17 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: E2 17 00 C3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [22:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:02]wFMCommunicate OK [22:10:02]CreateOFDProtocolMessage done [22:10:02]OFDSenderStorePacket 186667 [22:10:02]StoreOFDPacket docnum=186667 [22:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8E 52 04 01 1B 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7F C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BA B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B D9 02 00 35 04 06 00 23 CD 7C 6E DC 2B 20 76 37 FB EC ED B1 F7 [22:10:02]CheckFolder [22:10:02]dirname=/storage/ofd_packets [22:10:02]CheckFolder done [22:10:02]ProducePacketName [22:10:02]name=ofd_packets/00186667 [22:10:02]NVStorageSaveData ofd_packets/00186667 [22:10:02]File name is /storage/ofd_packets/00186667 [22:10:02]Write 298 bytes [22:10:02]NVStorageSaveData done [22:10:02]OFDSenderStorePacket done [22:10:02]KKMCreateOFDPacket done [22:10:02]NVStorageSaveData kkm_last_timestamp [22:10:02]File name is /storage/kkm_last_timestamp [22:10:02]Write 4 bytes [22:10:02]NVStorageSaveData done [22:10:02]ExternCall_PrintAddStr [22:10:02]wPrintStart [22:10:02]Write to MH i2c: 01 00 00 C4 07 CB [22:10:02]Write i2c OK [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: 01 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: 01 07 00 [22:10:02]MH_I2C_Read... [22:10:02]Read from MH i2c: 01 07 00 C4 07 00 00 00 00 00 FF 0F E0 [22:10:02]RasterBufferAndPrint [22:10:02]line Счет N : (1)411816 [22:10:02]line ИНН: 02508201610067 [22:10:02]line Контрольно-Кассовый Чек [22:10:02]line ПРОДАЖА [22:10:02]line ТРК (МРК, ГНК) : 6 [22:10:02]line Товар: 2710194210 [22:10:02]line ДТ-К-5 [22:10:02]line 15.850 * 72.60 [22:10:02]line = 1150.71 [22:10:02]line НДС 12% НСП 1% [22:10:02]line > о реализуемом товаре [22:10:02]line ИТОГО: 1150.71 [22:10:02]line НСП 1% : 10.18 [22:10:02]line НДС 12% : 122.20 [22:10:02]line Наличными: 0.00 [22:10:02]line Безнал.: 1150.71 [22:10:02]line Место: АЗС № 92 "Партнер Нефть" [22:10:02]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:10:02]line СНО: Общий режим [22:10:02]line Чек 254 17.02.2025 22:10 [22:10:02]line Смена: 644 ФФД: 1.0 [22:10:02]line ЗНМ: 0300000118 [22:10:02]line РНМ: 0000000000091857 [22:10:02]line Версия ККМ: 001 [22:10:02]line Платежная система: O! деньги [22:10:02]line ФМ: 0000000000871826 [22:10:02]line ФД: 186667 [22:10:02]line ФПД: 39365462907947 [22:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221002&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186667&fm=39365462907947&tin=02508201610067®Number=0000000000091857&sum=115071 [22:10:03]OFD Sender: Processing packet 186667 [packets to send 49, broken 48] [22:10:03]ProducePacketName [22:10:03]name=ofd_packets/00186667 [22:10:03]OFD Sender: To server: pG, [22:10:03]CommunicateWithHost lk.salyk.kg:30040 [22:10:03]ConnectInit lk.salyk.kg [22:10:03]written 0, free lines is 4095 [22:10:03]Connected sock=10 [22:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 8E 52 04 01 1B 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 3D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 7F C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 2F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F C1 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 BA B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B D9 02 00 35 04 06 00 23 CD 7C 6E DC 2B 20 76 37 FB EC ED B1 F7 [22:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 AC A7 47 00 77 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2B D9 02 00 F4 03 04 00 13 5A B3 67 B6 04 01 00 00 9D 2E BE 7C 8C 02 FC E4 [22:10:03]CommunicateWithHost err = 0 [22:10:03]CheckOFDResponse [22:10:03]1017 (14) - 77093643461234 [22:10:03]1041 (16) - 0000000000871826 [22:10:03]1040 (4) - 186667 [22:10:03]1012 (4) - 17.02.2025 15:47 [22:10:03]1206 (1) - 0 [22:10:03]OFD Sender: Remove packet 186667 [22:10:03]ProducePacketName [22:10:03]name=ofd_packets/00186667 [22:10:03]NVStorageDeleteData [22:10:03]Write to MH i2c: 01 00 00 EE 07 F5 [22:10:03]Write i2c OK [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: 01 [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: 01 07 00 [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 04 0D 0D [22:10:03]RasterBufferAndPrint [22:10:03]line [22:10:03]line [22:10:03]line [22:10:03]line [22:10:03]line [22:10:03]written 0, free lines is 3338 [22:10:03]MH_Cut [22:10:03]Write to MH i2c: D1 01 00 F5 07 01 CE [22:10:03]Write i2c OK [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: D1 [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: D1 01 00 [22:10:03]MH_I2C_Read... [22:10:03]Read from MH i2c: D1 01 00 F5 07 00 CD [22:10:03]Write to MH i2c: 01 00 00 F6 07 FD [22:10:03]Write i2c OK [22:10:03]MH_I2C_Read... [22:10:04]OFD Sender: No OFD packet to send [22:10:04]*** Cut start [22:10:04]*** Partial cut [22:10:04]*** CUTSNS_PIN = 1 [22:10:04]*** CUTSNS_PIN = 0 [22:10:04]*** Brake cut motor [22:10:05]Read from MH i2c: 01 [22:10:05]MH_I2C_Read... [22:10:05]*** Stop cut motor [22:10:05]*** Cut end [22:10:05]Read from MH i2c: 01 07 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [22:10:05]process_action close_receipt done [22:10:05]requested_data is exist [22:10:05]produce_requested_data [22:10:05]requested_item fm.sn is exist - process it [22:10:05]wFMCommunicate request_size=4 [22:10:05]MH_SAM_APDU [22:10:05]CAPDU: 80 11 00 00 [22:10:05]Write to MH i2c: E2 08 00 F7 07 80 11 00 00 00 00 00 00 78 [22:10:05]Write i2c OK [22:10:05]MH_I2C_Read... [22:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:05]Read from MH i2c: E2 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 17 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 17 00 F7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [22:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:10:05]wFMCommunicate OK [22:10:05]requested_item fd.num is exist - process it [22:10:05]SAM_PROTO_GetFieldsCounters [22:10:05]wFMCommunicate request_size=4 [22:10:05]MH_SAM_APDU [22:10:05]CAPDU: 80 13 00 00 [22:10:05]Write to MH i2c: E2 08 00 F8 07 80 13 00 00 00 00 00 00 7B [22:10:05]Write i2c OK [22:10:05]MH_I2C_Read... [22:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:05]Read from MH i2c: E2 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 62 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 62 00 F8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [22:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:05]wFMCommunicate OK [22:10:05]SAM_PROTO_GetFieldsCounters done [22:10:05]requested_item shift.num is exist - process it [22:10:05]requested_item shift.opened is exist - process it [22:10:05]req_shift_opened [22:10:05]FM_GetShiftState [22:10:05]SAM_PROTO_GetShiftState [22:10:05]wFMCommunicate request_size=4 [22:10:05]MH_SAM_APDU [22:10:05]CAPDU: 80 13 01 00 [22:10:05]Write to MH i2c: E2 08 00 F9 07 80 13 01 00 00 00 00 00 7D [22:10:05]Write i2c OK [22:10:05]MH_I2C_Read... [22:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:05]Read from MH i2c: E2 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 0E 00 [22:10:05]MH_I2C_Read... [22:10:05]Read from MH i2c: E2 0E 00 F9 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A1 [22:10:05]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:10:05]wFMCommunicate OK [22:10:05]SAM_PROTO_GetShiftState done [22:10:05]FM_GetShiftState done [22:10:05]req_shift_opened done [22:10:05]requested_item shift.open_date is exist - process it [22:10:05]req_shift_open_date [22:10:05]req_shift_open_date done [22:10:05]produce_requested_data done [22:10:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186667,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:10:05]process_action_free close_receipt [22:10:05]json_value_free [22:10:05]json_value_free done [22:10:05]process_json_proto returns [22:10:05]Send response to host [22:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186667,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:10:05]free response buf [22:10:05]execute_script done [22:10:05]execute_script returns [22:10:05]free content buf [22:10:05]Sock 9.Close socket [22:10:05]Sock 9.Thread stoped [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:08]accept exits with 7 [22:11:08]New connection [22:11:08]New thread 3067051364 created [22:11:08]Thread 3067194724 joined [22:11:08]Waiting for new connection... [22:11:08] Sock 7.Parse request [22:11:08]Sock 7.Check first char [22:11:08]Sock 7.First char is OK [22:11:08]request: POST /json_proto HTTP/1.0 [22:11:08]Method: POST [22:11:08]URL: /json_proto [22:11:08]Method is POST - this is cgi request [22:11:08]url: /json_proto [22:11:08]query_string will be loaded in cgi processing [22:11:08]execute_cgi json_proto POST (null) [22:11:08]execute_cgi path=json_proto method=POST [22:11:08]POST find Content-Length [22:11:08]Host: 172.17.46.131:8080 [22:11:08]Content-Length: 796 [22:11:08]Content-Type: application/json [22:11:08] [22:11:08]POST finish read [22:11:08]Found Content-Length = 796 [22:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:08]execute_script... [22:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:08]POST & json_proto [22:11:08]process_json_proto [22:11:08]json parsed OK: [22:11:08]protocol is kg_v1.0 [22:11:08]action value=close_receipt [22:11:08]process_action close_receipt [22:11:08]cmd_close_receipt [22:11:08]MH_GetDate [22:11:08]Write to MH i2c: F0 00 00 FA 07 F0 [22:11:08]Write i2c OK [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 09 00 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: F0 09 00 FA 07 00 FD B3 B3 67 7E 41 4F 65 36 [22:11:08]GetLastDocTimeStamp 1739830202 [22:11:08]current date 1739830269 [22:11:08]FM_GetShiftState [22:11:08]SAM_PROTO_GetShiftState [22:11:08]wFMCommunicate request_size=4 [22:11:08]MH_SAM_APDU [22:11:08]CAPDU: 80 13 01 00 [22:11:08]Write to MH i2c: E2 08 00 FB 07 80 13 01 00 00 00 00 00 7F [22:11:08]Write i2c OK [22:11:08]MH_I2C_Read... [22:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:08]Read from MH i2c: E2 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: E2 0E 00 [22:11:08]MH_I2C_Read... [22:11:08]Read from MH i2c: E2 0E 00 FB 07 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 A3 [22:11:08]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:11:08]wFMCommunicate OK [22:11:08]SAM_PROTO_GetShiftState done [22:11:08]FM_GetShiftState done [22:11:08]opened in 1739752571 [22:11:08]opened+sec_in_day 1739838971 [22:11:08]quantity*price = 40002 [22:11:08]sum+1 = 40004 [22:11:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.03 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.03 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 255 17.02.2025 22:11 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186668 ФПД: 234972597366146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221109&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186668&fm=234972597366146&tin=02508201610067®Number=0000000000091857&sum=40003 [22:11:09]StoreToDocumentArchive [22:11:09]shift 644 fd 186668 [22:11:09]save to /storage/0644/doc_00186668 [22:11:09]save last doc name /storage/0644/doc_00186668 to /storage/kkm_last_doc_name [22:11:09]save OK [22:11:09]Clear old archive folders... [22:11:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:11:09]tlvbuf is 005CF3F0 [22:11:09]SAM_PROTO_ClearQueue [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 09 00 00 [22:11:09]Write to MH i2c: E2 08 00 08 08 80 09 00 00 00 00 00 00 82 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 08 08 00 90 00 84 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]SAM_PROTO_ClearQueue done [22:11:09]KKMCreateOFDPacket [22:11:09]OFDProtocolAddRootSTLVToBuf [22:11:09]FM_MakeSignedData [22:11:09]FM_MakeSignedData [22:11:09]SAM_PROTO_SignData [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 01 02 [22:11:09]Write to MH i2c: E2 08 00 09 08 80 0D 01 02 00 00 00 00 8A [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 09 08 00 90 00 85 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=255 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FD B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C D9 02 00 35 04 06 00 D5 B4 D2 32 [22:11:09]Write to MH i2c: E2 02 01 0A 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FD B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C D9 02 00 35 04 06 00 D5 B4 D2 32 00 00 8A [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0A 08 00 90 00 86 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=7 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 02 02 02 AD 82 [22:11:09]Write to MH i2c: E2 0A 00 0B 08 80 0D 02 02 02 00 AD 82 00 00 C0 [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:09]Read from MH i2c: E2 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 [22:11:09]MH_I2C_Read... [22:11:09]Read from MH i2c: E2 03 00 0B 08 00 90 00 87 [22:11:09]RAPDU: 90 00 [22:11:09]wFMCommunicate OK [22:11:09]wFMCommunicate request_size=4 [22:11:09]MH_SAM_APDU [22:11:09]CAPDU: 80 0D 03 02 [22:11:09]Write to MH i2c: E2 08 00 0C 08 80 0D 03 02 00 00 00 00 8F [22:11:09]Write i2c OK [22:11:09]MH_I2C_Read... [22:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:10]Read from MH i2c: E2 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: E2 0B 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: E2 0B 00 0C 08 00 C1 3C 27 98 9F F1 7B AD 90 00 04 [22:11:10]RAPDU: C1 3C 27 98 9F F1 7B AD 90 00 [22:11:10]wFMCommunicate OK [22:11:10]SAM_PROTO_SignData done [22:11:10]FM_MakeSignedData done [22:11:10]CreateOFDProtocolMessage [22:11:10]wFMCommunicate request_size=4 [22:11:10]MH_SAM_APDU [22:11:10]CAPDU: 80 11 00 00 [22:11:10]Write to MH i2c: E2 08 00 0D 08 80 11 00 00 00 00 00 00 8F [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:10]Read from MH i2c: E2 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: E2 17 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: E2 17 00 0D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [22:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:11:10]wFMCommunicate OK [22:11:10]CreateOFDProtocolMessage done [22:11:10]OFDSenderStorePacket 186668 [22:11:10]StoreOFDPacket docnum=186668 [22:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 CC DC 04 01 E7 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FD B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C D9 02 00 35 04 06 00 D5 B4 D2 32 AD 82 C1 3C 27 98 9F F1 7B AD [22:11:10]CheckFolder [22:11:10]dirname=/storage/ofd_packets [22:11:10]CheckFolder done [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00186668 [22:11:10]NVStorageSaveData ofd_packets/00186668 [22:11:10]File name is /storage/ofd_packets/00186668 [22:11:10]Write 298 bytes [22:11:10]NVStorageSaveData done [22:11:10]OFDSenderStorePacket done [22:11:10]KKMCreateOFDPacket done [22:11:10]NVStorageSaveData kkm_last_timestamp [22:11:10]File name is /storage/kkm_last_timestamp [22:11:10]Write 4 bytes [22:11:10]NVStorageSaveData done [22:11:10]ExternCall_PrintAddStr [22:11:10]wPrintStart [22:11:10]Write to MH i2c: 01 00 00 0E 08 16 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 0E 08 00 00 00 00 00 FF 0F 2B [22:11:10]RasterBufferAndPrint [22:11:10]line Счет N : (1)411817 [22:11:10]line ИНН: 02508201610067 [22:11:10]line Контрольно-Кассовый Чек [22:11:10]line ПРОДАЖА [22:11:10]line ТРК (МРК, ГНК) : 5 [22:11:10]line Товар: 2710194210 [22:11:10]line ДТ-К-5 [22:11:10]line 5.510 * 72.60 [22:11:10]line = 400.03 [22:11:10]line НДС 12% НСП 1% [22:11:10]line > о реализуемом товаре [22:11:10]line ИТОГО: 400.03 [22:11:10]line НСП 1% : 3.54 [22:11:10]line НДС 12% : 42.48 [22:11:10]line Наличными: 0.00 [22:11:10]line Безнал.: 400.03 [22:11:10]line Место: АЗС № 92 "Партнер Нефть" [22:11:10]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:11:10]line СНО: Общий режим [22:11:10]line Чек 255 17.02.2025 22:11 [22:11:10]line Смена: 644 ФФД: 1.0 [22:11:10]line ЗНМ: 0300000118 [22:11:10]line РНМ: 0000000000091857 [22:11:10]line Версия ККМ: 001 [22:11:10]line Платежная система: O! деньги [22:11:10]line ФМ: 0000000000871826 [22:11:10]line ФД: 186668 [22:11:10]line ФПД: 234972597366146 [22:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221109&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186668&fm=234972597366146&tin=02508201610067®Number=0000000000091857&sum=40003 [22:11:10]OFD Sender: Processing packet 186668 [packets to send 49, broken 48] [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00186668 [22:11:10]OFD Sender: To server: pG, [22:11:10]CommunicateWithHost lk.salyk.kg:30040 [22:11:10]ConnectInit lk.salyk.kg [22:11:10]written 0, free lines is 4095 [22:11:10]Connected sock=10 [22:11:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 CC DC 04 01 E7 E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 43 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 43 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 FD B3 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C D9 02 00 35 04 06 00 D5 B4 D2 32 AD 82 C1 3C 27 98 9F F1 7B AD [22:11:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8C B4 47 00 2D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2C D9 02 00 F4 03 04 00 56 5A B3 67 B6 04 01 00 00 03 B2 32 12 9F 00 89 B5 [22:11:10]CommunicateWithHost err = 0 [22:11:10]CheckOFDResponse [22:11:10]1017 (14) - 77093643461234 [22:11:10]1041 (16) - 0000000000871826 [22:11:10]1040 (4) - 186668 [22:11:10]1012 (4) - 17.02.2025 15:48 [22:11:10]1206 (1) - 0 [22:11:10]OFD Sender: Remove packet 186668 [22:11:10]ProducePacketName [22:11:10]name=ofd_packets/00186668 [22:11:10]NVStorageDeleteData [22:11:10]Write to MH i2c: 01 00 00 38 08 40 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: 01 07 00 38 08 00 00 00 00 00 03 0D 57 [22:11:10]RasterBufferAndPrint [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]line [22:11:10]written 0, free lines is 3337 [22:11:10]MH_Cut [22:11:10]Write to MH i2c: D1 01 00 3F 08 01 19 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 [22:11:10]MH_I2C_Read... [22:11:10]Read from MH i2c: D1 01 00 3F 08 00 18 [22:11:10]Write to MH i2c: 01 00 00 40 08 48 [22:11:10]Write i2c OK [22:11:10]MH_I2C_Read... [22:11:11]OFD Sender: No OFD packet to send [22:11:11]*** Cut start [22:11:11]*** Partial cut [22:11:11]*** CUTSNS_PIN = 1 [22:11:11]*** CUTSNS_PIN = 0 [22:11:11]*** Brake cut motor [22:11:12]Read from MH i2c: 01 [22:11:12]MH_I2C_Read... [22:11:12]*** Stop cut motor [22:11:12]*** Cut end [22:11:12]Read from MH i2c: 01 07 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: 01 07 00 40 08 00 00 00 00 00 FF 0F 5D [22:11:12]process_action close_receipt done [22:11:12]requested_data is exist [22:11:12]produce_requested_data [22:11:12]requested_item fm.sn is exist - process it [22:11:12]wFMCommunicate request_size=4 [22:11:12]MH_SAM_APDU [22:11:12]CAPDU: 80 11 00 00 [22:11:12]Write to MH i2c: E2 08 00 41 08 80 11 00 00 00 00 00 00 C3 [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:12]Read from MH i2c: E2 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 17 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 17 00 41 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 16 [22:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:11:12]wFMCommunicate OK [22:11:12]requested_item fd.num is exist - process it [22:11:12]SAM_PROTO_GetFieldsCounters [22:11:12]wFMCommunicate request_size=4 [22:11:12]MH_SAM_APDU [22:11:12]CAPDU: 80 13 00 00 [22:11:12]Write to MH i2c: E2 08 00 42 08 80 13 00 00 00 00 00 00 C6 [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:12]Read from MH i2c: E2 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 62 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 62 00 42 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 77 [22:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2C D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:12]wFMCommunicate OK [22:11:12]SAM_PROTO_GetFieldsCounters done [22:11:12]requested_item shift.num is exist - process it [22:11:12]requested_item shift.opened is exist - process it [22:11:12]req_shift_opened [22:11:12]FM_GetShiftState [22:11:12]SAM_PROTO_GetShiftState [22:11:12]wFMCommunicate request_size=4 [22:11:12]MH_SAM_APDU [22:11:12]CAPDU: 80 13 01 00 [22:11:12]Write to MH i2c: E2 08 00 43 08 80 13 01 00 00 00 00 00 C8 [22:11:12]Write i2c OK [22:11:12]MH_I2C_Read... [22:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:12]Read from MH i2c: E2 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 0E 00 [22:11:12]MH_I2C_Read... [22:11:12]Read from MH i2c: E2 0E 00 43 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EC [22:11:12]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:11:12]wFMCommunicate OK [22:11:12]SAM_PROTO_GetShiftState done [22:11:12]FM_GetShiftState done [22:11:12]req_shift_opened done [22:11:12]requested_item shift.open_date is exist - process it [22:11:12]req_shift_open_date [22:11:12]req_shift_open_date done [22:11:12]produce_requested_data done [22:11:12]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186668,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:11:12]process_action_free close_receipt [22:11:12]json_value_free [22:11:12]json_value_free done [22:11:12]process_json_proto returns [22:11:12]Send response to host [22:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186668,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:11:12]free response buf [22:11:12]execute_script done [22:11:12]execute_script returns [22:11:12]free content buf [22:11:12]Sock 7.Close socket [22:11:12]Sock 7.Thread stoped [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:24]accept exits with 9 [22:12:24]New connection [22:12:24]New thread 3067194724 created [22:12:24]Thread 3067051364 joined [22:12:24]Waiting for new connection... [22:12:24] Sock 9.Parse request [22:12:24]Sock 9.Check first char [22:12:24]Sock 9.First char is OK [22:12:24]request: POST /json_proto HTTP/1.0 [22:12:24]Method: POST [22:12:24]URL: /json_proto [22:12:24]Method is POST - this is cgi request [22:12:24]url: /json_proto [22:12:24]query_string will be loaded in cgi processing [22:12:24]execute_cgi json_proto POST (null) [22:12:24]execute_cgi path=json_proto method=POST [22:12:24]POST find Content-Length [22:12:24]Host: 172.17.46.131:8080 [22:12:24]Content-Length: 678 [22:12:24]Content-Type: application/json [22:12:24] [22:12:24]POST finish read [22:12:24]Found Content-Length = 678 [22:12:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 24.800, "sum" : 1800.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:24]execute_script... [22:12:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 24.800, "sum" : 1800.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:24]POST & json_proto [22:12:24]process_json_proto [22:12:24]json parsed OK: [22:12:24]protocol is kg_v1.0 [22:12:24]action value=close_receipt [22:12:24]process_action close_receipt [22:12:24]cmd_close_receipt [22:12:24]MH_GetDate [22:12:24]Write to MH i2c: F0 00 00 44 08 3B [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: F0 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: F0 09 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: F0 09 00 44 08 00 49 B4 B3 67 7E 41 4F 65 CE [22:12:24]GetLastDocTimeStamp 1739830269 [22:12:24]current date 1739830345 [22:12:24]FM_GetShiftState [22:12:24]SAM_PROTO_GetShiftState [22:12:24]wFMCommunicate request_size=4 [22:12:24]MH_SAM_APDU [22:12:24]CAPDU: 80 13 01 00 [22:12:24]Write to MH i2c: E2 08 00 45 08 80 13 01 00 00 00 00 00 CA [22:12:24]Write i2c OK [22:12:24]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0E 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0E 00 45 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 EE [22:12:24]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:12:24]wFMCommunicate OK [22:12:24]SAM_PROTO_GetShiftState done [22:12:24]FM_GetShiftState done [22:12:24]opened in 1739752571 [22:12:24]opened+sec_in_day 1739838971 [22:12:24]quantity*price = 180048 [22:12:24]sum+1 = 180049 [22:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.20 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 256 17.02.2025 22:12 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186669 ФПД: 270026984152012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221225&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186669&fm=270026984152012&tin=02508201610067®Number=0000000000091857&sum=180000 [22:12:25]StoreToDocumentArchive [22:12:25]shift 644 fd 186669 [22:12:25]save to /storage/0644/doc_00186669 [22:12:25]save last doc name /storage/0644/doc_00186669 to /storage/kkm_last_doc_name [22:12:25]save OK [22:12:25]Clear old archive folders... [22:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:12:25]tlvbuf is 005FB2F0 [22:12:25]SAM_PROTO_ClearQueue [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 09 00 00 [22:12:25]Write to MH i2c: E2 08 00 52 08 80 09 00 00 00 00 00 00 CC [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 52 08 00 90 00 CE [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]SAM_PROTO_ClearQueue done [22:12:25]KKMCreateOFDPacket [22:12:25]OFDProtocolAddRootSTLVToBuf [22:12:25]FM_MakeSignedData [22:12:25]FM_MakeSignedData [22:12:25]SAM_PROTO_SignData [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 0D 01 02 [22:12:25]Write to MH i2c: E2 08 00 53 08 80 0D 01 02 00 00 00 00 D4 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 53 08 00 90 00 CF [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]wFMCommunicate request_size=255 [22:12:25]MH_SAM_APDU [22:12: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 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 49 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D D9 02 00 35 04 06 00 F5 96 8E 78 [22:12:25]Write to MH i2c: E2 02 01 54 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 49 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D D9 02 00 35 04 06 00 F5 96 8E 78 00 00 31 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 54 08 00 90 00 D0 [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]wFMCommunicate request_size=7 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 0D 02 02 02 5B CC [22:12:26]Write to MH i2c: E2 0A 00 55 08 80 0D 02 02 02 00 5B CC 00 00 02 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 03 00 55 08 00 90 00 D1 [22:12:26]RAPDU: 90 00 [22:12:26]wFMCommunicate OK [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 0D 03 02 [22:12:26]Write to MH i2c: E2 08 00 56 08 80 0D 03 02 00 00 00 00 D9 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0B 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 0B 00 56 08 00 BC 67 4C CE 85 CE 2C F3 90 00 89 [22:12:26]RAPDU: BC 67 4C CE 85 CE 2C F3 90 00 [22:12:26]wFMCommunicate OK [22:12:26]SAM_PROTO_SignData done [22:12:26]FM_MakeSignedData done [22:12:26]CreateOFDProtocolMessage [22:12:26]wFMCommunicate request_size=4 [22:12:26]MH_SAM_APDU [22:12:26]CAPDU: 80 11 00 00 [22:12:26]Write to MH i2c: E2 08 00 57 08 80 11 00 00 00 00 00 00 D9 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:26]Read from MH i2c: E2 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: E2 17 00 57 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2C [22:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:12:26]wFMCommunicate OK [22:12:26]CreateOFDProtocolMessage done [22:12:26]OFDSenderStorePacket 186669 [22:12:26]StoreOFDPacket docnum=186669 [22:12:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BD 57 04 01 F7 44 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 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 49 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D D9 02 00 35 04 06 00 F5 96 8E 78 5B CC BC 67 4C CE 85 CE 2C F3 [22:12:26]CheckFolder [22:12:26]dirname=/storage/ofd_packets [22:12:26]CheckFolder done [22:12:26]ProducePacketName [22:12:26]name=ofd_packets/00186669 [22:12:26]NVStorageSaveData ofd_packets/00186669 [22:12:26]File name is /storage/ofd_packets/00186669 [22:12:26]Write 298 bytes [22:12:26]NVStorageSaveData done [22:12:26]OFDSenderStorePacket done [22:12:26]KKMCreateOFDPacket done [22:12:26]NVStorageSaveData kkm_last_timestamp [22:12:26]File name is /storage/kkm_last_timestamp [22:12:26]Write 4 bytes [22:12:26]NVStorageSaveData done [22:12:26]ExternCall_PrintAddStr [22:12:26]wPrintStart [22:12:26]Write to MH i2c: 01 00 00 58 08 60 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 58 08 00 00 00 00 00 FF 0F 75 [22:12:26]RasterBufferAndPrint [22:12:26]line Счет N : (1)411818 [22:12:26]line ИНН: 02508201610067 [22:12:26]line Контрольно-Кассовый Чек [22:12:26]line ПРОДАЖА [22:12:26]line ТРК (МРК, ГНК) : 5 [22:12:26]line Товар: 2710194210 [22:12:26]line ДТ-К-5 [22:12:26]line 24.800 * 72.60 [22:12:26]line = 1800.48 [22:12:26]line НДС 12% НСП 1% [22:12:26]line > о реализуемом товаре [22:12:26]line ОКРУГЛЕНИЕ: -0.48 [22:12:26]line ИТОГО: 1800.00 [22:12:26]line Внесено: 1800.00 [22:12:26]line СДАЧА: 0.00 [22:12:26]line НСП 1% : 15.93 [22:12:26]line НДС 12% : 191.20 [22:12:26]line Наличными: 1800.00 [22:12:26]line Безнал.: 0.00 [22:12:26]line Место: АЗС № 92 "Партнер Нефть" [22:12:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:12:26]line СНО: Общий режим [22:12:26]line Чек 256 17.02.2025 22:12 [22:12:26]line Смена: 644 ФФД: 1.0 [22:12:26]line ЗНМ: 0300000118 [22:12:26]line РНМ: 0000000000091857 [22:12:26]line Версия ККМ: 001 [22:12:26]line ФМ: 0000000000871826 [22:12:26]line ФД: 186669 [22:12:26]line ФПД: 270026984152012 [22:12:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221225&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186669&fm=270026984152012&tin=02508201610067®Number=0000000000091857&sum=180000 [22:12:26]OFD Sender: Processing packet 186669 [packets to send 49, broken 48] [22:12:26]ProducePacketName [22:12:26]name=ofd_packets/00186669 [22:12:26]OFD Sender: To server: pG, [22:12:26]CommunicateWithHost lk.salyk.kg:30040 [22:12:26]ConnectInit lk.salyk.kg [22:12:26]written 0, free lines is 4095 [22:12:26]Connected sock=10 [22:12:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 BD 57 04 01 F7 44 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 E0 60 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 50 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 49 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D D9 02 00 35 04 06 00 F5 96 8E 78 5B CC BC 67 4C CE 85 CE 2C F3 [22:12:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 1B 3D 47 00 DC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2D D9 02 00 F4 03 04 00 A2 5A B3 67 B6 04 01 00 00 7A 46 CA AC EE 61 51 F4 [22:12:27]CommunicateWithHost err = 0 [22:12:27]CheckOFDResponse [22:12:27]1017 (14) - 77093643461234 [22:12:27]1041 (16) - 0000000000871826 [22:12:27]1040 (4) - 186669 [22:12:27]1012 (4) - 17.02.2025 15:49 [22:12:27]1206 (1) - 0 [22:12:27]OFD Sender: Remove packet 186669 [22:12:27]ProducePacketName [22:12:27]name=ofd_packets/00186669 [22:12:27]NVStorageDeleteData [22:12:27]Write to MH i2c: 01 00 00 83 08 8B [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 07 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: 01 07 00 83 08 00 00 00 00 00 F9 0C 97 [22:12:27]RasterBufferAndPrint [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]line [22:12:27]written 0, free lines is 3327 [22:12:27]MH_Cut [22:12:27]Write to MH i2c: D1 01 00 8A 08 01 64 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 01 00 [22:12:27]MH_I2C_Read... [22:12:27]Read from MH i2c: D1 01 00 8A 08 00 63 [22:12:27]Write to MH i2c: 01 00 00 8B 08 93 [22:12:27]Write i2c OK [22:12:27]MH_I2C_Read... [22:12:27]OFD Sender: No OFD packet to send [22:12:27]*** Cut start [22:12:27]*** Partial cut [22:12:27]*** CUTSNS_PIN = 1 [22:12:27]*** CUTSNS_PIN = 0 [22:12:28]*** Brake cut motor [22:12:28]Read from MH i2c: 01 [22:12:28]MH_I2C_Read... [22:12:28]*** Stop cut motor [22:12:28]*** Cut end [22:12:28]Read from MH i2c: 01 07 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 FF 0F A8 [22:12:28]process_action close_receipt done [22:12:28]requested_data is exist [22:12:28]produce_requested_data [22:12:28]requested_item fm.sn is exist - process it [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 11 00 00 [22:12:28]Write to MH i2c: E2 08 00 8C 08 80 11 00 00 00 00 00 00 0E [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 8C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 61 [22:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:12:28]wFMCommunicate OK [22:12:28]requested_item fd.num is exist - process it [22:12:28]SAM_PROTO_GetFieldsCounters [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 13 00 00 [22:12:28]Write to MH i2c: E2 08 00 8D 08 80 13 00 00 00 00 00 00 11 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 62 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 62 00 8D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [22:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2D D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_GetFieldsCounters done [22:12:28]requested_item shift.num is exist - process it [22:12:28]requested_item shift.opened is exist - process it [22:12:28]req_shift_opened [22:12:28]FM_GetShiftState [22:12:28]SAM_PROTO_GetShiftState [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 13 01 00 [22:12:28]Write to MH i2c: E2 08 00 8E 08 80 13 01 00 00 00 00 00 13 [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0E 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0E 00 8E 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 37 [22:12:28]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_GetShiftState done [22:12:28]FM_GetShiftState done [22:12:28]req_shift_opened done [22:12:28]requested_item shift.open_date is exist - process it [22:12:28]req_shift_open_date [22:12:28]req_shift_open_date done [22:12:28]produce_requested_data done [22:12:28]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186669,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:12:28]process_action_free close_receipt [22:12:28]json_value_free [22:12:28]json_value_free done [22:12:28]process_json_proto returns [22:12:28]Send response to host [22:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186669,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:12:28]free response buf [22:12:28]execute_script done [22:12:28]execute_script returns [22:12:28]free content buf [22:12:28]Sock 9.Close socket [22:12:28]Sock 9.Thread stoped [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]accept exits with 7 [22:13:42]New connection [22:13:42]New thread 3067051364 created [22:13:42]Thread 3067194724 joined [22:13:42]Waiting for new connection... [22:13:42] Sock 7.Parse request [22:13:42]Sock 7.Check first char [22:13:42]Sock 7.First char is OK [22:13:42]request: POST /json_proto HTTP/1.0 [22:13:42]Method: POST [22:13:42]URL: /json_proto [22:13:42]Method is POST - this is cgi request [22:13:42]url: /json_proto [22:13:42]query_string will be loaded in cgi processing [22:13:42]execute_cgi json_proto POST (null) [22:13:42]execute_cgi path=json_proto method=POST [22:13:42]POST find Content-Length [22:13:42]Host: 172.17.46.131:8080 [22:13:42]Content-Length: 682 [22:13:42]Content-Type: application/json [22:13:42] [22:13:42]POST finish read [22:13:42]Found Content-Length = 682 [22:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:42]execute_script... [22:13:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:42]POST & json_proto [22:13:42]process_json_proto [22:13:42]json parsed OK: [22:13:42]protocol is kg_v1.0 [22:13:42]action value=close_receipt [22:13:42]process_action close_receipt [22:13:42]cmd_close_receipt [22:13:42]MH_GetDate [22:13:42]Write to MH i2c: F0 00 00 8F 08 86 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 09 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: F0 09 00 8F 08 00 97 B4 B3 67 7E 41 4F 65 67 [22:13:42]GetLastDocTimeStamp 1739830345 [22:13:42]current date 1739830423 [22:13:42]FM_GetShiftState [22:13:42]SAM_PROTO_GetShiftState [22:13:42]wFMCommunicate request_size=4 [22:13:42]MH_SAM_APDU [22:13:42]CAPDU: 80 13 01 00 [22:13:42]Write to MH i2c: E2 08 00 90 08 80 13 01 00 00 00 00 00 15 [22:13:42]Write i2c OK [22:13:42]MH_I2C_Read... [22:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:42]Read from MH i2c: E2 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 [22:13:42]MH_I2C_Read... [22:13:42]Read from MH i2c: E2 0E 00 90 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 39 [22:13:42]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:13:42]wFMCommunicate OK [22:13:42]SAM_PROTO_GetShiftState done [22:13:42]FM_GetShiftState done [22:13:42]opened in 1739752571 [22:13:42]opened+sec_in_day 1739838971 [22:13:42]quantity*price = 100023 [22:13:42]sum+1 = 100025 [22:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 257 17.02.2025 22:13 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186670 ФПД: 155904328938550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186670&fm=155904328938550&tin=02508201610067®Number=0000000000091857&sum=100000 [22:13:43]StoreToDocumentArchive [22:13:43]shift 644 fd 186670 [22:13:43]save to /storage/0644/doc_00186670 [22:13:43]save last doc name /storage/0644/doc_00186670 to /storage/kkm_last_doc_name [22:13:43]save OK [22:13:43]Clear old archive folders... [22:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:13:43]tlvbuf is 005D99A0 [22:13:43]SAM_PROTO_ClearQueue [22:13:43]wFMCommunicate request_size=4 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 09 00 00 [22:13:43]Write to MH i2c: E2 08 00 9D 08 80 09 00 00 00 00 00 00 17 [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 9D 08 00 90 00 19 [22:13:43]RAPDU: 90 00 [22:13:43]wFMCommunicate OK [22:13:43]SAM_PROTO_ClearQueue done [22:13:43]KKMCreateOFDPacket [22:13:43]OFDProtocolAddRootSTLVToBuf [22:13:43]FM_MakeSignedData [22:13:43]FM_MakeSignedData [22:13:43]SAM_PROTO_SignData [22:13:43]wFMCommunicate request_size=4 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 0D 01 02 [22:13:43]Write to MH i2c: E2 08 00 9E 08 80 0D 01 02 00 00 00 00 1F [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 9E 08 00 90 00 1A [22:13:43]RAPDU: 90 00 [22:13:43]wFMCommunicate OK [22:13:43]wFMCommunicate request_size=255 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 97 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E D9 02 00 35 04 06 00 8D [22:13:43]Write to MH i2c: E2 02 01 9F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 97 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E D9 02 00 35 04 06 00 8D 00 00 9F [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 9F 08 00 90 00 1B [22:13:43]RAPDU: 90 00 [22:13:43]wFMCommunicate OK [22:13:43]wFMCommunicate request_size=10 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 0D 02 02 05 CB 4E 25 34 36 [22:13:43]Write to MH i2c: E2 0D 00 A0 08 80 0D 02 02 05 00 CB 4E 25 34 36 00 00 D4 [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 03 00 A0 08 00 90 00 1C [22:13:43]RAPDU: 90 00 [22:13:43]wFMCommunicate OK [22:13:43]wFMCommunicate request_size=4 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 0D 03 02 [22:13:43]Write to MH i2c: E2 08 00 A1 08 80 0D 03 02 00 00 00 00 24 [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 0B 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 0B 00 A1 08 00 A1 BA 0A 0C EC C3 62 68 90 00 0F [22:13:43]RAPDU: A1 BA 0A 0C EC C3 62 68 90 00 [22:13:43]wFMCommunicate OK [22:13:43]SAM_PROTO_SignData done [22:13:43]FM_MakeSignedData done [22:13:43]CreateOFDProtocolMessage [22:13:43]wFMCommunicate request_size=4 [22:13:43]MH_SAM_APDU [22:13:43]CAPDU: 80 11 00 00 [22:13:43]Write to MH i2c: E2 08 00 A2 08 80 11 00 00 00 00 00 00 24 [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:43]Read from MH i2c: E2 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 17 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: E2 17 00 A2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 77 [22:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:13:43]wFMCommunicate OK [22:13:43]CreateOFDProtocolMessage done [22:13:43]OFDSenderStorePacket 186670 [22:13:43]StoreOFDPacket docnum=186670 [22:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 26 07 01 83 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 97 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E D9 02 00 35 04 06 00 8D CB 4E 25 34 36 A1 BA 0A 0C EC C3 62 68 [22:13:43]CheckFolder [22:13:43]dirname=/storage/ofd_packets [22:13:43]CheckFolder done [22:13:43]ProducePacketName [22:13:43]name=ofd_packets/00186670 [22:13:43]NVStorageSaveData ofd_packets/00186670 [22:13:43]File name is /storage/ofd_packets/00186670 [22:13:43]Write 301 bytes [22:13:43]NVStorageSaveData done [22:13:43]OFDSenderStorePacket done [22:13:43]KKMCreateOFDPacket done [22:13:43]NVStorageSaveData kkm_last_timestamp [22:13:43]File name is /storage/kkm_last_timestamp [22:13:43]Write 4 bytes [22:13:43]NVStorageSaveData done [22:13:43]ExternCall_PrintAddStr [22:13:43]wPrintStart [22:13:43]Write to MH i2c: 01 00 00 A3 08 AB [22:13:43]Write i2c OK [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: 01 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: 01 07 00 [22:13:43]MH_I2C_Read... [22:13:43]Read from MH i2c: 01 07 00 A3 08 00 00 00 00 00 FF 0F C0 [22:13:43]RasterBufferAndPrint [22:13:43]line Счет N : (1)411819 [22:13:43]line ИНН: 02508201610067 [22:13:43]line Контрольно-Кассовый Чек [22:13:43]line ПРОДАЖА [22:13:43]line ТРК (МРК, ГНК) : 12 [22:13:43]line Товар: 2710124130 [22:13:43]line Аи-92-К-2 [22:13:43]line 15.580 * 64.20 [22:13:43]line = 1000.24 [22:13:43]line НДС 12% НСП 1% [22:13:43]line > о реализуемом товаре [22:13:43]line ОКРУГЛЕНИЕ: -0.24 [22:13:43]line ИТОГО: 1000.00 [22:13:43]line Внесено: 1000.00 [22:13:43]line СДАЧА: 0.00 [22:13:43]line НСП 1% : 8.85 [22:13:43]line НДС 12% : 106.22 [22:13:43]line Наличными: 1000.00 [22:13:43]line Безнал.: 0.00 [22:13:43]line Место: АЗС № 92 "Партнер Нефть" [22:13:43]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:13:43]line СНО: Общий режим [22:13:43]line Чек 257 17.02.2025 22:13 [22:13:43]line Смена: 644 ФФД: 1.0 [22:13:43]line ЗНМ: 0300000118 [22:13:43]line РНМ: 0000000000091857 [22:13:43]line Версия ККМ: 001 [22:13:43]line ФМ: 0000000000871826 [22:13:43]line ФД: 186670 [22:13:43]line ФПД: 155904328938550 [22:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221343&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186670&fm=155904328938550&tin=02508201610067®Number=0000000000091857&sum=100000 [22:13:44]OFD Sender: Processing packet 186670 [packets to send 49, broken 48] [22:13:44]ProducePacketName [22:13:44]name=ofd_packets/00186670 [22:13:44]OFD Sender: To server: pG, [22:13:44]CommunicateWithHost lk.salyk.kg:30040 [22:13:44]ConnectInit lk.salyk.kg [22:13:44]written 0, free lines is 4095 [22:13:44]Connected sock=10 [22:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 4E 26 07 01 83 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 97 B4 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E D9 02 00 35 04 06 00 8D CB 4E 25 34 36 A1 BA 0A 0C EC C3 62 68 [22:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 0A DF 47 00 72 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2E D9 02 00 F4 03 04 00 F0 5A B3 67 B6 04 01 00 00 46 6F B0 81 5F BF B1 0B [22:13:44]CommunicateWithHost err = 0 [22:13:44]CheckOFDResponse [22:13:44]1017 (14) - 77093643461234 [22:13:44]1041 (16) - 0000000000871826 [22:13:44]1040 (4) - 186670 [22:13:44]1012 (4) - 17.02.2025 15:51 [22:13:44]1206 (1) - 0 [22:13:44]OFD Sender: Remove packet 186670 [22:13:44]ProducePacketName [22:13:44]name=ofd_packets/00186670 [22:13:44]NVStorageDeleteData [22:13:44]Write to MH i2c: 01 00 00 CE 08 D6 [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 07 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: 01 07 00 CE 08 00 00 00 00 00 FD 0C E6 [22:13:44]RasterBufferAndPrint [22:13:44]line [22:13:44]line [22:13:44]line [22:13:44]line [22:13:44]line [22:13:44]written 0, free lines is 3331 [22:13:44]MH_Cut [22:13:44]Write to MH i2c: D1 01 00 D5 08 01 AF [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: D1 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: D1 01 00 [22:13:44]MH_I2C_Read... [22:13:44]Read from MH i2c: D1 01 00 D5 08 00 AE [22:13:44]Write to MH i2c: 01 00 00 D6 08 DE [22:13:44]Write i2c OK [22:13:44]MH_I2C_Read... [22:13:45]OFD Sender: No OFD packet to send [22:13:45]*** Cut start [22:13:45]*** Partial cut [22:13:45]*** CUTSNS_PIN = 1 [22:13:45]*** CUTSNS_PIN = 0 [22:13:45]*** Brake cut motor [22:13:45]Read from MH i2c: 01 [22:13:45]MH_I2C_Read... [22:13:45]*** Stop cut motor [22:13:46]*** Cut end [22:13:46]Read from MH i2c: 01 07 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 FF 0F F3 [22:13:46]process_action close_receipt done [22:13:46]requested_data is exist [22:13:46]produce_requested_data [22:13:46]requested_item fm.sn is exist - process it [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 11 00 00 [22:13:46]Write to MH i2c: E2 08 00 D7 08 80 11 00 00 00 00 00 00 59 [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 17 00 D7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [22:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:13:46]wFMCommunicate OK [22:13:46]requested_item fd.num is exist - process it [22:13:46]SAM_PROTO_GetFieldsCounters [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 13 00 00 [22:13:46]Write to MH i2c: E2 08 00 D8 08 80 13 00 00 00 00 00 00 5C [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:46]Read from MH i2c: E2 62 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 62 00 D8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [22:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2E D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_GetFieldsCounters done [22:13:46]requested_item shift.num is exist - process it [22:13:46]requested_item shift.opened is exist - process it [22:13:46]req_shift_opened [22:13:46]FM_GetShiftState [22:13:46]SAM_PROTO_GetShiftState [22:13:46]wFMCommunicate request_size=4 [22:13:46]MH_SAM_APDU [22:13:46]CAPDU: 80 13 01 00 [22:13:46]Write to MH i2c: E2 08 00 D9 08 80 13 01 00 00 00 00 00 5E [22:13:46]Write i2c OK [22:13:46]MH_I2C_Read... [22:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:46]Read from MH i2c: E2 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 [22:13:46]MH_I2C_Read... [22:13:46]Read from MH i2c: E2 0E 00 D9 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 82 [22:13:46]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:13:46]wFMCommunicate OK [22:13:46]SAM_PROTO_GetShiftState done [22:13:46]FM_GetShiftState done [22:13:46]req_shift_opened done [22:13:46]requested_item shift.open_date is exist - process it [22:13:46]req_shift_open_date [22:13:46]req_shift_open_date done [22:13:46]produce_requested_data done [22:13:46]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186670,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:13:46]process_action_free close_receipt [22:13:46]json_value_free [22:13:46]json_value_free done [22:13:46]process_json_proto returns [22:13:46]Send response to host [22:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186670,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:13:46]free response buf [22:13:46]execute_script done [22:13:46]execute_script returns [22:13:46]free content buf [22:13:46]Sock 7.Close socket [22:13:46]Sock 7.Thread stoped [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:15:57]accept exits with 9 [22:15:57]New connection [22:15:57]New thread 3067194724 created [22:15:57]Thread 3067051364 joined [22:15:57]Waiting for new connection... [22:15:57] Sock 9.Parse request [22:15:57]Sock 9.Check first char [22:15:57]Sock 9.First char is OK [22:15:57]request: POST /json_proto HTTP/1.0 [22:15:57]Method: POST [22:15:57]URL: /json_proto [22:15:57]Method is POST - this is cgi request [22:15:57]url: /json_proto [22:15:57]query_string will be loaded in cgi processing [22:15:57]execute_cgi json_proto POST (null) [22:15:57]execute_cgi path=json_proto method=POST [22:15:57]POST find Content-Length [22:15:57]Host: 172.17.46.131:8080 [22:15:57]Content-Length: 799 [22:15:57]Content-Type: application/json [22:15:57] [22:15:57]POST finish read [22:15:57]Found Content-Length = 799 [22:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:57]execute_script... [22:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 6", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:57]POST & json_proto [22:15:57]process_json_proto [22:15:57]json parsed OK: [22:15:57]protocol is kg_v1.0 [22:15:57]action value=close_receipt [22:15:57]process_action close_receipt [22:15:57]cmd_close_receipt [22:15:57]MH_GetDate [22:15:57]Write to MH i2c: F0 00 00 DA 08 D1 [22:15:57]Write i2c OK [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: F0 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: F0 09 00 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: F0 09 00 DA 08 00 1E B5 B3 67 7E 41 4F 65 3A [22:15:57]GetLastDocTimeStamp 1739830423 [22:15:57]current date 1739830558 [22:15:57]FM_GetShiftState [22:15:57]SAM_PROTO_GetShiftState [22:15:57]wFMCommunicate request_size=4 [22:15:57]MH_SAM_APDU [22:15:57]CAPDU: 80 13 01 00 [22:15:57]Write to MH i2c: E2 08 00 DB 08 80 13 01 00 00 00 00 00 60 [22:15:57]Write i2c OK [22:15:57]MH_I2C_Read... [22:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:57]Read from MH i2c: E2 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: E2 0E 00 [22:15:57]MH_I2C_Read... [22:15:57]Read from MH i2c: E2 0E 00 DB 08 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 84 [22:15:57]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:15:57]wFMCommunicate OK [22:15:57]SAM_PROTO_GetShiftState done [22:15:57]FM_GetShiftState done [22:15:57]opened in 1739752571 [22:15:57]opened+sec_in_day 1739838971 [22:15:57]quantity*price = 100042 [22:15:57]sum+1 = 100044 [22:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 258 17.02.2025 22:15 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186671 ФПД: 179383704493983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221558&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186671&fm=179383704493983&tin=02508201610067®Number=0000000000091857&sum=100043 [22:15:58]StoreToDocumentArchive [22:15:58]shift 644 fd 186671 [22:15:58]save to /storage/0644/doc_00186671 [22:15:58]save last doc name /storage/0644/doc_00186671 to /storage/kkm_last_doc_name [22:15:58]save OK [22:15:58]Clear old archive folders... [22:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:15:58]tlvbuf is 005EC540 [22:15:58]SAM_PROTO_ClearQueue [22:15:58]wFMCommunicate request_size=4 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 09 00 00 [22:15:58]Write to MH i2c: E2 08 00 E8 08 80 09 00 00 00 00 00 00 62 [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 E8 08 00 90 00 64 [22:15:58]RAPDU: 90 00 [22:15:58]wFMCommunicate OK [22:15:58]SAM_PROTO_ClearQueue done [22:15:58]KKMCreateOFDPacket [22:15:58]OFDProtocolAddRootSTLVToBuf [22:15:58]FM_MakeSignedData [22:15:58]FM_MakeSignedData [22:15:58]SAM_PROTO_SignData [22:15:58]wFMCommunicate request_size=4 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 0D 01 02 [22:15:58]Write to MH i2c: E2 08 00 E9 08 80 0D 01 02 00 00 00 00 6A [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 E9 08 00 90 00 65 [22:15:58]RAPDU: 90 00 [22:15:58]wFMCommunicate OK [22:15:58]wFMCommunicate request_size=255 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1E B5 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F D9 02 00 35 04 06 00 A3 26 05 FC [22:15:58]Write to MH i2c: E2 02 01 EA 08 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1E B5 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F D9 02 00 35 04 06 00 A3 26 05 FC 00 00 AE [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 EA 08 00 90 00 66 [22:15:58]RAPDU: 90 00 [22:15:58]wFMCommunicate OK [22:15:58]wFMCommunicate request_size=7 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 0D 02 02 02 1F 9F [22:15:58]Write to MH i2c: E2 0A 00 EB 08 80 0D 02 02 02 00 1F 9F 00 00 2F [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 03 00 EB 08 00 90 00 67 [22:15:58]RAPDU: 90 00 [22:15:58]wFMCommunicate OK [22:15:58]wFMCommunicate request_size=4 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 0D 03 02 [22:15:58]Write to MH i2c: E2 08 00 EC 08 80 0D 03 02 00 00 00 00 6F [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 0B 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 0B 00 EC 08 00 36 4C 0A 0A 9A C1 02 C0 90 00 23 [22:15:58]RAPDU: 36 4C 0A 0A 9A C1 02 C0 90 00 [22:15:58]wFMCommunicate OK [22:15:58]SAM_PROTO_SignData done [22:15:58]FM_MakeSignedData done [22:15:58]CreateOFDProtocolMessage [22:15:58]wFMCommunicate request_size=4 [22:15:58]MH_SAM_APDU [22:15:58]CAPDU: 80 11 00 00 [22:15:58]Write to MH i2c: E2 08 00 ED 08 80 11 00 00 00 00 00 00 6F [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:58]Read from MH i2c: E2 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 17 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: E2 17 00 ED 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [22:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:15:58]wFMCommunicate OK [22:15:58]CreateOFDProtocolMessage done [22:15:58]OFDSenderStorePacket 186671 [22:15:58]StoreOFDPacket docnum=186671 [22:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 59 10 04 01 D5 4B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1E B5 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F D9 02 00 35 04 06 00 A3 26 05 FC 1F 9F 36 4C 0A 0A 9A C1 02 C0 [22:15:58]CheckFolder [22:15:58]dirname=/storage/ofd_packets [22:15:58]CheckFolder done [22:15:58]ProducePacketName [22:15:58]name=ofd_packets/00186671 [22:15:58]NVStorageSaveData ofd_packets/00186671 [22:15:58]File name is /storage/ofd_packets/00186671 [22:15:58]Write 298 bytes [22:15:58]NVStorageSaveData done [22:15:58]OFDSenderStorePacket done [22:15:58]KKMCreateOFDPacket done [22:15:58]NVStorageSaveData kkm_last_timestamp [22:15:58]File name is /storage/kkm_last_timestamp [22:15:58]Write 4 bytes [22:15:58]NVStorageSaveData done [22:15:58]ExternCall_PrintAddStr [22:15:58]wPrintStart [22:15:58]Write to MH i2c: 01 00 00 EE 08 F6 [22:15:58]Write i2c OK [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: 01 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: 01 07 00 [22:15:58]MH_I2C_Read... [22:15:58]Read from MH i2c: 01 07 00 EE 08 00 00 00 00 00 FF 0F 0B [22:15:58]RasterBufferAndPrint [22:15:58]line Счет N : (1)411820 [22:15:58]line ИНН: 02508201610067 [22:15:58]line Контрольно-Кассовый Чек [22:15:58]line ПРОДАЖА [22:15:58]line ТРК (МРК, ГНК) : 6 [22:15:58]line Товар: 2710194210 [22:15:58]line ДТ-К-5 [22:15:58]line 13.780 * 72.60 [22:15:58]line = 1000.43 [22:15:58]line НДС 12% НСП 1% [22:15:58]line > о реализуемом товаре [22:15:58]line ИТОГО: 1000.43 [22:15:58]line НСП 1% : 8.85 [22:15:58]line НДС 12% : 106.24 [22:15:58]line Наличными: 0.00 [22:15:58]line Безнал.: 1000.43 [22:15:58]line Место: АЗС № 92 "Партнер Нефть" [22:15:58]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:15:58]line СНО: Общий режим [22:15:58]line Чек 258 17.02.2025 22:15 [22:15:58]line Смена: 644 ФФД: 1.0 [22:15:58]line ЗНМ: 0300000118 [22:15:58]line РНМ: 0000000000091857 [22:15:58]line Версия ККМ: 001 [22:15:58]line Платежная система: O! деньги [22:15:58]line ФМ: 0000000000871826 [22:15:58]line ФД: 186671 [22:15:58]line ФПД: 179383704493983 [22:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T221558&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186671&fm=179383704493983&tin=02508201610067®Number=0000000000091857&sum=100043 [22:15:59]OFD Sender: Processing packet 186671 [packets to send 49, broken 48] [22:15:59]ProducePacketName [22:15:59]name=ofd_packets/00186671 [22:15:59]OFD Sender: To server: pG, [22:15:59]CommunicateWithHost lk.salyk.kg:30040 [22:15:59]ConnectInit lk.salyk.kg [22:15:59]written 0, free lines is 4095 [22:15:59]Connected sock=10 [22:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 59 10 04 01 D5 4B 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 1E B5 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F D9 02 00 35 04 06 00 A3 26 05 FC 1F 9F 36 4C 0A 0A 9A C1 02 C0 [22:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 9B 18 47 00 E7 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 2F D9 02 00 F4 03 04 00 77 5B B3 67 B6 04 01 00 00 26 E6 B2 02 E2 E7 95 B6 [22:15:59]CommunicateWithHost err = 0 [22:15:59]CheckOFDResponse [22:15:59]1017 (14) - 77093643461234 [22:15:59]1041 (16) - 0000000000871826 [22:15:59]1040 (4) - 186671 [22:15:59]1012 (4) - 17.02.2025 15:53 [22:15:59]1206 (1) - 0 [22:15:59]OFD Sender: Remove packet 186671 [22:15:59]ProducePacketName [22:15:59]name=ofd_packets/00186671 [22:15:59]NVStorageDeleteData [22:15:59]Write to MH i2c: 01 00 00 18 09 21 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: 01 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: 01 07 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: 01 07 00 18 09 00 00 00 00 00 0A 0D 3F [22:15:59]RasterBufferAndPrint [22:15:59]line [22:15:59]line [22:15:59]line [22:15:59]line [22:15:59]line [22:15:59]written 0, free lines is 3344 [22:15:59]MH_Cut [22:15:59]Write to MH i2c: D1 01 00 1F 09 01 FA [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: D1 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: D1 01 00 [22:15:59]MH_I2C_Read... [22:15:59]Read from MH i2c: D1 01 00 1F 09 00 F9 [22:15:59]Write to MH i2c: 01 00 00 20 09 29 [22:15:59]Write i2c OK [22:15:59]MH_I2C_Read... [22:16:00]OFD Sender: No OFD packet to send [22:16:00]*** Cut start [22:16:00]*** Partial cut [22:16:00]*** CUTSNS_PIN = 1 [22:16:00]*** CUTSNS_PIN = 0 [22:16:00]*** Brake cut motor [22:16:00]Read from MH i2c: 01 [22:16:00]MH_I2C_Read... [22:16:00]*** Stop cut motor [22:16:00]*** Cut end [22:16:00]Read from MH i2c: 01 07 00 [22:16:00]MH_I2C_Read... [22:16:00]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [22:16:00]process_action close_receipt done [22:16:00]requested_data is exist [22:16:00]produce_requested_data [22:16:00]requested_item fm.sn is exist - process it [22:16:00]wFMCommunicate request_size=4 [22:16:00]MH_SAM_APDU [22:16:00]CAPDU: 80 11 00 00 [22:16:00]Write to MH i2c: E2 08 00 21 09 80 11 00 00 00 00 00 00 A4 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 17 00 21 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F7 [22:16:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:16:01]wFMCommunicate OK [22:16:01]requested_item fd.num is exist - process it [22:16:01]SAM_PROTO_GetFieldsCounters [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 13 00 00 [22:16:01]Write to MH i2c: E2 08 00 22 09 80 13 00 00 00 00 00 00 A7 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 62 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 62 00 22 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [22:16:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 2F D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:01]wFMCommunicate OK [22:16:01]SAM_PROTO_GetFieldsCounters done [22:16:01]requested_item shift.num is exist - process it [22:16:01]requested_item shift.opened is exist - process it [22:16:01]req_shift_opened [22:16:01]FM_GetShiftState [22:16:01]SAM_PROTO_GetShiftState [22:16:01]wFMCommunicate request_size=4 [22:16:01]MH_SAM_APDU [22:16:01]CAPDU: 80 13 01 00 [22:16:01]Write to MH i2c: E2 08 00 23 09 80 13 01 00 00 00 00 00 A9 [22:16:01]Write i2c OK [22:16:01]MH_I2C_Read... [22:16:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:01]Read from MH i2c: E2 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0E 00 [22:16:01]MH_I2C_Read... [22:16:01]Read from MH i2c: E2 0E 00 23 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CD [22:16:01]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:16:01]wFMCommunicate OK [22:16:01]SAM_PROTO_GetShiftState done [22:16:01]FM_GetShiftState done [22:16:01]req_shift_opened done [22:16:01]requested_item shift.open_date is exist - process it [22:16:01]req_shift_open_date [22:16:01]req_shift_open_date done [22:16:01]produce_requested_data done [22:16:01]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186671,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:16:01]process_action_free close_receipt [22:16:01]json_value_free [22:16:01]json_value_free done [22:16:01]process_json_proto returns [22:16:01]Send response to host [22:16:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186671,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:16:01]free response buf [22:16:01]execute_script done [22:16:01]execute_script returns [22:16:01]free content buf [22:16:01]Sock 9.Close socket [22:16:01]Sock 9.Thread stoped [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:35]OFD Sender: No OFD packet to send [22:20:40]OFD Sender: No OFD packet to send [22:20:45]OFD Sender: No OFD packet to send [22:20:50]OFD Sender: No OFD packet to send [22:20:55]OFD Sender: No OFD packet to send [22:21:00]OFD Sender: No OFD packet to send [22:21:05]OFD Sender: No OFD packet to send [22:21:10]OFD Sender: No OFD packet to send [22:21:15]OFD Sender: No OFD packet to send [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:14]accept exits with 7 [22:27:14]New connection [22:27:14]New thread 3067051364 created [22:27:14]Thread 3067194724 joined [22:27:14]Waiting for new connection... [22:27:14] Sock 7.Parse request [22:27:14]Sock 7.Check first char [22:27:14]Sock 7.First char is OK [22:27:14]request: POST /json_proto HTTP/1.0 [22:27:14]Method: POST [22:27:14]URL: /json_proto [22:27:14]Method is POST - this is cgi request [22:27:14]url: /json_proto [22:27:14]query_string will be loaded in cgi processing [22:27:14]execute_cgi json_proto POST (null) [22:27:14]execute_cgi path=json_proto method=POST [22:27:14]POST find Content-Length [22:27:14]Host: 172.17.46.131:8080 [22:27:14]Content-Length: 678 [22:27:14]Content-Type: application/json [22:27:14] [22:27:14]POST finish read [22:27:14]Found Content-Length = 678 [22:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:14]execute_script... [22:27:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 10.910, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:14]POST & json_proto [22:27:14]process_json_proto [22:27:14]json parsed OK: [22:27:14]protocol is kg_v1.0 [22:27:14]action value=close_receipt [22:27:14]process_action close_receipt [22:27:14]cmd_close_receipt [22:27:14]MH_GetDate [22:27:14]Write to MH i2c: F0 00 00 24 09 1C [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: F0 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: F0 09 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: F0 09 00 24 09 00 C3 B7 B3 67 7E 41 4F 65 2C [22:27:14]GetLastDocTimeStamp 1739830558 [22:27:14]current date 1739831235 [22:27:14]FM_GetShiftState [22:27:14]SAM_PROTO_GetShiftState [22:27:14]wFMCommunicate request_size=4 [22:27:14]MH_SAM_APDU [22:27:14]CAPDU: 80 13 01 00 [22:27:14]Write to MH i2c: E2 08 00 25 09 80 13 01 00 00 00 00 00 AB [22:27:14]Write i2c OK [22:27:14]MH_I2C_Read... [22:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:14]Read from MH i2c: E2 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0E 00 [22:27:14]MH_I2C_Read... [22:27:14]Read from MH i2c: E2 0E 00 25 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 CF [22:27:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:27:14]wFMCommunicate OK [22:27:14]SAM_PROTO_GetShiftState done [22:27:14]FM_GetShiftState done [22:27:14]opened in 1739752571 [22:27:14]opened+sec_in_day 1739838971 [22:27:14]quantity*price = 70042 [22:27:14]sum+1 = 70043 [22:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 259 17.02.2025 22:27 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186672 ФПД: 40286350580685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186672&fm=40286350580685&tin=02508201610067®Number=0000000000091857&sum=70000 [22:27:15]StoreToDocumentArchive [22:27:15]shift 644 fd 186672 [22:27:15]save to /storage/0644/doc_00186672 [22:27:15]save last doc name /storage/0644/doc_00186672 to /storage/kkm_last_doc_name [22:27:15]save OK [22:27:15]Clear old archive folders... [22:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:15]tlvbuf is 005CFD60 [22:27:15]SAM_PROTO_ClearQueue [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 09 00 00 [22:27:15]Write to MH i2c: E2 08 00 32 09 80 09 00 00 00 00 00 00 AD [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 32 09 00 90 00 AF [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]SAM_PROTO_ClearQueue done [22:27:15]KKMCreateOFDPacket [22:27:15]OFDProtocolAddRootSTLVToBuf [22:27:15]FM_MakeSignedData [22:27:15]FM_MakeSignedData [22:27:15]SAM_PROTO_SignData [22:27:15]wFMCommunicate request_size=4 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 01 02 [22:27:15]Write to MH i2c: E2 08 00 33 09 80 0D 01 02 00 00 00 00 B5 [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:15]Read from MH i2c: E2 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 [22:27:15]MH_I2C_Read... [22:27:15]Read from MH i2c: E2 03 00 33 09 00 90 00 B0 [22:27:15]RAPDU: 90 00 [22:27:15]wFMCommunicate OK [22:27:15]wFMCommunicate request_size=255 [22:27:15]MH_SAM_APDU [22:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C3 B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 D9 02 00 35 04 06 00 24 [22:27:15]Write to MH i2c: E2 02 01 34 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C3 B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 D9 02 00 35 04 06 00 24 00 00 4C [22:27:15]Write i2c OK [22:27:15]MH_I2C_Read... [22:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:16]Read from MH i2c: E2 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 03 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 03 00 34 09 00 90 00 B1 [22:27:16]RAPDU: 90 00 [22:27:16]wFMCommunicate OK [22:27:16]wFMCommunicate request_size=10 [22:27:16]MH_SAM_APDU [22:27:16]CAPDU: 80 0D 02 02 05 A3 E5 9D 9B CD [22:27:16]Write to MH i2c: E2 0D 00 35 09 80 0D 02 02 05 00 A3 E5 9D 9B CD 00 00 4F [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:16]Read from MH i2c: E2 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 03 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 03 00 35 09 00 90 00 B2 [22:27:16]RAPDU: 90 00 [22:27:16]wFMCommunicate OK [22:27:16]wFMCommunicate request_size=4 [22:27:16]MH_SAM_APDU [22:27:16]CAPDU: 80 0D 03 02 [22:27:16]Write to MH i2c: E2 08 00 36 09 80 0D 03 02 00 00 00 00 BA [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:16]Read from MH i2c: E2 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 0B 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 0B 00 36 09 00 25 5C 3C 2A F3 C5 08 72 90 00 D4 [22:27:16]RAPDU: 25 5C 3C 2A F3 C5 08 72 90 00 [22:27:16]wFMCommunicate OK [22:27:16]SAM_PROTO_SignData done [22:27:16]FM_MakeSignedData done [22:27:16]CreateOFDProtocolMessage [22:27:16]wFMCommunicate request_size=4 [22:27:16]MH_SAM_APDU [22:27:16]CAPDU: 80 11 00 00 [22:27:16]Write to MH i2c: E2 08 00 37 09 80 11 00 00 00 00 00 00 BA [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:16]Read from MH i2c: E2 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 17 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: E2 17 00 37 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0D [22:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:16]wFMCommunicate OK [22:27:16]CreateOFDProtocolMessage done [22:27:16]OFDSenderStorePacket 186672 [22:27:16]StoreOFDPacket docnum=186672 [22:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FA 73 07 01 6C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C3 B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 D9 02 00 35 04 06 00 24 A3 E5 9D 9B CD 25 5C 3C 2A F3 C5 08 72 [22:27:16]CheckFolder [22:27:16]dirname=/storage/ofd_packets [22:27:16]CheckFolder done [22:27:16]ProducePacketName [22:27:16]name=ofd_packets/00186672 [22:27:16]NVStorageSaveData ofd_packets/00186672 [22:27:16]File name is /storage/ofd_packets/00186672 [22:27:16]Write 301 bytes [22:27:16]NVStorageSaveData done [22:27:16]OFDSenderStorePacket done [22:27:16]KKMCreateOFDPacket done [22:27:16]NVStorageSaveData kkm_last_timestamp [22:27:16]File name is /storage/kkm_last_timestamp [22:27:16]Write 4 bytes [22:27:16]NVStorageSaveData done [22:27:16]ExternCall_PrintAddStr [22:27:16]wPrintStart [22:27:16]Write to MH i2c: 01 00 00 38 09 41 [22:27:16]Write i2c OK [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 07 00 [22:27:16]MH_I2C_Read... [22:27:16]Read from MH i2c: 01 07 00 38 09 00 00 00 00 00 FF 0F 56 [22:27:16]RasterBufferAndPrint [22:27:16]line Счет N : (1)411821 [22:27:16]line ИНН: 02508201610067 [22:27:16]line Контрольно-Кассовый Чек [22:27:16]line ПРОДАЖА [22:27:16]line ТРК (МРК, ГНК) : 42 [22:27:16]line Товар: 2710124130 [22:27:16]line Аи-92-К-2 [22:27:16]line 10.910 * 64.20 [22:27:16]line = 700.42 [22:27:16]line НДС 12% НСП 1% [22:27:16]line > о реализуемом товаре [22:27:16]line ОКРУГЛЕНИЕ: -0.42 [22:27:16]line ИТОГО: 700.00 [22:27:16]line Внесено: 700.00 [22:27:16]line СДАЧА: 0.00 [22:27:16]line НСП 1% : 6.20 [22:27:16]line НДС 12% : 74.38 [22:27:16]line Наличными: 700.00 [22:27:16]line Безнал.: 0.00 [22:27:16]line Место: АЗС № 92 "Партнер Нефть" [22:27:16]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:27:16]line СНО: Общий режим [22:27:16]line Чек 259 17.02.2025 22:27 [22:27:16]line Смена: 644 ФФД: 1.0 [22:27:16]line ЗНМ: 0300000118 [22:27:16]line РНМ: 0000000000091857 [22:27:16]line Версия ККМ: 001 [22:27:16]line ФМ: 0000000000871826 [22:27:16]line ФД: 186672 [22:27:16]line ФПД: 40286350580685 [22:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222715&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186672&fm=40286350580685&tin=02508201610067®Number=0000000000091857&sum=70000 [22:27:16]OFD Sender: Processing packet 186672 [packets to send 49, broken 48] [22:27:16]ProducePacketName [22:27:16]name=ofd_packets/00186672 [22:27:16]OFD Sender: To server: pG, [22:27:16]CommunicateWithHost lk.salyk.kg:30040 [22:27:16]written 0, free lines is 4095 [22:27:16]ConnectInit lk.salyk.kg [22:27:16]Connected sock=10 [22:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 FA 73 07 01 6C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 9E 2A 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 C3 B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 D9 02 00 35 04 06 00 24 A3 E5 9D 9B CD 25 5C 3C 2A F3 C5 08 72 [22:27:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5B 03 47 00 3B 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 30 D9 02 00 F4 03 04 00 1C 5E B3 67 B6 04 01 00 00 12 D7 89 D8 D1 F8 1C D9 [22:27:17]CommunicateWithHost err = 0 [22:27:17]CheckOFDResponse [22:27:17]1017 (14) - 77093643461234 [22:27:17]1041 (16) - 0000000000871826 [22:27:17]1040 (4) - 186672 [22:27:17]1012 (4) - 17.02.2025 16:04 [22:27:17]1206 (1) - 0 [22:27:17]OFD Sender: Remove packet 186672 [22:27:17]ProducePacketName [22:27:17]name=ofd_packets/00186672 [22:27:17]NVStorageDeleteData [22:27:17]Write to MH i2c: 01 00 00 63 09 6C [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: 01 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: 01 07 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: 01 07 00 63 09 00 00 00 00 00 F4 0C 73 [22:27:17]RasterBufferAndPrint [22:27:17]line [22:27:17]line [22:27:17]line [22:27:17]line [22:27:17]line [22:27:17]written 0, free lines is 3322 [22:27:17]MH_Cut [22:27:17]Write to MH i2c: D1 01 00 6A 09 01 45 [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: D1 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: D1 01 00 [22:27:17]MH_I2C_Read... [22:27:17]Read from MH i2c: D1 01 00 6A 09 00 44 [22:27:17]Write to MH i2c: 01 00 00 6B 09 74 [22:27:17]Write i2c OK [22:27:17]MH_I2C_Read... [22:27:17]OFD Sender: No OFD packet to send [22:27:17]*** Cut start [22:27:17]*** Partial cut [22:27:17]*** CUTSNS_PIN = 1 [22:27:17]*** CUTSNS_PIN = 0 [22:27:18]*** Brake cut motor [22:27:18]Read from MH i2c: 01 [22:27:18]MH_I2C_Read... [22:27:18]*** Stop cut motor [22:27:18]*** Cut end [22:27:18]Read from MH i2c: 01 07 00 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [22:27:18]process_action close_receipt done [22:27:18]requested_data is exist [22:27:18]produce_requested_data [22:27:18]requested_item fm.sn is exist - process it [22:27:18]wFMCommunicate request_size=4 [22:27:18]MH_SAM_APDU [22:27:18]CAPDU: 80 11 00 00 [22:27:18]Write to MH i2c: E2 08 00 6C 09 80 11 00 00 00 00 00 00 EF [22:27:18]Write i2c OK [22:27:18]MH_I2C_Read... [22:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:18]Read from MH i2c: E2 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 17 00 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 17 00 6C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [22:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:18]wFMCommunicate OK [22:27:18]requested_item fd.num is exist - process it [22:27:18]SAM_PROTO_GetFieldsCounters [22:27:18]wFMCommunicate request_size=4 [22:27:18]MH_SAM_APDU [22:27:18]CAPDU: 80 13 00 00 [22:27:18]Write to MH i2c: E2 08 00 6D 09 80 13 00 00 00 00 00 00 F2 [22:27:18]Write i2c OK [22:27:18]MH_I2C_Read... [22:27:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:18]Read from MH i2c: E2 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 62 00 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 62 00 6D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [22:27:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 30 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:18]wFMCommunicate OK [22:27:18]SAM_PROTO_GetFieldsCounters done [22:27:18]requested_item shift.num is exist - process it [22:27:18]requested_item shift.opened is exist - process it [22:27:18]req_shift_opened [22:27:18]FM_GetShiftState [22:27:18]SAM_PROTO_GetShiftState [22:27:18]wFMCommunicate request_size=4 [22:27:18]MH_SAM_APDU [22:27:18]CAPDU: 80 13 01 00 [22:27:18]Write to MH i2c: E2 08 00 6E 09 80 13 01 00 00 00 00 00 F4 [22:27:18]Write i2c OK [22:27:18]MH_I2C_Read... [22:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:18]Read from MH i2c: E2 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 0E 00 [22:27:18]MH_I2C_Read... [22:27:18]Read from MH i2c: E2 0E 00 6E 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 18 [22:27:18]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:27:18]wFMCommunicate OK [22:27:18]SAM_PROTO_GetShiftState done [22:27:18]FM_GetShiftState done [22:27:18]req_shift_opened done [22:27:18]requested_item shift.open_date is exist - process it [22:27:18]req_shift_open_date [22:27:18]req_shift_open_date done [22:27:18]produce_requested_data done [22:27:18]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186672,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:27:18]process_action_free close_receipt [22:27:18]json_value_free [22:27:18]json_value_free done [22:27:18]process_json_proto returns [22:27:18]Send response to host [22:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186672,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:27:18]free response buf [22:27:18]execute_script done [22:27:18]execute_script returns [22:27:18]free content buf [22:27:18]Sock 7.Close socket [22:27:18]Sock 7.Thread stoped [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:39]accept exits with 9 [22:27:39]New connection [22:27:39]New thread 3067194724 created [22:27:39]Thread 3067051364 joined [22:27:39]Waiting for new connection... [22:27:39] Sock 9.Parse request [22:27:39]Sock 9.Check first char [22:27:39]Sock 9.First char is OK [22:27:39]request: POST /json_proto HTTP/1.0 [22:27:39]Method: POST [22:27:39]URL: /json_proto [22:27:39]Method is POST - this is cgi request [22:27:39]url: /json_proto [22:27:39]query_string will be loaded in cgi processing [22:27:39]execute_cgi json_proto POST (null) [22:27:39]execute_cgi path=json_proto method=POST [22:27:39]POST find Content-Length [22:27:39]Host: 172.17.46.131:8080 [22:27:39]Content-Length: 682 [22:27:39]Content-Type: application/json [22:27:39] [22:27:39]POST finish read [22:27:39]Found Content-Length = 682 [22:27:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:39]execute_script... [22:27:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 19.480, "sum" : 1400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:39]POST & json_proto [22:27:39]process_json_proto [22:27:39]json parsed OK: [22:27:39]protocol is kg_v1.0 [22:27:39]action value=close_receipt [22:27:39]process_action close_receipt [22:27:39]cmd_close_receipt [22:27:39]MH_GetDate [22:27:39]Write to MH i2c: F0 00 00 6F 09 67 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: F0 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: F0 09 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: F0 09 00 6F 09 00 DC B7 B3 67 7E 41 4F 65 90 [22:27:39]GetLastDocTimeStamp 1739831235 [22:27:39]current date 1739831260 [22:27:39]FM_GetShiftState [22:27:39]SAM_PROTO_GetShiftState [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 13 01 00 [22:27:39]Write to MH i2c: E2 08 00 70 09 80 13 01 00 00 00 00 00 F6 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0E 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0E 00 70 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1A [22:27:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:27:39]wFMCommunicate OK [22:27:39]SAM_PROTO_GetShiftState done [22:27:39]FM_GetShiftState done [22:27:39]opened in 1739752571 [22:27:39]opened+sec_in_day 1739838971 [22:27:39]quantity*price = 140061 [22:27:39]sum+1 = 140062 [22:27:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.74 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 260 17.02.2025 22:27 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186673 ФПД: 6572616027320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222740&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186673&fm=6572616027320&tin=02508201610067®Number=0000000000091857&sum=140000 [22:27:41]StoreToDocumentArchive [22:27:41]shift 644 fd 186673 [22:27:41]save to /storage/0644/doc_00186673 [22:27:41]save last doc name /storage/0644/doc_00186673 to /storage/kkm_last_doc_name [22:27:41]save OK [22:27:41]Clear old archive folders... [22:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:41]tlvbuf is 005EC440 [22:27:41]SAM_PROTO_ClearQueue [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 09 00 00 [22:27:41]Write to MH i2c: E2 08 00 7D 09 80 09 00 00 00 00 00 00 F8 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 7D 09 00 90 00 FA [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]SAM_PROTO_ClearQueue done [22:27:41]KKMCreateOFDPacket [22:27:41]OFDProtocolAddRootSTLVToBuf [22:27:41]FM_MakeSignedData [22:27:41]FM_MakeSignedData [22:27:41]SAM_PROTO_SignData [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 01 02 [22:27:41]Write to MH i2c: E2 08 00 7E 09 80 0D 01 02 00 00 00 00 00 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 7E 09 00 90 00 FB [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]wFMCommunicate request_size=255 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 DC B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 D9 02 00 35 04 06 00 05 [22:27:41]Write to MH i2c: E2 02 01 7F 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 DC B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 D9 02 00 35 04 06 00 05 00 00 6B [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 7F 09 00 90 00 FC [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]wFMCommunicate request_size=10 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 02 02 05 FA 4E 71 8C B8 [22:27:41]Write to MH i2c: E2 0D 00 80 09 80 0D 02 02 05 00 FA 4E 71 8C B8 00 00 0A [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 03 00 80 09 00 90 00 FD [22:27:41]RAPDU: 90 00 [22:27:41]wFMCommunicate OK [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 0D 03 02 [22:27:41]Write to MH i2c: E2 08 00 81 09 80 0D 03 02 00 00 00 00 05 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 0B 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 0B 00 81 09 00 95 19 3A A7 AC 7C E4 22 90 00 C3 [22:27:41]RAPDU: 95 19 3A A7 AC 7C E4 22 90 00 [22:27:41]wFMCommunicate OK [22:27:41]SAM_PROTO_SignData done [22:27:41]FM_MakeSignedData done [22:27:41]CreateOFDProtocolMessage [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 11 00 00 [22:27:41]Write to MH i2c: E2 08 00 82 09 80 11 00 00 00 00 00 00 05 [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 82 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 58 [22:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:41]wFMCommunicate OK [22:27:41]CreateOFDProtocolMessage done [22:27:41]OFDSenderStorePacket 186673 [22:27:41]StoreOFDPacket docnum=186673 [22:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 ED 07 01 DB 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 DC B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 D9 02 00 35 04 06 00 05 FA 4E 71 8C B8 95 19 3A A7 AC 7C E4 22 [22:27:41]CheckFolder [22:27:41]dirname=/storage/ofd_packets [22:27:41]CheckFolder done [22:27:41]ProducePacketName [22:27:41]name=ofd_packets/00186673 [22:27:41]NVStorageSaveData ofd_packets/00186673 [22:27:41]File name is /storage/ofd_packets/00186673 [22:27:41]Write 301 bytes [22:27:41]NVStorageSaveData done [22:27:41]OFDSenderStorePacket done [22:27:41]KKMCreateOFDPacket done [22:27:41]NVStorageSaveData kkm_last_timestamp [22:27:41]File name is /storage/kkm_last_timestamp [22:27:41]Write 4 bytes [22:27:41]NVStorageSaveData done [22:27:41]ExternCall_PrintAddStr [22:27:41]wPrintStart [22:27:41]Write to MH i2c: 01 00 00 83 09 8C [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 83 09 00 00 00 00 00 FF 0F A1 [22:27:41]RasterBufferAndPrint [22:27:41]line Счет N : (1)411822 [22:27:41]line ИНН: 02508201610067 [22:27:41]line Контрольно-Кассовый Чек [22:27:41]line ПРОДАЖА [22:27:41]line ТРК (МРК, ГНК) : 23 [22:27:41]line Товар: 2710124500 [22:27:41]line Аи-95-К-5 [22:27:41]line 19.480 * 71.90 [22:27:41]line = 1400.61 [22:27:41]line НДС 12% НСП 1% [22:27:41]line > о реализуемом товаре [22:27:41]line ОКРУГЛЕНИЕ: -0.61 [22:27:41]line ИТОГО: 1400.00 [22:27:41]line Внесено: 1400.00 [22:27:41]line СДАЧА: 0.00 [22:27:41]line НСП 1% : 12.39 [22:27:41]line НДС 12% : 148.74 [22:27:41]line Наличными: 1400.00 [22:27:41]line Безнал.: 0.00 [22:27:41]line Место: АЗС № 92 "Партнер Нефть" [22:27:41]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:27:41]line СНО: Общий режим [22:27:41]line Чек 260 17.02.2025 22:27 [22:27:41]line Смена: 644 ФФД: 1.0 [22:27:41]line ЗНМ: 0300000118 [22:27:41]line РНМ: 0000000000091857 [22:27:41]line Версия ККМ: 001 [22:27:41]line ФМ: 0000000000871826 [22:27:41]line ФД: 186673 [22:27:41]line ФПД: 6572616027320 [22:27:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222740&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186673&fm=6572616027320&tin=02508201610067®Number=0000000000091857&sum=140000 [22:27:41]OFD Sender: Processing packet 186673 [packets to send 49, broken 48] [22:27:41]ProducePacketName [22:27:41]name=ofd_packets/00186673 [22:27:41]OFD Sender: To server: pG, [22:27:41]CommunicateWithHost lk.salyk.kg:30040 [22:27:41]ConnectInit lk.salyk.kg [22:27:41]written 0, free lines is 4095 [22:27:42]Connected sock=10 [22:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D0 ED 07 01 DB 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 4C 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 1D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 DC B7 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 D9 02 00 35 04 06 00 05 FA 4E 71 8C B8 95 19 3A A7 AC 7C E4 22 [22:27:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 63 C2 47 00 98 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 31 D9 02 00 F4 03 04 00 35 5E B3 67 B6 04 01 00 00 73 1A 2F 51 29 BA 31 38 [22:27:42]CommunicateWithHost err = 0 [22:27:42]CheckOFDResponse [22:27:42]1017 (14) - 77093643461234 [22:27:42]1041 (16) - 0000000000871826 [22:27:42]1040 (4) - 186673 [22:27:42]1012 (4) - 17.02.2025 16:05 [22:27:42]1206 (1) - 0 [22:27:42]OFD Sender: Remove packet 186673 [22:27:42]ProducePacketName [22:27:42]name=ofd_packets/00186673 [22:27:42]NVStorageDeleteData [22:27:42]Write to MH i2c: 01 00 00 AE 09 B7 [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 FF 0C C9 [22:27:42]RasterBufferAndPrint [22:27:42]line [22:27:42]line [22:27:42]line [22:27:42]line [22:27:42]line [22:27:42]written 0, free lines is 3333 [22:27:42]MH_Cut [22:27:42]Write to MH i2c: D1 01 00 B5 09 01 90 [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: D1 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: D1 01 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: D1 01 00 B5 09 00 8F [22:27:42]Write to MH i2c: 01 00 00 B6 09 BF [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]OFD Sender: No OFD packet to send [22:27:43]*** Cut start [22:27:43]*** Partial cut [22:27:43]*** CUTSNS_PIN = 1 [22:27:43]*** CUTSNS_PIN = 0 [22:27:43]*** Brake cut motor [22:27:43]Read from MH i2c: 01 [22:27:43]MH_I2C_Read... [22:27:43]*** Stop cut motor [22:27:43]*** Cut end [22:27:43]Read from MH i2c: 01 07 00 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [22:27:43]process_action close_receipt done [22:27:43]requested_data is exist [22:27:43]produce_requested_data [22:27:43]requested_item fm.sn is exist - process it [22:27:43]wFMCommunicate request_size=4 [22:27:43]MH_SAM_APDU [22:27:43]CAPDU: 80 11 00 00 [22:27:43]Write to MH i2c: E2 08 00 B7 09 80 11 00 00 00 00 00 00 3A [22:27:43]Write i2c OK [22:27:43]MH_I2C_Read... [22:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:43]Read from MH i2c: E2 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: E2 17 00 [22:27:43]MH_I2C_Read... [22:27:43]Read from MH i2c: E2 17 00 B7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 8D [22:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:27:43]wFMCommunicate OK [22:27:43]requested_item fd.num is exist - process it [22:27:43]SAM_PROTO_GetFieldsCounters [22:27:43]wFMCommunicate request_size=4 [22:27:43]MH_SAM_APDU [22:27:43]CAPDU: 80 13 00 00 [22:27:43]Write to MH i2c: E2 08 00 B8 09 80 13 00 00 00 00 00 00 3D [22:27:43]Write i2c OK [22:27:43]MH_I2C_Read... [22:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:44]Read from MH i2c: E2 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 62 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 62 00 B8 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [22:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 31 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:44]wFMCommunicate OK [22:27:44]SAM_PROTO_GetFieldsCounters done [22:27:44]requested_item shift.num is exist - process it [22:27:44]requested_item shift.opened is exist - process it [22:27:44]req_shift_opened [22:27:44]FM_GetShiftState [22:27:44]SAM_PROTO_GetShiftState [22:27:44]wFMCommunicate request_size=4 [22:27:44]MH_SAM_APDU [22:27:44]CAPDU: 80 13 01 00 [22:27:44]Write to MH i2c: E2 08 00 B9 09 80 13 01 00 00 00 00 00 3F [22:27:44]Write i2c OK [22:27:44]MH_I2C_Read... [22:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:44]Read from MH i2c: E2 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 0E 00 [22:27:44]MH_I2C_Read... [22:27:44]Read from MH i2c: E2 0E 00 B9 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 63 [22:27:44]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:27:44]wFMCommunicate OK [22:27:44]SAM_PROTO_GetShiftState done [22:27:44]FM_GetShiftState done [22:27:44]req_shift_opened done [22:27:44]requested_item shift.open_date is exist - process it [22:27:44]req_shift_open_date [22:27:44]req_shift_open_date done [22:27:44]produce_requested_data done [22:27:44]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186673,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:27:44]process_action_free close_receipt [22:27:44]json_value_free [22:27:44]json_value_free done [22:27:44]process_json_proto returns [22:27:44]Send response to host [22:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186673,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:27:44]free response buf [22:27:44]execute_script done [22:27:44]execute_script returns [22:27:44]free content buf [22:27:44]Sock 9.Close socket [22:27:44]Sock 9.Thread stoped [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:25]accept exits with 7 [22:28:25]New connection [22:28:25]New thread 3067051364 created [22:28:25]Thread 3067194724 joined [22:28:25]Waiting for new connection... [22:28:25] Sock 7.Parse request [22:28:25]Sock 7.Check first char [22:28:25]Sock 7.First char is OK [22:28:25]request: POST /json_proto HTTP/1.0 [22:28:25]Method: POST [22:28:25]URL: /json_proto [22:28:25]Method is POST - this is cgi request [22:28:25]url: /json_proto [22:28:25]query_string will be loaded in cgi processing [22:28:25]execute_cgi json_proto POST (null) [22:28:25]execute_cgi path=json_proto method=POST [22:28:25]POST find Content-Length [22:28:25]Host: 172.17.46.131:8080 [22:28:25]Content-Length: 674 [22:28:25]Content-Type: application/json [22:28:25] [22:28:25]POST finish read [22:28:25]Found Content-Length = 674 [22:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:25]execute_script... [22:28:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 5", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.60, "quantity" : 11.020, "sum" : 800.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:25]POST & json_proto [22:28:25]process_json_proto [22:28:25]json parsed OK: [22:28:25]protocol is kg_v1.0 [22:28:25]action value=close_receipt [22:28:25]process_action close_receipt [22:28:25]cmd_close_receipt [22:28:25]MH_GetDate [22:28:25]Write to MH i2c: F0 00 00 BA 09 B2 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 09 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: F0 09 00 BA 09 00 0A B8 B3 67 7E 41 4F 65 0A [22:28:25]GetLastDocTimeStamp 1739831260 [22:28:25]current date 1739831306 [22:28:25]FM_GetShiftState [22:28:25]SAM_PROTO_GetShiftState [22:28:25]wFMCommunicate request_size=4 [22:28:25]MH_SAM_APDU [22:28:25]CAPDU: 80 13 01 00 [22:28:25]Write to MH i2c: E2 08 00 BB 09 80 13 01 00 00 00 00 00 41 [22:28:25]Write i2c OK [22:28:25]MH_I2C_Read... [22:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:25]Read from MH i2c: E2 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: E2 0E 00 [22:28:25]MH_I2C_Read... [22:28:25]Read from MH i2c: E2 0E 00 BB 09 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 65 [22:28:25]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:28:25]wFMCommunicate OK [22:28:25]SAM_PROTO_GetShiftState done [22:28:25]FM_GetShiftState done [22:28:25]opened in 1739752571 [22:28:25]opened+sec_in_day 1739838971 [22:28:25]quantity*price = 80005 [22:28:25]sum+1 = 80006 [22:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 261 17.02.2025 22:28 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186674 ФПД: 44828824819813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186674&fm=44828824819813&tin=02508201610067®Number=0000000000091857&sum=80000 [22:28:26]StoreToDocumentArchive [22:28:26]shift 644 fd 186674 [22:28:26]save to /storage/0644/doc_00186674 [22:28:26]save last doc name /storage/0644/doc_00186674 to /storage/kkm_last_doc_name [22:28:26]save OK [22:28:26]Clear old archive folders... [22:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:28:26]tlvbuf is 005CFDB0 [22:28:26]SAM_PROTO_ClearQueue [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 09 00 00 [22:28:26]Write to MH i2c: E2 08 00 C8 09 80 09 00 00 00 00 00 00 43 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 C8 09 00 90 00 45 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]SAM_PROTO_ClearQueue done [22:28:26]KKMCreateOFDPacket [22:28:26]OFDProtocolAddRootSTLVToBuf [22:28:26]FM_MakeSignedData [22:28:26]FM_MakeSignedData [22:28:26]SAM_PROTO_SignData [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 01 02 [22:28:26]Write to MH i2c: E2 08 00 C9 09 80 0D 01 02 00 00 00 00 4B [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 C9 09 00 90 00 46 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]wFMCommunicate request_size=255 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0A B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 D9 02 00 35 04 06 00 28 C5 86 2D [22:28:26]Write to MH i2c: E2 02 01 CA 09 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0A B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 D9 02 00 35 04 06 00 28 C5 86 2D 00 00 B8 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 CA 09 00 90 00 47 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]wFMCommunicate request_size=7 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 02 02 02 D8 65 [22:28:26]Write to MH i2c: E2 0A 00 CB 09 80 0D 02 02 02 00 D8 65 00 00 8F [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 03 00 CB 09 00 90 00 48 [22:28:26]RAPDU: 90 00 [22:28:26]wFMCommunicate OK [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 0D 03 02 [22:28:26]Write to MH i2c: E2 08 00 CC 09 80 0D 03 02 00 00 00 00 50 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 0B 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 0B 00 CC 09 00 2E 51 77 A0 A2 2D 3A F9 90 00 E9 [22:28:26]RAPDU: 2E 51 77 A0 A2 2D 3A F9 90 00 [22:28:26]wFMCommunicate OK [22:28:26]SAM_PROTO_SignData done [22:28:26]FM_MakeSignedData done [22:28:26]CreateOFDProtocolMessage [22:28:26]wFMCommunicate request_size=4 [22:28:26]MH_SAM_APDU [22:28:26]CAPDU: 80 11 00 00 [22:28:26]Write to MH i2c: E2 08 00 CD 09 80 11 00 00 00 00 00 00 50 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:26]Read from MH i2c: E2 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: E2 17 00 CD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 A3 [22:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:28:26]wFMCommunicate OK [22:28:26]CreateOFDProtocolMessage done [22:28:26]OFDSenderStorePacket 186674 [22:28:26]StoreOFDPacket docnum=186674 [22:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5F 54 04 01 44 2E 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0A B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 D9 02 00 35 04 06 00 28 C5 86 2D D8 65 2E 51 77 A0 A2 2D 3A F9 [22:28:26]CheckFolder [22:28:26]dirname=/storage/ofd_packets [22:28:26]CheckFolder done [22:28:26]ProducePacketName [22:28:26]name=ofd_packets/00186674 [22:28:26]NVStorageSaveData ofd_packets/00186674 [22:28:26]File name is /storage/ofd_packets/00186674 [22:28:26]Write 298 bytes [22:28:26]NVStorageSaveData done [22:28:26]OFDSenderStorePacket done [22:28:26]KKMCreateOFDPacket done [22:28:26]NVStorageSaveData kkm_last_timestamp [22:28:26]File name is /storage/kkm_last_timestamp [22:28:26]Write 4 bytes [22:28:26]NVStorageSaveData done [22:28:26]ExternCall_PrintAddStr [22:28:26]wPrintStart [22:28:26]Write to MH i2c: 01 00 00 CE 09 D7 [22:28:26]Write i2c OK [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 07 00 [22:28:26]MH_I2C_Read... [22:28:26]Read from MH i2c: 01 07 00 CE 09 00 00 00 00 00 FF 0F EC [22:28:26]RasterBufferAndPrint [22:28:26]line Счет N : (1)411823 [22:28:26]line ИНН: 02508201610067 [22:28:26]line Контрольно-Кассовый Чек [22:28:26]line ПРОДАЖА [22:28:26]line ТРК (МРК, ГНК) : 5 [22:28:26]line Товар: 2710194210 [22:28:26]line ДТ-К-5 [22:28:26]line 11.020 * 72.60 [22:28:26]line = 800.05 [22:28:26]line НДС 12% НСП 1% [22:28:26]line > о реализуемом товаре [22:28:26]line ОКРУГЛЕНИЕ: -0.05 [22:28:26]line ИТОГО: 800.00 [22:28:26]line Внесено: 800.00 [22:28:26]line СДАЧА: 0.00 [22:28:26]line НСП 1% : 7.08 [22:28:26]line НДС 12% : 84.96 [22:28:26]line Наличными: 800.00 [22:28:26]line Безнал.: 0.00 [22:28:26]line Место: АЗС № 92 "Партнер Нефть" [22:28:26]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:28:26]line СНО: Общий режим [22:28:26]line Чек 261 17.02.2025 22:28 [22:28:26]line Смена: 644 ФФД: 1.0 [22:28:26]line ЗНМ: 0300000118 [22:28:26]line РНМ: 0000000000091857 [22:28:26]line Версия ККМ: 001 [22:28:26]line ФМ: 0000000000871826 [22:28:26]line ФД: 186674 [22:28:26]line ФПД: 44828824819813 [22:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222826&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186674&fm=44828824819813&tin=02508201610067®Number=0000000000091857&sum=80000 [22:28:27]OFD Sender: Processing packet 186674 [packets to send 49, broken 48] [22:28:27]ProducePacketName [22:28:27]name=ofd_packets/00186674 [22:28:27]OFD Sender: To server: pG, [22:28:27]CommunicateWithHost lk.salyk.kg:30040 [22:28:27]ConnectInit lk.salyk.kg [22:28:27]written 0, free lines is 4095 [22:28:27]Connected sock=10 [22:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 5F 54 04 01 44 2E 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 0C 2B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 85 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 0A B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 D9 02 00 35 04 06 00 28 C5 86 2D D8 65 2E 51 77 A0 A2 2D 3A F9 [22:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 DC 84 47 00 E4 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 32 D9 02 00 F4 03 04 00 63 5E B3 67 B6 04 01 00 00 59 B6 16 DB 6D A0 21 A4 [22:28:27]CommunicateWithHost err = 0 [22:28:27]CheckOFDResponse [22:28:27]1017 (14) - 77093643461234 [22:28:27]1041 (16) - 0000000000871826 [22:28:27]1040 (4) - 186674 [22:28:27]1012 (4) - 17.02.2025 16:05 [22:28:27]1206 (1) - 0 [22:28:27]OFD Sender: Remove packet 186674 [22:28:27]ProducePacketName [22:28:27]name=ofd_packets/00186674 [22:28:27]NVStorageDeleteData [22:28:27]Write to MH i2c: 01 00 00 F9 09 02 [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: 01 07 00 F9 09 00 00 00 00 00 FE 0C 13 [22:28:27]RasterBufferAndPrint [22:28:27]line [22:28:27]line [22:28:27]line [22:28:27]line [22:28:27]line [22:28:27]written 0, free lines is 3332 [22:28:27]MH_Cut [22:28:27]Write to MH i2c: D1 01 00 00 0A 01 DC [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: D1 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: D1 01 00 [22:28:27]MH_I2C_Read... [22:28:27]Read from MH i2c: D1 01 00 00 0A 00 DB [22:28:27]Write to MH i2c: 01 00 00 01 0A 0B [22:28:27]Write i2c OK [22:28:27]MH_I2C_Read... [22:28:28]OFD Sender: No OFD packet to send [22:28:28]*** Cut start [22:28:28]*** Partial cut [22:28:28]*** CUTSNS_PIN = 1 [22:28:28]*** CUTSNS_PIN = 0 [22:28:28]*** Brake cut motor [22:28:29]Read from MH i2c: 01 [22:28:29]MH_I2C_Read... [22:28:29]*** Stop cut motor [22:28:29]*** Cut end [22:28:29]Read from MH i2c: 01 07 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [22:28:29]process_action close_receipt done [22:28:29]requested_data is exist [22:28:29]produce_requested_data [22:28:29]requested_item fm.sn is exist - process it [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 11 00 00 [22:28:29]Write to MH i2c: E2 08 00 02 0A 80 11 00 00 00 00 00 00 86 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 17 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 17 00 02 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 D9 [22:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:28:29]wFMCommunicate OK [22:28:29]requested_item fd.num is exist - process it [22:28:29]SAM_PROTO_GetFieldsCounters [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 00 00 [22:28:29]Write to MH i2c: E2 08 00 03 0A 80 13 00 00 00 00 00 00 89 [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 62 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 62 00 03 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [22:28:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 32 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetFieldsCounters done [22:28:29]requested_item shift.num is exist - process it [22:28:29]requested_item shift.opened is exist - process it [22:28:29]req_shift_opened [22:28:29]FM_GetShiftState [22:28:29]SAM_PROTO_GetShiftState [22:28:29]wFMCommunicate request_size=4 [22:28:29]MH_SAM_APDU [22:28:29]CAPDU: 80 13 01 00 [22:28:29]Write to MH i2c: E2 08 00 04 0A 80 13 01 00 00 00 00 00 8B [22:28:29]Write i2c OK [22:28:29]MH_I2C_Read... [22:28:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:29]Read from MH i2c: E2 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 [22:28:29]MH_I2C_Read... [22:28:29]Read from MH i2c: E2 0E 00 04 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 AF [22:28:29]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:28:29]wFMCommunicate OK [22:28:29]SAM_PROTO_GetShiftState done [22:28:29]FM_GetShiftState done [22:28:29]req_shift_opened done [22:28:29]requested_item shift.open_date is exist - process it [22:28:29]req_shift_open_date [22:28:29]req_shift_open_date done [22:28:29]produce_requested_data done [22:28:29]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186674,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:28:29]process_action_free close_receipt [22:28:29]json_value_free [22:28:29]json_value_free done [22:28:29]process_json_proto returns [22:28:29]Send response to host [22:28:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186674,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:28:29]free response buf [22:28:29]execute_script done [22:28:29]execute_script returns [22:28:29]free content buf [22:28:29]Sock 7.Close socket [22:28:29]Sock 7.Thread stoped [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:06]accept exits with 9 [22:29:06]New connection [22:29:06]New thread 3067194724 created [22:29:06]Thread 3067051364 joined [22:29:06]Waiting for new connection... [22:29:06] Sock 9.Parse request [22:29:06]Sock 9.Check first char [22:29:06]Sock 9.First char is OK [22:29:06]request: POST /json_proto HTTP/1.0 [22:29:06]Method: POST [22:29:06]URL: /json_proto [22:29:06]Method is POST - this is cgi request [22:29:06]url: /json_proto [22:29:06]query_string will be loaded in cgi processing [22:29:06]execute_cgi json_proto POST (null) [22:29:06]execute_cgi path=json_proto method=POST [22:29:06]POST find Content-Length [22:29:06]Host: 172.17.46.131:8080 [22:29:06]Content-Length: 682 [22:29:06]Content-Type: application/json [22:29:06] [22:29:06]POST finish read [22:29:06]Found Content-Length = 682 [22:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:06]execute_script... [22:29:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 15.580, "sum" : 1000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:06]POST & json_proto [22:29:06]process_json_proto [22:29:06]json parsed OK: [22:29:06]protocol is kg_v1.0 [22:29:06]action value=close_receipt [22:29:06]process_action close_receipt [22:29:06]cmd_close_receipt [22:29:06]MH_GetDate [22:29:06]Write to MH i2c: F0 00 00 05 0A FE [22:29:06]Write i2c OK [22:29:06]MH_I2C_Read... [22:29:06]Read from MH i2c: F0 [22:29:06]MH_I2C_Read... [22:29:06]Read from MH i2c: F0 09 00 [22:29:06]MH_I2C_Read... [22:29:06]Read from MH i2c: F0 09 00 05 0A 00 33 B8 B3 67 7E 41 4F 65 7F [22:29:06]GetLastDocTimeStamp 1739831306 [22:29:06]current date 1739831347 [22:29:06]FM_GetShiftState [22:29:06]SAM_PROTO_GetShiftState [22:29:06]wFMCommunicate request_size=4 [22:29:06]MH_SAM_APDU [22:29:06]CAPDU: 80 13 01 00 [22:29:06]Write to MH i2c: E2 08 00 06 0A 80 13 01 00 00 00 00 00 8D [22:29:06]Write i2c OK [22:29:06]MH_I2C_Read... [22:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:06]Read from MH i2c: E2 [22:29:06]MH_I2C_Read... [22:29:06]Read from MH i2c: E2 0E 00 [22:29:06]MH_I2C_Read... [22:29:06]Read from MH i2c: E2 0E 00 06 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B1 [22:29:06]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:29:06]wFMCommunicate OK [22:29:06]SAM_PROTO_GetShiftState done [22:29:06]FM_GetShiftState done [22:29:06]opened in 1739752571 [22:29:06]opened+sec_in_day 1739838971 [22:29:06]quantity*price = 100023 [22:29:06]sum+1 = 100025 [22:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 262 17.02.2025 22:29 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186675 ФПД: 35266426583216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222907&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186675&fm=35266426583216&tin=02508201610067®Number=0000000000091857&sum=100000 [22:29:08]StoreToDocumentArchive [22:29:08]shift 644 fd 186675 [22:29:08]save to /storage/0644/doc_00186675 [22:29:08]save last doc name /storage/0644/doc_00186675 to /storage/kkm_last_doc_name [22:29:08]save OK [22:29:08]Clear old archive folders... [22:29:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:08]tlvbuf is 005EC440 [22:29:08]SAM_PROTO_ClearQueue [22:29:08]wFMCommunicate request_size=4 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 09 00 00 [22:29:08]Write to MH i2c: E2 08 00 13 0A 80 09 00 00 00 00 00 00 8F [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [22:29:08]RAPDU: 90 00 [22:29:08]wFMCommunicate OK [22:29:08]SAM_PROTO_ClearQueue done [22:29:08]KKMCreateOFDPacket [22:29:08]OFDProtocolAddRootSTLVToBuf [22:29:08]FM_MakeSignedData [22:29:08]FM_MakeSignedData [22:29:08]SAM_PROTO_SignData [22:29:08]wFMCommunicate request_size=4 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 0D 01 02 [22:29:08]Write to MH i2c: E2 08 00 14 0A 80 0D 01 02 00 00 00 00 97 [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [22:29:08]RAPDU: 90 00 [22:29:08]wFMCommunicate OK [22:29:08]wFMCommunicate request_size=255 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 33 B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 D9 02 00 35 04 06 00 20 [22:29:08]Write to MH i2c: E2 02 01 15 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 33 B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 D9 02 00 35 04 06 00 20 00 00 54 [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]OFD Sender: No OFD packet to send [22:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [22:29:08]RAPDU: 90 00 [22:29:08]wFMCommunicate OK [22:29:08]wFMCommunicate request_size=10 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 0D 02 02 05 13 1A D4 38 B0 [22:29:08]Write to MH i2c: E2 0D 00 16 0A 80 0D 02 02 05 00 13 1A D4 38 B0 00 00 8D [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [22:29:08]RAPDU: 90 00 [22:29:08]wFMCommunicate OK [22:29:08]wFMCommunicate request_size=4 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 0D 03 02 [22:29:08]Write to MH i2c: E2 08 00 17 0A 80 0D 03 02 00 00 00 00 9C [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 0B 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 0B 00 17 0A 00 9C 6A 73 05 0E DB 88 59 90 00 E5 [22:29:08]RAPDU: 9C 6A 73 05 0E DB 88 59 90 00 [22:29:08]wFMCommunicate OK [22:29:08]SAM_PROTO_SignData done [22:29:08]FM_MakeSignedData done [22:29:08]CreateOFDProtocolMessage [22:29:08]wFMCommunicate request_size=4 [22:29:08]MH_SAM_APDU [22:29:08]CAPDU: 80 11 00 00 [22:29:08]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:08]Read from MH i2c: E2 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 17 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 EF [22:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:29:08]wFMCommunicate OK [22:29:08]CreateOFDProtocolMessage done [22:29:08]OFDSenderStorePacket 186675 [22:29:08]StoreOFDPacket docnum=186675 [22:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 4C 07 01 73 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 33 B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 D9 02 00 35 04 06 00 20 13 1A D4 38 B0 9C 6A 73 05 0E DB 88 59 [22:29:08]CheckFolder [22:29:08]dirname=/storage/ofd_packets [22:29:08]CheckFolder done [22:29:08]ProducePacketName [22:29:08]name=ofd_packets/00186675 [22:29:08]NVStorageSaveData ofd_packets/00186675 [22:29:08]File name is /storage/ofd_packets/00186675 [22:29:08]Write 301 bytes [22:29:08]NVStorageSaveData done [22:29:08]OFDSenderStorePacket done [22:29:08]KKMCreateOFDPacket done [22:29:08]NVStorageSaveData kkm_last_timestamp [22:29:08]File name is /storage/kkm_last_timestamp [22:29:08]Write 4 bytes [22:29:08]NVStorageSaveData done [22:29:08]OFD Sender: Processing packet 186675 [packets to send 49, broken 48] [22:29:08]ProducePacketName [22:29:08]name=ofd_packets/00186675 [22:29:08]OFD Sender: To server: pG, [22:29:08]CommunicateWithHost lk.salyk.kg:30040 [22:29:08]ConnectInit lk.salyk.kg [22:29:08]ExternCall_PrintAddStr [22:29:08]wPrintStart [22:29:08]Write to MH i2c: 01 00 00 19 0A 23 [22:29:08]Write i2c OK [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: 01 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: 01 07 00 [22:29:08]MH_I2C_Read... [22:29:08]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [22:29:08]RasterBufferAndPrint [22:29:08]line Счет N : (1)411824 [22:29:08]line ИНН: 02508201610067 [22:29:08]line Контрольно-Кассовый Чек [22:29:08]line ПРОДАЖА [22:29:08]line ТРК (МРК, ГНК) : 32 [22:29:08]line Товар: 2710124130 [22:29:08]line Аи-92-К-2 [22:29:08]line 15.580 * 64.20 [22:29:08]line = 1000.24 [22:29:08]line НДС 12% НСП 1% [22:29:08]line > о реализуемом товаре [22:29:08]line ОКРУГЛЕНИЕ: -0.24 [22:29:08]line ИТОГО: 1000.00 [22:29:08]line Внесено: 1000.00 [22:29:08]line СДАЧА: 0.00 [22:29:08]line НСП 1% : 8.85 [22:29:08]line НДС 12% : 106.22 [22:29:08]line Наличными: 1000.00 [22:29:08]line Безнал.: 0.00 [22:29:08]line Место: АЗС № 92 "Партнер Нефть" [22:29:08]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [22:29:08]line СНО: Общий режим [22:29:08]line Чек 262 17.02.2025 22:29 [22:29:08]line Смена: 644 ФФД: 1.0 [22:29:08]line ЗНМ: 0300000118 [22:29:08]line РНМ: 0000000000091857 [22:29:08]line Версия ККМ: 001 [22:29:08]line ФМ: 0000000000871826 [22:29:08]line ФД: 186675 [22:29:08]line ФПД: 35266426583216 [22:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T222907&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186675&fm=35266426583216&tin=02508201610067®Number=0000000000091857&sum=100000 [22:29:08]Connected sock=11 [22:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 22 4C 07 01 73 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 DC 3C 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 B8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 33 B8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 D9 02 00 35 04 06 00 20 13 1A D4 38 B0 9C 6A 73 05 0E DB 88 59 [22:29:08]written 0, free lines is 4095 [22:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 F7 6F 47 00 E9 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 33 D9 02 00 F4 03 04 00 8C 5E B3 67 B6 04 01 00 00 25 8B 55 F0 4E 82 58 BE [22:29:09]CommunicateWithHost err = 0 [22:29:09]CheckOFDResponse [22:29:09]1017 (14) - 77093643461234 [22:29:09]1041 (16) - 0000000000871826 [22:29:09]1040 (4) - 186675 [22:29:09]1012 (4) - 17.02.2025 16:06 [22:29:09]1206 (1) - 0 [22:29:09]OFD Sender: Remove packet 186675 [22:29:09]ProducePacketName [22:29:09]name=ofd_packets/00186675 [22:29:09]NVStorageDeleteData [22:29:09]Write to MH i2c: 01 00 00 44 0A 4E [22:29:09]Write i2c OK [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: 01 [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: 01 07 00 [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: 01 07 00 44 0A 00 00 00 00 00 F7 0C 58 [22:29:09]RasterBufferAndPrint [22:29:09]line [22:29:09]line [22:29:09]line [22:29:09]line [22:29:09]line [22:29:09]written 0, free lines is 3326 [22:29:09]MH_Cut [22:29:09]Write to MH i2c: D1 01 00 4B 0A 01 27 [22:29:09]Write i2c OK [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: D1 [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: D1 01 00 [22:29:09]MH_I2C_Read... [22:29:09]Read from MH i2c: D1 01 00 4B 0A 00 26 [22:29:09]Write to MH i2c: 01 00 00 4C 0A 56 [22:29:09]Write i2c OK [22:29:09]MH_I2C_Read... [22:29:09]OFD Sender: No OFD packet to send [22:29:10]*** Cut start [22:29:10]*** Partial cut [22:29:10]*** CUTSNS_PIN = 1 [22:29:10]*** CUTSNS_PIN = 0 [22:29:10]*** Brake cut motor [22:29:10]Read from MH i2c: 01 [22:29:10]MH_I2C_Read... [22:29:10]*** Stop cut motor [22:29:10]*** Cut end [22:29:10]Read from MH i2c: 01 07 00 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 FF 0F 6B [22:29:10]process_action close_receipt done [22:29:10]requested_data is exist [22:29:10]produce_requested_data [22:29:10]requested_item fm.sn is exist - process it [22:29:10]wFMCommunicate request_size=4 [22:29:10]MH_SAM_APDU [22:29:10]CAPDU: 80 11 00 00 [22:29:10]Write to MH i2c: E2 08 00 4D 0A 80 11 00 00 00 00 00 00 D1 [22:29:10]Write i2c OK [22:29:10]MH_I2C_Read... [22:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:10]Read from MH i2c: E2 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 17 00 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 17 00 4D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 24 [22:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [22:29:10]wFMCommunicate OK [22:29:10]requested_item fd.num is exist - process it [22:29:10]SAM_PROTO_GetFieldsCounters [22:29:10]wFMCommunicate request_size=4 [22:29:10]MH_SAM_APDU [22:29:10]CAPDU: 80 13 00 00 [22:29:10]Write to MH i2c: E2 08 00 4E 0A 80 13 00 00 00 00 00 00 D4 [22:29:10]Write i2c OK [22:29:10]MH_I2C_Read... [22:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:10]Read from MH i2c: E2 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 62 00 [22:29:10]MH_I2C_Read... [22:29:10]Read from MH i2c: E2 62 00 4E 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22:29:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 33 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:11]wFMCommunicate OK [22:29:11]SAM_PROTO_GetFieldsCounters done [22:29:11]requested_item shift.num is exist - process it [22:29:11]requested_item shift.opened is exist - process it [22:29:11]req_shift_opened [22:29:11]FM_GetShiftState [22:29:11]SAM_PROTO_GetShiftState [22:29:11]wFMCommunicate request_size=4 [22:29:11]MH_SAM_APDU [22:29:11]CAPDU: 80 13 01 00 [22:29:11]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [22:29:11]Write i2c OK [22:29:11]MH_I2C_Read... [22:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:11]Read from MH i2c: E2 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 0E 00 [22:29:11]MH_I2C_Read... [22:29:11]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 FA [22:29:11]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [22:29:11]wFMCommunicate OK [22:29:11]SAM_PROTO_GetShiftState done [22:29:11]FM_GetShiftState done [22:29:11]req_shift_opened done [22:29:11]requested_item shift.open_date is exist - process it [22:29:11]req_shift_open_date [22:29:11]req_shift_open_date done [22:29:11]produce_requested_data done [22:29:11]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186675,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [22:29:11]process_action_free close_receipt [22:29:11]json_value_free [22:29:11]json_value_free done [22:29:11]process_json_proto returns [22:29:11]Send response to host [22:29:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186675,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [22:29:11]free response buf [22:29:11]execute_script done [22:29:11]execute_script returns [22:29:11]free content buf [22:29:11]Sock 9.Close socket [22:29:11]Sock 9.Thread stoped [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [23:17:27]ConnectInit Can't connect to host [23:17:29]OFD Sender: Processing packet 186676 [packets to send 49, broken 48] [23:17:29]ProducePacketName [23:17:29]name=ofd_packets/00186676 [23:17:29]OFD Sender: To server: pG, [23:17:29]CommunicateWithHost lk.salyk.kg:30040 [23:17:29]ConnectInit lk.salyk.kg [23:17:29]Connected sock=7 [23:17:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0C 01 00 00 A5 20 04 01 4F 52 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 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 AB BD B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 D9 02 00 35 04 06 00 12 CB 0B 72 B4 21 2B F4 06 A7 90 82 A6 74 [23:17:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 7E A7 47 00 1F 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 34 D9 02 00 F4 03 04 00 E1 69 B3 67 B6 04 01 00 00 E1 3C E0 EA 24 8B 5D 1A [23:17:29]CommunicateWithHost err = 0 [23:17:29]CheckOFDResponse [23:17:29]1017 (14) - 77093643461234 [23:17:29]1041 (16) - 0000000000871826 [23:17:29]1040 (4) - 186676 [23:17:29]1012 (4) - 17.02.2025 16:54 [23:17:29]1206 (1) - 0 [23:17:29]OFD Sender: Remove packet 186676 [23:17:29]ProducePacketName [23:17:29]name=ofd_packets/00186676 [23:17:29]NVStorageDeleteData [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [23:26:15]OFD Sender: No OFD packet to send [23:26:20]OFD Sender: No OFD packet to send [23:26:25]OFD Sender: No OFD packet to send [23:26:30]OFD Sender: No OFD packet to send [23:26:35]OFD Sender: No OFD packet to send [23:26:40]OFD Sender: No OFD packet to send [23:26:45]OFD Sender: No OFD packet to send [23:26:50]OFD Sender: No OFD packet to send [23:26:55]OFD Sender: No OFD packet to send [23:27:00]OFD Sender: No OFD packet to send [23:27:05]OFD Sender: No OFD packet to send [23:27:10]OFD Sender: No OFD packet to send [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:35]accept exits with 9 [23:31:35]New connection [23:31:35]New thread 3067194724 created [23:31:35]Thread 3067051364 joined [23:31:35]Waiting for new connection... [23:31:35] Sock 9.Parse request [23:31:35]Sock 9.Check first char [23:31:35]Sock 9.First char is OK [23:31:35]request: POST /json_proto HTTP/1.0 [23:31:35]Method: POST [23:31:35]URL: /json_proto [23:31:35]Method is POST - this is cgi request [23:31:35]url: /json_proto [23:31:35]query_string will be loaded in cgi processing [23:31:35]execute_cgi json_proto POST (null) [23:31:35]execute_cgi path=json_proto method=POST [23:31:35]POST find Content-Length [23:31:35]Host: 172.17.46.131:8080 [23:31:35]Content-Length: 803 [23:31:35]Content-Type: application/json [23:31:35] [23:31:35]POST finish read [23:31:35]Found Content-Length = 803 [23:31:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:35]execute_script... [23:31:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 23.370, "sum" : 1500.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:35]POST & json_proto [23:31:35]process_json_proto [23:31:35]json parsed OK: [23:31:35]protocol is kg_v1.0 [23:31:35]action value=close_receipt [23:31:35]process_action close_receipt [23:31:35]cmd_close_receipt [23:31:35]MH_GetDate [23:31:35]Write to MH i2c: F0 00 00 9B 0A 94 [23:31:35]Write i2c OK [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: F0 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: F0 09 00 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: F0 09 00 9B 0A 00 D8 C6 B3 67 7E 41 4F 65 C8 [23:31:35]GetLastDocTimeStamp 1739832747 [23:31:35]current date 1739835096 [23:31:35]FM_GetShiftState [23:31:35]SAM_PROTO_GetShiftState [23:31:35]wFMCommunicate request_size=4 [23:31:35]MH_SAM_APDU [23:31:35]CAPDU: 80 13 01 00 [23:31:35]Write to MH i2c: E2 08 00 9C 0A 80 13 01 00 00 00 00 00 23 [23:31:35]Write i2c OK [23:31:35]MH_I2C_Read... [23:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:35]Read from MH i2c: E2 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 0E 00 [23:31:35]MH_I2C_Read... [23:31:35]Read from MH i2c: E2 0E 00 9C 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 47 [23:31:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:31:35]wFMCommunicate OK [23:31:35]SAM_PROTO_GetShiftState done [23:31:35]FM_GetShiftState done [23:31:35]opened in 1739752571 [23:31:35]opened+sec_in_day 1739838971 [23:31:35]quantity*price = 150035 [23:31:35]sum+1 = 150036 [23:31:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.35 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.35 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 264 17.02.2025 23:31 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186677 ФПД: 153386444285368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T233136&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186677&fm=153386444285368&tin=02508201610067®Number=0000000000091857&sum=150035 [23:31:36]StoreToDocumentArchive [23:31:36]shift 644 fd 186677 [23:31:36]save to /storage/0644/doc_00186677 [23:31:36]save last doc name /storage/0644/doc_00186677 to /storage/kkm_last_doc_name [23:31:36]save OK [23:31:36]Clear old archive folders... [23:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:31:36]tlvbuf is 005BE840 [23:31:36]SAM_PROTO_ClearQueue [23:31:36]wFMCommunicate request_size=4 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 09 00 00 [23:31:36]Write to MH i2c: E2 08 00 A9 0A 80 09 00 00 00 00 00 00 25 [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 A9 0A 00 90 00 27 [23:31:36]RAPDU: 90 00 [23:31:36]wFMCommunicate OK [23:31:36]SAM_PROTO_ClearQueue done [23:31:36]KKMCreateOFDPacket [23:31:36]OFDProtocolAddRootSTLVToBuf [23:31:36]FM_MakeSignedData [23:31:36]FM_MakeSignedData [23:31:36]SAM_PROTO_SignData [23:31:36]wFMCommunicate request_size=4 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 0D 01 02 [23:31:36]Write to MH i2c: E2 08 00 AA 0A 80 0D 01 02 00 00 00 00 2D [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 AA 0A 00 90 00 28 [23:31:36]RAPDU: 90 00 [23:31:36]wFMCommunicate OK [23:31:36]wFMCommunicate request_size=255 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D8 C6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 D9 02 00 35 04 06 00 8B [23:31:36]Write to MH i2c: E2 02 01 AB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D8 C6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 D9 02 00 35 04 06 00 8B 00 00 BA [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 AB 0A 00 90 00 29 [23:31:36]RAPDU: 90 00 [23:31:36]wFMCommunicate OK [23:31:36]wFMCommunicate request_size=10 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 0D 02 02 05 81 10 86 65 B8 [23:31:36]Write to MH i2c: E2 0D 00 AC 0A 80 0D 02 02 05 00 81 10 86 65 B8 00 00 6E [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 03 00 AC 0A 00 90 00 2A [23:31:36]RAPDU: 90 00 [23:31:36]wFMCommunicate OK [23:31:36]wFMCommunicate request_size=4 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 0D 03 02 [23:31:36]Write to MH i2c: E2 08 00 AD 0A 80 0D 03 02 00 00 00 00 32 [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 0B 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 0B 00 AD 0A 00 2A CA FD 28 A9 1C 31 76 90 00 B8 [23:31:36]RAPDU: 2A CA FD 28 A9 1C 31 76 90 00 [23:31:36]wFMCommunicate OK [23:31:36]SAM_PROTO_SignData done [23:31:36]FM_MakeSignedData done [23:31:36]CreateOFDProtocolMessage [23:31:36]wFMCommunicate request_size=4 [23:31:36]MH_SAM_APDU [23:31:36]CAPDU: 80 11 00 00 [23:31:36]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:36]Read from MH i2c: E2 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 17 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 85 [23:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:31:36]wFMCommunicate OK [23:31:36]CreateOFDProtocolMessage done [23:31:36]OFDSenderStorePacket 186677 [23:31:36]StoreOFDPacket docnum=186677 [23:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 6B 07 01 CA B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D8 C6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 D9 02 00 35 04 06 00 8B 81 10 86 65 B8 2A CA FD 28 A9 1C 31 76 [23:31:36]CheckFolder [23:31:36]dirname=/storage/ofd_packets [23:31:36]CheckFolder done [23:31:36]ProducePacketName [23:31:36]name=ofd_packets/00186677 [23:31:36]NVStorageSaveData ofd_packets/00186677 [23:31:36]File name is /storage/ofd_packets/00186677 [23:31:36]Write 301 bytes [23:31:36]NVStorageSaveData done [23:31:36]OFDSenderStorePacket done [23:31:36]KKMCreateOFDPacket done [23:31:36]NVStorageSaveData kkm_last_timestamp [23:31:36]File name is /storage/kkm_last_timestamp [23:31:36]Write 4 bytes [23:31:36]NVStorageSaveData done [23:31:36]ExternCall_PrintAddStr [23:31:36]wPrintStart [23:31:36]Write to MH i2c: 01 00 00 AF 0A B9 [23:31:36]Write i2c OK [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: 01 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: 01 07 00 [23:31:36]MH_I2C_Read... [23:31:36]Read from MH i2c: 01 07 00 AF 0A 00 00 00 00 00 FF 0F CE [23:31:36]RasterBufferAndPrint [23:31:36]line Счет N : (1)411826 [23:31:36]line ИНН: 02508201610067 [23:31:36]line Контрольно-Кассовый Чек [23:31:36]line ПРОДАЖА [23:31:36]line ТРК (МРК, ГНК) : 22 [23:31:36]line Товар: 2710124130 [23:31:36]line Аи-92-К-2 [23:31:36]line 23.370 * 64.20 [23:31:36]line = 1500.35 [23:31:36]line НДС 12% НСП 1% [23:31:36]line > о реализуемом товаре [23:31:36]line ИТОГО: 1500.35 [23:31:36]line НСП 1% : 13.28 [23:31:36]line НДС 12% : 159.33 [23:31:36]line Наличными: 0.00 [23:31:36]line Безнал.: 1500.35 [23:31:36]line Место: АЗС № 92 "Партнер Нефть" [23:31:36]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:31:36]line СНО: Общий режим [23:31:36]line Чек 264 17.02.2025 23:31 [23:31:36]line Смена: 644 ФФД: 1.0 [23:31:36]line ЗНМ: 0300000118 [23:31:36]line РНМ: 0000000000091857 [23:31:36]line Версия ККМ: 001 [23:31:36]line Платежная система: O! деньги [23:31:36]line ФМ: 0000000000871826 [23:31:36]line ФД: 186677 [23:31:36]line ФПД: 153386444285368 [23:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T233136&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186677&fm=153386444285368&tin=02508201610067®Number=0000000000091857&sum=150035 [23:31:37]OFD Sender: Processing packet 186677 [packets to send 49, broken 48] [23:31:37]ProducePacketName [23:31:37]name=ofd_packets/00186677 [23:31:37]OFD Sender: To server: pG, [23:31:37]CommunicateWithHost lk.salyk.kg:30040 [23:31:37]ConnectInit lk.salyk.kg [23:31:37]written 0, free lines is 4095 [23:31:37]Connected sock=10 [23:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 42 6B 07 01 CA B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 4A 5B 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 13 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 D8 C6 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 D9 02 00 35 04 06 00 8B 81 10 86 65 B8 2A CA FD 28 A9 1C 31 76 [23:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 28 BA 47 00 9E 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 35 D9 02 00 F4 03 04 00 31 6D B3 67 B6 04 01 00 00 28 D8 05 D4 19 F7 93 0E [23:31:37]CommunicateWithHost err = 0 [23:31:37]CheckOFDResponse [23:31:37]1017 (14) - 77093643461234 [23:31:37]1041 (16) - 0000000000871826 [23:31:37]1040 (4) - 186677 [23:31:37]1012 (4) - 17.02.2025 17:09 [23:31:37]1206 (1) - 0 [23:31:37]OFD Sender: Remove packet 186677 [23:31:37]ProducePacketName [23:31:37]name=ofd_packets/00186677 [23:31:37]NVStorageDeleteData [23:31:37]Write to MH i2c: 01 00 00 D9 0A E3 [23:31:37]Write i2c OK [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: 01 [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: 01 07 00 [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: 01 07 00 D9 0A 00 00 00 00 00 16 0D 0D [23:31:37]RasterBufferAndPrint [23:31:37]line [23:31:37]line [23:31:37]line [23:31:37]line [23:31:37]line [23:31:37]written 0, free lines is 3356 [23:31:37]MH_Cut [23:31:37]Write to MH i2c: D1 01 00 E0 0A 01 BC [23:31:37]Write i2c OK [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: D1 [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: D1 01 00 [23:31:37]MH_I2C_Read... [23:31:37]Read from MH i2c: D1 01 00 E0 0A 00 BB [23:31:37]Write to MH i2c: 01 00 00 E1 0A EB [23:31:37]Write i2c OK [23:31:37]MH_I2C_Read... [23:31:38]OFD Sender: No OFD packet to send [23:31:38]*** Cut start [23:31:38]*** Partial cut [23:31:38]*** CUTSNS_PIN = 1 [23:31:38]*** CUTSNS_PIN = 0 [23:31:38]*** Brake cut motor [23:31:39]Read from MH i2c: 01 [23:31:39]MH_I2C_Read... [23:31:39]*** Stop cut motor [23:31:39]*** Cut end [23:31:39]Read from MH i2c: 01 07 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 FF 0F 00 [23:31:39]process_action close_receipt done [23:31:39]requested_data is exist [23:31:39]produce_requested_data [23:31:39]requested_item fm.sn is exist - process it [23:31:39]wFMCommunicate request_size=4 [23:31:39]MH_SAM_APDU [23:31:39]CAPDU: 80 11 00 00 [23:31:39]Write to MH i2c: E2 08 00 E2 0A 80 11 00 00 00 00 00 00 66 [23:31:39]Write i2c OK [23:31:39]MH_I2C_Read... [23:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:39]Read from MH i2c: E2 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 17 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 17 00 E2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 B9 [23:31:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:31:39]wFMCommunicate OK [23:31:39]requested_item fd.num is exist - process it [23:31:39]SAM_PROTO_GetFieldsCounters [23:31:39]wFMCommunicate request_size=4 [23:31:39]MH_SAM_APDU [23:31:39]CAPDU: 80 13 00 00 [23:31:39]Write to MH i2c: E2 08 00 E3 0A 80 13 00 00 00 00 00 00 69 [23:31:39]Write i2c OK [23:31:39]MH_I2C_Read... [23:31:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:39]Read from MH i2c: E2 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 62 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 62 00 E3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:31:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 35 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:39]wFMCommunicate OK [23:31:39]SAM_PROTO_GetFieldsCounters done [23:31:39]requested_item shift.num is exist - process it [23:31:39]requested_item shift.opened is exist - process it [23:31:39]req_shift_opened [23:31:39]FM_GetShiftState [23:31:39]SAM_PROTO_GetShiftState [23:31:39]wFMCommunicate request_size=4 [23:31:39]MH_SAM_APDU [23:31:39]CAPDU: 80 13 01 00 [23:31:39]Write to MH i2c: E2 08 00 E4 0A 80 13 01 00 00 00 00 00 6B [23:31:39]Write i2c OK [23:31:39]MH_I2C_Read... [23:31:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:39]Read from MH i2c: E2 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 0E 00 [23:31:39]MH_I2C_Read... [23:31:39]Read from MH i2c: E2 0E 00 E4 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 8F [23:31:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:31:39]wFMCommunicate OK [23:31:39]SAM_PROTO_GetShiftState done [23:31:39]FM_GetShiftState done [23:31:39]req_shift_opened done [23:31:39]requested_item shift.open_date is exist - process it [23:31:39]req_shift_open_date [23:31:39]req_shift_open_date done [23:31:39]produce_requested_data done [23:31:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186677,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [23:31:39]process_action_free close_receipt [23:31:39]json_value_free [23:31:39]json_value_free done [23:31:39]process_json_proto returns [23:31:39]Send response to host [23:31:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186677,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [23:31:39]free response buf [23:31:39]execute_script done [23:31:39]execute_script returns [23:31:39]free content buf [23:31:39]Sock 9.Close socket [23:31:39]Sock 9.Thread stoped [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:10]accept exits with 7 [23:37:10]New connection [23:37:10]New thread 3067051364 created [23:37:10]Thread 3067194724 joined [23:37:10]Waiting for new connection... [23:37:10] Sock 7.Parse request [23:37:10]Sock 7.Check first char [23:37:10]Sock 7.First char is OK [23:37:10]request: POST /json_proto HTTP/1.0 [23:37:10]Method: POST [23:37:10]URL: /json_proto [23:37:10]Method is POST - this is cgi request [23:37:10]url: /json_proto [23:37:10]query_string will be loaded in cgi processing [23:37:10]execute_cgi json_proto POST (null) [23:37:10]execute_cgi path=json_proto method=POST [23:37:10]POST find Content-Length [23:37:10]Host: 172.17.46.131:8080 [23:37:10]Content-Length: 682 [23:37:10]Content-Type: application/json [23:37:10] [23:37:10]POST finish read [23:37:10]Found Content-Length = 682 [23:37:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:10]execute_script... [23:37:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411827", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 20.870, "sum" : 1500.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:10]POST & json_proto [23:37:10]process_json_proto [23:37:10]json parsed OK: [23:37:10]protocol is kg_v1.0 [23:37:10]action value=close_receipt [23:37:10]process_action close_receipt [23:37:10]cmd_close_receipt [23:37:10]MH_GetDate [23:37:10]Write to MH i2c: F0 00 00 E5 0A DE [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: F0 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: F0 09 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: F0 09 00 E5 0A 00 27 C8 B3 67 7E 41 4F 65 63 [23:37:10]GetLastDocTimeStamp 1739835096 [23:37:10]current date 1739835431 [23:37:10]FM_GetShiftState [23:37:10]SAM_PROTO_GetShiftState [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 13 01 00 [23:37:10]Write to MH i2c: E2 08 00 E6 0A 80 13 01 00 00 00 00 00 6D [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 E6 0A 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 91 [23:37:10]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:37:10]wFMCommunicate OK [23:37:10]SAM_PROTO_GetShiftState done [23:37:10]FM_GetShiftState done [23:37:10]opened in 1739752571 [23:37:10]opened+sec_in_day 1739838971 [23:37:10]quantity*price = 150055 [23:37:10]sum+1 = 150056 [23:37:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 265 17.02.2025 23:37 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186678 ФПД: 156867260698069 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T233711&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186678&fm=156867260698069&tin=02508201610067®Number=0000000000091857&sum=150000 [23:37:11]StoreToDocumentArchive [23:37:11]shift 644 fd 186678 [23:37:11]save to /storage/0644/doc_00186678 [23:37:11]save last doc name /storage/0644/doc_00186678 to /storage/kkm_last_doc_name [23:37:11]save OK [23:37:11]Clear old archive folders... [23:37:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:11]tlvbuf is 005BE410 [23:37:11]SAM_PROTO_ClearQueue [23:37:11]wFMCommunicate request_size=4 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 09 00 00 [23:37:11]Write to MH i2c: E2 08 00 F3 0A 80 09 00 00 00 00 00 00 6F [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 F3 0A 00 90 00 71 [23:37:11]RAPDU: 90 00 [23:37:11]wFMCommunicate OK [23:37:11]SAM_PROTO_ClearQueue done [23:37:11]KKMCreateOFDPacket [23:37:11]OFDProtocolAddRootSTLVToBuf [23:37:11]FM_MakeSignedData [23:37:11]FM_MakeSignedData [23:37:11]SAM_PROTO_SignData [23:37:11]wFMCommunicate request_size=4 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 0D 01 02 [23:37:11]Write to MH i2c: E2 08 00 F4 0A 80 0D 01 02 00 00 00 00 77 [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 F4 0A 00 90 00 72 [23:37:11]RAPDU: 90 00 [23:37:11]wFMCommunicate OK [23:37:11]wFMCommunicate request_size=255 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 27 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 D9 02 00 35 04 06 00 8E [23:37:11]Write to MH i2c: E2 02 01 F5 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 27 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 D9 02 00 35 04 06 00 8E 00 00 66 [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 F5 0A 00 90 00 73 [23:37:11]RAPDU: 90 00 [23:37:11]wFMCommunicate OK [23:37:11]wFMCommunicate request_size=10 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 0D 02 02 05 AB 81 59 CD D5 [23:37:11]Write to MH i2c: E2 0D 00 F6 0A 80 0D 02 02 05 00 AB 81 59 CD D5 00 00 AB [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 03 00 F6 0A 00 90 00 74 [23:37:11]RAPDU: 90 00 [23:37:11]wFMCommunicate OK [23:37:11]wFMCommunicate request_size=4 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 0D 03 02 [23:37:11]Write to MH i2c: E2 08 00 F7 0A 80 0D 03 02 00 00 00 00 7C [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 0B 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 0B 00 F7 0A 00 23 50 41 65 80 DD 7F BF 90 00 31 [23:37:11]RAPDU: 23 50 41 65 80 DD 7F BF 90 00 [23:37:11]wFMCommunicate OK [23:37:11]SAM_PROTO_SignData done [23:37:11]FM_MakeSignedData done [23:37:11]CreateOFDProtocolMessage [23:37:11]wFMCommunicate request_size=4 [23:37:11]MH_SAM_APDU [23:37:11]CAPDU: 80 11 00 00 [23:37:11]Write to MH i2c: E2 08 00 F8 0A 80 11 00 00 00 00 00 00 7C [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:11]Read from MH i2c: E2 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 17 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: E2 17 00 F8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CF [23:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:37:11]wFMCommunicate OK [23:37:11]CreateOFDProtocolMessage done [23:37:11]OFDSenderStorePacket 186678 [23:37:11]StoreOFDPacket docnum=186678 [23:37:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D BB 07 01 11 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 27 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 D9 02 00 35 04 06 00 8E AB 81 59 CD D5 23 50 41 65 80 DD 7F BF [23:37:11]CheckFolder [23:37:11]dirname=/storage/ofd_packets [23:37:11]CheckFolder done [23:37:11]ProducePacketName [23:37:11]name=ofd_packets/00186678 [23:37:11]NVStorageSaveData ofd_packets/00186678 [23:37:11]File name is /storage/ofd_packets/00186678 [23:37:11]Write 301 bytes [23:37:11]NVStorageSaveData done [23:37:11]OFDSenderStorePacket done [23:37:11]KKMCreateOFDPacket done [23:37:11]NVStorageSaveData kkm_last_timestamp [23:37:11]File name is /storage/kkm_last_timestamp [23:37:11]Write 4 bytes [23:37:11]NVStorageSaveData done [23:37:11]ExternCall_PrintAddStr [23:37:11]wPrintStart [23:37:11]Write to MH i2c: 01 00 00 F9 0A 03 [23:37:11]OFD Sender: Processing packet 186678 [packets to send 49, broken 48] [23:37:11]ProducePacketName [23:37:11]name=ofd_packets/00186678 [23:37:11]OFD Sender: To server: pG, [23:37:11]CommunicateWithHost lk.salyk.kg:30040 [23:37:11]ConnectInit lk.salyk.kg [23:37:11]Write i2c OK [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: 01 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: 01 07 00 [23:37:11]MH_I2C_Read... [23:37:11]Read from MH i2c: 01 07 00 F9 0A 00 00 00 00 00 FF 0F 18 [23:37:11]RasterBufferAndPrint [23:37:11]line Счет N : (1)411827 [23:37:11]line ИНН: 02508201610067 [23:37:11]line Контрольно-Кассовый Чек [23:37:11]line ПРОДАЖА [23:37:11]line ТРК (МРК, ГНК) : 33 [23:37:11]line Товар: 2710124500 [23:37:11]line Аи-95-К-5 [23:37:11]line 20.870 * 71.90 [23:37:11]line = 1500.55 [23:37:11]line НДС 12% НСП 1% [23:37:11]line > о реализуемом товаре [23:37:11]line ОКРУГЛЕНИЕ: -0.55 [23:37:11]line ИТОГО: 1500.00 [23:37:11]line Внесено: 1500.00 [23:37:11]line СДАЧА: 0.00 [23:37:11]line НСП 1% : 13.28 [23:37:11]line НДС 12% : 159.35 [23:37:11]line Наличными: 1500.00 [23:37:11]line Безнал.: 0.00 [23:37:11]line Место: АЗС № 92 "Партнер Нефть" [23:37:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:37:11]line СНО: Общий режим [23:37:11]line Чек 265 17.02.2025 23:37 [23:37:11]line Смена: 644 ФФД: 1.0 [23:37:11]line ЗНМ: 0300000118 [23:37:11]line РНМ: 0000000000091857 [23:37:11]line Версия ККМ: 001 [23:37:11]line ФМ: 0000000000871826 [23:37:11]line ФД: 186678 [23:37:11]line ФПД: 156867260698069 [23:37:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T233711&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186678&fm=156867260698069&tin=02508201610067®Number=0000000000091857&sum=150000 [23:37:12]Connected sock=11 [23:37:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 5D BB 07 01 11 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 51 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 27 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 27 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 D9 02 00 35 04 06 00 8E AB 81 59 CD D5 23 50 41 65 80 DD 7F BF [23:37:12]written 0, free lines is 4095 [23:37:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 93 46 47 00 D2 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 36 D9 02 00 F4 03 04 00 80 6E B3 67 B6 04 01 00 00 87 5D B4 D2 1F AC BC 7F [23:37:12]CommunicateWithHost err = 0 [23:37:12]CheckOFDResponse [23:37:12]1017 (14) - 77093643461234 [23:37:12]1041 (16) - 0000000000871826 [23:37:12]1040 (4) - 186678 [23:37:12]1012 (4) - 17.02.2025 17:14 [23:37:12]1206 (1) - 0 [23:37:12]OFD Sender: Remove packet 186678 [23:37:12]ProducePacketName [23:37:12]name=ofd_packets/00186678 [23:37:12]NVStorageDeleteData [23:37:12]Write to MH i2c: 01 00 00 24 0B 2F [23:37:12]Write i2c OK [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: 01 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: 01 07 00 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: 01 07 00 24 0B 00 00 00 00 00 F9 0C 3B [23:37:12]RasterBufferAndPrint [23:37:12]line [23:37:12]line [23:37:12]line [23:37:12]line [23:37:12]line [23:37:12]written 0, free lines is 3328 [23:37:12]MH_Cut [23:37:12]Write to MH i2c: D1 01 00 2B 0B 01 08 [23:37:12]Write i2c OK [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: D1 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: D1 01 00 [23:37:12]MH_I2C_Read... [23:37:12]Read from MH i2c: D1 01 00 2B 0B 00 07 [23:37:12]Write to MH i2c: 01 00 00 2C 0B 37 [23:37:12]Write i2c OK [23:37:12]MH_I2C_Read... [23:37:12]OFD Sender: No OFD packet to send [23:37:13]*** Cut start [23:37:13]*** Partial cut [23:37:13]*** CUTSNS_PIN = 1 [23:37:13]*** CUTSNS_PIN = 0 [23:37:13]*** Brake cut motor [23:37:14]Read from MH i2c: 01 [23:37:14]MH_I2C_Read... [23:37:14]*** Stop cut motor [23:37:14]*** Cut end [23:37:14]Read from MH i2c: 01 07 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: 01 07 00 2C 0B 00 00 00 00 00 FF 0F 4C [23:37:14]process_action close_receipt done [23:37:14]requested_data is exist [23:37:14]produce_requested_data [23:37:14]requested_item fm.sn is exist - process it [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 11 00 00 [23:37:14]Write to MH i2c: E2 08 00 2D 0B 80 11 00 00 00 00 00 00 B2 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 17 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 17 00 2D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 05 [23:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:37:14]wFMCommunicate OK [23:37:14]requested_item fd.num is exist - process it [23:37:14]SAM_PROTO_GetFieldsCounters [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 13 00 00 [23:37:14]Write to MH i2c: E2 08 00 2E 0B 80 13 00 00 00 00 00 00 B5 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 62 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 62 00 2E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [23:37:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 36 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:14]wFMCommunicate OK [23:37:14]SAM_PROTO_GetFieldsCounters done [23:37:14]requested_item shift.num is exist - process it [23:37:14]requested_item shift.opened is exist - process it [23:37:14]req_shift_opened [23:37:14]FM_GetShiftState [23:37:14]SAM_PROTO_GetShiftState [23:37:14]wFMCommunicate request_size=4 [23:37:14]MH_SAM_APDU [23:37:14]CAPDU: 80 13 01 00 [23:37:14]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [23:37:14]Write i2c OK [23:37:14]MH_I2C_Read... [23:37:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:14]Read from MH i2c: E2 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0E 00 [23:37:14]MH_I2C_Read... [23:37:14]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DB [23:37:14]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:37:14]wFMCommunicate OK [23:37:14]SAM_PROTO_GetShiftState done [23:37:14]FM_GetShiftState done [23:37:14]req_shift_opened done [23:37:14]requested_item shift.open_date is exist - process it [23:37:14]req_shift_open_date [23:37:14]req_shift_open_date done [23:37:14]produce_requested_data done [23:37:14]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186678,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [23:37:14]process_action_free close_receipt [23:37:14]json_value_free [23:37:14]json_value_free done [23:37:14]process_json_proto returns [23:37:14]Send response to host [23:37:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186678,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [23:37:14]free response buf [23:37:14]execute_script done [23:37:14]execute_script returns [23:37:14]free content buf [23:37:14]Sock 7.Close socket [23:37:14]Sock 7.Thread stoped [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:35]accept exits with 9 [23:40:35]New connection [23:40:35]New thread 3067194724 created [23:40:35]Thread 3067051364 joined [23:40:35]Waiting for new connection... [23:40:35] Sock 9.Parse request [23:40:35]Sock 9.Check first char [23:40:35]Sock 9.First char is OK [23:40:35]request: POST /json_proto HTTP/1.0 [23:40:35]Method: POST [23:40:35]URL: /json_proto [23:40:35]Method is POST - this is cgi request [23:40:35]url: /json_proto [23:40:35]query_string will be loaded in cgi processing [23:40:35]execute_cgi json_proto POST (null) [23:40:35]execute_cgi path=json_proto method=POST [23:40:35]POST find Content-Length [23:40:35]Host: 172.17.46.131:8080 [23:40:35]Content-Length: 642 [23:40:35]Content-Type: application/json [23:40:35] [23:40:35]POST finish read [23:40:35]Found Content-Length = 642 [23:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 30.000, "sum" : 1926.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:35]execute_script... [23:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 30.000, "sum" : 1926.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1926.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:40:35]POST & json_proto [23:40:35]process_json_proto [23:40:35]json parsed OK: [23:40:35]protocol is kg_v1.0 [23:40:35]action value=close_receipt [23:40:35]process_action close_receipt [23:40:35]cmd_close_receipt [23:40:35]MH_GetDate [23:40:35]Write to MH i2c: F0 00 00 30 0B 2A [23:40:35]Write i2c OK [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: F0 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: F0 09 00 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: F0 09 00 30 0B 00 F4 C8 B3 67 7E 41 4F 65 7C [23:40:35]GetLastDocTimeStamp 1739835431 [23:40:35]current date 1739835636 [23:40:35]FM_GetShiftState [23:40:35]SAM_PROTO_GetShiftState [23:40:35]wFMCommunicate request_size=4 [23:40:35]MH_SAM_APDU [23:40:35]CAPDU: 80 13 01 00 [23:40:35]Write to MH i2c: E2 08 00 31 0B 80 13 01 00 00 00 00 00 B9 [23:40:35]Write i2c OK [23:40:35]MH_I2C_Read... [23:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:35]Read from MH i2c: E2 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: E2 0E 00 [23:40:35]MH_I2C_Read... [23:40:35]Read from MH i2c: E2 0E 00 31 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 DD [23:40:35]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:40:35]wFMCommunicate OK [23:40:35]SAM_PROTO_GetShiftState done [23:40:35]FM_GetShiftState done [23:40:35]opened in 1739752571 [23:40:35]opened+sec_in_day 1739838971 [23:40:35]quantity*price = 192600 [23:40:35]sum+1 = 192601 [23:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1926.00 НСП 1% : 17.04 НДС 12% : 204.53 Наличными: 1926.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 266 17.02.2025 23:40 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186679 ФПД: 217124149783088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T234037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186679&fm=217124149783088&tin=02508201610067®Number=0000000000091857&sum=192600 [23:40:36]StoreToDocumentArchive [23:40:36]shift 644 fd 186679 [23:40:36]save to /storage/0644/doc_00186679 [23:40:36]save last doc name /storage/0644/doc_00186679 to /storage/kkm_last_doc_name [23:40:36]save OK [23:40:36]Clear old archive folders... [23:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:40:36]tlvbuf is 005BEEC0 [23:40:36]SAM_PROTO_ClearQueue [23:40:36]wFMCommunicate request_size=4 [23:40:36]MH_SAM_APDU [23:40:36]CAPDU: 80 09 00 00 [23:40:36]Write to MH i2c: E2 08 00 3E 0B 80 09 00 00 00 00 00 00 BB [23:40:36]Write i2c OK [23:40:36]MH_I2C_Read... [23:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:40:36]Read from MH i2c: E2 [23:40:36]MH_I2C_Read... [23:40:36]Read from MH i2c: E2 03 00 [23:40:36]MH_I2C_Read... [23:40:36]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [23:40:36]RAPDU: 90 00 [23:40:36]wFMCommunicate OK [23:40:36]SAM_PROTO_ClearQueue done [23:40:36]KKMCreateOFDPacket [23:40:36]OFDProtocolAddRootSTLVToBuf [23:40:36]FM_MakeSignedData [23:40:36]FM_MakeSignedData [23:40:36]SAM_PROTO_SignData [23:40:36]wFMCommunicate request_size=4 [23:40:36]MH_SAM_APDU [23:40:36]CAPDU: 80 0D 01 02 [23:40:36]Write to MH i2c: E2 08 00 3F 0B 80 0D 01 02 00 00 00 00 C3 [23:40:36]Write i2c OK [23:40:36]MH_I2C_Read... [23:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:40:36]Read from MH i2c: E2 [23:40:36]MH_I2C_Read... [23:40:36]Read from MH i2c: E2 03 00 [23:40:36]MH_I2C_Read... [23:40:36]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [23:40:36]RAPDU: 90 00 [23:40:36]wFMCommunicate OK [23:40:36]wFMCommunicate request_size=255 [23:40:36]MH_SAM_APDU [23:40:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F5 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 D9 02 00 35 04 06 00 C5 [23:40:36]Write to MH i2c: E2 02 01 40 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F5 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 D9 02 00 35 04 06 00 C5 00 00 A0 [23:40:36]Write i2c OK [23:40:36]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 03 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 03 00 40 0B 00 90 00 BF [23:40:37]RAPDU: 90 00 [23:40:37]wFMCommunicate OK [23:40:37]wFMCommunicate request_size=10 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 0D 02 02 05 79 27 D1 EA 30 [23:40:37]Write to MH i2c: E2 0D 00 41 0B 80 0D 02 02 05 00 79 27 D1 EA 30 00 00 5B [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 03 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [23:40:37]RAPDU: 90 00 [23:40:37]wFMCommunicate OK [23:40:37]wFMCommunicate request_size=4 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 0D 03 02 [23:40:37]Write to MH i2c: E2 08 00 42 0B 80 0D 03 02 00 00 00 00 C8 [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 0B 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 0B 00 42 0B 00 44 43 68 15 42 40 39 DB 90 00 63 [23:40:37]RAPDU: 44 43 68 15 42 40 39 DB 90 00 [23:40:37]wFMCommunicate OK [23:40:37]SAM_PROTO_SignData done [23:40:37]FM_MakeSignedData done [23:40:37]CreateOFDProtocolMessage [23:40:37]wFMCommunicate request_size=4 [23:40:37]MH_SAM_APDU [23:40:37]CAPDU: 80 11 00 00 [23:40:37]Write to MH i2c: E2 08 00 43 0B 80 11 00 00 00 00 00 00 C8 [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:37]Read from MH i2c: E2 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 17 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: E2 17 00 43 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 1B [23:40:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:40:37]wFMCommunicate OK [23:40:37]CreateOFDProtocolMessage done [23:40:37]OFDSenderStorePacket 186679 [23:40:37]StoreOFDPacket docnum=186679 [23:40:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7B E6 07 01 73 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F5 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 D9 02 00 35 04 06 00 C5 79 27 D1 EA 30 44 43 68 15 42 40 39 DB [23:40:37]CheckFolder [23:40:37]dirname=/storage/ofd_packets [23:40:37]CheckFolder done [23:40:37]ProducePacketName [23:40:37]name=ofd_packets/00186679 [23:40:37]NVStorageSaveData ofd_packets/00186679 [23:40:37]File name is /storage/ofd_packets/00186679 [23:40:37]Write 301 bytes [23:40:37]NVStorageSaveData done [23:40:37]OFDSenderStorePacket done [23:40:37]KKMCreateOFDPacket done [23:40:37]NVStorageSaveData kkm_last_timestamp [23:40:37]File name is /storage/kkm_last_timestamp [23:40:37]Write 4 bytes [23:40:37]NVStorageSaveData done [23:40:37]ExternCall_PrintAddStr [23:40:37]wPrintStart [23:40:37]Write to MH i2c: 01 00 00 44 0B 4F [23:40:37]Write i2c OK [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: 01 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: 01 07 00 [23:40:37]MH_I2C_Read... [23:40:37]Read from MH i2c: 01 07 00 44 0B 00 00 00 00 00 FF 0F 64 [23:40:37]RasterBufferAndPrint [23:40:37]line Счет N : (1)411828 [23:40:37]line ИНН: 02508201610067 [23:40:37]line Контрольно-Кассовый Чек [23:40:37]line ПРОДАЖА [23:40:37]line ТРК (МРК, ГНК) : 32 [23:40:37]line Товар: 2710124130 [23:40:37]line Аи-92-К-2 [23:40:37]line 30.000 * 64.20 [23:40:37]line = 1926.00 [23:40:37]line НДС 12% НСП 1% [23:40:37]line > о реализуемом товаре [23:40:37]line ИТОГО: 1926.00 [23:40:37]line НСП 1% : 17.04 [23:40:37]line НДС 12% : 204.53 [23:40:37]line Наличными: 1926.00 [23:40:37]line Безнал.: 0.00 [23:40:37]line Место: АЗС № 92 "Партнер Нефть" [23:40:37]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:40:37]line СНО: Общий режим [23:40:37]line Чек 266 17.02.2025 23:40 [23:40:37]line Смена: 644 ФФД: 1.0 [23:40:37]line ЗНМ: 0300000118 [23:40:37]line РНМ: 0000000000091857 [23:40:37]line Версия ККМ: 001 [23:40:37]line ФМ: 0000000000871826 [23:40:37]line ФД: 186679 [23:40:37]line ФПД: 217124149783088 [23:40:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T234037&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186679&fm=217124149783088&tin=02508201610067®Number=0000000000091857&sum=192600 [23:40:37]OFD Sender: Processing packet 186679 [packets to send 49, broken 48] [23:40:37]ProducePacketName [23:40:37]name=ofd_packets/00186679 [23:40:37]OFD Sender: To server: pG, [23:40:37]CommunicateWithHost lk.salyk.kg:30040 [23:40:37]ConnectInit lk.salyk.kg [23:40:37]written 0, free lines is 4095 [23:40:37]Connected sock=10 [23:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 7B E6 07 01 73 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 58 F0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 4F 00 00 00 00 07 04 06 00 58 F0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 F5 C8 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 D9 02 00 35 04 06 00 C5 79 27 D1 EA 30 44 43 68 15 42 40 39 DB [23:40:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 E3 A0 47 00 88 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 37 D9 02 00 F4 03 04 00 4D 6F B3 67 B6 04 01 00 00 18 91 F4 36 55 AF F4 FA [23:40:38]CommunicateWithHost err = 0 [23:40:38]CheckOFDResponse [23:40:38]1017 (14) - 77093643461234 [23:40:38]1041 (16) - 0000000000871826 [23:40:38]1040 (4) - 186679 [23:40:38]1012 (4) - 17.02.2025 17:18 [23:40:38]1206 (1) - 0 [23:40:38]OFD Sender: Remove packet 186679 [23:40:38]ProducePacketName [23:40:38]name=ofd_packets/00186679 [23:40:38]NVStorageDeleteData [23:40:38]Write to MH i2c: 01 00 00 6C 0B 77 [23:40:38]Write i2c OK [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: 01 [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: 01 07 00 [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 2A 0D B5 [23:40:38]RasterBufferAndPrint [23:40:38]line [23:40:38]line [23:40:38]line [23:40:38]line [23:40:38]line [23:40:38]written 0, free lines is 3376 [23:40:38]MH_Cut [23:40:38]Write to MH i2c: D1 01 00 73 0B 01 50 [23:40:38]Write i2c OK [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: D1 [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: D1 01 00 [23:40:38]MH_I2C_Read... [23:40:38]Read from MH i2c: D1 01 00 73 0B 00 4F [23:40:38]Write to MH i2c: 01 00 00 74 0B 7F [23:40:38]Write i2c OK [23:40:38]MH_I2C_Read... [23:40:38]OFD Sender: No OFD packet to send [23:40:38]*** Cut start [23:40:38]*** Partial cut [23:40:38]*** CUTSNS_PIN = 1 [23:40:38]*** CUTSNS_PIN = 0 [23:40:39]*** Brake cut motor [23:40:39]Read from MH i2c: 01 [23:40:39]MH_I2C_Read... [23:40:39]*** Stop cut motor [23:40:39]*** Cut end [23:40:39]Read from MH i2c: 01 07 00 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: 01 07 00 74 0B 00 00 00 00 00 FF 0F 94 [23:40:39]process_action close_receipt done [23:40:39]requested_data is exist [23:40:39]produce_requested_data [23:40:39]requested_item fm.sn is exist - process it [23:40:39]wFMCommunicate request_size=4 [23:40:39]MH_SAM_APDU [23:40:39]CAPDU: 80 11 00 00 [23:40:39]Write to MH i2c: E2 08 00 75 0B 80 11 00 00 00 00 00 00 FA [23:40:39]Write i2c OK [23:40:39]MH_I2C_Read... [23:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:40:39]Read from MH i2c: E2 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 17 00 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 17 00 75 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4D [23:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:40:39]wFMCommunicate OK [23:40:39]requested_item fd.num is exist - process it [23:40:39]SAM_PROTO_GetFieldsCounters [23:40:39]wFMCommunicate request_size=4 [23:40:39]MH_SAM_APDU [23:40:39]CAPDU: 80 13 00 00 [23:40:39]Write to MH i2c: E2 08 00 76 0B 80 13 00 00 00 00 00 00 FD [23:40:39]Write i2c OK [23:40:39]MH_I2C_Read... [23:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:40:39]Read from MH i2c: E2 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 62 00 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 62 00 76 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [23:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 37 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:40:39]wFMCommunicate OK [23:40:39]SAM_PROTO_GetFieldsCounters done [23:40:39]requested_item shift.num is exist - process it [23:40:39]requested_item shift.opened is exist - process it [23:40:39]req_shift_opened [23:40:39]FM_GetShiftState [23:40:39]SAM_PROTO_GetShiftState [23:40:39]wFMCommunicate request_size=4 [23:40:39]MH_SAM_APDU [23:40:39]CAPDU: 80 13 01 00 [23:40:39]Write to MH i2c: E2 08 00 77 0B 80 13 01 00 00 00 00 00 FF [23:40:39]Write i2c OK [23:40:39]MH_I2C_Read... [23:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:40:39]Read from MH i2c: E2 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 0E 00 [23:40:39]MH_I2C_Read... [23:40:39]Read from MH i2c: E2 0E 00 77 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 23 [23:40:39]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:40:39]wFMCommunicate OK [23:40:39]SAM_PROTO_GetShiftState done [23:40:39]FM_GetShiftState done [23:40:39]req_shift_opened done [23:40:39]requested_item shift.open_date is exist - process it [23:40:39]req_shift_open_date [23:40:39]req_shift_open_date done [23:40:39]produce_requested_data done [23:40:39]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186679,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [23:40:39]process_action_free close_receipt [23:40:39]json_value_free [23:40:39]json_value_free done [23:40:39]process_json_proto returns [23:40:39]Send response to host [23:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186679,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [23:40:39]free response buf [23:40:39]execute_script done [23:40:39]execute_script returns [23:40:39]free content buf [23:40:39]Sock 9.Close socket [23:40:39]Sock 9.Thread stoped [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]accept exits with 7 [23:42:38]New connection [23:42:38]New thread 3067051364 created [23:42:38]Thread 3067194724 joined [23:42:38]Waiting for new connection... [23:42:38] Sock 7.Parse request [23:42:38]Sock 7.Check first char [23:42:38]Sock 7.First char is OK [23:42:38]request: POST /json_proto HTTP/1.0 [23:42:38]Method: POST [23:42:38]URL: /json_proto [23:42:38]Method is POST - this is cgi request [23:42:38]url: /json_proto [23:42:38]query_string will be loaded in cgi processing [23:42:38]execute_cgi json_proto POST (null) [23:42:38]execute_cgi path=json_proto method=POST [23:42:38]POST find Content-Length [23:42:38]Host: 172.17.46.131:8080 [23:42:38]Content-Length: 803 [23:42:38]Content-Type: application/json [23:42:38] [23:42:38]POST finish read [23:42:38]Found Content-Length = 803 [23:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:38]execute_script... [23:42: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)411829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:38]POST & json_proto [23:42:38]process_json_proto [23:42:38]json parsed OK: [23:42:38]protocol is kg_v1.0 [23:42:38]action value=close_receipt [23:42:38]process_action close_receipt [23:42:38]cmd_close_receipt [23:42:38]MH_GetDate [23:42:38]Write to MH i2c: F0 00 00 78 0B 72 [23:42:38]Write i2c OK [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 09 00 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 09 00 78 0B 00 6F C9 B3 67 7E 41 4F 65 40 [23:42:38]GetLastDocTimeStamp 1739835637 [23:42:38]current date 1739835759 [23:42:38]FM_GetShiftState [23:42:38]SAM_PROTO_GetShiftState [23:42:38]wFMCommunicate request_size=4 [23:42:38]MH_SAM_APDU [23:42:38]CAPDU: 80 13 01 00 [23:42:38]Write to MH i2c: E2 08 00 79 0B 80 13 01 00 00 00 00 00 01 [23:42:38]Write i2c OK [23:42:38]MH_I2C_Read... [23:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:38]Read from MH i2c: E2 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: E2 0E 00 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: E2 0E 00 79 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 25 [23:42:38]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:42:38]wFMCommunicate OK [23:42:38]SAM_PROTO_GetShiftState done [23:42:38]FM_GetShiftState done [23:42:38]opened in 1739752571 [23:42:38]opened+sec_in_day 1739838971 [23:42:38]quantity*price = 100012 [23:42:38]sum+1 = 100014 [23:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 267 17.02.2025 23:42 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186680 ФПД: 46132064323663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T234239&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186680&fm=46132064323663&tin=02508201610067®Number=0000000000091857&sum=100013 [23:42:39]StoreToDocumentArchive [23:42:39]shift 644 fd 186680 [23:42:39]save to /storage/0644/doc_00186680 [23:42:39]save last doc name /storage/0644/doc_00186680 to /storage/kkm_last_doc_name [23:42:39]save OK [23:42:39]Clear old archive folders... [23:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:39]tlvbuf is 005BE7D0 [23:42:39]SAM_PROTO_ClearQueue [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 09 00 00 [23:42:39]Write to MH i2c: E2 08 00 86 0B 80 09 00 00 00 00 00 00 03 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 86 0B 00 90 00 05 [23:42:39]RAPDU: 90 00 [23:42:39]wFMCommunicate OK [23:42:39]SAM_PROTO_ClearQueue done [23:42:39]KKMCreateOFDPacket [23:42:39]OFDProtocolAddRootSTLVToBuf [23:42:39]FM_MakeSignedData [23:42:39]FM_MakeSignedData [23:42:39]SAM_PROTO_SignData [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 0D 01 02 [23:42:39]Write to MH i2c: E2 08 00 87 0B 80 0D 01 02 00 00 00 00 0B [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 87 0B 00 90 00 06 [23:42:39]RAPDU: 90 00 [23:42:39]wFMCommunicate OK [23:42:39]wFMCommunicate request_size=255 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6F C9 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D9 02 00 35 04 06 00 29 [23:42:39]Write to MH i2c: E2 02 01 88 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6F C9 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D9 02 00 35 04 06 00 29 00 00 B6 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 88 0B 00 90 00 07 [23:42:39]RAPDU: 90 00 [23:42:39]wFMCommunicate OK [23:42:39]wFMCommunicate request_size=10 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 0D 02 02 05 F4 F5 4E 88 4F [23:42:39]Write to MH i2c: E2 0D 00 89 0B 80 0D 02 02 05 00 F4 F5 4E 88 4F 00 00 26 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [23:42:39]RAPDU: 90 00 [23:42:39]wFMCommunicate OK [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 0D 03 02 [23:42:39]Write to MH i2c: E2 08 00 8A 0B 80 0D 03 02 00 00 00 00 10 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0B 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 0B 00 8A 0B 00 47 E0 2B 8E 2A 25 F7 0C 90 00 43 [23:42:39]RAPDU: 47 E0 2B 8E 2A 25 F7 0C 90 00 [23:42:39]wFMCommunicate OK [23:42:39]SAM_PROTO_SignData done [23:42:39]FM_MakeSignedData done [23:42:39]CreateOFDProtocolMessage [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 11 00 00 [23:42:39]Write to MH i2c: E2 08 00 8B 0B 80 11 00 00 00 00 00 00 10 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 17 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 17 00 8B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 63 [23:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:42:39]wFMCommunicate OK [23:42:39]CreateOFDProtocolMessage done [23:42:39]OFDSenderStorePacket 186680 [23:42:39]StoreOFDPacket docnum=186680 [23:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8D FB 07 01 95 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6F C9 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D9 02 00 35 04 06 00 29 F4 F5 4E 88 4F 47 E0 2B 8E 2A 25 F7 0C [23:42:39]CheckFolder [23:42:39]dirname=/storage/ofd_packets [23:42:39]CheckFolder done [23:42:39]ProducePacketName [23:42:39]name=ofd_packets/00186680 [23:42:39]NVStorageSaveData ofd_packets/00186680 [23:42:39]File name is /storage/ofd_packets/00186680 [23:42:39]Write 301 bytes [23:42:39]NVStorageSaveData done [23:42:39]OFDSenderStorePacket done [23:42:39]KKMCreateOFDPacket done [23:42:39]NVStorageSaveData kkm_last_timestamp [23:42:39]File name is /storage/kkm_last_timestamp [23:42:39]Write 4 bytes [23:42:39]NVStorageSaveData done [23:42:39]ExternCall_PrintAddStr [23:42:39]wPrintStart [23:42:39]Write to MH i2c: 01 00 00 8C 0B 97 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: 01 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: 01 07 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: 01 07 00 8C 0B 00 00 00 00 00 FF 0F AC [23:42:39]RasterBufferAndPrint [23:42:39]line Счет N : (1)411829 [23:42:39]line ИНН: 02508201610067 [23:42:39]line Контрольно-Кассовый Чек [23:42:39]line ПРОДАЖА [23:42:39]line ТРК (МРК, ГНК) : 13 [23:42:39]line Товар: 2710124500 [23:42:39]line Аи-95-К-5 [23:42:39]line 13.910 * 71.90 [23:42:39]line = 1000.13 [23:42:39]line НДС 12% НСП 1% [23:42:39]line > о реализуемом товаре [23:42:39]line ИТОГО: 1000.13 [23:42:39]line НСП 1% : 8.85 [23:42:39]line НДС 12% : 106.21 [23:42:39]line Наличными: 0.00 [23:42:39]line Безнал.: 1000.13 [23:42:39]line Место: АЗС № 92 "Партнер Нефть" [23:42:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:42:39]line СНО: Общий режим [23:42:39]line Чек 267 17.02.2025 23:42 [23:42:39]line Смена: 644 ФФД: 1.0 [23:42:39]line ЗНМ: 0300000118 [23:42:39]line РНМ: 0000000000091857 [23:42:39]line Версия ККМ: 001 [23:42:39]line Платежная система: O! деньги [23:42:39]line ФМ: 0000000000871826 [23:42:39]line ФД: 186680 [23:42:39]line ФПД: 46132064323663 [23:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T234239&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186680&fm=46132064323663&tin=02508201610067®Number=0000000000091857&sum=100013 [23:42:39]OFD Sender: Processing packet 186680 [packets to send 49, broken 48] [23:42:39]ProducePacketName [23:42:39]name=ofd_packets/00186680 [23:42:39]OFD Sender: To server: pG, [23:42:39]CommunicateWithHost lk.salyk.kg:30040 [23:42:39]ConnectInit lk.salyk.kg [23:42:39]written 0, free lines is 4095 [23:42:40]Connected sock=10 [23:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 8D FB 07 01 95 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 6F C9 B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D9 02 00 35 04 06 00 29 F4 F5 4E 88 4F 47 E0 2B 8E 2A 25 F7 0C [23:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 56 85 47 00 01 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 38 D9 02 00 F4 03 04 00 C8 6F B3 67 B6 04 01 00 00 7F 00 56 A2 95 71 D9 F2 [23:42:40]CommunicateWithHost err = 0 [23:42:40]CheckOFDResponse [23:42:40]1017 (14) - 77093643461234 [23:42:40]1041 (16) - 0000000000871826 [23:42:40]1040 (4) - 186680 [23:42:40]1012 (4) - 17.02.2025 17:20 [23:42:40]1206 (1) - 0 [23:42:40]OFD Sender: Remove packet 186680 [23:42:40]ProducePacketName [23:42:40]name=ofd_packets/00186680 [23:42:40]NVStorageDeleteData [23:42:40]Write to MH i2c: 01 00 00 B6 0B C1 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 07 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 07 00 B6 0B 00 00 00 00 00 13 0D E8 [23:42:40]RasterBufferAndPrint [23:42:40]line [23:42:40]line [23:42:40]line [23:42:40]line [23:42:40]line [23:42:40]written 0, free lines is 3353 [23:42:40]MH_Cut [23:42:40]Write to MH i2c: D1 01 00 BD 0B 01 9A [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: D1 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: D1 01 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: D1 01 00 BD 0B 00 99 [23:42:40]Write to MH i2c: 01 00 00 BE 0B C9 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]OFD Sender: No OFD packet to send [23:42:41]*** Cut start [23:42:41]*** Partial cut [23:42:41]*** CUTSNS_PIN = 1 [23:42:41]*** CUTSNS_PIN = 0 [23:42:41]*** Brake cut motor [23:42:41]Read from MH i2c: 01 [23:42:41]MH_I2C_Read... [23:42:41]*** Stop cut motor [23:42:41]*** Cut end [23:42:41]Read from MH i2c: 01 07 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [23:42:41]process_action close_receipt done [23:42:41]requested_data is exist [23:42:41]produce_requested_data [23:42:41]requested_item fm.sn is exist - process it [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 11 00 00 [23:42:41]Write to MH i2c: E2 08 00 BF 0B 80 11 00 00 00 00 00 00 44 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 BF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 97 [23:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:42:41]wFMCommunicate OK [23:42:41]requested_item fd.num is exist - process it [23:42:41]SAM_PROTO_GetFieldsCounters [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 13 00 00 [23:42:41]Write to MH i2c: E2 08 00 C0 0B 80 13 00 00 00 00 00 00 47 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:42]Read from MH i2c: E2 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 62 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 62 00 C0 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [23:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 38 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:42]wFMCommunicate OK [23:42:42]SAM_PROTO_GetFieldsCounters done [23:42:42]requested_item shift.num is exist - process it [23:42:42]requested_item shift.opened is exist - process it [23:42:42]req_shift_opened [23:42:42]FM_GetShiftState [23:42:42]SAM_PROTO_GetShiftState [23:42:42]wFMCommunicate request_size=4 [23:42:42]MH_SAM_APDU [23:42:42]CAPDU: 80 13 01 00 [23:42:42]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [23:42:42]Write i2c OK [23:42:42]MH_I2C_Read... [23:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:42]Read from MH i2c: E2 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 0E 00 [23:42:42]MH_I2C_Read... [23:42:42]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6D [23:42:42]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:42:42]wFMCommunicate OK [23:42:42]SAM_PROTO_GetShiftState done [23:42:42]FM_GetShiftState done [23:42:42]req_shift_opened done [23:42:42]requested_item shift.open_date is exist - process it [23:42:42]req_shift_open_date [23:42:42]req_shift_open_date done [23:42:42]produce_requested_data done [23:42:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186680,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [23:42:42]process_action_free close_receipt [23:42:42]json_value_free [23:42:42]json_value_free done [23:42:42]process_json_proto returns [23:42:42]Send response to host [23:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186680,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [23:42:42]free response buf [23:42:42]execute_script done [23:42:42]execute_script returns [23:42:42]free content buf [23:42:42]Sock 7.Close socket [23:42:42]Sock 7.Thread stoped [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:48]accept exits with 9 [23:50:48]New connection [23:50:48]New thread 3067194724 created [23:50:48]Thread 3067051364 joined [23:50:48]Waiting for new connection... [23:50:48] Sock 9.Parse request [23:50:48]Sock 9.Check first char [23:50:48]Sock 9.First char is OK [23:50:48]request: POST /json_proto HTTP/1.0 [23:50:48]Method: POST [23:50:48]URL: /json_proto [23:50:48]Method is POST - this is cgi request [23:50:48]url: /json_proto [23:50:48]query_string will be loaded in cgi processing [23:50:48]execute_cgi json_proto POST (null) [23:50:48]execute_cgi path=json_proto method=POST [23:50:48]POST find Content-Length [23:50:48]Host: 172.17.46.131:8080 [23:50:48]Content-Length: 803 [23:50:48]Content-Type: application/json [23:50:48] [23:50:48]POST finish read [23:50:48]Found Content-Length = 803 [23:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:48]execute_script... [23:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:48]POST & json_proto [23:50:48]process_json_proto [23:50:48]json parsed OK: [23:50:48]protocol is kg_v1.0 [23:50:48]action value=close_receipt [23:50:48]process_action close_receipt [23:50:48]cmd_close_receipt [23:50:48]MH_GetDate [23:50:48]Write to MH i2c: F0 00 00 C2 0B BC [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: F0 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: F0 09 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: F0 09 00 C2 0B 00 59 CB B3 67 7E 41 4F 65 76 [23:50:48]GetLastDocTimeStamp 1739835759 [23:50:48]current date 1739836249 [23:50:48]FM_GetShiftState [23:50:48]SAM_PROTO_GetShiftState [23:50:48]wFMCommunicate request_size=4 [23:50:48]MH_SAM_APDU [23:50:48]CAPDU: 80 13 01 00 [23:50:48]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [23:50:48]Write i2c OK [23:50:48]MH_I2C_Read... [23:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:48]Read from MH i2c: E2 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 0E 00 [23:50:48]MH_I2C_Read... [23:50:48]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 6F [23:50:48]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:50:48]wFMCommunicate OK [23:50:48]SAM_PROTO_GetShiftState done [23:50:48]FM_GetShiftState done [23:50:48]opened in 1739752571 [23:50:48]opened+sec_in_day 1739838971 [23:50:48]quantity*price = 100012 [23:50:48]sum+1 = 100014 [23:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.13 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.13 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 268 17.02.2025 23:50 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186681 ФПД: 148758653631327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T235049&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186681&fm=148758653631327&tin=02508201610067®Number=0000000000091857&sum=100013 [23:50:49]StoreToDocumentArchive [23:50:49]shift 644 fd 186681 [23:50:49]save to /storage/0644/doc_00186681 [23:50:49]save last doc name /storage/0644/doc_00186681 to /storage/kkm_last_doc_name [23:50:49]save OK [23:50:49]Clear old archive folders... [23:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:50:49]tlvbuf is 005EC050 [23:50:49]SAM_PROTO_ClearQueue [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 09 00 00 [23:50:49]Write to MH i2c: E2 08 00 D0 0B 80 09 00 00 00 00 00 00 4D [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 D0 0B 00 90 00 4F [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]SAM_PROTO_ClearQueue done [23:50:49]KKMCreateOFDPacket [23:50:49]OFDProtocolAddRootSTLVToBuf [23:50:49]FM_MakeSignedData [23:50:49]FM_MakeSignedData [23:50:49]SAM_PROTO_SignData [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 01 02 [23:50:49]Write to MH i2c: E2 08 00 D1 0B 80 0D 01 02 00 00 00 00 55 [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 D1 0B 00 90 00 50 [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=255 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 59 CB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D9 02 00 35 04 06 00 87 [23:50:49]Write to MH i2c: E2 02 01 D2 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 59 CB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D9 02 00 35 04 06 00 87 00 00 4C [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=10 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 02 02 05 4B 92 B4 FB 5F [23:50:49]Write to MH i2c: E2 0D 00 D3 0B 80 0D 02 02 05 00 4B 92 B4 FB 5F 00 00 4D [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [23:50:49]RAPDU: 90 00 [23:50:49]wFMCommunicate OK [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 0D 03 02 [23:50:49]Write to MH i2c: E2 08 00 D4 0B 80 0D 03 02 00 00 00 00 5A [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 0B 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 0B 00 D4 0B 00 FE B2 7B 60 D7 F9 0B 42 90 00 03 [23:50:49]RAPDU: FE B2 7B 60 D7 F9 0B 42 90 00 [23:50:49]wFMCommunicate OK [23:50:49]SAM_PROTO_SignData done [23:50:49]FM_MakeSignedData done [23:50:49]CreateOFDProtocolMessage [23:50:49]wFMCommunicate request_size=4 [23:50:49]MH_SAM_APDU [23:50:49]CAPDU: 80 11 00 00 [23:50:49]Write to MH i2c: E2 08 00 D5 0B 80 11 00 00 00 00 00 00 5A [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:49]Read from MH i2c: E2 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 17 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: E2 17 00 D5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [23:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:50:49]wFMCommunicate OK [23:50:49]CreateOFDProtocolMessage done [23:50:49]OFDSenderStorePacket 186681 [23:50:49]StoreOFDPacket docnum=186681 [23:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 89 07 01 6A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 59 CB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D9 02 00 35 04 06 00 87 4B 92 B4 FB 5F FE B2 7B 60 D7 F9 0B 42 [23:50:49]CheckFolder [23:50:49]dirname=/storage/ofd_packets [23:50:49]CheckFolder done [23:50:49]ProducePacketName [23:50:49]name=ofd_packets/00186681 [23:50:49]NVStorageSaveData ofd_packets/00186681 [23:50:49]File name is /storage/ofd_packets/00186681 [23:50:49]Write 301 bytes [23:50:49]NVStorageSaveData done [23:50:49]OFDSenderStorePacket done [23:50:49]KKMCreateOFDPacket done [23:50:49]NVStorageSaveData kkm_last_timestamp [23:50:49]File name is /storage/kkm_last_timestamp [23:50:49]Write 4 bytes [23:50:49]NVStorageSaveData done [23:50:49]ExternCall_PrintAddStr [23:50:49]wPrintStart [23:50:49]Write to MH i2c: 01 00 00 D6 0B E1 [23:50:49]Write i2c OK [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 07 00 [23:50:49]MH_I2C_Read... [23:50:49]Read from MH i2c: 01 07 00 D6 0B 00 00 00 00 00 FF 0F F6 [23:50:49]RasterBufferAndPrint [23:50:49]line Счет N : (1)411830 [23:50:49]line ИНН: 02508201610067 [23:50:49]line Контрольно-Кассовый Чек [23:50:49]line ПРОДАЖА [23:50:49]line ТРК (МРК, ГНК) : 33 [23:50:49]line Товар: 2710124500 [23:50:49]line Аи-95-К-5 [23:50:49]line 13.910 * 71.90 [23:50:49]line = 1000.13 [23:50:49]line НДС 12% НСП 1% [23:50:49]line > о реализуемом товаре [23:50:49]line ИТОГО: 1000.13 [23:50:49]line НСП 1% : 8.85 [23:50:49]line НДС 12% : 106.21 [23:50:49]line Наличными: 0.00 [23:50:49]line Безнал.: 1000.13 [23:50:49]line Место: АЗС № 92 "Партнер Нефть" [23:50:49]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [23:50:49]line СНО: Общий режим [23:50:49]line Чек 268 17.02.2025 23:50 [23:50:49]line Смена: 644 ФФД: 1.0 [23:50:49]line ЗНМ: 0300000118 [23:50:49]line РНМ: 0000000000091857 [23:50:49]line Версия ККМ: 001 [23:50:49]line Платежная система: O! деньги [23:50:49]line ФМ: 0000000000871826 [23:50:49]line ФД: 186681 [23:50:49]line ФПД: 148758653631327 [23:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250217T235049&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186681&fm=148758653631327&tin=02508201610067®Number=0000000000091857&sum=100013 [23:50:49]written 0, free lines is 4095 [23:50:49]OFD Sender: Processing packet 186681 [packets to send 49, broken 48] [23:50:49]ProducePacketName [23:50:49]name=ofd_packets/00186681 [23:50:49]OFD Sender: To server: pG, [23:50:49]CommunicateWithHost lk.salyk.kg:30040 [23:50:49]ConnectInit lk.salyk.kg [23:50:49]Connected sock=10 [23:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 9A 89 07 01 6A BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 59 CB B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D9 02 00 35 04 06 00 87 4B 92 B4 FB 5F FE B2 7B 60 D7 F9 0B 42 [23:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5D 72 47 00 FF B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 39 D9 02 00 F4 03 04 00 B1 71 B3 67 B6 04 01 00 00 7A C5 E0 23 B3 6E 5C 3D [23:50:50]CommunicateWithHost err = 0 [23:50:50]CheckOFDResponse [23:50:50]1017 (14) - 77093643461234 [23:50:50]1041 (16) - 0000000000871826 [23:50:50]1040 (4) - 186681 [23:50:50]1012 (4) - 17.02.2025 17:28 [23:50:50]1206 (1) - 0 [23:50:50]OFD Sender: Remove packet 186681 [23:50:50]ProducePacketName [23:50:50]name=ofd_packets/00186681 [23:50:50]NVStorageDeleteData [23:50:50]Write to MH i2c: 01 00 00 00 0C 0C [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: 01 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: 01 07 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: 01 07 00 00 0C 00 00 00 00 00 11 0D 31 [23:50:50]RasterBufferAndPrint [23:50:50]line [23:50:50]line [23:50:50]line [23:50:50]line [23:50:50]line [23:50:50]written 0, free lines is 3351 [23:50:50]MH_Cut [23:50:50]Write to MH i2c: D1 01 00 07 0C 01 E5 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: D1 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: D1 01 00 [23:50:50]MH_I2C_Read... [23:50:50]Read from MH i2c: D1 01 00 07 0C 00 E4 [23:50:50]Write to MH i2c: 01 00 00 08 0C 14 [23:50:50]Write i2c OK [23:50:50]MH_I2C_Read... [23:50:50]OFD Sender: No OFD packet to send [23:50:50]*** Cut start [23:50:50]*** Partial cut [23:50:50]*** CUTSNS_PIN = 1 [23:50:50]*** CUTSNS_PIN = 0 [23:50:51]*** Brake cut motor [23:50:51]Read from MH i2c: 01 [23:50:51]MH_I2C_Read... [23:50:51]*** Stop cut motor [23:50:51]*** Cut end [23:50:51]Read from MH i2c: 01 07 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 FF 0F 29 [23:50:51]process_action close_receipt done [23:50:51]requested_data is exist [23:50:51]produce_requested_data [23:50:51]requested_item fm.sn is exist - process it [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 11 00 00 [23:50:51]Write to MH i2c: E2 08 00 09 0C 80 11 00 00 00 00 00 00 8F [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 17 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 17 00 09 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [23:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [23:50:51]wFMCommunicate OK [23:50:51]requested_item fd.num is exist - process it [23:50:51]SAM_PROTO_GetFieldsCounters [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 13 00 00 [23:50:51]Write to MH i2c: E2 08 00 0A 0C 80 13 00 00 00 00 00 00 92 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 62 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 62 00 0A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [23:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 39 D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:51]wFMCommunicate OK [23:50:51]SAM_PROTO_GetFieldsCounters done [23:50:51]requested_item shift.num is exist - process it [23:50:51]requested_item shift.opened is exist - process it [23:50:51]req_shift_opened [23:50:51]FM_GetShiftState [23:50:51]SAM_PROTO_GetShiftState [23:50:51]wFMCommunicate request_size=4 [23:50:51]MH_SAM_APDU [23:50:51]CAPDU: 80 13 01 00 [23:50:51]Write to MH i2c: E2 08 00 0B 0C 80 13 01 00 00 00 00 00 94 [23:50:51]Write i2c OK [23:50:51]MH_I2C_Read... [23:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:51]Read from MH i2c: E2 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 0E 00 [23:50:51]MH_I2C_Read... [23:50:51]Read from MH i2c: E2 0E 00 0B 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 B8 [23:50:51]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [23:50:51]wFMCommunicate OK [23:50:51]SAM_PROTO_GetShiftState done [23:50:51]FM_GetShiftState done [23:50:51]req_shift_opened done [23:50:51]requested_item shift.open_date is exist - process it [23:50:51]req_shift_open_date [23:50:51]req_shift_open_date done [23:50:51]produce_requested_data done [23:50:51]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186681,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [23:50:51]process_action_free close_receipt [23:50:51]json_value_free [23:50:51]json_value_free done [23:50:51]process_json_proto returns [23:50:51]Send response to host [23:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186681,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [23:50:51]free response buf [23:50:51]execute_script done [23:50:51]execute_script returns [23:50:51]free content buf [23:50:51]Sock 9.Close socket [23:50:51]Sock 9.Thread stoped [23:50:55]OFD Sender: No OFD packet to send [23:51:00]OFD Sender: No OFD packet to send [23:51:05]OFD Sender: No OFD packet to send [23:51:10]OFD Sender: No OFD packet to send [23:51:15]OFD Sender: No OFD packet to send [23:51:20]OFD Sender: No OFD packet to send [23:51:25]OFD Sender: No OFD packet to send [23:51:30]OFD Sender: No OFD packet to send [23:51:35]OFD Sender: No OFD packet to send [23:51:40]OFD Sender: No OFD packet to send [23:51:45]OFD Sender: No OFD packet to send [23:51:50]OFD Sender: No OFD packet to send [23:51:55]OFD Sender: No OFD packet to send [23:52:00]OFD Sender: No OFD packet to send [23:52:05]OFD Sender: No OFD packet to send [23:52:10]OFD Sender: No OFD packet to send [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:09]accept exits with 7 [00:03:09]New connection [00:03:09]New thread 3067051364 created [00:03:09]Thread 3067194724 joined [00:03:09]Waiting for new connection... [00:03:09] Sock 7.Parse request [00:03:09]Sock 7.Check first char [00:03:09]Sock 7.First char is OK [00:03:09]request: POST /json_proto HTTP/1.0 [00:03:09]Method: POST [00:03:09]URL: /json_proto [00:03:09]Method is POST - this is cgi request [00:03:09]url: /json_proto [00:03:09]query_string will be loaded in cgi processing [00:03:09]execute_cgi json_proto POST (null) [00:03:09]execute_cgi path=json_proto method=POST [00:03:09]POST find Content-Length [00:03:09]Host: 172.17.46.131:8080 [00:03:09]Content-Length: 677 [00:03:09]Content-Type: application/json [00:03:09] [00:03:09]POST finish read [00:03:09]Found Content-Length = 677 [00:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:09]execute_script... [00:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 4.680, "sum" : 300.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:09]POST & json_proto [00:03:09]process_json_proto [00:03:09]json parsed OK: [00:03:09]protocol is kg_v1.0 [00:03:09]action value=close_receipt [00:03:09]process_action close_receipt [00:03:09]cmd_close_receipt [00:03:09]MH_GetDate [00:03:09]Write to MH i2c: F0 00 00 0C 0C 07 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: F0 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: F0 09 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: F0 09 00 0C 0C 00 3E CE B3 67 7E 41 4F 65 A9 [00:03:09]GetLastDocTimeStamp 1739836249 [00:03:09]current date 1739836990 [00:03:09]FM_GetShiftState [00:03:09]SAM_PROTO_GetShiftState [00:03:09]wFMCommunicate request_size=4 [00:03:09]MH_SAM_APDU [00:03:09]CAPDU: 80 13 01 00 [00:03:09]Write to MH i2c: E2 08 00 0D 0C 80 13 01 00 00 00 00 00 96 [00:03:09]Write i2c OK [00:03:09]MH_I2C_Read... [00:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:09]Read from MH i2c: E2 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0E 00 [00:03:09]MH_I2C_Read... [00:03:09]Read from MH i2c: E2 0E 00 0D 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 BA [00:03:09]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:03:09]wFMCommunicate OK [00:03:09]SAM_PROTO_GetShiftState done [00:03:09]FM_GetShiftState done [00:03:09]opened in 1739752571 [00:03:09]opened+sec_in_day 1739838971 [00:03:09]quantity*price = 30045 [00:03:09]sum+1 = 30047 [00:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 269 18.02.2025 00:03 Смена: 644 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186682 ФПД: 185981222900984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T000310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186682&fm=185981222900984&tin=02508201610067®Number=0000000000091857&sum=30000 [00:03:10]StoreToDocumentArchive [00:03:10]shift 644 fd 186682 [00:03:10]save to /storage/0644/doc_00186682 [00:03:10]save last doc name /storage/0644/doc_00186682 to /storage/kkm_last_doc_name [00:03:10]save OK [00:03:10]Clear old archive folders... [00:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:03:10]tlvbuf is 005F7BD0 [00:03:10]SAM_PROTO_ClearQueue [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 09 00 00 [00:03:10]Write to MH i2c: E2 08 00 1A 0C 80 09 00 00 00 00 00 00 98 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 1A 0C 00 90 00 9A [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]SAM_PROTO_ClearQueue done [00:03:10]KKMCreateOFDPacket [00:03:10]OFDProtocolAddRootSTLVToBuf [00:03:10]FM_MakeSignedData [00:03:10]FM_MakeSignedData [00:03:10]SAM_PROTO_SignData [00:03:10]wFMCommunicate request_size=4 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 01 02 [00:03:10]Write to MH i2c: E2 08 00 1B 0C 80 0D 01 02 00 00 00 00 A0 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:10]Read from MH i2c: E2 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 [00:03:10]MH_I2C_Read... [00:03:10]Read from MH i2c: E2 03 00 1B 0C 00 90 00 9B [00:03:10]RAPDU: 90 00 [00:03:10]wFMCommunicate OK [00:03:10]wFMCommunicate request_size=255 [00:03:10]MH_SAM_APDU [00:03:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3E CE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D9 02 00 35 04 06 00 A9 [00:03:10]Write to MH i2c: E2 02 01 1C 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 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3E CE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D9 02 00 35 04 06 00 A9 00 00 56 [00:03:10]Write i2c OK [00:03:10]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=10 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 02 02 05 26 20 B9 D4 F8 [00:03:11]Write to MH i2c: E2 0D 00 1D 0C 80 0D 02 02 05 00 26 20 B9 D4 F8 00 00 78 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [00:03:11]RAPDU: 90 00 [00:03:11]wFMCommunicate OK [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 0D 03 02 [00:03:11]Write to MH i2c: E2 08 00 1E 0C 80 0D 03 02 00 00 00 00 A5 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 0B 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 0B 00 1E 0C 00 CC 5C 97 D3 13 6D 25 47 90 00 24 [00:03:11]RAPDU: CC 5C 97 D3 13 6D 25 47 90 00 [00:03:11]wFMCommunicate OK [00:03:11]SAM_PROTO_SignData done [00:03:11]FM_MakeSignedData done [00:03:11]CreateOFDProtocolMessage [00:03:11]wFMCommunicate request_size=4 [00:03:11]MH_SAM_APDU [00:03:11]CAPDU: 80 11 00 00 [00:03:11]Write to MH i2c: E2 08 00 1F 0C 80 11 00 00 00 00 00 00 A5 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:11]Read from MH i2c: E2 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 17 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: E2 17 00 1F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [00:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:11]wFMCommunicate OK [00:03:11]CreateOFDProtocolMessage done [00:03:11]OFDSenderStorePacket 186682 [00:03:11]StoreOFDPacket docnum=186682 [00:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 92 07 01 C1 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3E CE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D9 02 00 35 04 06 00 A9 26 20 B9 D4 F8 CC 5C 97 D3 13 6D 25 47 [00:03:11]CheckFolder [00:03:11]dirname=/storage/ofd_packets [00:03:11]CheckFolder done [00:03:11]ProducePacketName [00:03:11]name=ofd_packets/00186682 [00:03:11]NVStorageSaveData ofd_packets/00186682 [00:03:11]File name is /storage/ofd_packets/00186682 [00:03:11]Write 301 bytes [00:03:11]NVStorageSaveData done [00:03:11]OFDSenderStorePacket done [00:03:11]KKMCreateOFDPacket done [00:03:11]NVStorageSaveData kkm_last_timestamp [00:03:11]File name is /storage/kkm_last_timestamp [00:03:11]Write 4 bytes [00:03:11]NVStorageSaveData done [00:03:11]ExternCall_PrintAddStr [00:03:11]wPrintStart [00:03:11]Write to MH i2c: 01 00 00 20 0C 2C [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 20 0C 00 00 00 00 00 FF 0F 41 [00:03:11]RasterBufferAndPrint [00:03:11]line Счет N : (1)411831 [00:03:11]line ИНН: 02508201610067 [00:03:11]line Контрольно-Кассовый Чек [00:03:11]line ПРОДАЖА [00:03:11]line ТРК (МРК, ГНК) : 32 [00:03:11]line Товар: 2710124130 [00:03:11]line Аи-92-К-2 [00:03:11]line 4.680 * 64.20 [00:03:11]line = 300.46 [00:03:11]line НДС 12% НСП 1% [00:03:11]line > о реализуемом товаре [00:03:11]line ОКРУГЛЕНИЕ: -0.46 [00:03:11]line ИТОГО: 300.00 [00:03:11]line Внесено: 300.00 [00:03:11]line СДАЧА: 0.00 [00:03:11]line НСП 1% : 2.66 [00:03:11]line НДС 12% : 31.91 [00:03:11]line Наличными: 300.00 [00:03:11]line Безнал.: 0.00 [00:03:11]line Место: АЗС № 92 "Партнер Нефть" [00:03:11]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:03:11]line СНО: Общий режим [00:03:11]line Чек 269 18.02.2025 00:03 [00:03:11]line Смена: 644 ФФД: 1.0 [00:03:11]line ЗНМ: 0300000118 [00:03:11]line РНМ: 0000000000091857 [00:03:11]line Версия ККМ: 001 [00:03:11]line ФМ: 0000000000871826 [00:03:11]line ФД: 186682 [00:03:11]line ФПД: 185981222900984 [00:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T000310&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186682&fm=185981222900984&tin=02508201610067®Number=0000000000091857&sum=30000 [00:03:11]OFD Sender: Processing packet 186682 [packets to send 49, broken 48] [00:03:11]ProducePacketName [00:03:11]name=ofd_packets/00186682 [00:03:11]OFD Sender: To server: pG, [00:03:11]CommunicateWithHost lk.salyk.kg:30040 [00:03:11]ConnectInit lk.salyk.kg [00:03:11]written 0, free lines is 4095 [00:03:11]Connected sock=10 [00:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 D2 92 07 01 C1 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 3E CE B3 67 0E 04 04 00 84 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D9 02 00 35 04 06 00 A9 26 20 B9 D4 F8 CC 5C 97 D3 13 6D 25 47 [00:03:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 D9 96 47 00 A8 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3A D9 02 00 F4 03 04 00 97 74 B3 67 B6 04 01 00 00 3D 72 62 BD D2 D7 46 25 [00:03:11]CommunicateWithHost err = 0 [00:03:11]CheckOFDResponse [00:03:11]1017 (14) - 77093643461234 [00:03:11]1041 (16) - 0000000000871826 [00:03:11]1040 (4) - 186682 [00:03:11]1012 (4) - 17.02.2025 17:40 [00:03:11]1206 (1) - 0 [00:03:11]OFD Sender: Remove packet 186682 [00:03:11]ProducePacketName [00:03:11]name=ofd_packets/00186682 [00:03:11]NVStorageDeleteData [00:03:11]Write to MH i2c: 01 00 00 4B 0C 57 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: 01 07 00 4B 0C 00 00 00 00 00 F2 0C 5C [00:03:11]RasterBufferAndPrint [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]line [00:03:11]written 0, free lines is 3320 [00:03:11]MH_Cut [00:03:11]Write to MH i2c: D1 01 00 52 0C 01 30 [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 01 00 [00:03:11]MH_I2C_Read... [00:03:11]Read from MH i2c: D1 01 00 52 0C 00 2F [00:03:11]Write to MH i2c: 01 00 00 53 0C 5F [00:03:11]Write i2c OK [00:03:11]MH_I2C_Read... [00:03:12]OFD Sender: No OFD packet to send [00:03:12]*** Cut start [00:03:12]*** Partial cut [00:03:12]*** CUTSNS_PIN = 1 [00:03:12]*** CUTSNS_PIN = 0 [00:03:13]*** Brake cut motor [00:03:13]Read from MH i2c: 01 [00:03:13]MH_I2C_Read... [00:03:13]*** Stop cut motor [00:03:13]*** Cut end [00:03:13]Read from MH i2c: 01 07 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: 01 07 00 53 0C 00 00 00 00 00 FF 0F 74 [00:03:13]process_action close_receipt done [00:03:13]requested_data is exist [00:03:13]produce_requested_data [00:03:13]requested_item fm.sn is exist - process it [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 11 00 00 [00:03:13]Write to MH i2c: E2 08 00 54 0C 80 11 00 00 00 00 00 00 DA [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 17 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 17 00 54 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [00:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:03:13]wFMCommunicate OK [00:03:13]requested_item fd.num is exist - process it [00:03:13]SAM_PROTO_GetFieldsCounters [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 00 00 [00:03:13]Write to MH i2c: E2 08 00 55 0C 80 13 00 00 00 00 00 00 DD [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 62 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 62 00 55 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [00:03:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetFieldsCounters done [00:03:13]requested_item shift.num is exist - process it [00:03:13]requested_item shift.opened is exist - process it [00:03:13]req_shift_opened [00:03:13]FM_GetShiftState [00:03:13]SAM_PROTO_GetShiftState [00:03:13]wFMCommunicate request_size=4 [00:03:13]MH_SAM_APDU [00:03:13]CAPDU: 80 13 01 00 [00:03:13]Write to MH i2c: E2 08 00 56 0C 80 13 01 00 00 00 00 00 DF [00:03:13]Write i2c OK [00:03:13]MH_I2C_Read... [00:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:13]Read from MH i2c: E2 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 [00:03:13]MH_I2C_Read... [00:03:13]Read from MH i2c: E2 0E 00 56 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 03 [00:03:13]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:03:13]wFMCommunicate OK [00:03:13]SAM_PROTO_GetShiftState done [00:03:13]FM_GetShiftState done [00:03:13]req_shift_opened done [00:03:13]requested_item shift.open_date is exist - process it [00:03:13]req_shift_open_date [00:03:13]req_shift_open_date done [00:03:13]produce_requested_data done [00:03:13]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [00:03:13]process_action_free close_receipt [00:03:13]json_value_free [00:03:13]json_value_free done [00:03:13]process_json_proto returns [00:03:13]Send response to host [00:03:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [00:03:13]free response buf [00:03:13]execute_script done [00:03:13]execute_script returns [00:03:13]free content buf [00:03:13]Sock 7.Close socket [00:03:13]Sock 7.Thread stoped [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:28]accept exits with 9 [00:11:28]New connection [00:11:28]New thread 3067194724 created [00:11:28]Thread 3067051364 joined [00:11:28]Waiting for new connection... [00:11:28] Sock 9.Parse request [00:11:28]Sock 9.Check first char [00:11:28]Sock 9.First char is OK [00:11:28]request: POST /json_proto HTTP/1.0 [00:11:28]Method: POST [00:11:28]URL: /json_proto [00:11:28]Method is POST - this is cgi request [00:11:28]url: /json_proto [00:11:28]query_string will be loaded in cgi processing [00:11:28]execute_cgi json_proto POST (null) [00:11:28]execute_cgi path=json_proto method=POST [00:11:28]POST find Content-Length [00:11:28]Host: 172.17.46.131:8080 [00:11:28]Content-Length: 215 [00:11:28]Content-Type: application/json [00:11:28] [00:11:28]POST finish read [00:11:28]Found Content-Length = 215 [00:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:28]execute_script... [00:11:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:28]POST & json_proto [00:11:28]process_json_proto [00:11:28]json parsed OK: [00:11:28]protocol is kg_v1.0 [00:11:28]action value=get_value [00:11:28]process_action get_value [00:11:28]cmd_get_value [00:11:28]process_action get_value done [00:11:28]requested_data is exist [00:11:28]produce_requested_data [00:11:28]requested_item kkm.sn is exist - process it [00:11:28]requested_item kkm.ver is exist - process it [00:11:28]requested_item fm.sn is exist - process it [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 11 00 00 [00:11:28]Write to MH i2c: E2 08 00 57 0C 80 11 00 00 00 00 00 00 DD [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 17 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 17 00 57 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 30 [00:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:11:28]wFMCommunicate OK [00:11:28]requested_item fd.num is exist - process it [00:11:28]SAM_PROTO_GetFieldsCounters [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 00 00 [00:11:28]Write to MH i2c: E2 08 00 58 0C 80 13 00 00 00 00 00 00 E0 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 62 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 62 00 58 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [00:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_GetFieldsCounters done [00:11:28]requested_item shift.num is exist - process it [00:11:28]requested_item shift.opened is exist - process it [00:11:28]req_shift_opened [00:11:28]FM_GetShiftState [00:11:28]SAM_PROTO_GetShiftState [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 01 00 [00:11:28]Write to MH i2c: E2 08 00 59 0C 80 13 01 00 00 00 00 00 E2 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 0E 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 0E 00 59 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 06 [00:11:28]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_GetShiftState done [00:11:28]FM_GetShiftState done [00:11:28]req_shift_opened done [00:11:28]requested_item shift.open_date is exist - process it [00:11:28]req_shift_open_date [00:11:28]req_shift_open_date done [00:11:28]produce_requested_data done [00:11:28]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [00:11:28]process_action_free get_value [00:11:28]json_value_free [00:11:28]json_value_free done [00:11:28]process_json_proto returns [00:11:28]Send response to host [00:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [00:11:28]free response buf [00:11:28]execute_script done [00:11:28]execute_script returns [00:11:28]free content buf [00:11:28]Sock 9.Close socket [00:11:28]Sock 9.Thread stoped [00:11:28]accept exits with 7 [00:11:28]New connection [00:11:28]New thread 3067051364 created [00:11:28]Thread 3067194724 joined [00:11:28]Waiting for new connection... [00:11:28] Sock 7.Parse request [00:11:28]Sock 7.Check first char [00:11:28]Sock 7.First char is OK [00:11:28]request: POST /json_proto HTTP/1.0 [00:11:28]Method: POST [00:11:28]URL: /json_proto [00:11:28]Method is POST - this is cgi request [00:11:28]url: /json_proto [00:11:28]query_string will be loaded in cgi processing [00:11:28]execute_cgi json_proto POST (null) [00:11:28]execute_cgi path=json_proto method=POST [00:11:28]POST find Content-Length [00:11:28]Host: 172.17.46.131:8080 [00:11:28]Content-Length: 331 [00:11:28]Content-Type: application/json [00:11:28] [00:11:28]POST finish read [00:11:28]Found Content-Length = 331 [00:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:28]execute_script... [00:11:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:29]POST & json_proto [00:11:29]process_json_proto [00:11:29]json parsed OK: [00:11:29]protocol is kg_v1.0 [00:11:29]action value=get_value [00:11:29]process_action get_value [00:11:29]cmd_get_value [00:11:29]process_action get_value done [00:11:29]requested_data is exist [00:11:29]produce_requested_data [00:11:29]requested_item fm.sale.total is exist - process it [00:11:29]SAM_PROTO_GetFMData [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 13 03 00 [00:11:29]Write to MH i2c: E2 08 00 5A 0C 80 13 03 00 00 00 00 00 E5 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 5A 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 FD [00:11:29]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 5B 0C 80 17 00 00 00 00 00 00 E7 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:29]Read from MH i2c: E2 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 [00:11:29]MH_I2C_Read... [00:11:29]Read from MH i2c: E2 FD 00 5B 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 B0 [00:11:29]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:11:29]wFMCommunicate OK [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 17 00 00 [00:11:29]Write to MH i2c: E2 08 00 5C 0C 80 17 00 00 00 00 00 00 E8 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 5C 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 88 [00:11:30]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 5D 0C 80 17 00 00 00 00 00 00 E9 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 FD 00 5D 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 6E [00:11:30]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 17 00 00 [00:11:30]Write to MH i2c: E2 08 00 5E 0C 80 17 00 00 00 00 00 00 EA [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 DE 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 DE 00 5E 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:11:30]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:30]wFMCommunicate OK [00:11:30]SAM_PROTO_GetFMData done [00:11:30]requested_item fm.sale_refund.total is exist - process it [00:11:30]requested_item fm.buy.total is exist - process it [00:11:30]requested_item shift.sale.total is exist - process it [00:11:30]SAM_PROTO_GetShiftData [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 13 02 00 [00:11:30]Write to MH i2c: E2 08 00 5F 0C 80 13 02 00 00 00 00 00 E9 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 5F 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7F [00:11:31]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 60 0C 80 17 00 00 00 00 00 00 EC [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 60 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 05 [00:11:31]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 61 0C 80 17 00 00 00 00 00 00 ED [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:31]Read from MH i2c: E2 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: E2 FD 00 61 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A6 [00:11:31]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:31]wFMCommunicate OK [00:11:31]wFMCommunicate request_size=4 [00:11:31]MH_SAM_APDU [00:11:31]CAPDU: 80 17 00 00 [00:11:31]Write to MH i2c: E2 08 00 62 0C 80 17 00 00 00 00 00 00 EE [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 62 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 66 [00:11:32]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 63 0C 80 17 00 00 00 00 00 00 EF [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 CE 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 CE 00 63 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [00:11:32]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:32]wFMCommunicate OK [00:11:32]SAM_PROTO_GetShiftData done [00:11:32]requested_item shift.sale.total_cash is exist - process it [00:11:32]requested_item shift.sale_refund.total is exist - process it [00:11:32]requested_item shift.sale_refund.total_cash is exist - process it [00:11:32]requested_item shift.buy.total is exist - process it [00:11:32]requested_item shift.buy.total_cash is exist - process it [00:11:32]produce_requested_data done [00:11:32]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:32]process_action_free get_value [00:11:32]json_value_free [00:11:32]json_value_free done [00:11:32]process_json_proto returns [00:11:32]Send response to host [00:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:32]free response buf [00:11:32]execute_script done [00:11:32]execute_script returns [00:11:32]free content buf [00:11:32]Sock 7.Close socket [00:11:32]Sock 7.Thread stoped [00:11:32]accept exits with 9 [00:11:32]New connection [00:11:32]New thread 3067194724 created [00:11:32]Thread 3067051364 joined [00:11:32]Waiting for new connection... [00:11:32] Sock 9.Parse request [00:11:32]Sock 9.Check first char [00:11:32]Sock 9.First char is OK [00:11:32]request: POST /json_proto HTTP/1.0 [00:11:32]Method: POST [00:11:32]URL: /json_proto [00:11:32]Method is POST - this is cgi request [00:11:32]url: /json_proto [00:11:32]query_string will be loaded in cgi processing [00:11:32]execute_cgi json_proto POST (null) [00:11:32]execute_cgi path=json_proto method=POST [00:11:32]POST find Content-Length [00:11:32]Host: 172.17.46.131:8080 [00:11:32]Content-Length: 331 [00:11:32]Content-Type: application/json [00:11:32] [00:11:32]POST finish read [00:11:32]Found Content-Length = 331 [00:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:32]execute_script... [00:11:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:32]POST & json_proto [00:11:32]process_json_proto [00:11:32]json parsed OK: [00:11:32]protocol is kg_v1.0 [00:11:32]action value=get_value [00:11:32]process_action get_value [00:11:32]cmd_get_value [00:11:32]process_action get_value done [00:11:32]requested_data is exist [00:11:32]produce_requested_data [00:11:32]requested_item fm.sale.total is exist - process it [00:11:32]SAM_PROTO_GetFMData [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 13 03 00 [00:11:32]Write to MH i2c: E2 08 00 64 0C 80 13 03 00 00 00 00 00 EF [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 FD 00 64 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 07 [00:11:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:11:32]wFMCommunicate OK [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 17 00 00 [00:11:32]Write to MH i2c: E2 08 00 65 0C 80 17 00 00 00 00 00 00 F1 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]OFD Sender: No OFD packet to send [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 65 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 BA [00:11:33]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 17 00 00 [00:11:33]Write to MH i2c: E2 08 00 66 0C 80 17 00 00 00 00 00 00 F2 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 66 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 92 [00:11:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 17 00 00 [00:11:33]Write to MH i2c: E2 08 00 67 0C 80 17 00 00 00 00 00 00 F3 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 FD 00 67 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 78 [00:11:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:11:33]wFMCommunicate OK [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 17 00 00 [00:11:33]Write to MH i2c: E2 08 00 68 0C 80 17 00 00 00 00 00 00 F4 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:11:34]Read from MH i2c: E2 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 DE 00 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 DE 00 68 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D3 [00:11:34]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:34]wFMCommunicate OK [00:11:34]SAM_PROTO_GetFMData done [00:11:34]requested_item fm.sale_refund.total is exist - process it [00:11:34]requested_item fm.buy.total is exist - process it [00:11:34]requested_item shift.sale.total is exist - process it [00:11:34]SAM_PROTO_GetShiftData [00:11:34]wFMCommunicate request_size=4 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 13 02 00 [00:11:34]Write to MH i2c: E2 08 00 69 0C 80 13 02 00 00 00 00 00 F3 [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:34]Read from MH i2c: E2 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 [00:11:34]MH_I2C_Read... [00:11:34]Read from MH i2c: E2 FD 00 69 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 89 [00:11:34]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:34]wFMCommunicate OK [00:11:34]wFMCommunicate request_size=4 [00:11:34]MH_SAM_APDU [00:11:34]CAPDU: 80 17 00 00 [00:11:34]Write to MH i2c: E2 08 00 6A 0C 80 17 00 00 00 00 00 00 F6 [00:11:34]Write i2c OK [00:11:34]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 6A 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 0F [00:11:35]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:11:35]wFMCommunicate OK [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 17 00 00 [00:11:35]Write to MH i2c: E2 08 00 6B 0C 80 17 00 00 00 00 00 00 F7 [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 6B 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B0 [00:11:35]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:35]wFMCommunicate OK [00:11:35]wFMCommunicate request_size=4 [00:11:35]MH_SAM_APDU [00:11:35]CAPDU: 80 17 00 00 [00:11:35]Write to MH i2c: E2 08 00 6C 0C 80 17 00 00 00 00 00 00 F8 [00:11:35]Write i2c OK [00:11:35]MH_I2C_Read... [00:11:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:35]Read from MH i2c: E2 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 [00:11:35]MH_I2C_Read... [00:11:35]Read from MH i2c: E2 FD 00 6C 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 70 [00:11:36]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:36]wFMCommunicate OK [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 17 00 00 [00:11:36]Write to MH i2c: E2 08 00 6D 0C 80 17 00 00 00 00 00 00 F9 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 CE 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 CE 00 6D 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [00:11:36]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_GetShiftData done [00:11:36]requested_item shift.sale.total_cash is exist - process it [00:11:36]requested_item shift.sale_refund.total is exist - process it [00:11:36]requested_item shift.sale_refund.total_cash is exist - process it [00:11:36]requested_item shift.buy.total is exist - process it [00:11:36]requested_item shift.buy.total_cash is exist - process it [00:11:36]produce_requested_data done [00:11:36]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:36]process_action_free get_value [00:11:36]json_value_free [00:11:36]json_value_free done [00:11:36]process_json_proto returns [00:11:36]Send response to host [00:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:36]free response buf [00:11:36]execute_script done [00:11:36]execute_script returns [00:11:36]free content buf [00:11:36]Sock 9.Close socket [00:11:36]Sock 9.Thread stoped [00:11:36]accept exits with 7 [00:11:36]New connection [00:11:36]New thread 3067051364 created [00:11:36]Thread 3067194724 joined [00:11:36]Waiting for new connection... [00:11:36] Sock 7.Parse request [00:11:36]Sock 7.Check first char [00:11:36]Sock 7.First char is OK [00:11:36]request: POST /json_proto HTTP/1.0 [00:11:36]Method: POST [00:11:36]URL: /json_proto [00:11:36]Method is POST - this is cgi request [00:11:36]url: /json_proto [00:11:36]query_string will be loaded in cgi processing [00:11:36]execute_cgi json_proto POST (null) [00:11:36]execute_cgi path=json_proto method=POST [00:11:36]POST find Content-Length [00:11:36]Host: 172.17.46.131:8080 [00:11:36]Content-Length: 245 [00:11:36]Content-Type: application/json [00:11:36] [00:11:36]POST finish read [00:11:36]Found Content-Length = 245 [00:11:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:36]execute_script... [00:11:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:36]POST & json_proto [00:11:36]process_json_proto [00:11:36]json parsed OK: [00:11:36]protocol is kg_v1.0 [00:11:36]action value=x_report [00:11:36]process_action x_report [00:11:36]cmd_x_report [00:11:36]MH_GetDate [00:11:36]Write to MH i2c: F0 00 00 6E 0C 69 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 6E 0C 00 3A D0 B3 67 7E 41 4F 65 09 [00:11:36]GetLastDocTimeStamp 1739836990 [00:11:36]current date 1739837498 [00:11:36]FM_GetShiftState [00:11:36]SAM_PROTO_GetShiftState [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 13 01 00 [00:11:36]Write to MH i2c: E2 08 00 6F 0C 80 13 01 00 00 00 00 00 F8 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0E 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 0E 00 6F 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 1C [00:11:36]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_GetShiftState done [00:11:36]FM_GetShiftState done [00:11:36]KKMCreateXReportDocument [00:11:36]Load OK [00:11:36]Malloc new data [00:11:36]MH_GetDate [00:11:36]Write to MH i2c: F0 00 00 70 0C 6B [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: F0 09 00 70 0C 00 3A D0 B3 67 7E 41 4F 65 0B [00:11:36]Malloc new data [00:11:36]Malloc new data [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 11 00 00 [00:11:36]Write to MH i2c: E2 08 00 71 0C 80 11 00 00 00 00 00 00 F7 [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 17 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 17 00 71 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 4A [00:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_GetFieldsCounters [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 13 00 00 [00:11:36]Write to MH i2c: E2 08 00 72 0C 80 13 00 00 00 00 00 00 FA [00:11:36]Write i2c OK [00:11:36]MH_I2C_Read... [00:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:36]Read from MH i2c: E2 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 62 00 [00:11:36]MH_I2C_Read... [00:11:36]Read from MH i2c: E2 62 00 72 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [00:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:36]wFMCommunicate OK [00:11:36]SAM_PROTO_GetFieldsCounters done [00:11:36]Malloc new data [00:11:36]Malloc new data [00:11:36]Malloc new data [00:11:36]KKMCreateXReportDocument OK [00:11:36]KKMSetXReportData OK [00:11:36]KKMPrepareXReportFMData [00:11:36]SAM_PROTO_GetShiftData [00:11:36]wFMCommunicate request_size=4 [00:11:36]MH_SAM_APDU [00:11:36]CAPDU: 80 13 02 00 [00:11:36]Write to MH i2c: E2 08 00 73 0C 80 13 02 00 00 00 00 00 FD [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 73 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 93 [00:11:37]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:37]wFMCommunicate OK [00:11:37]wFMCommunicate request_size=4 [00:11:37]MH_SAM_APDU [00:11:37]CAPDU: 80 17 00 00 [00:11:37]Write to MH i2c: E2 08 00 74 0C 80 17 00 00 00 00 00 00 00 [00:11:37]Write i2c OK [00:11:37]MH_I2C_Read... [00:11:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:37]Read from MH i2c: E2 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 [00:11:37]MH_I2C_Read... [00:11:37]Read from MH i2c: E2 FD 00 74 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 19 [00:11:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:11:38]OFD Sender: No OFD packet to send [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 17 00 00 [00:11:38]Write to MH i2c: E2 08 00 75 0C 80 17 00 00 00 00 00 00 01 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 FD 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 FD 00 75 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BA [00:11:38]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 17 00 00 [00:11:38]Write to MH i2c: E2 08 00 76 0C 80 17 00 00 00 00 00 00 02 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:38]Read from MH i2c: E2 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 FD 00 [00:11:38]MH_I2C_Read... [00:11:38]Read from MH i2c: E2 FD 00 76 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 7A [00:11:38]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:11:38]wFMCommunicate OK [00:11:38]wFMCommunicate request_size=4 [00:11:38]MH_SAM_APDU [00:11:38]CAPDU: 80 17 00 00 [00:11:38]Write to MH i2c: E2 08 00 77 0C 80 17 00 00 00 00 00 00 03 [00:11:38]Write i2c OK [00:11:38]MH_I2C_Read... [00:11:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:11:39]Read from MH i2c: E2 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 CE 00 [00:11:39]MH_I2C_Read... [00:11:39]Read from MH i2c: E2 CE 00 77 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E8 [00:11:39]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:39]wFMCommunicate OK [00:11:39]SAM_PROTO_GetShiftData done [00:11:39]1194 (1197) - счетчики итогов смены [00:11:39] 1134 (4) - 269 - количество чеков со всеми признаками расчетов [00:11:39] 1129 (158) - счетчики операций «приход» [00:11:39] 1135 (4) - 269 - количество чеков по признаку расчетов [00:11:39] 1201 (4) - 266614.74 - общая итоговая сумма в чеках [00:11:39] 1136 (4) - 180801.00 - итоговая сумма в чеках наличными [00:11:39] 1138 (3) - 85813.74 - итоговая сумма в чеках безналичными [00:11:39] 1024 (123) - суммы налогов [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 0% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1006 (12) - суммы НДС [00:11:39] 1010 (1) - 12% - код ставки НДС [00:11:39] 1011 (3) - 28319.38 - сумма НДС по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (12) - суммы НСП [00:11:39] 1014 (1) - 1% - код ставки НСП [00:11:39] 1015 (3) - 2359.84 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 2% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 3% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 5% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1130 (141) - счетчики операций «возврат прихода» [00:11:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:39] 1024 (117) - суммы налогов [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 0% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 12% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 2% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 3% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 5% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1131 (141) - счетчики операций «расход» [00:11:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:39] 1024 (117) - суммы налогов [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 0% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 12% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 2% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 3% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 5% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1132 (141) - счетчики операций «возврат расхода» [00:11:39] 1135 (4) - 0 - количество чеков по признаку расчетов [00:11:39] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:11:39] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:11:39] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:11:39] 1024 (117) - суммы налогов [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 0% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1006 (9) - суммы НДС [00:11:39] 1010 (1) - 12% - код ставки НДС [00:11:39] 1011 (0) - 0.00 - сумма НДС по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 2% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 3% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 5% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 0,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1007 (9) - суммы НСП [00:11:39] 1014 (1) - 1,50% - код ставки НСП [00:11:39] 1015 (0) - 0.00 - сумма НСП по ставке [00:11:39] 1133 (588) - - счетчики коррекции - не используются [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1194 (04AA) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1134 (046E) [00:11:39]Malloc new data [00:11:39]Processing tag 1129 (0469) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1135 (046F) [00:11:39]Malloc new data [00:11:39]Processing tag 1201 (04B1) [00:11:39]Malloc new data [00:11:39]Processing tag 1136 (0470) [00:11:39]Malloc new data [00:11:39]Processing tag 1138 (0472) [00:11:39]Malloc new data [00:11:39]Processing tag 1024 (0400) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1006 (03EE) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1010 (03F2) [00:11:39]Malloc new data [00:11:39]Processing tag 1011 (03F3) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1006 (03EE) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1010 (03F2) [00:11:39]Malloc new data [00:11:39]Processing tag 1011 (03F3) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]SetTLVBufToDocument err=0 [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1130 (046A) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1135 (046F) [00:11:39]Malloc new data [00:11:39]Processing tag 1201 (04B1) [00:11:39]Malloc new data [00:11:39]Processing tag 1136 (0470) [00:11:39]Malloc new data [00:11:39]Processing tag 1138 (0472) [00:11:39]Malloc new data [00:11:39]Processing tag 1024 (0400) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1006 (03EE) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1010 (03F2) [00:11:39]Malloc new data [00:11:39]Processing tag 1011 (03F3) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1006 (03EE) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1010 (03F2) [00:11:39]Malloc new data [00:11:39]Processing tag 1011 (03F3) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:39]Load OK [00:11:39]SetTLVBufToDocument [00:11:39]Processing tag 1014 (03F6) [00:11:39]Malloc new data [00:11:39]Processing tag 1015 (03F7) [00:11:39]Malloc new data [00:11:39]SetTLVBufToDocument err=0 [00:11:39]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1131 (046B) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1135 (046F) [00:11:40]Malloc new data [00:11:40]Processing tag 1201 (04B1) [00:11:40]Malloc new data [00:11:40]Processing tag 1136 (0470) [00:11:40]Malloc new data [00:11:40]Processing tag 1138 (0472) [00:11:40]Malloc new data [00:11:40]Processing tag 1024 (0400) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1006 (03EE) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1010 (03F2) [00:11:40]Malloc new data [00:11:40]Processing tag 1011 (03F3) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1006 (03EE) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1010 (03F2) [00:11:40]Malloc new data [00:11:40]Processing tag 1011 (03F3) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1132 (046C) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1135 (046F) [00:11:40]Malloc new data [00:11:40]Processing tag 1201 (04B1) [00:11:40]Malloc new data [00:11:40]Processing tag 1136 (0470) [00:11:40]Malloc new data [00:11:40]Processing tag 1138 (0472) [00:11:40]Malloc new data [00:11:40]Processing tag 1024 (0400) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1006 (03EE) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1010 (03F2) [00:11:40]Malloc new data [00:11:40]Processing tag 1011 (03F3) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1006 (03EE) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1010 (03F2) [00:11:40]Malloc new data [00:11:40]Processing tag 1011 (03F3) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1007 (03EF) [00:11:40]Load OK [00:11:40]SetTLVBufToDocument [00:11:40]Processing tag 1014 (03F6) [00:11:40]Malloc new data [00:11:40]Processing tag 1015 (03F7) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Processing tag 1133 (046D) [00:11:40]Malloc new data [00:11:40]SetTLVBufToDocument err=0 [00:11:40]SetTLVBufToDocument err=0 [00:11:40]Malloc new data [00:11:40]SAM_PROTO_GetFMData [00:11:40]wFMCommunicate request_size=4 [00:11:40]MH_SAM_APDU [00:11:40]CAPDU: 80 13 03 00 [00:11:40]Write to MH i2c: E2 08 00 78 0C 80 13 03 00 00 00 00 00 03 [00:11:40]Write i2c OK [00:11:40]MH_I2C_Read... [00:11:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:40]Read from MH i2c: E2 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 [00:11:40]MH_I2C_Read... [00:11:40]Read from MH i2c: E2 FD 00 78 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 1B [00:11:41]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:11:41]wFMCommunicate OK [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 17 00 00 [00:11:41]Write to MH i2c: E2 08 00 79 0C 80 17 00 00 00 00 00 00 05 [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 79 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 CE [00:11:41]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:11:41]wFMCommunicate OK [00:11:41]wFMCommunicate request_size=4 [00:11:41]MH_SAM_APDU [00:11:41]CAPDU: 80 17 00 00 [00:11:41]Write to MH i2c: E2 08 00 7A 0C 80 17 00 00 00 00 00 00 06 [00:11:41]Write i2c OK [00:11:41]MH_I2C_Read... [00:11:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:41]Read from MH i2c: E2 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 [00:11:41]MH_I2C_Read... [00:11:41]Read from MH i2c: E2 FD 00 7A 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 A6 [00:11:42]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:11:42]wFMCommunicate OK [00:11:42]wFMCommunicate request_size=4 [00:11:42]MH_SAM_APDU [00:11:42]CAPDU: 80 17 00 00 [00:11:42]Write to MH i2c: E2 08 00 7B 0C 80 17 00 00 00 00 00 00 07 [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:42]Read from MH i2c: E2 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 FD 00 7B 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 8C [00:11:42]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:11:42]wFMCommunicate OK [00:11:42]wFMCommunicate request_size=4 [00:11:42]MH_SAM_APDU [00:11:42]CAPDU: 80 17 00 00 [00:11:42]Write to MH i2c: E2 08 00 7C 0C 80 17 00 00 00 00 00 00 08 [00:11:42]Write i2c OK [00:11:42]MH_I2C_Read... [00:11:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:11:42]Read from MH i2c: E2 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 DE 00 [00:11:42]MH_I2C_Read... [00:11:42]Read from MH i2c: E2 DE 00 7C 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [00:11:43]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:43]wFMCommunicate OK [00:11:43]SAM_PROTO_GetFMData done [00:11:43]FM_GetFMData:85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 OFD Sender: No OFD packet to send [00:11:43]B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:43]oper:6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:43]total:5D 03 26 19 04 [00:11:43]Malloc new data [00:11:43]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:44]total:9C 8A 38 [00:11:44]Malloc new data [00:11:44]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:44]total: [00:11:44]Malloc new data [00:11:44]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:11:44]total: [00:11:44]Malloc new data [00:11:44]KKMPrepareXReportFMData err=0 [00:11:44]Х отчет ИНН: 02508201610067 Кассир: Арапов Н. 18.02.2025 00:11 Смена: 522 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Всего чеков: 269 ИТОГИ ПРИХОД Чеков: 269 Общий итог: 266614.74 Итого наличными: 180801.00 Итого безнал.: 85813.74 НДС 0% : 0.00 НДС 12% : 28319.38 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2359.84 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 180801.00 НС Приход: 176017908.13 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871826 [00:11:44]StoreToDocumentArchive [00:11:44]MH_GetDate [00:11:44]Write to MH i2c: F0 00 00 7D 0C 78 [00:11:44]Write i2c OK [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: F0 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: F0 09 00 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: F0 09 00 7D 0C 00 41 D0 B3 67 7E 41 4F 65 1F [00:11:44]shift 522 fd 1739837505 [00:11:44]Create dir for shift 0522 [00:11:44]save to /storage/0522/doc_1739837505 [00:11:44]save last doc name /storage/0522/doc_1739837505 to /storage/kkm_last_doc_name [00:11:44]save OK [00:11:44]Clear old archive folders... [00:11:44]NVStorageSaveData kkm_last_timestamp [00:11:44]File name is /storage/kkm_last_timestamp [00:11:44]Write 4 bytes [00:11:44]NVStorageSaveData done [00:11:44]ExternCall_PrintAddStr [00:11:44]wPrintStart [00:11:44]Write to MH i2c: 01 00 00 7E 0C 8A [00:11:44]Write i2c OK [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: 01 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: 01 07 00 [00:11:44]MH_I2C_Read... [00:11:44]Read from MH i2c: 01 07 00 7E 0C 00 00 00 00 00 FF 0F 9F [00:11:44]RasterBufferAndPrint [00:11:44]line Х отчет [00:11:44]line ИНН: 02508201610067 [00:11:44]line Кассир: Арапов Н. [00:11:44]line 18.02.2025 00:11 [00:11:44]line Смена: 522 [00:11:44]line РНМ: 0000000000091857 [00:11:44]line ЗНМ: 0300000118 [00:11:44]line СНО: Общий режим [00:11:44]line Всего чеков: 269 [00:11:44]line ИТОГИ ПРИХОД [00:11:44]line Чеков: 269 [00:11:44]line Общий итог: 266614.74 [00:11:44]line Итого наличными: 180801.00 [00:11:44]line Итого безнал.: 85813.74 [00:11:44]line НДС 0% : 0.00 [00:11:44]line НДС 12% : 28319.38 [00:11:44]line НСП 0% : 0.00 [00:11:44]line НСП 1,50% : 0.00 [00:11:44]line НСП 0,50% : 0.00 [00:11:44]line НСП 5% : 0.00 [00:11:44]line НСП 3% : 0.00 [00:11:44]line НСП 2% : 0.00 [00:11:44]line НСП 1% : 2359.84 [00:11:44]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:11:44]line Чеков: 0 [00:11:44]line Общий итог: 0.00 [00:11:44]line Итого наличными: 0.00 [00:11:44]line Итого безнал.: 0.00 [00:11:44]line НДС 0% : 0.00 [00:11:44]line НДС 12% : 0.00 [00:11:44]line НСП 0% : 0.00 [00:11:44]line НСП 1,50% : 0.00 [00:11:44]line НСП 0,50% : 0.00 [00:11:44]line НСП 5% : 0.00 [00:11:44]line НСП 3% : 0.00 [00:11:44]line НСП 2% : 0.00 [00:11:44]line НСП 1% : 0.00 [00:11:44]line ИТОГИ РАСХОД [00:11:44]line Чеков: 0 [00:11:44]line Общий итог: 0.00 [00:11:44]line Итого наличными: 0.00 [00:11:44]line Итого безнал.: 0.00 [00:11:44]line НДС 0% : 0.00 [00:11:44]line НДС 12% : 0.00 [00:11:44]line НСП 0% : 0.00 [00:11:44]line НСП 1,50% : 0.00 [00:11:44]line НСП 0,50% : 0.00 [00:11:44]line НСП 5% : 0.00 [00:11:44]line НСП 3% : 0.00 [00:11:44]line НСП 2% : 0.00 [00:11:44]line НСП 1% : 0.00 [00:11:44]line ИТОГИ ВОЗВРАТ РАСХОДА [00:11:44]line Чеков: 0 [00:11:44]line Общий итог: 0.00 [00:11:44]line Итого наличными: 0.00 [00:11:44]line Итого безнал.: 0.00 [00:11:44]line НДС 0% : 0.00 [00:11:44]line НДС 12% : 0.00 [00:11:44]line НСП 0% : 0.00 [00:11:44]line НСП 1,50% : 0.00 [00:11:44]line НСП 0,50% : 0.00 [00:11:44]line НСП 5% : 0.00 [00:11:44]line НСП 3% : 0.00 [00:11:44]line НСП 2% : 0.00 [00:11:44]line НСП 1% : 0.00 [00:11:44]line Сумма внесений: 0.00 [00:11:44]line Сумма выплат: 0.00 [00:11:44]line Нал. в кассе: 180801.00 [00:11:44]line НС Приход: 176017908.13 [00:11:44]line НС Возвр.Прихода: 37055.00 [00:11:44]line НС Расход: 0.00 [00:11:44]line НС Возвр.Расхода: 0.00 [00:11:44]line ФМ: 0000000000871826 [00:11:44]written 0, free lines is 4095 [00:11:45]Write to MH i2c: 01 00 00 C9 0C D5 [00:11:45]Write i2c OK [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: 01 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: 01 07 00 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: 01 07 00 C9 0C 00 00 00 00 00 06 0B ED [00:11:45]RasterBufferAndPrint [00:11:45]line [00:11:45]line [00:11:45]line [00:11:45]line [00:11:45]line [00:11:45]written 0, free lines is 2858 [00:11:45]MH_Cut [00:11:45]Write to MH i2c: D1 01 00 D0 0C 01 AE [00:11:45]Write i2c OK [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: D1 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: D1 01 00 [00:11:45]MH_I2C_Read... [00:11:45]Read from MH i2c: D1 01 00 D0 0C 00 AD [00:11:45]Write to MH i2c: 01 00 00 D1 0C DD [00:11:45]Write i2c OK [00:11:45]MH_I2C_Read... [00:11:46]*** Cut start [00:11:46]*** Partial cut [00:11:46]*** CUTSNS_PIN = 1 [00:11:46]*** CUTSNS_PIN = 0 [00:11:46]*** Brake cut motor [00:11:46]Read from MH i2c: 01 [00:11:46]MH_I2C_Read... [00:11:46]*** Stop cut motor [00:11:46]*** Cut end [00:11:46]Read from MH i2c: 01 07 00 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: 01 07 00 D1 0C 00 00 00 00 00 FF 0F F2 [00:11:46]process_action x_report done [00:11:46]requested_data is exist [00:11:46]produce_requested_data [00:11:46]requested_item fd.num is exist - process it [00:11:46]SAM_PROTO_GetFieldsCounters [00:11:46]wFMCommunicate request_size=4 [00:11:46]MH_SAM_APDU [00:11:46]CAPDU: 80 13 00 00 [00:11:46]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [00:11:46]Write i2c OK [00:11:46]MH_I2C_Read... [00:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:46]Read from MH i2c: E2 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: E2 62 00 [00:11:46]MH_I2C_Read... [00:11:46]Read from MH i2c: E2 62 00 D2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [00:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:47]wFMCommunicate OK [00:11:47]SAM_PROTO_GetFieldsCounters done [00:11:47]requested_item shift.num is exist - process it [00:11:47]requested_item shift.opened is exist - process it [00:11:47]req_shift_opened [00:11:47]FM_GetShiftState [00:11:47]SAM_PROTO_GetShiftState [00:11:47]wFMCommunicate request_size=4 [00:11:47]MH_SAM_APDU [00:11:47]CAPDU: 80 13 01 00 [00:11:47]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [00:11:47]Write i2c OK [00:11:47]MH_I2C_Read... [00:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:47]Read from MH i2c: E2 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 0E 00 [00:11:47]MH_I2C_Read... [00:11:47]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 80 [00:11:47]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:11:47]wFMCommunicate OK [00:11:47]SAM_PROTO_GetShiftState done [00:11:47]FM_GetShiftState done [00:11:47]req_shift_opened done [00:11:47]requested_item shift.open_date is exist - process it [00:11:47]req_shift_open_date [00:11:47]req_shift_open_date done [00:11:47]produce_requested_data done [00:11:47]produce_requested_data return {"fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [00:11:47]process_action_free x_report [00:11:47]json_value_free [00:11:47]json_value_free done [00:11:47]process_json_proto returns [00:11:47]Send response to host [00:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [00:11:47]free response buf [00:11:47]execute_script done [00:11:47]execute_script returns [00:11:47]free content buf [00:11:47]Sock 7.Close socket [00:11:47]Sock 7.Thread stoped [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:55]accept exits with 9 [00:12:55]New connection [00:12:55]New thread 3067194724 created [00:12:55]Thread 3067051364 joined [00:12:55]Waiting for new connection... [00:12:55] Sock 9.Parse request [00:12:55]Sock 9.Check first char [00:12:55]Sock 9.First char is OK [00:12:55]request: POST /json_proto HTTP/1.0 [00:12:55]Method: POST [00:12:55]URL: /json_proto [00:12:55]Method is POST - this is cgi request [00:12:55]url: /json_proto [00:12:55]query_string will be loaded in cgi processing [00:12:55]execute_cgi json_proto POST (null) [00:12:55]execute_cgi path=json_proto method=POST [00:12:55]POST find Content-Length [00:12:55]Host: 172.17.46.131:8080 [00:12:55]Content-Length: 215 [00:12:55]Content-Type: application/json [00:12:55] [00:12:55]POST finish read [00:12:55]Found Content-Length = 215 [00:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:55]execute_script... [00:12:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:55]POST & json_proto [00:12:55]process_json_proto [00:12:55]json parsed OK: [00:12:55]protocol is kg_v1.0 [00:12:55]action value=get_value [00:12:55]process_action get_value [00:12:55]cmd_get_value [00:12:55]process_action get_value done [00:12:55]requested_data is exist [00:12:55]produce_requested_data [00:12:55]requested_item kkm.sn is exist - process it [00:12:55]requested_item kkm.ver is exist - process it [00:12:55]requested_item fm.sn is exist - process it [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 11 00 00 [00:12:55]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 17 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AD [00:12:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:12:55]wFMCommunicate OK [00:12:55]requested_item fd.num is exist - process it [00:12:55]SAM_PROTO_GetFieldsCounters [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 13 00 00 [00:12:55]Write to MH i2c: E2 08 00 D5 0C 80 13 00 00 00 00 00 00 5D [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 62 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 62 00 D5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [00:12:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3A D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:12:55]wFMCommunicate OK [00:12:55]SAM_PROTO_GetFieldsCounters done [00:12:55]requested_item shift.num is exist - process it [00:12:55]requested_item shift.opened is exist - process it [00:12:55]req_shift_opened [00:12:55]FM_GetShiftState [00:12:55]SAM_PROTO_GetShiftState [00:12:55]wFMCommunicate request_size=4 [00:12:55]MH_SAM_APDU [00:12:55]CAPDU: 80 13 01 00 [00:12:55]Write to MH i2c: E2 08 00 D6 0C 80 13 01 00 00 00 00 00 5F [00:12:55]Write i2c OK [00:12:55]MH_I2C_Read... [00:12:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:55]Read from MH i2c: E2 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 0E 00 [00:12:55]MH_I2C_Read... [00:12:55]Read from MH i2c: E2 0E 00 D6 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 83 [00:12:55]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:12:55]wFMCommunicate OK [00:12:55]SAM_PROTO_GetShiftState done [00:12:55]FM_GetShiftState done [00:12:55]req_shift_opened done [00:12:55]requested_item shift.open_date is exist - process it [00:12:55]req_shift_open_date [00:12:55]req_shift_open_date done [00:12:55]produce_requested_data done [00:12:55]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571} [00:12:55]process_action_free get_value [00:12:55]json_value_free [00:12:55]json_value_free done [00:12:55]process_json_proto returns [00:12:55]Send response to host [00:12:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186682,"shift.num":644,"shift.opened":1,"shift.open_date":1739752571}}} [00:12:55]free response buf [00:12:55]execute_script done [00:12:55]execute_script returns [00:12:55]free content buf [00:12:55]Sock 9.Close socket [00:12:55]Sock 9.Thread stoped [00:12:55]accept exits with 7 [00:12:55]New connection [00:12:55]New thread 3067051364 created [00:12:55]Thread 3067194724 joined [00:12:55]Waiting for new connection... [00:12:55] Sock 7.Parse request [00:12:55]Sock 7.Check first char [00:12:55]Sock 7.First char is OK [00:12:55]request: POST /json_proto HTTP/1.0 [00:12:55]Method: POST [00:12:55]URL: /json_proto [00:12:55]Method is POST - this is cgi request [00:12:55]url: /json_proto [00:12:55]query_string will be loaded in cgi processing [00:12:55]execute_cgi json_proto POST (null) [00:12:55]execute_cgi path=json_proto method=POST [00:12:55]POST find Content-Length [00:12:55]Host: 172.17.46.131:8080 [00:12:55]Content-Length: 331 [00:12:55]Content-Type: application/json [00:12:55] [00:12:55]POST finish read [00:12:55]Found Content-Length = 331 [00:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:55]execute_script... [00:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:56]POST & json_proto [00:12:56]process_json_proto [00:12:56]json parsed OK: [00:12:56]protocol is kg_v1.0 [00:12:56]action value=get_value [00:12:56]process_action get_value [00:12:56]cmd_get_value [00:12:56]process_action get_value done [00:12:56]requested_data is exist [00:12:56]produce_requested_data [00:12:56]requested_item fm.sale.total is exist - process it [00:12:56]SAM_PROTO_GetFMData [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 13 03 00 [00:12:56]Write to MH i2c: E2 08 00 D7 0C 80 13 03 00 00 00 00 00 62 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 D7 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 7A [00:12:56]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 D8 0C 80 17 00 00 00 00 00 00 64 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:56]Read from MH i2c: E2 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 [00:12:56]MH_I2C_Read... [00:12:56]Read from MH i2c: E2 FD 00 D8 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 2D [00:12:56]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:12:56]wFMCommunicate OK [00:12:56]wFMCommunicate request_size=4 [00:12:56]MH_SAM_APDU [00:12:56]CAPDU: 80 17 00 00 [00:12:56]Write to MH i2c: E2 08 00 D9 0C 80 17 00 00 00 00 00 00 65 [00:12:56]Write i2c OK [00:12:56]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 D9 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 05 [00:12:57]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 DA 0C 80 17 00 00 00 00 00 00 66 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 FD 00 DA 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 EB [00:12:57]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:12:57]wFMCommunicate OK [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 17 00 00 [00:12:57]Write to MH i2c: E2 08 00 DB 0C 80 17 00 00 00 00 00 00 67 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 DE 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 DE 00 DB 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 46 [00:12:57]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:57]wFMCommunicate OK [00:12:57]SAM_PROTO_GetFMData done [00:12:57]requested_item fm.sale_refund.total is exist - process it [00:12:57]requested_item fm.buy.total is exist - process it [00:12:57]requested_item shift.sale.total is exist - process it [00:12:57]SAM_PROTO_GetShiftData [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 13 02 00 [00:12:57]Write to MH i2c: E2 08 00 DC 0C 80 13 02 00 00 00 00 00 66 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 DC 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 FC [00:12:58]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:12:58]wFMCommunicate OK [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 17 00 00 [00:12:58]Write to MH i2c: E2 08 00 DD 0C 80 17 00 00 00 00 00 00 69 [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]OFD Sender: No OFD packet to send [00:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 DD 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 82 [00:12:58]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:12:58]wFMCommunicate OK [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 17 00 00 [00:12:58]Write to MH i2c: E2 08 00 DE 0C 80 17 00 00 00 00 00 00 6A [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 FD 00 DE 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 23 [00:12:58]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:12:58]wFMCommunicate OK [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 17 00 00 [00:12:58]Write to MH i2c: E2 08 00 DF 0C 80 17 00 00 00 00 00 00 6B [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 FD 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 FD 00 DF 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E3 [00:12:59]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:12:59]wFMCommunicate OK [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 17 00 00 [00:12:59]Write to MH i2c: E2 08 00 E0 0C 80 17 00 00 00 00 00 00 6C [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 CE 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 CE 00 E0 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [00:12:59]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:12:59]wFMCommunicate OK [00:12:59]SAM_PROTO_GetShiftData done [00:12:59]requested_item shift.sale.total_cash is exist - process it [00:12:59]requested_item shift.sale_refund.total is exist - process it [00:12:59]requested_item shift.sale_refund.total_cash is exist - process it [00:12:59]requested_item shift.buy.total is exist - process it [00:12:59]requested_item shift.buy.total_cash is exist - process it [00:12:59]produce_requested_data done [00:12:59]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:12:59]process_action_free get_value [00:12:59]json_value_free [00:12:59]json_value_free done [00:12:59]process_json_proto returns [00:12:59]Send response to host [00:12:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:12:59]free response buf [00:12:59]execute_script done [00:12:59]execute_script returns [00:12:59]free content buf [00:12:59]Sock 7.Close socket [00:12:59]Sock 7.Thread stoped [00:12:59]accept exits with 9 [00:12:59]New connection [00:12:59]New thread 3067194724 created [00:12:59]Thread 3067051364 joined [00:12:59]Waiting for new connection... [00:12:59] Sock 9.Parse request [00:12:59]Sock 9.Check first char [00:12:59]Sock 9.First char is OK [00:12:59]request: POST /json_proto HTTP/1.0 [00:12:59]Method: POST [00:12:59]URL: /json_proto [00:12:59]Method is POST - this is cgi request [00:12:59]url: /json_proto [00:12:59]query_string will be loaded in cgi processing [00:12:59]execute_cgi json_proto POST (null) [00:12:59]execute_cgi path=json_proto method=POST [00:12:59]POST find Content-Length [00:12:59]Host: 172.17.46.131:8080 [00:12:59]Content-Length: 331 [00:12:59]Content-Type: application/json [00:12:59] [00:12:59]POST finish read [00:12:59]Found Content-Length = 331 [00:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:59]execute_script... [00:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:12:59]POST & json_proto [00:12:59]process_json_proto [00:12:59]json parsed OK: [00:12:59]protocol is kg_v1.0 [00:12:59]action value=get_value [00:12:59]process_action get_value [00:12:59]cmd_get_value [00:12:59]process_action get_value done [00:12:59]requested_data is exist [00:12:59]produce_requested_data [00:12:59]requested_item fm.sale.total is exist - process it [00:12:59]SAM_PROTO_GetFMData [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 13 03 00 [00:12:59]Write to MH i2c: E2 08 00 E1 0C 80 13 03 00 00 00 00 00 6C [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 FD 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 FD 00 E1 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 84 [00:12:59]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=4 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 17 00 00 [00:13:00]Write to MH i2c: E2 08 00 E2 0C 80 17 00 00 00 00 00 00 6E [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 E2 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 37 [00:13:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=4 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 17 00 00 [00:13:00]Write to MH i2c: E2 08 00 E3 0C 80 17 00 00 00 00 00 00 6F [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 E3 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 0F [00:13:00]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:13:00]wFMCommunicate OK [00:13:00]wFMCommunicate request_size=4 [00:13:00]MH_SAM_APDU [00:13:00]CAPDU: 80 17 00 00 [00:13:00]Write to MH i2c: E2 08 00 E4 0C 80 17 00 00 00 00 00 00 70 [00:13:00]Write i2c OK [00:13:00]MH_I2C_Read... [00:13:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:00]Read from MH i2c: E2 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 [00:13:00]MH_I2C_Read... [00:13:00]Read from MH i2c: E2 FD 00 E4 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 F5 [00:13:01]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:13:01]wFMCommunicate OK [00:13:01]wFMCommunicate request_size=4 [00:13:01]MH_SAM_APDU [00:13:01]CAPDU: 80 17 00 00 [00:13:01]Write to MH i2c: E2 08 00 E5 0C 80 17 00 00 00 00 00 00 71 [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:13:01]Read from MH i2c: E2 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 DE 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 DE 00 E5 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 50 [00:13:01]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:13:01]wFMCommunicate OK [00:13:01]SAM_PROTO_GetFMData done [00:13:01]requested_item fm.sale_refund.total is exist - process it [00:13:01]requested_item fm.buy.total is exist - process it [00:13:01]requested_item shift.sale.total is exist - process it [00:13:01]SAM_PROTO_GetShiftData [00:13:01]wFMCommunicate request_size=4 [00:13:01]MH_SAM_APDU [00:13:01]CAPDU: 80 13 02 00 [00:13:01]Write to MH i2c: E2 08 00 E6 0C 80 13 02 00 00 00 00 00 70 [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:13:01]Read from MH i2c: E2 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 FD 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 FD 00 E6 0C 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 06 [00:13:01]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:13:02]wFMCommunicate OK [00:13:02]wFMCommunicate request_size=4 [00:13:02]MH_SAM_APDU [00:13:02]CAPDU: 80 17 00 00 [00:13:02]Write to MH i2c: E2 08 00 E7 0C 80 17 00 00 00 00 00 00 73 [00:13:02]Write i2c OK [00:13:02]MH_I2C_Read... [00:13:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:02]Read from MH i2c: E2 [00:13:02]MH_I2C_Read... [00:13:02]Read from MH i2c: E2 FD 00 [00:13:02]MH_I2C_Read... [00:13:02]Read from MH i2c: E2 FD 00 E7 0C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 8C [00:13:02]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:13:02]wFMCommunicate OK [00:13:02]wFMCommunicate request_size=4 [00:13:02]MH_SAM_APDU [00:13:02]CAPDU: 80 17 00 00 [00:13:02]Write to MH i2c: E2 08 00 E8 0C 80 17 00 00 00 00 00 00 74 [00:13:02]Write i2c OK [00:13:02]MH_I2C_Read... [00:13:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:02]Read from MH i2c: E2 [00:13:02]MH_I2C_Read... [00:13:02]Read from MH i2c: E2 FD 00 [00:13:02]MH_I2C_Read... [00:13:02]Read from MH i2c: E2 FD 00 E8 0C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 2D [00:13:02]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:13:02]wFMCommunicate OK [00:13:02]wFMCommunicate request_size=4 [00:13:02]MH_SAM_APDU [00:13:02]CAPDU: 80 17 00 00 [00:13:02]Write to MH i2c: E2 08 00 E9 0C 80 17 00 00 00 00 00 00 75 [00:13:02]Write i2c OK [00:13:02]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 FD 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 FD 00 E9 0C 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 ED [00:13:03]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:13:03]wFMCommunicate OK [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 17 00 00 [00:13:03]Write to MH i2c: E2 08 00 EA 0C 80 17 00 00 00 00 00 00 76 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 CE 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 CE 00 EA 0C 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5B [00:13:03]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:13:03]wFMCommunicate OK [00:13:03]SAM_PROTO_GetShiftData done [00:13:03]requested_item shift.sale.total_cash is exist - process it [00:13:03]requested_item shift.sale_refund.total is exist - process it [00:13:03]requested_item shift.sale_refund.total_cash is exist - process it [00:13:03]requested_item shift.buy.total is exist - process it [00:13:03]requested_item shift.buy.total_cash is exist - process it [00:13:03]produce_requested_data done [00:13:03]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:13:03]process_action_free get_value [00:13:03]json_value_free [00:13:03]json_value_free done [00:13:03]process_json_proto returns [00:13:03]Send response to host [00:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:13:03]free response buf [00:13:03]execute_script done [00:13:03]execute_script returns [00:13:03]free content buf [00:13:03]Sock 9.Close socket [00:13:03]Sock 9.Thread stoped [00:13:03]OFD Sender: No OFD packet to send [00:13:03]accept exits with 7 [00:13:03]New connection [00:13:03]New thread 3067051364 created [00:13:03]Thread 3067194724 joined [00:13:03]Waiting for new connection... [00:13:03] Sock 7.Parse request [00:13:03]Sock 7.Check first char [00:13:03]Sock 7.First char is OK [00:13:03]request: POST /json_proto HTTP/1.0 [00:13:03]Method: POST [00:13:03]URL: /json_proto [00:13:03]Method is POST - this is cgi request [00:13:03]url: /json_proto [00:13:03]query_string will be loaded in cgi processing [00:13:03]execute_cgi json_proto POST (null) [00:13:03]execute_cgi path=json_proto method=POST [00:13:03]POST find Content-Length [00:13:03]Host: 172.17.46.131:8080 [00:13:03]Content-Length: 248 [00:13:03]Content-Type: application/json [00:13:03] [00:13:03]POST finish read [00:13:03]Found Content-Length = 248 [00:13:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:03]execute_script... [00:13:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0440\u0430\u043F\u043E\u0432 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:13:03]POST & json_proto [00:13:03]process_json_proto [00:13:03]json parsed OK: [00:13:03]protocol is kg_v1.0 [00:13:03]action value=close_shift [00:13:03]process_action close_shift [00:13:03]cmd_close_shift [00:13:03]MH_GetDate [00:13:03]Write to MH i2c: F0 00 00 EB 0C E6 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 09 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 09 00 EB 0C 00 91 D0 B3 67 7E 41 4F 65 DD [00:13:03]GetLastDocTimeStamp 1739837498 [00:13:03]current date 1739837585 [00:13:03]FM_GetShiftState [00:13:03]SAM_PROTO_GetShiftState [00:13:03]wFMCommunicate request_size=4 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 13 01 00 [00:13:03]Write to MH i2c: E2 08 00 EC 0C 80 13 01 00 00 00 00 00 75 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 0E 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 0E 00 EC 0C 00 09 00 01 7B 84 B2 67 00 00 00 00 90 00 99 [00:13:03]RAPDU: 09 00 01 7B 84 B2 67 00 00 00 00 90 00 [00:13:03]wFMCommunicate OK [00:13:03]SAM_PROTO_GetShiftState done [00:13:03]FM_GetShiftState done [00:13:03]KKMCreateCloseShiftDocument [00:13:03]Load OK [00:13:03]Malloc new data [00:13:03]MH_GetDate [00:13:03]Write to MH i2c: F0 00 00 ED 0C E8 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 09 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: F0 09 00 ED 0C 00 91 D0 B3 67 7E 41 4F 65 DF [00:13:03]Malloc new data [00:13:03]Malloc new data [00:13:03]Malloc new data [00:13:03]Malloc new data [00:13:03]KKMCreateCloseShiftDocument OK [00:13:03]KKMSetCloseShiftData OK [00:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=67 [00:13:03]tlvbuf is 0059DA70 [00:13:03]KKMLoadAndSignCloseShiftData [00:13:03]SAM_PROTO_ProcessDocument [00:13:03]wFMCommunicate request_size=9 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 15 01 00 04 05 00 43 00 [00:13:03]Write to MH i2c: E2 0C 00 EE 0C 80 15 01 00 04 00 05 00 43 00 00 00 C9 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 03 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 03 00 EE 0C 00 90 00 6E [00:13:03]RAPDU: 90 00 [00:13:03]wFMCommunicate OK [00:13:03]wFMCommunicate request_size=23 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:13:03]Write to MH i2c: E2 1A 00 EF 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 70 [00:13:03]Write i2c OK [00:13:03]MH_I2C_Read... [00:13:03]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:03]Read from MH i2c: E2 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 03 00 [00:13:03]MH_I2C_Read... [00:13:03]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [00:13:03]RAPDU: 90 00 [00:13:03]wFMCommunicate OK [00:13:03]wFMCommunicate request_size=26 [00:13:03]MH_SAM_APDU [00:13:03]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 [00:13:04]Write to MH i2c: E2 1D 00 F0 0C 80 15 02 00 15 00 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 00 00 62 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [00:13:04]RAPDU: 90 00 [00:13:04]wFMCommunicate OK [00:13:04]wFMCommunicate request_size=13 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 15 02 00 08 F4 03 04 00 91 D0 B3 67 [00:13:04]Write to MH i2c: E2 10 00 F1 0C 80 15 02 00 08 00 F4 03 04 00 91 D0 B3 67 00 00 03 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [00:13:04]RAPDU: 90 00 [00:13:04]wFMCommunicate OK [00:13:04]wFMCommunicate request_size=25 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [00:13:04]Write to MH i2c: E2 1C 00 F2 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 E5 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [00:13:04]RAPDU: 90 00 [00:13:04]wFMCommunicate OK [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 15 03 00 [00:13:04]Write to MH i2c: E2 08 00 F3 0C 80 15 03 00 00 00 00 00 80 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:04]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:13:04]Read from MH i2c: E2 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 FD 00 [00:13:04]MH_I2C_Read... [00:13:04]Read from MH i2c: E2 FD 00 F3 0C 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 63 [00:13:04]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:13:04]wFMCommunicate OK [00:13:04]SAM_PROTO_ProcessDocument answer len = 1268 [00:13:04]SAM_PROTO_ProcessDocument remain to read = 1020 [00:13:04]wFMCommunicate request_size=4 [00:13:04]MH_SAM_APDU [00:13:04]CAPDU: 80 17 00 00 [00:13:04]Write to MH i2c: E2 08 00 F4 0C 80 17 00 00 00 00 00 00 80 [00:13:04]Write i2c OK [00:13:04]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 F4 0C 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 D4 [00:13:05]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:13:05]wFMCommunicate OK [00:13:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:13:05]SAM_PROTO_ProcessDocument remain to read = 770 [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 17 00 00 [00:13:05]Write to MH i2c: E2 08 00 F5 0C 80 17 00 00 00 00 00 00 81 [00:13:05]Write i2c OK [00:13:05]MH_I2C_Read... [00:13:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:05]Read from MH i2c: E2 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 [00:13:05]MH_I2C_Read... [00:13:05]Read from MH i2c: E2 FD 00 F5 0C 00 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 E3 [00:13:05]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:13:05]wFMCommunicate OK [00:13:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:13:05]SAM_PROTO_ProcessDocument remain to read = 520 [00:13:05]wFMCommunicate request_size=4 [00:13:05]MH_SAM_APDU [00:13:05]CAPDU: 80 17 00 00 [00:13:05]Write to MH i2c: E2 08 00 F6 0C 80 17 00 00 00 00 00 00 82 [00:13:05]Write i2c OK [00:13:05]MH_I2C_Read... [00:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:06]Read from MH i2c: E2 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 F6 0C 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 0A [00:13:06]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:13:06]wFMCommunicate OK [00:13:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:13:06]SAM_PROTO_ProcessDocument remain to read = 270 [00:13:06]wFMCommunicate request_size=4 [00:13:06]MH_SAM_APDU [00:13:06]CAPDU: 80 17 00 00 [00:13:06]Write to MH i2c: E2 08 00 F7 0C 80 17 00 00 00 00 00 00 83 [00:13:06]Write i2c OK [00:13:06]MH_I2C_Read... [00:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:06]Read from MH i2c: E2 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 FD 00 F7 0C 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 4D [00:13:06]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:13:06]wFMCommunicate OK [00:13:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:13:06]SAM_PROTO_ProcessDocument remain to read = 20 [00:13:06]wFMCommunicate request_size=4 [00:13:06]MH_SAM_APDU [00:13:06]CAPDU: 80 17 00 00 [00:13:06]Write to MH i2c: E2 08 00 F8 0C 80 17 00 00 00 00 00 00 84 [00:13:06]Write i2c OK [00:13:06]MH_I2C_Read... [00:13:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:13:06]Read from MH i2c: E2 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 17 00 [00:13:06]MH_I2C_Read... [00:13:06]Read from MH i2c: E2 17 00 F8 0C 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AF D6 6B CE 43 1F 90 00 E5 [00:13:06]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 AF D6 6B CE 43 1F 90 00 [00:13:06]wFMCommunicate OK [00:13:06]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:13:06]SAM_PROTO_ProcessDocument done [00:13:06]1209 (1) - 1.0 - номер версии ФФД [00:13:06]1041 (16) - 0000000000871826 - номер ФМ [00:13:06]1040 (4) - 186683 - номер ФД [00:13:06]1038 (4) - 644 - номер смены [00:13:06]1118 (4) - 269 - количество кассовых чеков за смену [00:13:06]1111 (4) - 271 - общее количество ФД за смену [00:13:06]1194 (1197) - счетчики итогов смены [00:13:06] 1134 (4) - 269 - количество чеков со всеми признаками расчетов [00:13:06] 1129 (158) - счетчики операций «приход» [00:13:06] 1135 (4) - 269 - количество чеков по признаку расчетов [00:13:06] 1201 (4) - 266614.74 - общая итоговая сумма в чеках [00:13:06] 1136 (4) - 180801.00 - итоговая сумма в чеках наличными [00:13:06] 1138 (3) - 85813.74 - итоговая сумма в чеках безналичными [00:13:06] 1024 (123) - суммы налогов [00:13:06] 1006 (9) - суммы НДС [00:13:06] 1010 (1) - 0% - код ставки НДС [00:13:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:06] 1006 (12) - суммы НДС [00:13:06] 1010 (1) - 12% - код ставки НДС [00:13:06] 1011 (3) - 28319.38 - сумма НДС по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (12) - суммы НСП [00:13:06] 1014 (1) - 1% - код ставки НСП [00:13:06] 1015 (3) - 2359.84 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 2% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 3% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 5% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0,50% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 1,50% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1130 (141) - счетчики операций «возврат прихода» [00:13:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:13:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:13:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:13:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:06] 1024 (117) - суммы налогов [00:13:06] 1006 (9) - суммы НДС [00:13:06] 1010 (1) - 0% - код ставки НДС [00:13:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:06] 1006 (9) - суммы НДС [00:13:06] 1010 (1) - 12% - код ставки НДС [00:13:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 1% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 2% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 3% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 5% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0,50% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 1,50% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1131 (141) - счетчики операций «расход» [00:13:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:13:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:13:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:13:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:06] 1024 (117) - суммы налогов [00:13:06] 1006 (9) - суммы НДС [00:13:06] 1010 (1) - 0% - код ставки НДС [00:13:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:06] 1006 (9) - суммы НДС [00:13:06] 1010 (1) - 12% - код ставки НДС [00:13:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 1% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 2% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 3% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 5% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:06] 1007 (9) - суммы НСП [00:13:06] 1014 (1) - 0,50% - код ставки НСП [00:13:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 1,50% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1132 (141) - счетчики операций «возврат расхода» [00:13:07] 1135 (4) - 0 - количество чеков по признаку расчетов [00:13:07] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:13:07] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:13:07] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:13:07] 1024 (117) - суммы налогов [00:13:07] 1006 (9) - суммы НДС [00:13:07] 1010 (1) - 0% - код ставки НДС [00:13:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:07] 1006 (9) - суммы НДС [00:13:07] 1010 (1) - 12% - код ставки НДС [00:13:07] 1011 (0) - 0.00 - сумма НДС по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 0% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 1% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 2% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 3% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 5% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 0,50% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1007 (9) - суммы НСП [00:13:07] 1014 (1) - 1,50% - код ставки НСП [00:13:07] 1015 (0) - 0.00 - сумма НСП по ставке [00:13:07] 1133 (588) - - счетчики коррекции - не используются [00:13:07]1077 (6) - 193335466541855 - ФПД [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1209 (04B9) [00:13:07]Malloc new data [00:13:07]Processing tag 1041 (0411) [00:13:07]Processing tag 1040 (0410) [00:13:07]Malloc new data [00:13:07]Processing tag 1038 (040E) [00:13:07]Malloc new data [00:13:07]Processing tag 1118 (045E) [00:13:07]Malloc new data [00:13:07]Processing tag 1111 (0457) [00:13:07]Malloc new data [00:13:07]Processing tag 1194 (04AA) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1134 (046E) [00:13:07]Malloc new data [00:13:07]Processing tag 1129 (0469) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1135 (046F) [00:13:07]Malloc new data [00:13:07]Processing tag 1201 (04B1) [00:13:07]Malloc new data [00:13:07]Processing tag 1136 (0470) [00:13:07]Malloc new data [00:13:07]Processing tag 1138 (0472) [00:13:07]Malloc new data [00:13:07]Processing tag 1024 (0400) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1130 (046A) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1135 (046F) [00:13:07]Malloc new data [00:13:07]Processing tag 1201 (04B1) [00:13:07]Malloc new data [00:13:07]Processing tag 1136 (0470) [00:13:07]Malloc new data [00:13:07]Processing tag 1138 (0472) [00:13:07]Malloc new data [00:13:07]Processing tag 1024 (0400) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1131 (046B) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1135 (046F) [00:13:07]Malloc new data [00:13:07]Processing tag 1201 (04B1) [00:13:07]Malloc new data [00:13:07]Processing tag 1136 (0470) [00:13:07]Malloc new data [00:13:07]Processing tag 1138 (0472) [00:13:07]Malloc new data [00:13:07]Processing tag 1024 (0400) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1132 (046C) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1135 (046F) [00:13:07]Malloc new data [00:13:07]Processing tag 1201 (04B1) [00:13:07]Malloc new data [00:13:07]Processing tag 1136 (0470) [00:13:07]Malloc new data [00:13:07]Processing tag 1138 (0472) [00:13:07]Malloc new data [00:13:07]Processing tag 1024 (0400) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1006 (03EE) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1010 (03F2) [00:13:07]Malloc new data [00:13:07]Processing tag 1011 (03F3) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1007 (03EF) [00:13:07]Load OK [00:13:07]SetTLVBufToDocument [00:13:07]Processing tag 1014 (03F6) [00:13:07]Malloc new data [00:13:07]Processing tag 1015 (03F7) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1133 (046D) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Processing tag 1077 (0435) [00:13:07]Malloc new data [00:13:07]SetTLVBufToDocument err=0 [00:13:07]Malloc new data [00:13:07]SAM_PROTO_GetFMData [00:13:07]wFMCommunicate request_size=4 [00:13:07]MH_SAM_APDU [00:13:07]CAPDU: 80 13 03 00 [00:13:07]Write to MH i2c: E2 08 00 F9 0C 80 13 03 00 00 00 00 00 84 [00:13:07]Write i2c OK [00:13:07]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:13:08]Read from MH i2c: E2 FD 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 FD 00 F9 0C 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 9C [00:13:08]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:13:08]wFMCommunicate OK [00:13:08]wFMCommunicate request_size=4 [00:13:08]MH_SAM_APDU [00:13:08]CAPDU: 80 17 00 00 [00:13:08]Write to MH i2c: E2 08 00 FA 0C 80 17 00 00 00 00 00 00 86 [00:13:08]Write i2c OK [00:13:08]MH_I2C_Read... [00:13:08]OFD Sender: No OFD packet to send [00:13:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:08]Read from MH i2c: E2 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 FD 00 [00:13:08]MH_I2C_Read... [00:13:08]Read from MH i2c: E2 FD 00 FA 0C 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 4F [00:13:09]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 FB 0C 80 17 00 00 00 00 00 00 87 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 FB 0C 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 27 [00:13:09]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:13:09]wFMCommunicate OK [00:13:09]wFMCommunicate request_size=4 [00:13:09]MH_SAM_APDU [00:13:09]CAPDU: 80 17 00 00 [00:13:09]Write to MH i2c: E2 08 00 FC 0C 80 17 00 00 00 00 00 00 88 [00:13:09]Write i2c OK [00:13:09]MH_I2C_Read... [00:13:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:13:09]Read from MH i2c: E2 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 [00:13:09]MH_I2C_Read... [00:13:09]Read from MH i2c: E2 FD 00 FC 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 0D [00:13:10]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:13:10]wFMCommunicate OK [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 17 00 00 [00:13:10]Write to MH i2c: E2 08 00 FD 0C 80 17 00 00 00 00 00 00 89 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 DE 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 DE 00 FD 0C 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 68 [00:13:10]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:13:10]wFMCommunicate OK [00:13:10]SAM_PROTO_GetFMData done [00:13:10]Malloc new data [00:13:10]Malloc new data [00:13:10]Malloc new data [00:13:10]Malloc new data [00:13:10]KKMLoadAndSignCloseShiftData err=0 [00:13:10]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Арапов Н. 18.02.2025 00:13 Смена: 644 РНМ: 0000000000091857 ЗНМ: 0300000118 СНО: Общий режим Чеков за смену: 269 ФД за смену: 271 Всего чеков: 269 ИТОГИ ПРИХОД Чеков: 269 Общий итог: 266614.74 Итого наличными: 180801.00 Итого безнал.: 85813.74 НДС 0% : 0.00 НДС 12% : 28319.38 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2359.84 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 180801.00 НС Приход: 176017908.13 НС Возвр.Прихода: 37055.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 186683 ФМ: 0000000000871826 ФПД: 193335466541855 [00:13:10]StoreToDocumentArchive [00:13:10]shift 644 fd 186683 [00:13:10]save to /storage/0644/doc_00186683 [00:13:10]save last doc name /storage/0644/doc_00186683 to /storage/kkm_last_doc_name [00:13:10]save OK [00:13:10]Clear old archive folders... [00:13:10]Remove dir /storage/0522 [00:13:10]opendir ok [00:13:10]file . [00:13:10]file .. [00:13:10]file doc_1739837505 [00:13:10]remove file /storage/0522/doc_1739837505 [00:13:10]remove dir /storage/0522 [00:13:10]NVStorageSaveData kkm_registers [00:13:10]File name is /storage/kkm_registers [00:13:10]Write 24 bytes [00:13:10]NVStorageSaveData done [00:13:10]NVStorageSaveData kkm_registers [00:13:10]File name is /storage/kkm_registers [00:13:10]Write 24 bytes [00:13:10]NVStorageSaveData done [00:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=1378 [00:13:10]tlvbuf is 006B64F0 [00:13:10]SAM_PROTO_ClearQueue [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 09 00 00 [00:13:10]Write to MH i2c: E2 08 00 FE 0C 80 09 00 00 00 00 00 00 7C [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [00:13:10]RAPDU: 90 00 [00:13:10]wFMCommunicate OK [00:13:10]SAM_PROTO_ClearQueue done [00:13:10]KKMCreateOFDPacket [00:13:10]OFDProtocolAddRootSTLVToBuf [00:13:10]FM_MakeSignedData [00:13:10]FM_MakeSignedData [00:13:10]SAM_PROTO_SignData [00:13:10]wFMCommunicate request_size=4 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 0D 01 02 [00:13:10]Write to MH i2c: E2 08 00 FF 0C 80 0D 01 02 00 00 00 00 84 [00:13:10]Write i2c OK [00:13:10]MH_I2C_Read... [00:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:13:10]Read from MH i2c: E2 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 [00:13:10]MH_I2C_Read... [00:13:10]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [00:13:10]RAPDU: 90 00 [00:13:10]wFMCommunicate OK [00:13:10]wFMCommunicate request_size=255 [00:13:10]MH_SAM_APDU [00:13:10]CAPDU: 80 0D 02 02 FA 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 91 D0 B3 67 0E 04 04 00 84 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D8 04 6E 04 04 00 0D 01 00 00 69 04 A5 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 [00:13:10]Write to MH i2c: E2 02 01 00 0D 80 0D 02 02 FA 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 91 D0 B3 67 0E 04 04 00 84 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D8 04 6E 04 04 00 0D 01 00 00 69 04 A5 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 10 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=255 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A [00:13:11]Write to MH i2c: E2 02 01 01 0D 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 00 61 [00:13:11]Write i2c OK [00:13:11]MH_I2C_Read... [00:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:11]Read from MH i2c: E2 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 [00:13:11]MH_I2C_Read... [00:13:11]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [00:13:11]RAPDU: 90 00 [00:13:11]wFMCommunicate OK [00:13:11]wFMCommunicate request_size=255 [00:13:11]MH_SAM_APDU [00:13:11]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 [00:13:12]Write to MH i2c: E2 02 01 02 0D 80 0D 02 02 FA 00 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 4F [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:12]Read from MH i2c: E2 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 [00:13:12]MH_I2C_Read... [00:13:12]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [00:13:12]RAPDU: 90 00 [00:13:12]wFMCommunicate OK [00:13:12]wFMCommunicate request_size=255 [00:13:12]MH_SAM_APDU [00:13:12]CAPDU: 80 0D 02 02 FA 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 [00:13:12]Write to MH i2c: E2 02 01 03 0D 80 0D 02 02 FA 00 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 4F [00:13:12]Write i2c OK [00:13:12]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 03 0D 00 90 00 84 [00:13:13]RAPDU: 90 00 [00:13:13]wFMCommunicate OK [00:13:13]wFMCommunicate request_size=255 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 [00:13:13]Write to MH i2c: E2 02 01 04 0D 80 0D 02 02 FA 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 00 00 0E [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:13]Read from MH i2c: E2 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 [00:13:13]MH_I2C_Read... [00:13:13]Read from MH i2c: E2 03 00 04 0D 00 90 00 85 [00:13:13]RAPDU: 90 00 [00:13:13]wFMCommunicate OK [00:13:13]wFMCommunicate request_size=137 [00:13:13]MH_SAM_APDU [00:13:13]CAPDU: 80 0D 02 02 84 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3B D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 AF D6 6B CE 43 1F [00:13:13]Write to MH i2c: E2 8C 00 05 0D 80 0D 02 02 84 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3B D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 AF D6 6B CE 43 1F 00 00 07 [00:13:13]OFD Sender: No OFD packet to send [00:13:13]Write i2c OK [00:13:13]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 03 00 05 0D 00 90 00 86 [00:13:14]RAPDU: 90 00 [00:13:14]wFMCommunicate OK [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 0D 03 02 [00:13:14]Write to MH i2c: E2 08 00 06 0D 80 0D 03 02 00 00 00 00 8E [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 0B 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 0B 00 06 0D 00 C4 8C 9D 2B 02 76 68 F7 90 00 7E [00:13:14]RAPDU: C4 8C 9D 2B 02 76 68 F7 90 00 [00:13:14]wFMCommunicate OK [00:13:14]SAM_PROTO_SignData done [00:13:14]FM_MakeSignedData done [00:13:14]CreateOFDProtocolMessage [00:13:14]wFMCommunicate request_size=4 [00:13:14]MH_SAM_APDU [00:13:14]CAPDU: 80 11 00 00 [00:13:14]Write to MH i2c: E2 08 00 07 0D 80 11 00 00 00 00 00 00 8E [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 [00:13:14]MH_I2C_Read... [00:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:14]Read from MH i2c: E2 17 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: E2 17 00 07 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E1 [00:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:13:14]wFMCommunicate OK [00:13:14]CreateOFDProtocolMessage done [00:13:14]OFDSenderStorePacket 186683 [00:13:14]StoreOFDPacket docnum=186683 [00:13:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 76 05 00 00 9C E6 6E 05 FC BA 5A 05 01 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 91 D0 B3 67 0E 04 04 00 84 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D8 04 6E 04 04 00 0D 01 00 00 69 04 A5 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3B D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 AF D6 6B CE 43 1F C4 8C 9D 2B 02 76 68 F7 [00:13:14]CheckFolder [00:13:14]dirname=/storage/ofd_packets [00:13:14]CheckFolder done [00:13:14]ProducePacketName [00:13:14]name=ofd_packets/00186683 [00:13:14]NVStorageSaveData ofd_packets/00186683 [00:13:14]File name is /storage/ofd_packets/00186683 [00:13:14]Write 1428 bytes [00:13:14]NVStorageSaveData done [00:13:14]OFDSenderStorePacket done [00:13:14]KKMCreateOFDPacket done [00:13:14]NVStorageSaveData kkm_last_timestamp [00:13:14]File name is /storage/kkm_last_timestamp [00:13:14]Write 4 bytes [00:13:14]NVStorageSaveData done [00:13:14]ExternCall_PrintAddStr [00:13:14]wPrintStart [00:13:14]Write to MH i2c: 01 00 00 08 0D 15 [00:13:14]Write i2c OK [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 [00:13:14]MH_I2C_Read... [00:13:14]Read from MH i2c: 01 07 00 08 0D 00 00 00 00 00 FF 0F 2A [00:13:14]RasterBufferAndPrint [00:13:14]line Отчет о закрытии смены [00:13:14]line ФФД: 1.0 [00:13:14]line ИНН: 02508201610067 [00:13:14]line Кассир: Арапов Н. [00:13:14]line 18.02.2025 00:13 [00:13:14]line Смена: 644 [00:13:14]line РНМ: 0000000000091857 [00:13:14]line ЗНМ: 0300000118 [00:13:14]line СНО: Общий режим [00:13:14]line Чеков за смену: 269 [00:13:14]line ФД за смену: 271 [00:13:14]line Всего чеков: 269 [00:13:14]line ИТОГИ ПРИХОД [00:13:14]line Чеков: 269 [00:13:14]line Общий итог: 266614.74 [00:13:14]line Итого наличными: 180801.00 [00:13:14]line Итого безнал.: 85813.74 [00:13:14]line НДС 0% : 0.00 [00:13:14]line НДС 12% : 28319.38 [00:13:14]line НСП 0% : 0.00 [00:13:14]line НСП 1,50% : 0.00 [00:13:14]line НСП 0,50% : 0.00 [00:13:14]line НСП 5% : 0.00 [00:13:14]line НСП 3% : 0.00 [00:13:14]line НСП 2% : 0.00 [00:13:14]line НСП 1% : 2359.84 [00:13:14]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:13:14]line Чеков: 0 [00:13:14]line Общий итог: 0.00 [00:13:14]line Итого наличными: 0.00 [00:13:14]line Итого безнал.: 0.00 [00:13:14]line НДС 0% : 0.00 [00:13:14]line НДС 12% : 0.00 [00:13:14]line НСП 0% : 0.00 [00:13:14]line НСП 1,50% : 0.00 [00:13:14]line НСП 0,50% : 0.00 [00:13:14]line НСП 5% : 0.00 [00:13:14]line НСП 3% : 0.00 [00:13:14]line НСП 2% : 0.00 [00:13:14]line НСП 1% : 0.00 [00:13:14]line ИТОГИ РАСХОД [00:13:14]line Чеков: 0 [00:13:14]line Общий итог: 0.00 [00:13:14]line Итого наличными: 0.00 [00:13:14]line Итого безнал.: 0.00 [00:13:14]line НДС 0% : 0.00 [00:13:14]line НДС 12% : 0.00 [00:13:14]line НСП 0% : 0.00 [00:13:14]line НСП 1,50% : 0.00 [00:13:14]line НСП 0,50% : 0.00 [00:13:14]line НСП 5% : 0.00 [00:13:14]line НСП 3% : 0.00 [00:13:14]line НСП 2% : 0.00 [00:13:14]line НСП 1% : 0.00 [00:13:14]line ИТОГИ ВОЗВРАТ РАСХОДА [00:13:14]line Чеков: 0 [00:13:14]line Общий итог: 0.00 [00:13:14]line Итого наличными: 0.00 [00:13:14]line Итого безнал.: 0.00 [00:13:14]line НДС 0% : 0.00 [00:13:14]line НДС 12% : 0.00 [00:13:14]line НСП 0% : 0.00 [00:13:14]line НСП 1,50% : 0.00 [00:13:14]line НСП 0,50% : 0.00 [00:13:14]line НСП 5% : 0.00 [00:13:14]line НСП 3% : 0.00 [00:13:14]line НСП 2% : 0.00 [00:13:14]line НСП 1% : 0.00 [00:13:14]line Сумма внесений: 0.00 [00:13:14]line Сумма выплат: 0.00 [00:13:14]line Нал. в кассе: 180801.00 [00:13:14]line НС Приход: 176017908.13 [00:13:14]line НС Возвр.Прихода: 37055.00 [00:13:14]line НС Расход: 0.00 [00:13:14]line НС Возвр.Расхода: 0.00 [00:13:14]line ФД: 186683 [00:13:14]line ФМ: 0000000000871826 [00:13:14]line ФПД: 193335466541855 [00:13:14]OFD Sender: Processing packet 186683 [packets to send 49, broken 48] [00:13:14]ProducePacketName [00:13:14]name=ofd_packets/00186683 [00:13:14]OFD Sender: To server: pG, [00:13:14]CommunicateWithHost lk.salyk.kg:30040 [00:13:14]ConnectInit lk.salyk.kg [00:13:14]written 0, free lines is 4095 [00:13:15]Connected sock=10 [00:13:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 76 05 00 00 9C E6 6E 05 FC BA 5A 05 01 00 05 00 62 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 90 D1 80 D0 B0 D0 BF D0 BE D0 B2 20 D0 9D 2E 20 F4 03 04 00 91 D0 B3 67 0E 04 04 00 84 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 AA 04 D8 04 6E 04 04 00 0D 01 00 00 69 04 A5 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 Write to MH i2c: EF 01 03 00 09 00 00 58 F6 0D 03 65 01 [00:13:15]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 Write i2c OK [00:13:15]09 MH_I2C_Read... [00:13:15]00 Read from MH i2c: F6 01 03 [00:13:15]01 MH_I2C_Read... [00:13:15]00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 Read from MH i2c: 09 01 00 07 F6 00 03 [00:13:15]01 MH_I2C_Read... [00:13:15]00 Read from MH i2c: 05 01 F7 07 03 00 00 58 00 0D EF 00 03 00 09 00 00 00 F6 00 03 F5 01 0A 00 6B 06 [00:13:15]F7 RasterBufferAndPrint [00:13:15]03 line [00:13:15]00 line [00:13:15]00 line [00:13:15]7A line [00:13:15]04 line [00:13:15]8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 written 0, free lines is 2946 [00:13:15]70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 MH_Cut [00:13:15]00 Write to MH i2c: 00 D1 F3 01 03 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 5F 09 0D 00 01 F6 3E 03 [00:13:15]01 00 Write i2c OK [00:13:15]00 MH_I2C_Read... [00:13:15]F7 Read from MH i2c: 03 D1 00 [00:13:15]00 MH_I2C_Read... [00:13:15]EF 03 09 00 F6 03 01 00 01 F7 Read from MH i2c: 03 D1 00 01 00 00 EF [00:13:15]03 MH_I2C_Read... [00:13:15]09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 Read from MH i2c: 00 D1 00 01 EF 00 03 5F 09 0D 00 00 F6 3D 03 [00:13:15]01 Write to MH i2c: 00 01 04 00 F7 00 03 60 00 0D 00 6D EF [00:13:15]03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 3B D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 AF D6 6B CE 43 1F C4 8C 9D 2B 02 76 68 F7 [00:13:16]Write i2c OK [00:13:16]MH_I2C_Read... [00:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 16 12 47 00 EC CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3B D9 02 00 F4 03 04 00 F4 76 B3 67 B6 04 01 00 00 E1 01 33 7D 89 58 44 A4 [00:13:16]CommunicateWithHost err = 0 [00:13:16]CheckOFDResponse [00:13:16]1017 (14) - 77093643461234 [00:13:16]1041 (16) - 0000000000871826 [00:13:16]1040 (4) - 186683 [00:13:16]1012 (4) - 17.02.2025 17:50 [00:13:16]1206 (1) - 0 [00:13:16]OFD Sender: Remove packet 186683 [00:13:16]ProducePacketName [00:13:16]name=ofd_packets/00186683 [00:13:16]NVStorageDeleteData [00:13:16]*** Cut start [00:13:16]*** Partial cut [00:13:16]*** CUTSNS_PIN = 1 [00:13:16]*** CUTSNS_PIN = 0 [00:13:16]OFD Sender: No OFD packet to send [00:13:16]*** Brake cut motor [00:13:17]Read from MH i2c: 01 [00:13:17]MH_I2C_Read... [00:13:17]*** Stop cut motor [00:13:17]*** Cut end [00:13:17]Read from MH i2c: 01 07 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: 01 07 00 60 0D 00 00 00 00 00 FF 0F 82 [00:13:17]process_action close_shift done [00:13:17]requested_data is exist [00:13:17]produce_requested_data [00:13:17]requested_item fd.num is exist - process it [00:13:17]SAM_PROTO_GetFieldsCounters [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 00 00 [00:13:17]Write to MH i2c: E2 08 00 61 0D 80 13 00 00 00 00 00 00 EA [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 62 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 62 00 61 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [00:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetFieldsCounters done [00:13:17]requested_item shift.num is exist - process it [00:13:17]requested_item shift.opened is exist - process it [00:13:17]req_shift_opened [00:13:17]FM_GetShiftState [00:13:17]SAM_PROTO_GetShiftState [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 01 00 [00:13:17]Write to MH i2c: E2 08 00 62 0D 80 13 01 00 00 00 00 00 EC [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 62 0D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F7 [00:13:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetShiftState done [00:13:17]FM_GetShiftState done [00:13:17]req_shift_opened done [00:13:17]requested_item shift.open_date is exist - process it [00:13:17]req_shift_open_date [00:13:17]FM_GetShiftState [00:13:17]SAM_PROTO_GetShiftState [00:13:17]wFMCommunicate request_size=4 [00:13:17]MH_SAM_APDU [00:13:17]CAPDU: 80 13 01 00 [00:13:17]Write to MH i2c: E2 08 00 63 0D 80 13 01 00 00 00 00 00 ED [00:13:17]Write i2c OK [00:13:17]MH_I2C_Read... [00:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:17]Read from MH i2c: E2 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 [00:13:17]MH_I2C_Read... [00:13:17]Read from MH i2c: E2 0E 00 63 0D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F8 [00:13:17]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:13:17]wFMCommunicate OK [00:13:17]SAM_PROTO_GetShiftState done [00:13:17]FM_GetShiftState done [00:13:17]req_shift_open_date done [00:13:17]produce_requested_data done [00:13:17]produce_requested_data return {"fd.num":186683,"shift.num":644,"shift.opened":0,"shift.open_date":0} [00:13:17]process_action_free close_shift [00:13:17]json_value_free [00:13:17]json_value_free done [00:13:17]process_json_proto returns [00:13:17]Send response to host [00:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186683,"shift.num":644,"shift.opened":0,"shift.open_date":0}}} [00:13:17]free response buf [00:13:17]execute_script done [00:13:17]execute_script returns [00:13:17]free content buf [00:13:17]Sock 7.Close socket [00:13:17]Sock 7.Thread stoped [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:47]accept exits with 9 [00:33:47]New connection [00:33:47]New thread 3067194724 created [00:33:47]Thread 3067051364 joined [00:33:47]Waiting for new connection... [00:33:47] Sock 9.Parse request [00:33:47]Sock 9.Check first char [00:33:47]Sock 9.First char is OK [00:33:47]request: POST /json_proto HTTP/1.0 [00:33:47]Method: POST [00:33:47]URL: /json_proto [00:33:47]Method is POST - this is cgi request [00:33:47]url: /json_proto [00:33:47]query_string will be loaded in cgi processing [00:33:47]execute_cgi json_proto POST (null) [00:33:47]execute_cgi path=json_proto method=POST [00:33:47]POST find Content-Length [00:33:47]Host: 172.17.46.131:8080 [00:33:47]Content-Length: 215 [00:33:47]Content-Type: application/json [00:33:47] [00:33:47]POST finish read [00:33:47]Found Content-Length = 215 [00:33:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:47]execute_script... [00:33:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:47]POST & json_proto [00:33:47]process_json_proto [00:33:47]json parsed OK: [00:33:47]protocol is kg_v1.0 [00:33:47]action value=get_value [00:33:47]process_action get_value [00:33:47]cmd_get_value [00:33:47]process_action get_value done [00:33:47]requested_data is exist [00:33:47]produce_requested_data [00:33:47]requested_item kkm.sn is exist - process it [00:33:47]requested_item kkm.ver is exist - process it [00:33:47]requested_item fm.sn is exist - process it [00:33:47]wFMCommunicate request_size=4 [00:33:47]MH_SAM_APDU [00:33:47]CAPDU: 80 11 00 00 [00:33:47]Write to MH i2c: E2 08 00 64 0D 80 11 00 00 00 00 00 00 EB [00:33:47]Write i2c OK [00:33:47]MH_I2C_Read... [00:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:47]Read from MH i2c: E2 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 17 00 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 17 00 64 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 3E [00:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:33:47]wFMCommunicate OK [00:33:47]requested_item fd.num is exist - process it [00:33:47]SAM_PROTO_GetFieldsCounters [00:33:47]wFMCommunicate request_size=4 [00:33:47]MH_SAM_APDU [00:33:47]CAPDU: 80 13 00 00 [00:33:47]Write to MH i2c: E2 08 00 65 0D 80 13 00 00 00 00 00 00 EE [00:33:47]Write i2c OK [00:33:47]MH_I2C_Read... [00:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:47]Read from MH i2c: E2 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 62 00 [00:33:47]MH_I2C_Read... [00:33:47]Read from MH i2c: E2 62 00 65 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [00:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3B D9 02 00 0E 04 04 00 84 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:47]wFMCommunicate OK [00:33:47]SAM_PROTO_GetFieldsCounters done [00:33:47]requested_item shift.num is exist - process it [00:33:47]requested_item shift.opened is exist - process it [00:33:47]req_shift_opened [00:33:47]FM_GetShiftState [00:33:47]SAM_PROTO_GetShiftState [00:33:47]wFMCommunicate request_size=4 [00:33:47]MH_SAM_APDU [00:33:47]CAPDU: 80 13 01 00 [00:33:47]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [00:33:47]Write i2c OK [00:33:47]MH_I2C_Read... [00:33:48]OFD Sender: No OFD packet to send [00:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:48]Read from MH i2c: E2 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 0E 00 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 0E 00 66 0D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FB [00:33:48]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:48]wFMCommunicate OK [00:33:48]SAM_PROTO_GetShiftState done [00:33:48]FM_GetShiftState done [00:33:48]req_shift_opened done [00:33:48]requested_item shift.open_date is exist - process it [00:33:48]req_shift_open_date [00:33:48]FM_GetShiftState [00:33:48]SAM_PROTO_GetShiftState [00:33:48]wFMCommunicate request_size=4 [00:33:48]MH_SAM_APDU [00:33:48]CAPDU: 80 13 01 00 [00:33:48]Write to MH i2c: E2 08 00 67 0D 80 13 01 00 00 00 00 00 F1 [00:33:48]Write i2c OK [00:33:48]MH_I2C_Read... [00:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:48]Read from MH i2c: E2 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 0E 00 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 0E 00 67 0D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FC [00:33:48]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:48]wFMCommunicate OK [00:33:48]SAM_PROTO_GetShiftState done [00:33:48]FM_GetShiftState done [00:33:48]req_shift_open_date done [00:33:48]produce_requested_data done [00:33:48]produce_requested_data return {"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186683,"shift.num":644,"shift.opened":0,"shift.open_date":0} [00:33:48]process_action_free get_value [00:33:48]json_value_free [00:33:48]json_value_free done [00:33:48]process_json_proto returns [00:33:48]Send response to host [00:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000118","kkm.ver":"001","fm.sn":"0000000000871826","fd.num":186683,"shift.num":644,"shift.opened":0,"shift.open_date":0}}} [00:33:48]free response buf [00:33:48]execute_script done [00:33:48]execute_script returns [00:33:48]free content buf [00:33:48]Sock 9.Close socket [00:33:48]Sock 9.Thread stoped [00:33:48]accept exits with 7 [00:33:48]New connection [00:33:48]New thread 3067051364 created [00:33:48]Thread 3067194724 joined [00:33:48]Waiting for new connection... [00:33:48] Sock 7.Parse request [00:33:48]Sock 7.Check first char [00:33:48]Sock 7.First char is OK [00:33:48]request: POST /json_proto HTTP/1.0 [00:33:48]Method: POST [00:33:48]URL: /json_proto [00:33:48]Method is POST - this is cgi request [00:33:48]url: /json_proto [00:33:48]query_string will be loaded in cgi processing [00:33:48]execute_cgi json_proto POST (null) [00:33:48]execute_cgi path=json_proto method=POST [00:33:48]POST find Content-Length [00:33:48]Host: 172.17.46.131:8080 [00:33:48]Content-Length: 331 [00:33:48]Content-Type: application/json [00:33:48] [00:33:48]POST finish read [00:33:48]Found Content-Length = 331 [00:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:48]execute_script... [00:33:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:48]POST & json_proto [00:33:48]process_json_proto [00:33:48]json parsed OK: [00:33:48]protocol is kg_v1.0 [00:33:48]action value=get_value [00:33:48]process_action get_value [00:33:48]cmd_get_value [00:33:48]process_action get_value done [00:33:48]requested_data is exist [00:33:48]produce_requested_data [00:33:48]requested_item fm.sale.total is exist - process it [00:33:48]SAM_PROTO_GetFMData [00:33:48]wFMCommunicate request_size=4 [00:33:48]MH_SAM_APDU [00:33:48]CAPDU: 80 13 03 00 [00:33:48]Write to MH i2c: E2 08 00 68 0D 80 13 03 00 00 00 00 00 F4 [00:33:48]Write i2c OK [00:33:48]MH_I2C_Read... [00:33:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:48]Read from MH i2c: E2 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 FD 00 [00:33:48]MH_I2C_Read... [00:33:48]Read from MH i2c: E2 FD 00 68 0D 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 0C [00:33:48]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:33:48]wFMCommunicate OK [00:33:48]wFMCommunicate request_size=4 [00:33:48]MH_SAM_APDU [00:33:48]CAPDU: 80 17 00 00 [00:33:48]Write to MH i2c: E2 08 00 69 0D 80 17 00 00 00 00 00 00 F6 [00:33:48]Write i2c OK [00:33:48]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 69 0D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 BF [00:33:49]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:33:49]wFMCommunicate OK [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 17 00 00 [00:33:49]Write to MH i2c: E2 08 00 6A 0D 80 17 00 00 00 00 00 00 F7 [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 6A 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 97 [00:33:49]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:33:49]wFMCommunicate OK [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 17 00 00 [00:33:49]Write to MH i2c: E2 08 00 6B 0D 80 17 00 00 00 00 00 00 F8 [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 FD 00 6B 0D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 7D [00:33:49]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:49]wFMCommunicate OK [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 17 00 00 [00:33:49]Write to MH i2c: E2 08 00 6C 0D 80 17 00 00 00 00 00 00 F9 [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 DE 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 DE 00 6C 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [00:33:49]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:49]wFMCommunicate OK [00:33:49]SAM_PROTO_GetFMData done [00:33:49]requested_item fm.sale_refund.total is exist - process it [00:33:49]requested_item fm.buy.total is exist - process it [00:33:49]requested_item shift.sale.total is exist - process it [00:33:49]SAM_PROTO_GetShiftData [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 13 02 00 [00:33:49]Write to MH i2c: E2 08 00 6D 0D 80 13 02 00 00 00 00 00 F8 [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 6D 0D 00 B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 8E [00:33:50]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 0D 01 00 00 69 04 9E 00 6F 04 04 00 0D 01 00 00 B1 04 04 00 62 D2 96 01 70 04 04 00 64 E1 13 01 72 04 03 00 FE F0 82 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 42 36 2B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 D0 99 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:50]wFMCommunicate OK [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 17 00 00 [00:33:50]Write to MH i2c: E2 08 00 6E 0D 80 17 00 00 00 00 00 00 FB [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 6E 0D 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 14 [00:33:50]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:33:50]wFMCommunicate OK [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 17 00 00 [00:33:50]Write to MH i2c: E2 08 00 6F 0D 80 17 00 00 00 00 00 00 FC [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 FD 00 6F 0D 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B5 [00:33:50]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:33:50]wFMCommunicate OK [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 17 00 00 [00:33:50]Write to MH i2c: E2 08 00 70 0D 80 17 00 00 00 00 00 00 FD [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 FD 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 FD 00 70 0D 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 75 [00:33:51]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 17 00 00 [00:33:51]Write to MH i2c: E2 08 00 71 0D 80 17 00 00 00 00 00 00 FE [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 CE 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 CE 00 71 0D 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E3 [00:33:51]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:51]wFMCommunicate OK [00:33:51]SAM_PROTO_GetShiftData done [00:33:51]requested_item shift.sale.total_cash is exist - process it [00:33:51]requested_item shift.sale_refund.total is exist - process it [00:33:51]requested_item shift.sale_refund.total_cash is exist - process it [00:33:51]requested_item shift.buy.total is exist - process it [00:33:51]requested_item shift.buy.total_cash is exist - process it [00:33:51]produce_requested_data done [00:33:51]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:33:51]process_action_free get_value [00:33:51]json_value_free [00:33:51]json_value_free done [00:33:51]process_json_proto returns [00:33:51]Send response to host [00:33:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":266614.74,"shift.sale.total_cash":180801.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:33:51]free response buf [00:33:51]execute_script done [00:33:51]execute_script returns [00:33:51]free content buf [00:33:51]Sock 7.Close socket [00:33:51]Sock 7.Thread stoped [00:33:51]accept exits with 9 [00:33:51]New connection [00:33:51]New thread 3067194724 created [00:33:51]Thread 3067051364 joined [00:33:51]Waiting for new connection... [00:33:51] Sock 9.Parse request [00:33:51]Sock 9.Check first char [00:33:51]Sock 9.First char is OK [00:33:51]request: POST /json_proto HTTP/1.0 [00:33:51]Method: POST [00:33:51]URL: /json_proto [00:33:51]Method is POST - this is cgi request [00:33:51]url: /json_proto [00:33:51]query_string will be loaded in cgi processing [00:33:51]execute_cgi json_proto POST (null) [00:33:51]execute_cgi path=json_proto method=POST [00:33:51]POST find Content-Length [00:33:51]Host: 172.17.46.131:8080 [00:33:51]Content-Length: 259 [00:33:51]Content-Type: application/json [00:33:51] [00:33:51]POST finish read [00:33:51]Found Content-Length = 259 [00:33:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:51]execute_script... [00:33:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0411\u0430\u0439\u043C\u0430\u0442\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:33:51]POST & json_proto [00:33:51]process_json_proto [00:33:51]json parsed OK: [00:33:51]protocol is kg_v1.0 [00:33:51]action value=open_shift [00:33:51]process_action open_shift [00:33:51]cmd_open_shift [00:33:51]MH_GetDate [00:33:51]Write to MH i2c: F0 00 00 72 0D 6E [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 09 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 09 00 72 0D 00 71 D5 B3 67 7E 41 4F 65 4A [00:33:51]GetLastDocTimeStamp 1739837585 [00:33:51]current date 1739838833 [00:33:51]FM_GetShiftState [00:33:51]SAM_PROTO_GetShiftState [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 13 01 00 [00:33:51]Write to MH i2c: E2 08 00 73 0D 80 13 01 00 00 00 00 00 FD [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0E 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0E 00 73 0D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 08 [00:33:51]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:33:51]wFMCommunicate OK [00:33:51]SAM_PROTO_GetShiftState done [00:33:51]FM_GetShiftState done [00:33:51]KKMCreateOpenShiftDocument [00:33:51]Load OK [00:33:51]Malloc new data [00:33:51]MH_GetDate [00:33:51]Write to MH i2c: F0 00 00 74 0D 70 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 09 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: F0 09 00 74 0D 00 71 D5 B3 67 7E 41 4F 65 4C [00:33:51]Malloc new data [00:33:51]KKMCreateOpenShiftDocument OK [00:33:51]KKMSetOpenShiftData OK [00:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=195 [00:33:51]tlvbuf is 006E4470 [00:33:51]KKMLoadAndSignOpenShiftData [00:33:51]SAM_PROTO_ProcessDocument [00:33:51]wFMCommunicate request_size=9 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 15 01 00 04 02 00 C3 00 [00:33:51]Write to MH i2c: E2 0C 00 75 0D 80 15 01 00 04 00 02 00 C3 00 00 00 CE [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=23 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:33:51]Write to MH i2c: E2 1A 00 76 0D 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 F8 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=30 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 [00:33:51]Write to MH i2c: E2 21 00 77 0D 80 15 02 00 19 00 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 00 00 03 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=84 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 15 02 00 4F F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 [00:33:51]Write to MH i2c: E2 57 00 78 0D 80 15 02 00 4F 00 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 00 00 3E [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [00:33:52]RAPDU: 90 00 [00:33:52]wFMCommunicate OK [00:33:52]wFMCommunicate request_size=50 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:33:52]Write to MH i2c: E2 35 00 79 0D 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 80 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [00:33:52]RAPDU: 90 00 [00:33:52]wFMCommunicate OK [00:33:52]wFMCommunicate request_size=13 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 15 02 00 08 F4 03 04 00 71 D5 B3 67 [00:33:52]Write to MH i2c: E2 10 00 7A 0D 80 15 02 00 08 00 F4 03 04 00 71 D5 B3 67 00 00 72 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 7A 0D 00 90 00 FB [00:33:52]RAPDU: 90 00 [00:33:52]wFMCommunicate OK [00:33:52]wFMCommunicate request_size=25 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 [00:33:52]Write to MH i2c: E2 1C 00 7B 0D 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 00 00 6F [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 03 00 7B 0D 00 90 00 FC [00:33:52]RAPDU: 90 00 [00:33:52]wFMCommunicate OK [00:33:52]wFMCommunicate request_size=4 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 15 03 00 [00:33:52]Write to MH i2c: E2 08 00 7C 0D 80 15 03 00 00 00 00 00 0A [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 38 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 38 00 7C 0D 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D9 02 00 0E 04 04 00 85 02 00 00 35 04 06 00 29 98 0B CE 28 6A 90 00 A0 [00:33:52]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D9 02 00 0E 04 04 00 85 02 00 00 35 04 06 00 29 98 0B CE 28 6A 90 00 [00:33:52]wFMCommunicate OK [00:33:52]SAM_PROTO_ProcessDocument answer len = 51 [00:33:52]SAM_PROTO_ProcessDocument done [00:33:52]SetTLVBufToDocument [00:33:52]Processing tag 1209 (04B9) [00:33:52]Malloc new data [00:33:52]Processing tag 1041 (0411) [00:33:52]Processing tag 1040 (0410) [00:33:52]Malloc new data [00:33:52]Processing tag 1038 (040E) [00:33:52]Malloc new data [00:33:52]Processing tag 1077 (0435) [00:33:52]Malloc new data [00:33:52]SetTLVBufToDocument err=0 [00:33:52]KKMLoadAndSignOpenShiftData store KKM data [00:33:52]KKMLoadAndSignOpenShiftData err=0 [00:33:52]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Байматов С. Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 Место: АЗС № 92 "Партнер Нефть" 18.02.2025 00:33 Смена: 645 РНМ: 0000000000091857 ЗНМ: 0300000118 ФД: 186684 ФМ: 0000000000871826 ФПД: 45733009827946 [00:33:52]StoreToDocumentArchive [00:33:52]shift 645 fd 186684 [00:33:52]Create dir for shift 0645 [00:33:52]save to /storage/0645/doc_00186684 [00:33:52]save last doc name /storage/0645/doc_00186684 to /storage/kkm_last_doc_name [00:33:52]save OK [00:33:52]Clear old archive folders... [00:33:52]Remove dir /storage/0644 [00:33:52]opendir ok [00:33:52]file . [00:33:52]file .. [00:33:52]file doc_00186413 [00:33:52]remove file /storage/0644/doc_00186413 [00:33:52]file doc_00186414 [00:33:52]remove file /storage/0644/doc_00186414 [00:33:52]file doc_00186415 [00:33:52]remove file /storage/0644/doc_00186415 [00:33:52]file doc_00186416 [00:33:52]remove file /storage/0644/doc_00186416 [00:33:52]file doc_00186417 [00:33:52]remove file /storage/0644/doc_00186417 [00:33:52]file doc_00186418 [00:33:52]remove file /storage/0644/doc_00186418 [00:33:52]file doc_00186419 [00:33:52]remove file /storage/0644/doc_00186419 [00:33:52]file doc_00186420 [00:33:52]remove file /storage/0644/doc_00186420 [00:33:52]file doc_00186421 [00:33:52]remove file /storage/0644/doc_00186421 [00:33:52]file doc_00186422 [00:33:52]remove file /storage/0644/doc_00186422 [00:33:52]file doc_00186423 [00:33:52]remove file /storage/0644/doc_00186423 [00:33:52]file doc_00186424 [00:33:52]remove file /storage/0644/doc_00186424 [00:33:52]file doc_00186425 [00:33:52]remove file /storage/0644/doc_00186425 [00:33:52]file doc_00186426 [00:33:52]remove file /storage/0644/doc_00186426 [00:33:52]file doc_00186427 [00:33:52]remove file /storage/0644/doc_00186427 [00:33:52]file doc_00186428 [00:33:52]remove file /storage/0644/doc_00186428 [00:33:52]file doc_00186429 [00:33:52]remove file /storage/0644/doc_00186429 [00:33:52]file doc_00186430 [00:33:52]remove file /storage/0644/doc_00186430 [00:33:52]file doc_00186431 [00:33:52]remove file /storage/0644/doc_00186431 [00:33:52]file doc_00186432 [00:33:52]remove file /storage/0644/doc_00186432 [00:33:52]file doc_00186433 [00:33:52]remove file /storage/0644/doc_00186433 [00:33:52]file doc_00186434 [00:33:52]remove file /storage/0644/doc_00186434 [00:33:52]file doc_00186435 [00:33:52]remove file /storage/0644/doc_00186435 [00:33:52]file doc_00186436 [00:33:52]remove file /storage/0644/doc_00186436 [00:33:52]file doc_00186437 [00:33:52]remove file /storage/0644/doc_00186437 [00:33:52]file doc_00186438 [00:33:52]remove file /storage/0644/doc_00186438 [00:33:52]file doc_00186439 [00:33:52]remove file /storage/0644/doc_00186439 [00:33:52]file doc_00186440 [00:33:52]remove file /storage/0644/doc_00186440 [00:33:52]file doc_00186441 [00:33:52]remove file /storage/0644/doc_00186441 [00:33:52]file doc_00186442 [00:33:52]remove file /storage/0644/doc_00186442 [00:33:52]file doc_00186443 [00:33:52]remove file /storage/0644/doc_00186443 [00:33:52]file doc_00186444 [00:33:52]remove file /storage/0644/doc_00186444 [00:33:52]file doc_00186445 [00:33:52]remove file /storage/0644/doc_00186445 [00:33:52]file doc_00186446 [00:33:52]remove file /storage/0644/doc_00186446 [00:33:52]file doc_00186447 [00:33:52]remove file /storage/0644/doc_00186447 [00:33:52]file doc_00186448 [00:33:52]remove file /storage/0644/doc_00186448 [00:33:52]file doc_00186449 [00:33:52]remove file /storage/0644/doc_00186449 [00:33:52]file doc_00186450 [00:33:52]remove file /storage/0644/doc_00186450 [00:33:52]file doc_00186451 [00:33:52]remove file /storage/0644/doc_00186451 [00:33:52]file doc_00186452 [00:33:52]remove file /storage/0644/doc_00186452 [00:33:52]file doc_00186453 [00:33:52]remove file /storage/0644/doc_00186453 [00:33:52]file doc_00186454 [00:33:52]remove file /storage/0644/doc_00186454 [00:33:52]file doc_00186455 [00:33:52]remove file /storage/0644/doc_00186455 [00:33:52]file doc_00186456 [00:33:52]remove file /storage/0644/doc_00186456 [00:33:52]file doc_00186457 [00:33:52]remove file /storage/0644/doc_00186457 [00:33:52]file doc_00186458 [00:33:52]remove file /storage/0644/doc_00186458 [00:33:52]file doc_00186459 [00:33:52]remove file /storage/0644/doc_00186459 [00:33:52]file doc_00186460 [00:33:52]remove file /storage/0644/doc_00186460 [00:33:52]file doc_00186461 [00:33:52]remove file /storage/0644/doc_00186461 [00:33:52]file doc_00186462 [00:33:52]remove file /storage/0644/doc_00186462 [00:33:52]file doc_00186463 [00:33:52]remove file /storage/0644/doc_00186463 [00:33:52]file doc_00186464 [00:33:52]remove file /storage/0644/doc_00186464 [00:33:52]file doc_00186465 [00:33:52]remove file /storage/0644/doc_00186465 [00:33:52]file doc_00186466 [00:33:52]remove file /storage/0644/doc_00186466 [00:33:52]file doc_00186467 [00:33:52]remove file /storage/0644/doc_00186467 [00:33:52]file doc_00186468 [00:33:52]remove file /storage/0644/doc_00186468 [00:33:52]file doc_00186469 [00:33:52]remove file /storage/0644/doc_00186469 [00:33:52]file doc_00186470 [00:33:52]remove file /storage/0644/doc_00186470 [00:33:52]file doc_00186471 [00:33:52]remove file /storage/0644/doc_00186471 [00:33:52]file doc_00186472 [00:33:52]remove file /storage/0644/doc_00186472 [00:33:52]file doc_00186473 [00:33:52]remove file /storage/0644/doc_00186473 [00:33:52]file doc_00186474 [00:33:52]remove file /storage/0644/doc_00186474 [00:33:52]file doc_00186475 [00:33:52]remove file /storage/0644/doc_00186475 [00:33:52]file doc_00186476 [00:33:52]remove file /storage/0644/doc_00186476 [00:33:52]file doc_00186477 [00:33:52]remove file /storage/0644/doc_00186477 [00:33:52]file doc_00186478 [00:33:52]remove file /storage/0644/doc_00186478 [00:33:52]file doc_00186479 [00:33:52]remove file /storage/0644/doc_00186479 [00:33:52]file doc_00186480 [00:33:52]remove file /storage/0644/doc_00186480 [00:33:52]file doc_00186481 [00:33:52]remove file /storage/0644/doc_00186481 [00:33:52]file doc_00186482 [00:33:52]remove file /storage/0644/doc_00186482 [00:33:52]file doc_00186483 [00:33:52]remove file /storage/0644/doc_00186483 [00:33:52]file doc_00186484 [00:33:52]remove file /storage/0644/doc_00186484 [00:33:52]file doc_00186485 [00:33:52]remove file /storage/0644/doc_00186485 [00:33:52]file doc_00186486 [00:33:52]remove file /storage/0644/doc_00186486 [00:33:52]file doc_00186487 [00:33:52]remove file /storage/0644/doc_00186487 [00:33:52]file doc_00186488 [00:33:52]remove file /storage/0644/doc_00186488 [00:33:52]file doc_00186489 [00:33:52]remove file /storage/0644/doc_00186489 [00:33:52]file doc_00186490 [00:33:52]remove file /storage/0644/doc_00186490 [00:33:52]file doc_00186491 [00:33:52]remove file /storage/0644/doc_00186491 [00:33:52]file doc_00186492 [00:33:52]remove file /storage/0644/doc_00186492 [00:33:52]file doc_00186493 [00:33:52]remove file /storage/0644/doc_00186493 [00:33:52]file doc_00186494 [00:33:52]remove file /storage/0644/doc_00186494 [00:33:52]file doc_00186495 [00:33:52]remove file /storage/0644/doc_00186495 [00:33:52]file doc_00186496 [00:33:52]remove file /storage/0644/doc_00186496 [00:33:52]file doc_00186497 [00:33:52]remove file /storage/0644/doc_00186497 [00:33:52]file doc_00186498 [00:33:52]remove file /storage/0644/doc_00186498 [00:33:52]file doc_00186499 [00:33:52]remove file /storage/0644/doc_00186499 [00:33:52]file doc_00186500 [00:33:52]remove file /storage/0644/doc_00186500 [00:33:52]file doc_00186501 [00:33:52]remove file /storage/0644/doc_00186501 [00:33:52]file doc_00186502 [00:33:52]remove file /storage/0644/doc_00186502 [00:33:52]file doc_00186503 [00:33:52]remove file /storage/0644/doc_00186503 [00:33:52]file doc_00186504 [00:33:52]remove file /storage/0644/doc_00186504 [00:33:52]file doc_00186505 [00:33:52]remove file /storage/0644/doc_00186505 [00:33:52]file doc_00186506 [00:33:52]remove file /storage/0644/doc_00186506 [00:33:52]file doc_00186507 [00:33:52]remove file /storage/0644/doc_00186507 [00:33:52]file doc_00186508 [00:33:52]remove file /storage/0644/doc_00186508 [00:33:52]file doc_00186509 [00:33:52]remove file /storage/0644/doc_00186509 [00:33:52]file doc_00186510 [00:33:52]remove file /storage/0644/doc_00186510 [00:33:52]file doc_00186511 [00:33:52]remove file /storage/0644/doc_00186511 [00:33:52]file doc_00186512 [00:33:52]remove file /storage/0644/doc_00186512 [00:33:52]file doc_00186513 [00:33:53]remove file /storage/0644/doc_00186513 [00:33:53]OFD Sender: No OFD packet to send [00:33:53]file doc_00186514 [00:33:53]remove file /storage/0644/doc_00186514 [00:33:53]file doc_00186515 [00:33:53]remove file /storage/0644/doc_00186515 [00:33:53]file doc_00186516 [00:33:53]remove file /storage/0644/doc_00186516 [00:33:53]file doc_00186517 [00:33:53]remove file /storage/0644/doc_00186517 [00:33:53]file doc_00186518 [00:33:53]remove file /storage/0644/doc_00186518 [00:33:53]file doc_00186519 [00:33:53]remove file /storage/0644/doc_00186519 [00:33:53]file doc_00186520 [00:33:53]remove file /storage/0644/doc_00186520 [00:33:53]file doc_00186521 [00:33:53]remove file /storage/0644/doc_00186521 [00:33:53]file doc_00186522 [00:33:53]remove file /storage/0644/doc_00186522 [00:33:53]file doc_00186523 [00:33:53]remove file /storage/0644/doc_00186523 [00:33:53]file doc_00186524 [00:33:53]remove file /storage/0644/doc_00186524 [00:33:53]file doc_00186525 [00:33:53]remove file /storage/0644/doc_00186525 [00:33:53]file doc_00186526 [00:33:53]remove file /storage/0644/doc_00186526 [00:33:53]file doc_00186527 [00:33:53]remove file /storage/0644/doc_00186527 [00:33:53]file doc_00186528 [00:33:53]remove file /storage/0644/doc_00186528 [00:33:53]file doc_00186529 [00:33:53]remove file /storage/0644/doc_00186529 [00:33:53]file doc_00186530 [00:33:53]remove file /storage/0644/doc_00186530 [00:33:53]file doc_00186531 [00:33:53]remove file /storage/0644/doc_00186531 [00:33:53]file doc_00186532 [00:33:53]remove file /storage/0644/doc_00186532 [00:33:53]file doc_00186533 [00:33:53]remove file /storage/0644/doc_00186533 [00:33:53]file doc_00186534 [00:33:53]remove file /storage/0644/doc_00186534 [00:33:53]file doc_00186535 [00:33:53]remove file /storage/0644/doc_00186535 [00:33:53]file doc_00186536 [00:33:53]remove file /storage/0644/doc_00186536 [00:33:53]file doc_00186537 [00:33:53]remove file /storage/0644/doc_00186537 [00:33:53]file doc_00186538 [00:33:53]remove file /storage/0644/doc_00186538 [00:33:53]file doc_00186539 [00:33:53]remove file /storage/0644/doc_00186539 [00:33:53]file doc_00186540 [00:33:53]remove file /storage/0644/doc_00186540 [00:33:53]file doc_00186541 [00:33:53]remove file /storage/0644/doc_00186541 [00:33:53]file doc_00186542 [00:33:53]remove file /storage/0644/doc_00186542 [00:33:53]file doc_00186543 [00:33:53]remove file /storage/0644/doc_00186543 [00:33:53]file doc_00186544 [00:33:53]remove file /storage/0644/doc_00186544 [00:33:53]file doc_00186545 [00:33:53]remove file /storage/0644/doc_00186545 [00:33:53]file doc_00186546 [00:33:53]remove file /storage/0644/doc_00186546 [00:33:53]file doc_00186547 [00:33:53]remove file /storage/0644/doc_00186547 [00:33:53]file doc_00186548 [00:33:53]remove file /storage/0644/doc_00186548 [00:33:53]file doc_00186549 [00:33:53]remove file /storage/0644/doc_00186549 [00:33:53]file doc_00186550 [00:33:53]remove file /storage/0644/doc_00186550 [00:33:53]file doc_00186551 [00:33:53]remove file /storage/0644/doc_00186551 [00:33:53]file doc_00186552 [00:33:53]remove file /storage/0644/doc_00186552 [00:33:53]file doc_00186553 [00:33:53]remove file /storage/0644/doc_00186553 [00:33:53]file doc_00186554 [00:33:53]remove file /storage/0644/doc_00186554 [00:33:53]file doc_00186555 [00:33:53]remove file /storage/0644/doc_00186555 [00:33:53]file doc_00186556 [00:33:53]remove file /storage/0644/doc_00186556 [00:33:53]file doc_00186557 [00:33:53]remove file /storage/0644/doc_00186557 [00:33:53]file doc_00186558 [00:33:53]remove file /storage/0644/doc_00186558 [00:33:53]file doc_00186559 [00:33:53]remove file /storage/0644/doc_00186559 [00:33:53]file doc_00186560 [00:33:53]remove file /storage/0644/doc_00186560 [00:33:53]file doc_00186561 [00:33:53]remove file /storage/0644/doc_00186561 [00:33:53]file doc_00186562 [00:33:53]remove file /storage/0644/doc_00186562 [00:33:53]file doc_00186563 [00:33:53]remove file /storage/0644/doc_00186563 [00:33:53]file doc_00186564 [00:33:53]remove file /storage/0644/doc_00186564 [00:33:53]file doc_00186565 [00:33:53]remove file /storage/0644/doc_00186565 [00:33:53]file doc_00186566 [00:33:53]remove file /storage/0644/doc_00186566 [00:33:53]file doc_00186567 [00:33:53]remove file /storage/0644/doc_00186567 [00:33:53]file doc_00186568 [00:33:53]remove file /storage/0644/doc_00186568 [00:33:53]file doc_00186569 [00:33:53]remove file /storage/0644/doc_00186569 [00:33:53]file doc_00186570 [00:33:53]remove file /storage/0644/doc_00186570 [00:33:53]file doc_00186571 [00:33:53]remove file /storage/0644/doc_00186571 [00:33:53]file doc_00186572 [00:33:53]remove file /storage/0644/doc_00186572 [00:33:53]file doc_00186573 [00:33:53]remove file /storage/0644/doc_00186573 [00:33:53]file doc_00186574 [00:33:53]remove file /storage/0644/doc_00186574 [00:33:53]file doc_00186575 [00:33:53]remove file /storage/0644/doc_00186575 [00:33:53]file doc_00186576 [00:33:53]remove file /storage/0644/doc_00186576 [00:33:53]file doc_00186577 [00:33:53]remove file /storage/0644/doc_00186577 [00:33:53]file doc_00186578 [00:33:53]remove file /storage/0644/doc_00186578 [00:33:53]file doc_00186579 [00:33:53]remove file /storage/0644/doc_00186579 [00:33:53]file doc_00186580 [00:33:53]remove file /storage/0644/doc_00186580 [00:33:53]file doc_00186581 [00:33:53]remove file /storage/0644/doc_00186581 [00:33:53]file doc_00186582 [00:33:53]remove file /storage/0644/doc_00186582 [00:33:53]file doc_00186583 [00:33:53]remove file /storage/0644/doc_00186583 [00:33:53]file doc_00186584 [00:33:53]remove file /storage/0644/doc_00186584 [00:33:53]file doc_00186585 [00:33:53]remove file /storage/0644/doc_00186585 [00:33:53]file doc_00186586 [00:33:53]remove file /storage/0644/doc_00186586 [00:33:53]file doc_00186587 [00:33:53]remove file /storage/0644/doc_00186587 [00:33:53]file doc_00186588 [00:33:53]remove file /storage/0644/doc_00186588 [00:33:53]file doc_00186589 [00:33:53]remove file /storage/0644/doc_00186589 [00:33:53]file doc_00186590 [00:33:53]remove file /storage/0644/doc_00186590 [00:33:53]file doc_00186591 [00:33:53]remove file /storage/0644/doc_00186591 [00:33:53]file doc_00186592 [00:33:53]remove file /storage/0644/doc_00186592 [00:33:53]file doc_00186593 [00:33:53]remove file /storage/0644/doc_00186593 [00:33:53]file doc_00186594 [00:33:53]remove file /storage/0644/doc_00186594 [00:33:53]file doc_00186595 [00:33:53]remove file /storage/0644/doc_00186595 [00:33:53]file doc_00186596 [00:33:53]remove file /storage/0644/doc_00186596 [00:33:53]file doc_00186597 [00:33:53]remove file /storage/0644/doc_00186597 [00:33:53]file doc_00186598 [00:33:53]remove file /storage/0644/doc_00186598 [00:33:53]file doc_00186599 [00:33:53]remove file /storage/0644/doc_00186599 [00:33:53]file doc_00186600 [00:33:53]remove file /storage/0644/doc_00186600 [00:33:53]file doc_00186601 [00:33:53]remove file /storage/0644/doc_00186601 [00:33:53]file doc_00186602 [00:33:53]remove file /storage/0644/doc_00186602 [00:33:53]file doc_00186603 [00:33:53]remove file /storage/0644/doc_00186603 [00:33:53]file doc_00186604 [00:33:53]remove file /storage/0644/doc_00186604 [00:33:53]file doc_00186605 [00:33:53]remove file /storage/0644/doc_00186605 [00:33:53]file doc_00186606 [00:33:53]remove file /storage/0644/doc_00186606 [00:33:53]file doc_00186607 [00:33:53]remove file /storage/0644/doc_00186607 [00:33:53]file doc_00186608 [00:33:53]remove file /storage/0644/doc_00186608 [00:33:53]file doc_00186609 [00:33:53]remove file /storage/0644/doc_00186609 [00:33:53]file doc_00186610 [00:33:53]remove file /storage/0644/doc_00186610 [00:33:53]file doc_00186611 [00:33:53]remove file /storage/0644/doc_00186611 [00:33:53]file doc_00186612 [00:33:53]remove file /storage/0644/doc_00186612 [00:33:53]file doc_00186613 [00:33:53]remove file /storage/0644/doc_00186613 [00:33:53]file doc_00186614 [00:33:53]remove file /storage/0644/doc_00186614 [00:33:53]file doc_00186615 [00:33:53]remove file /storage/0644/doc_00186615 [00:33:53]file doc_00186616 [00:33:53]remove file /storage/0644/doc_00186616 [00:33:53]file doc_00186617 [00:33:53]remove file /storage/0644/doc_00186617 [00:33:53]file doc_00186618 [00:33:53]remove file /storage/0644/doc_00186618 [00:33:53]file doc_00186619 [00:33:53]remove file /storage/0644/doc_00186619 [00:33:53]file doc_00186620 [00:33:53]remove file /storage/0644/doc_00186620 [00:33:53]file doc_00186621 [00:33:53]remove file /storage/0644/doc_00186621 [00:33:53]file doc_00186622 [00:33:53]remove file /storage/0644/doc_00186622 [00:33:53]file doc_00186623 [00:33:53]remove file /storage/0644/doc_00186623 [00:33:53]file doc_00186624 [00:33:53]remove file /storage/0644/doc_00186624 [00:33:53]file doc_00186625 [00:33:53]remove file /storage/0644/doc_00186625 [00:33:53]file doc_00186626 [00:33:53]remove file /storage/0644/doc_00186626 [00:33:53]file doc_00186627 [00:33:53]remove file /storage/0644/doc_00186627 [00:33:53]file doc_00186628 [00:33:53]remove file /storage/0644/doc_00186628 [00:33:53]file doc_00186629 [00:33:53]remove file /storage/0644/doc_00186629 [00:33:53]file doc_00186630 [00:33:53]remove file /storage/0644/doc_00186630 [00:33:53]file doc_00186631 [00:33:53]remove file /storage/0644/doc_00186631 [00:33:53]file doc_00186632 [00:33:53]remove file /storage/0644/doc_00186632 [00:33:53]file doc_00186633 [00:33:53]remove file /storage/0644/doc_00186633 [00:33:53]file doc_00186634 [00:33:53]remove file /storage/0644/doc_00186634 [00:33:53]file doc_00186635 [00:33:53]remove file /storage/0644/doc_00186635 [00:33:53]file doc_00186636 [00:33:53]remove file /storage/0644/doc_00186636 [00:33:53]file doc_00186637 [00:33:53]remove file /storage/0644/doc_00186637 [00:33:53]file doc_00186638 [00:33:53]remove file /storage/0644/doc_00186638 [00:33:53]file doc_00186639 [00:33:53]remove file /storage/0644/doc_00186639 [00:33:53]file doc_00186640 [00:33:53]remove file /storage/0644/doc_00186640 [00:33:53]file doc_00186641 [00:33:53]remove file /storage/0644/doc_00186641 [00:33:53]file doc_00186642 [00:33:53]remove file /storage/0644/doc_00186642 [00:33:53]file doc_00186643 [00:33:53]remove file /storage/0644/doc_00186643 [00:33:53]file doc_00186644 [00:33:53]remove file /storage/0644/doc_00186644 [00:33:53]file doc_00186645 [00:33:53]remove file /storage/0644/doc_00186645 [00:33:53]file doc_00186646 [00:33:53]remove file /storage/0644/doc_00186646 [00:33:53]file doc_00186647 [00:33:53]remove file /storage/0644/doc_00186647 [00:33:53]file doc_00186648 [00:33:53]remove file /storage/0644/doc_00186648 [00:33:53]file doc_00186649 [00:33:53]remove file /storage/0644/doc_00186649 [00:33:53]file doc_00186650 [00:33:53]remove file /storage/0644/doc_00186650 [00:33:53]file doc_00186651 [00:33:53]remove file /storage/0644/doc_00186651 [00:33:53]file doc_00186652 [00:33:53]remove file /storage/0644/doc_00186652 [00:33:53]file doc_00186653 [00:33:53]remove file /storage/0644/doc_00186653 [00:33:53]file doc_00186654 [00:33:53]remove file /storage/0644/doc_00186654 [00:33:53]file doc_00186655 [00:33:53]remove file /storage/0644/doc_00186655 [00:33:53]file doc_00186656 [00:33:53]remove file /storage/0644/doc_00186656 [00:33:53]file doc_00186657 [00:33:53]remove file /storage/0644/doc_00186657 [00:33:53]file doc_00186658 [00:33:53]remove file /storage/0644/doc_00186658 [00:33:53]file doc_00186659 [00:33:53]remove file /storage/0644/doc_00186659 [00:33:53]file doc_00186660 [00:33:53]remove file /storage/0644/doc_00186660 [00:33:53]file doc_00186661 [00:33:53]remove file /storage/0644/doc_00186661 [00:33:53]file doc_00186662 [00:33:53]remove file /storage/0644/doc_00186662 [00:33:53]file doc_00186663 [00:33:53]remove file /storage/0644/doc_00186663 [00:33:53]file doc_00186664 [00:33:53]remove file /storage/0644/doc_00186664 [00:33:53]file doc_00186665 [00:33:53]remove file /storage/0644/doc_00186665 [00:33:53]file doc_00186666 [00:33:53]remove file /storage/0644/doc_00186666 [00:33:53]file doc_00186667 [00:33:53]remove file /storage/0644/doc_00186667 [00:33:53]file doc_00186668 [00:33:53]remove file /storage/0644/doc_00186668 [00:33:53]file doc_00186669 [00:33:53]remove file /storage/0644/doc_00186669 [00:33:53]file doc_00186670 [00:33:53]remove file /storage/0644/doc_00186670 [00:33:53]file doc_00186671 [00:33:53]remove file /storage/0644/doc_00186671 [00:33:53]file doc_00186672 [00:33:53]remove file /storage/0644/doc_00186672 [00:33:53]file doc_00186673 [00:33:53]remove file /storage/0644/doc_00186673 [00:33:53]file doc_00186674 [00:33:53]remove file /storage/0644/doc_00186674 [00:33:53]file doc_00186675 [00:33:53]remove file /storage/0644/doc_00186675 [00:33:53]file doc_00186676 [00:33:53]remove file /storage/0644/doc_00186676 [00:33:53]file doc_00186677 [00:33:53]remove file /storage/0644/doc_00186677 [00:33:54]file doc_00186678 [00:33:54]remove file /storage/0644/doc_00186678 [00:33:54]file doc_00186679 [00:33:54]remove file /storage/0644/doc_00186679 [00:33:54]file doc_00186680 [00:33:54]remove file /storage/0644/doc_00186680 [00:33:54]file doc_00186681 [00:33:54]remove file /storage/0644/doc_00186681 [00:33:54]file doc_00186682 [00:33:54]remove file /storage/0644/doc_00186682 [00:33:54]file doc_00186683 [00:33:54]remove file /storage/0644/doc_00186683 [00:33:54]remove dir /storage/0644 [00:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=246 [00:33:54]tlvbuf is 00624470 [00:33:54]SAM_PROTO_ClearQueue [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 09 00 00 [00:33:54]Write to MH i2c: E2 08 00 7D 0D 80 09 00 00 00 00 00 00 FC [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 7D 0D 00 90 00 FE [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]SAM_PROTO_ClearQueue done [00:33:54]KKMCreateOFDPacket [00:33:54]OFDProtocolAddRootSTLVToBuf [00:33:54]FM_MakeSignedData [00:33:54]FM_MakeSignedData [00:33:54]SAM_PROTO_SignData [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 01 02 [00:33:54]Write to MH i2c: E2 08 00 7E 0D 80 0D 01 02 00 00 00 00 04 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 7E 0D 00 90 00 FF [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]wFMCommunicate request_size=255 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 02 02 FA 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 71 D5 B3 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 29 98 0B CE 28 6A [00:33:54]Write to MH i2c: E2 02 01 7F 0D 80 0D 02 02 FA 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 71 D5 B3 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 29 98 0B CE 28 6A 00 00 21 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 03 00 7F 0D 00 90 00 00 [00:33:54]RAPDU: 90 00 [00:33:54]wFMCommunicate OK [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 0D 03 02 [00:33:54]Write to MH i2c: E2 08 00 80 0D 80 0D 03 02 00 00 00 00 08 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 0B 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 0B 00 80 0D 00 ED BB D2 EE C6 11 DB 43 90 00 66 [00:33:54]RAPDU: ED BB D2 EE C6 11 DB 43 90 00 [00:33:54]wFMCommunicate OK [00:33:54]SAM_PROTO_SignData done [00:33:54]FM_MakeSignedData done [00:33:54]CreateOFDProtocolMessage [00:33:54]wFMCommunicate request_size=4 [00:33:54]MH_SAM_APDU [00:33:54]CAPDU: 80 11 00 00 [00:33:54]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:54]Read from MH i2c: E2 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 5B [00:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:33:54]wFMCommunicate OK [00:33:54]CreateOFDProtocolMessage done [00:33:54]OFDSenderStorePacket 186684 [00:33:54]StoreOFDPacket docnum=186684 [00:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0A 01 00 00 39 D6 02 01 61 54 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 D0 B5 D0 B2 20 D0 B0 2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 37 32 2E 36 36 36 33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 71 D5 B3 67 0E 04 04 00 85 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 35 04 06 00 29 98 0B CE 28 6A ED BB D2 EE C6 11 DB 43 [00:33:54]CheckFolder [00:33:54]dirname=/storage/ofd_packets [00:33:54]CheckFolder done [00:33:54]ProducePacketName [00:33:54]name=ofd_packets/00186684 [00:33:54]NVStorageSaveData ofd_packets/00186684 [00:33:54]File name is /storage/ofd_packets/00186684 [00:33:54]Write 296 bytes [00:33:54]NVStorageSaveData done [00:33:54]OFDSenderStorePacket done [00:33:54]KKMCreateOFDPacket done [00:33:54]NVStorageSaveData kkm_last_timestamp [00:33:54]File name is /storage/kkm_last_timestamp [00:33:54]Write 4 bytes [00:33:54]NVStorageSaveData done [00:33:54]ExternCall_PrintAddStr [00:33:54]wPrintStart [00:33:54]Write to MH i2c: 01 00 00 82 0D 8F [00:33:54]Write i2c OK [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 07 00 [00:33:54]MH_I2C_Read... [00:33:54]Read from MH i2c: 01 07 00 82 0D 00 00 00 00 00 FF 0F A4 [00:33:54]RasterBufferAndPrint [00:33:54]line Отчет об открытии смены [00:33:54]line ФФД: 1.0 [00:33:54]line ИНН: 02508201610067 [00:33:54]line Кассир: Байматов С. [00:33:54]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:33:54]line Место: АЗС № 92 "Партнер Нефть" [00:33:54]line 18.02.2025 00:33 [00:33:54]line Смена: 645 [00:33:54]line РНМ: 0000000000091857 [00:33:54]line ЗНМ: 0300000118 [00:33:54]line ФД: 186684 [00:33:54]line ФМ: 0000000000871826 [00:33:54]line ФПД: 45733009827946 [00:33:54]written 0, free lines is 4095 [00:33:54]OFD Sender: Processing packet 186684 [packets to send 49, broken 48] [00:33:54]ProducePacketName [00:33:54]name=ofd_packets/00186684 [00:33:54]OFD Sender: To server: pG, [00:33:54]CommunicateWithHost lk.salyk.kg:30040 [00:33:54]ConnectInit lk.salyk.kg [00:33:55]Connected sock=10 [00:33:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0A 01 00 00 39 D6 02 01 61 54 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 91 D0 B0 D0 B9 D0 BC D0 B0 D1 82 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C D1 81 2E 20 D0 90 D1 82 D0 B0 D0 BC D0 B5 D1 80 D0 B5 D0 BA 2C 20 D0 A2 2E 20 D0 97 D1 83 D0 BB D0 BF D1 83 Write to MH i2c: D0 01 B5 00 D0 00 B2 94 20 0D D0 A1 B0 [00:33:55]2F D0 B0 2C 20 34 30 2E 32 39 36 35 33 32 2C 20 Write i2c OK [00:33:55]37 32 MH_I2C_Read... [00:33:55]2E Read from MH i2c: 36 01 36 [00:33:55]36 MH_I2C_Read... [00:33:55]33 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 Read from MH i2c: 39 01 32 07 20 00 22 [00:33:55]D0 MH_I2C_Read... [00:33:55]9F Read from MH i2c: D0 01 B0 07 D1 00 80 94 D1 0D 82 00 D0 00 BD 00 D0 00 B5 00 D1 C0 80 0E 76 20 [00:33:55]D0 RasterBufferAndPrint [00:33:55]9D line [00:33:55]D0 line [00:33:55]B5 line [00:33:55]D1 line [00:33:55]84 line [00:33:55]D1 82 D1 8C 22 F4 03 04 00 71 D5 B3 67 0E 04 04 00 85 written 0, free lines is 3843 [00:33:55]02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 11 04 MH_Cut [00:33:55]10 Write to MH i2c: 00 D1 30 01 30 00 30 9B 30 0D 30 01 30 7A 30 30 [00:33:55]30 30 38 37 31 38 32 36 35 04 06 00 29 98 0B CE 28 6A ED BB D2 EE C6 11 DB 43 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 01 00 [00:33:55]MH_I2C_Read... [00:33:55]Read from MH i2c: D1 01 00 9B 0D 00 79 [00:33:55]Write to MH i2c: 01 00 00 9C 0D A9 [00:33:55]Write i2c OK [00:33:55]MH_I2C_Read... [00:33:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 8B DC 47 00 CC 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3C D9 02 00 F4 03 04 00 CB 7B B3 67 B6 04 01 00 00 B1 CB AC 68 54 85 BA 71 [00:33:55]CommunicateWithHost err = 0 [00:33:55]CheckOFDResponse [00:33:55]1017 (14) - 77093643461234 [00:33:55]1041 (16) - 0000000000871826 [00:33:55]1040 (4) - 186684 [00:33:55]1012 (4) - 17.02.2025 18:11 [00:33:55]1206 (1) - 0 [00:33:55]OFD Sender: Remove packet 186684 [00:33:55]ProducePacketName [00:33:55]name=ofd_packets/00186684 [00:33:55]NVStorageDeleteData [00:33:55]*** Cut start [00:33:55]*** Partial cut [00:33:55]*** CUTSNS_PIN = 1 [00:33:55]*** CUTSNS_PIN = 0 [00:33:55]*** Brake cut motor [00:33:55]OFD Sender: No OFD packet to send [00:33:56]Read from MH i2c: 01 [00:33:56]MH_I2C_Read... [00:33:56]*** Stop cut motor [00:33:56]*** Cut end [00:33:56]Read from MH i2c: 01 07 00 [00:33:56]MH_I2C_Read... [00:33:56]Read from MH i2c: 01 07 00 9C 0D 00 00 00 00 00 FF 0F BE [00:33:56]process_action open_shift done [00:33:56]requested_data is exist [00:33:56]produce_requested_data [00:33:56]requested_item fd.num is exist - process it [00:33:56]SAM_PROTO_GetFieldsCounters [00:33:56]wFMCommunicate request_size=4 [00:33:56]MH_SAM_APDU [00:33:56]CAPDU: 80 13 00 00 [00:33:56]Write to MH i2c: E2 08 00 9D 0D 80 13 00 00 00 00 00 00 26 [00:33:56]Write i2c OK [00:33:56]MH_I2C_Read... [00:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:56]Read from MH i2c: E2 [00:33:56]MH_I2C_Read... [00:33:56]Read from MH i2c: E2 62 00 [00:33:56]MH_I2C_Read... [00:33:56]Read from MH i2c: E2 62 00 9D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [00:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3C D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:56]wFMCommunicate OK [00:33:56]SAM_PROTO_GetFieldsCounters done [00:33:56]requested_item shift.num is exist - process it [00:33:56]requested_item shift.opened is exist - process it [00:33:56]req_shift_opened [00:33:56]FM_GetShiftState [00:33:56]SAM_PROTO_GetShiftState [00:33:56]wFMCommunicate request_size=4 [00:33:56]MH_SAM_APDU [00:33:56]CAPDU: 80 13 01 00 [00:33:56]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [00:33:56]Write i2c OK [00:33:56]MH_I2C_Read... [00:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:56]Read from MH i2c: E2 [00:33:56]MH_I2C_Read... [00:33:56]Read from MH i2c: E2 0E 00 [00:33:56]MH_I2C_Read... [00:33:56]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 94 [00:33:56]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:33:56]wFMCommunicate OK [00:33:56]SAM_PROTO_GetShiftState done [00:33:56]FM_GetShiftState done [00:33:56]req_shift_opened done [00:33:56]requested_item shift.open_date is exist - process it [00:33:56]req_shift_open_date [00:33:56]req_shift_open_date done [00:33:56]produce_requested_data done [00:33:56]produce_requested_data return {"fd.num":186684,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:33:56]process_action_free open_shift [00:33:56]json_value_free [00:33:56]json_value_free done [00:33:56]process_json_proto returns [00:33:56]Send response to host [00:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":186684,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:33:56]free response buf [00:33:56]execute_script done [00:33:56]execute_script returns [00:33:56]free content buf [00:33:56]Sock 9.Close socket [00:33:56]Sock 9.Thread stoped [00:33:56]accept exits with 7 [00:33:56]New connection [00:33:56]New thread 3067051364 created [00:33:56]Thread 3067194724 joined [00:33:56]Waiting for new connection... [00:33:56] Sock 7.Parse request [00:33:56]Sock 7.Check first char [00:33:56]Sock 7.First char is OK [00:33:56]request: POST /json_proto HTTP/1.0 [00:33:56]Method: POST [00:33:56]URL: /json_proto [00:33:56]Method is POST - this is cgi request [00:33:56]url: /json_proto [00:33:56]query_string will be loaded in cgi processing [00:33:56]execute_cgi json_proto POST (null) [00:33:56]execute_cgi path=json_proto method=POST [00:33:56]POST find Content-Length [00:33:56]Host: 172.17.46.131:8080 [00:33:56]Content-Length: 331 [00:33:56]Content-Type: application/json [00:33:56] [00:33:56]POST finish read [00:33:56]Found Content-Length = 331 [00:33:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:56]execute_script... [00:33:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:33:56]POST & json_proto [00:33:56]process_json_proto [00:33:56]json parsed OK: [00:33:56]protocol is kg_v1.0 [00:33:56]action value=get_value [00:33:56]process_action get_value [00:33:56]cmd_get_value [00:33:56]process_action get_value done [00:33:56]requested_data is exist [00:33:56]produce_requested_data [00:33:56]requested_item fm.sale.total is exist - process it [00:33:56]SAM_PROTO_GetFMData [00:33:56]wFMCommunicate request_size=4 [00:33:56]MH_SAM_APDU [00:33:56]CAPDU: 80 13 03 00 [00:33:56]Write to MH i2c: E2 08 00 9F 0D 80 13 03 00 00 00 00 00 2B [00:33:56]Write i2c OK [00:33:56]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 9F 0D 00 C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 43 [00:33:57]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 32 D4 02 00 69 04 A3 00 6F 04 04 00 1F D4 02 00 B1 04 05 00 5D 03 26 19 04 70 04 05 00 38 ED 9D 98 03 72 04 04 00 25 16 88 80 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 B3 A6 72 6F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 BD 5A 49 09 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 9C 8A 38 70 04 03 00 9C 8A 38 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 01 06 EF 03 09 00 F6 03 90 00 [00:33:57]wFMCommunicate OK [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 17 00 00 [00:33:57]Write to MH i2c: E2 08 00 A0 0D 80 17 00 00 00 00 00 00 2D [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 A0 0D 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 F6 [00:33:57]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 1A 80 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:33:57]wFMCommunicate OK [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 17 00 00 [00:33:57]Write to MH i2c: E2 08 00 A1 0D 80 17 00 00 00 00 00 00 2E [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:57]Read from MH i2c: E2 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 [00:33:57]MH_I2C_Read... [00:33:57]Read from MH i2c: E2 FD 00 A1 0D 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 CE [00:33:57]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:33:57]wFMCommunicate OK [00:33:57]wFMCommunicate request_size=4 [00:33:57]MH_SAM_APDU [00:33:57]CAPDU: 80 17 00 00 [00:33:57]Write to MH i2c: E2 08 00 A2 0D 80 17 00 00 00 00 00 00 2F [00:33:57]Write i2c OK [00:33:57]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 FD 00 A2 0D 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 B4 [00:33:58]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:33:58]wFMCommunicate OK [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 17 00 00 [00:33:58]Write to MH i2c: E2 08 00 A3 0D 80 17 00 00 00 00 00 00 30 [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:33:58]Read from MH i2c: E2 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 DE 00 [00:33:58]MH_I2C_Read... [00:33:58]Read from MH i2c: E2 DE 00 A3 0D 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0F [00:33:58]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:33:58]wFMCommunicate OK [00:33:58]SAM_PROTO_GetFMData done [00:33:58]requested_item fm.sale_refund.total is exist - process it [00:33:58]requested_item fm.buy.total is exist - process it [00:33:58]requested_item shift.sale.total is exist - process it [00:33:58]SAM_PROTO_GetShiftData [00:33:58]wFMCommunicate request_size=4 [00:33:58]MH_SAM_APDU [00:33:58]CAPDU: 80 13 02 00 [00:33:58]Write to MH i2c: E2 08 00 A4 0D 80 13 02 00 00 00 00 00 2F [00:33:58]Write i2c OK [00:33:58]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 A4 0D 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 A2 [00:33:59]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 A5 0D 80 17 00 00 00 00 00 00 32 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:33:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:33:59]Read from MH i2c: E2 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 [00:33:59]MH_I2C_Read... [00:33:59]Read from MH i2c: E2 FD 00 A5 0D 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 3A [00:33:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:33:59]wFMCommunicate OK [00:33:59]wFMCommunicate request_size=4 [00:33:59]MH_SAM_APDU [00:33:59]CAPDU: 80 17 00 00 [00:33:59]Write to MH i2c: E2 08 00 A6 0D 80 17 00 00 00 00 00 00 33 [00:33:59]Write i2c OK [00:33:59]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 A6 0D 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 05 [00:34:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:34:00]wFMCommunicate OK [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 17 00 00 [00:34:00]Write to MH i2c: E2 08 00 A7 0D 80 17 00 00 00 00 00 00 34 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:34:00]Read from MH i2c: E2 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 [00:34:00]MH_I2C_Read... [00:34:00]Read from MH i2c: E2 FD 00 A7 0D 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 A6 [00:34:00]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:34:00]wFMCommunicate OK [00:34:00]wFMCommunicate request_size=4 [00:34:00]MH_SAM_APDU [00:34:00]CAPDU: 80 17 00 00 [00:34:00]Write to MH i2c: E2 08 00 A8 0D 80 17 00 00 00 00 00 00 35 [00:34:00]Write i2c OK [00:34:00]MH_I2C_Read... [00:34:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:34:01]Read from MH i2c: E2 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 BD 00 [00:34:01]MH_I2C_Read... [00:34:01]Read from MH i2c: E2 BD 00 A8 0D 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1B [00:34:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:34:01]wFMCommunicate OK [00:34:01]SAM_PROTO_GetShiftData done [00:34:01]requested_item shift.sale.total_cash is exist - process it [00:34:01]requested_item shift.sale_refund.total is exist - process it [00:34:01]requested_item shift.sale_refund.total_cash is exist - process it [00:34:01]requested_item shift.buy.total is exist - process it [00:34:01]requested_item shift.buy.total_cash is exist - process it [00:34:01]produce_requested_data done [00:34:01]produce_requested_data return {"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:34:01]process_action_free get_value [00:34:01]json_value_free [00:34:01]json_value_free done [00:34:01]process_json_proto returns [00:34:01]Send response to host [00:34:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":176017908.13,"fm.sale_refund.total":37055.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:34:01]free response buf [00:34:01]execute_script done [00:34:01]execute_script returns [00:34:01]free content buf [00:34:01]Sock 7.Close socket [00:34:01]Sock 7.Thread stoped [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:31]accept exits with 9 [00:41:31]New connection [00:41:31]New thread 3067194724 created [00:41:31]Thread 3067051364 joined [00:41:31]Waiting for new connection... [00:41:31] Sock 9.Parse request [00:41:31]Sock 9.Check first char [00:41:31]Sock 9.First char is OK [00:41:31]request: POST /json_proto HTTP/1.0 [00:41:31]Method: POST [00:41:31]URL: /json_proto [00:41:31]Method is POST - this is cgi request [00:41:31]url: /json_proto [00:41:31]query_string will be loaded in cgi processing [00:41:31]execute_cgi json_proto POST (null) [00:41:31]execute_cgi path=json_proto method=POST [00:41:31]POST find Content-Length [00:41:31]Host: 172.17.46.131:8080 [00:41:31]Content-Length: 677 [00:41:31]Content-Type: application/json [00:41:31] [00:41:31]POST finish read [00:41:31]Found Content-Length = 677 [00:41:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:31]execute_script... [00:41:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:31]POST & json_proto [00:41:31]process_json_proto [00:41:31]json parsed OK: [00:41:31]protocol is kg_v1.0 [00:41:31]action value=close_receipt [00:41:31]process_action close_receipt [00:41:31]cmd_close_receipt [00:41:31]MH_GetDate [00:41:31]Write to MH i2c: F0 00 00 A9 0D A5 [00:41:31]Write i2c OK [00:41:31]MH_I2C_Read... [00:41:31]Read from MH i2c: F0 [00:41:31]MH_I2C_Read... [00:41:31]Read from MH i2c: F0 09 00 [00:41:31]MH_I2C_Read... [00:41:31]Read from MH i2c: F0 09 00 A9 0D 00 3D D7 B3 67 7E 41 4F 65 4F [00:41:31]GetLastDocTimeStamp 1739838833 [00:41:31]current date 1739839293 [00:41:31]FM_GetShiftState [00:41:31]SAM_PROTO_GetShiftState [00:41:31]wFMCommunicate request_size=4 [00:41:31]MH_SAM_APDU [00:41:31]CAPDU: 80 13 01 00 [00:41:31]Write to MH i2c: E2 08 00 AA 0D 80 13 01 00 00 00 00 00 34 [00:41:31]Write i2c OK [00:41:31]MH_I2C_Read... [00:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:31]Read from MH i2c: E2 [00:41:31]MH_I2C_Read... [00:41:31]Read from MH i2c: E2 0E 00 [00:41:31]MH_I2C_Read... [00:41:31]Read from MH i2c: E2 0E 00 AA 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 A0 [00:41:31]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:41:31]wFMCommunicate OK [00:41:31]SAM_PROTO_GetShiftState done [00:41:31]FM_GetShiftState done [00:41:31]opened in 1739838833 [00:41:31]opened+sec_in_day 1739925233 [00:41:31]quantity*price = 50011 [00:41:31]sum+1 = 50013 [00:41:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 1 18.02.2025 00:41 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186685 ФПД: 41595214107047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T004133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186685&fm=41595214107047&tin=02508201610067®Number=0000000000091857&sum=50000 [00:41:33]StoreToDocumentArchive [00:41:33]shift 645 fd 186685 [00:41:33]save to /storage/0645/doc_00186685 [00:41:33]save last doc name /storage/0645/doc_00186685 to /storage/kkm_last_doc_name [00:41:33]save OK [00:41:33]Clear old archive folders... [00:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:33]tlvbuf is 005B9230 [00:41:33]SAM_PROTO_ClearQueue [00:41:33]wFMCommunicate request_size=4 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 09 00 00 [00:41:33]Write to MH i2c: E2 08 00 B7 0D 80 09 00 00 00 00 00 00 36 [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 B7 0D 00 90 00 38 [00:41:33]RAPDU: 90 00 [00:41:33]wFMCommunicate OK [00:41:33]SAM_PROTO_ClearQueue done [00:41:33]KKMCreateOFDPacket [00:41:33]OFDProtocolAddRootSTLVToBuf [00:41:33]FM_MakeSignedData [00:41:33]FM_MakeSignedData [00:41:33]SAM_PROTO_SignData [00:41:33]wFMCommunicate request_size=4 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 0D 01 02 [00:41:33]Write to MH i2c: E2 08 00 B8 0D 80 0D 01 02 00 00 00 00 3E [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 B8 0D 00 90 00 39 [00:41:33]RAPDU: 90 00 [00:41:33]wFMCommunicate OK [00:41:33]wFMCommunicate request_size=255 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3D D7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D9 02 00 35 04 06 00 25 [00:41:33]Write to MH i2c: E2 02 01 B9 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 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3D D7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D9 02 00 35 04 06 00 25 00 00 CA [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 B9 0D 00 90 00 3A [00:41:33]RAPDU: 90 00 [00:41:33]wFMCommunicate OK [00:41:33]wFMCommunicate request_size=10 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 0D 02 02 05 D4 A3 F6 11 A7 [00:41:33]Write to MH i2c: E2 0D 00 BA 0D 80 0D 02 02 05 00 D4 A3 F6 11 A7 00 00 70 [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 03 00 BA 0D 00 90 00 3B [00:41:33]RAPDU: 90 00 [00:41:33]wFMCommunicate OK [00:41:33]wFMCommunicate request_size=4 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 0D 03 02 [00:41:33]Write to MH i2c: E2 08 00 BB 0D 80 0D 03 02 00 00 00 00 43 [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 0B 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 0B 00 BB 0D 00 48 C0 2D DF DF 6E 39 AC 90 00 8A [00:41:33]RAPDU: 48 C0 2D DF DF 6E 39 AC 90 00 [00:41:33]wFMCommunicate OK [00:41:33]SAM_PROTO_SignData done [00:41:33]FM_MakeSignedData done [00:41:33]CreateOFDProtocolMessage [00:41:33]wFMCommunicate request_size=4 [00:41:33]MH_SAM_APDU [00:41:33]CAPDU: 80 11 00 00 [00:41:33]Write to MH i2c: E2 08 00 BC 0D 80 11 00 00 00 00 00 00 43 [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:33]Read from MH i2c: E2 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 17 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: E2 17 00 BC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 96 [00:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:41:33]wFMCommunicate OK [00:41:33]CreateOFDProtocolMessage done [00:41:33]OFDSenderStorePacket 186685 [00:41:33]StoreOFDPacket docnum=186685 [00:41:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 70 07 01 6C 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3D D7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D9 02 00 35 04 06 00 25 D4 A3 F6 11 A7 48 C0 2D DF DF 6E 39 AC [00:41:33]CheckFolder [00:41:33]dirname=/storage/ofd_packets [00:41:33]CheckFolder done [00:41:33]ProducePacketName [00:41:33]name=ofd_packets/00186685 [00:41:33]NVStorageSaveData ofd_packets/00186685 [00:41:33]File name is /storage/ofd_packets/00186685 [00:41:33]Write 301 bytes [00:41:33]NVStorageSaveData done [00:41:33]OFDSenderStorePacket done [00:41:33]KKMCreateOFDPacket done [00:41:33]NVStorageSaveData kkm_last_timestamp [00:41:33]File name is /storage/kkm_last_timestamp [00:41:33]Write 4 bytes [00:41:33]NVStorageSaveData done [00:41:33]ExternCall_PrintAddStr [00:41:33]wPrintStart [00:41:33]Write to MH i2c: 01 00 00 BD 0D CA [00:41:33]Write i2c OK [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: 01 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: 01 07 00 [00:41:33]MH_I2C_Read... [00:41:33]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 FF 0F DF [00:41:33]RasterBufferAndPrint [00:41:33]line Счет N : (1)411832 [00:41:33]line ИНН: 02508201610067 [00:41:33]line Контрольно-Кассовый Чек [00:41:33]line ПРОДАЖА [00:41:33]line ТРК (МРК, ГНК) : 32 [00:41:33]line Товар: 2710124130 [00:41:33]line Аи-92-К-2 [00:41:33]line 7.790 * 64.20 [00:41:33]line = 500.12 [00:41:33]line НДС 12% НСП 1% [00:41:33]line > о реализуемом товаре [00:41:33]line ОКРУГЛЕНИЕ: -0.12 [00:41:33]line ИТОГО: 500.00 [00:41:33]line Внесено: 500.00 [00:41:33]line СДАЧА: 0.00 [00:41:33]line НСП 1% : 4.43 [00:41:33]line НДС 12% : 53.11 [00:41:33]line Наличными: 500.00 [00:41:33]line Безнал.: 0.00 [00:41:33]line Место: АЗС № 92 "Партнер Нефть" [00:41:33]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [00:41:33]line СНО: Общий режим [00:41:33]line Чек 1 18.02.2025 00:41 [00:41:33]line Смена: 645 ФФД: 1.0 [00:41:33]line ЗНМ: 0300000118 [00:41:33]line РНМ: 0000000000091857 [00:41:33]line Версия ККМ: 001 [00:41:33]line ФМ: 0000000000871826 [00:41:33]line ФД: 186685 [00:41:33]line ФПД: 41595214107047 [00:41:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T004133&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186685&fm=41595214107047&tin=02508201610067®Number=0000000000091857&sum=50000 [00:41:33]OFD Sender: Processing packet 186685 [packets to send 49, broken 48] [00:41:33]ProducePacketName [00:41:33]name=ofd_packets/00186685 [00:41:33]OFD Sender: To server: pG, [00:41:33]CommunicateWithHost lk.salyk.kg:30040 [00:41:33]ConnectInit lk.salyk.kg [00:41:33]written 0, free lines is 4095 [00:41:34]Connected sock=10 [00:41:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 B7 70 07 01 6C 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 3D D7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D9 02 00 35 04 06 00 25 D4 A3 F6 11 A7 48 C0 2D DF DF 6E 39 AC [00:41:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 23 9C 47 00 A7 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3D D9 02 00 F4 03 04 00 96 7D B3 67 B6 04 01 00 00 94 52 B1 16 6E 03 C2 15 [00:41:34]CommunicateWithHost err = 0 [00:41:34]CheckOFDResponse [00:41:34]1017 (14) - 77093643461234 [00:41:34]1041 (16) - 0000000000871826 [00:41:34]1040 (4) - 186685 [00:41:34]1012 (4) - 17.02.2025 18:19 [00:41:34]1206 (1) - 0 [00:41:34]OFD Sender: Remove packet 186685 [00:41:34]ProducePacketName [00:41:34]name=ofd_packets/00186685 [00:41:34]NVStorageDeleteData [00:41:34]Write to MH i2c: 01 00 00 E8 0D F5 [00:41:34]Write i2c OK [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: 01 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: 01 07 00 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: 01 07 00 E8 0D 00 00 00 00 00 E6 0C EE [00:41:34]RasterBufferAndPrint [00:41:34]line [00:41:34]line [00:41:34]line [00:41:34]line [00:41:34]line [00:41:34]written 0, free lines is 3309 [00:41:34]MH_Cut [00:41:34]Write to MH i2c: D1 01 00 EF 0D 01 CE [00:41:34]Write i2c OK [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: D1 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: D1 01 00 [00:41:34]MH_I2C_Read... [00:41:34]Read from MH i2c: D1 01 00 EF 0D 00 CD [00:41:34]Write to MH i2c: 01 00 00 F0 0D FD [00:41:34]Write i2c OK [00:41:34]MH_I2C_Read... [00:41:34]OFD Sender: No OFD packet to send [00:41:35]*** Cut start [00:41:35]*** Partial cut [00:41:35]*** CUTSNS_PIN = 1 [00:41:35]*** CUTSNS_PIN = 0 [00:41:35]*** Brake cut motor [00:41:35]Read from MH i2c: 01 [00:41:35]MH_I2C_Read... [00:41:35]*** Stop cut motor [00:41:35]*** Cut end [00:41:35]Read from MH i2c: 01 07 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: 01 07 00 F0 0D 00 00 00 00 00 FF 0F 12 [00:41:35]process_action close_receipt done [00:41:35]requested_data is exist [00:41:35]produce_requested_data [00:41:35]requested_item fm.sn is exist - process it [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 11 00 00 [00:41:35]Write to MH i2c: E2 08 00 F1 0D 80 11 00 00 00 00 00 00 78 [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:35]Read from MH i2c: E2 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 17 00 [00:41:35]MH_I2C_Read... [00:41:35]Read from MH i2c: E2 17 00 F1 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 CB [00:41:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [00:41:35]wFMCommunicate OK [00:41:35]requested_item fd.num is exist - process it [00:41:35]SAM_PROTO_GetFieldsCounters [00:41:35]wFMCommunicate request_size=4 [00:41:35]MH_SAM_APDU [00:41:35]CAPDU: 80 13 00 00 [00:41:35]Write to MH i2c: E2 08 00 F2 0D 80 13 00 00 00 00 00 00 7B [00:41:35]Write i2c OK [00:41:35]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 62 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 62 00 F2 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [00:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3D D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:36]wFMCommunicate OK [00:41:36]SAM_PROTO_GetFieldsCounters done [00:41:36]requested_item shift.num is exist - process it [00:41:36]requested_item shift.opened is exist - process it [00:41:36]req_shift_opened [00:41:36]FM_GetShiftState [00:41:36]SAM_PROTO_GetShiftState [00:41:36]wFMCommunicate request_size=4 [00:41:36]MH_SAM_APDU [00:41:36]CAPDU: 80 13 01 00 [00:41:36]Write to MH i2c: E2 08 00 F3 0D 80 13 01 00 00 00 00 00 7D [00:41:36]Write i2c OK [00:41:36]MH_I2C_Read... [00:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:36]Read from MH i2c: E2 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 0E 00 [00:41:36]MH_I2C_Read... [00:41:36]Read from MH i2c: E2 0E 00 F3 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 E9 [00:41:36]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [00:41:36]wFMCommunicate OK [00:41:36]SAM_PROTO_GetShiftState done [00:41:36]FM_GetShiftState done [00:41:36]req_shift_opened done [00:41:36]requested_item shift.open_date is exist - process it [00:41:36]req_shift_open_date [00:41:36]req_shift_open_date done [00:41:36]produce_requested_data done [00:41:36]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186685,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [00:41:36]process_action_free close_receipt [00:41:36]json_value_free [00:41:36]json_value_free done [00:41:36]process_json_proto returns [00:41:36]Send response to host [00:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186685,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [00:41:36]free response buf [00:41:36]execute_script done [00:41:36]execute_script returns [00:41:36]free content buf [00:41:36]Sock 9.Close socket [00:41:36]Sock 9.Thread stoped [00:41:39]OFD Sender: No OFD packet to send [00:41:44]OFD Sender: No OFD packet to send [00:41:49]OFD Sender: No OFD packet to send [00:41:54]OFD Sender: No OFD packet to send [00:41:59]OFD Sender: No OFD packet to send [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:40]OFD Sender: No OFD packet to send [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:17]accept exits with 7 [01:28:17]New connection [01:28:17]New thread 3067051364 created [01:28:17]Thread 3067194724 joined [01:28:17]Waiting for new connection... [01:28:17] Sock 7.Parse request [01:28:17]Sock 7.Check first char [01:28:17]Sock 7.First char is OK [01:28:17]request: POST /json_proto HTTP/1.0 [01:28:17]Method: POST [01:28:17]URL: /json_proto [01:28:17]Method is POST - this is cgi request [01:28:17]url: /json_proto [01:28:17]query_string will be loaded in cgi processing [01:28:17]execute_cgi json_proto POST (null) [01:28:17]execute_cgi path=json_proto method=POST [01:28:17]POST find Content-Length [01:28:17]Host: 172.17.46.131:8080 [01:28:17]Content-Length: 677 [01:28:17]Content-Type: application/json [01:28:17] [01:28:17]POST finish read [01:28:17]Found Content-Length = 677 [01:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:17]execute_script... [01:28:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 7.790, "sum" : 500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:17]POST & json_proto [01:28:17]process_json_proto [01:28:17]json parsed OK: [01:28:17]protocol is kg_v1.0 [01:28:17]action value=close_receipt [01:28:17]process_action close_receipt [01:28:17]cmd_close_receipt [01:28:17]MH_GetDate [01:28:17]Write to MH i2c: F0 00 00 F4 0D F0 [01:28:17]Write i2c OK [01:28:17]MH_I2C_Read... [01:28:17]Read from MH i2c: F0 [01:28:17]MH_I2C_Read... [01:28:17]Read from MH i2c: F0 09 00 [01:28:17]MH_I2C_Read... [01:28:17]Read from MH i2c: F0 09 00 F4 0D 00 33 E2 B3 67 7E 41 4F 65 9B [01:28:17]GetLastDocTimeStamp 1739839293 [01:28:17]current date 1739842099 [01:28:17]FM_GetShiftState [01:28:17]SAM_PROTO_GetShiftState [01:28:17]wFMCommunicate request_size=4 [01:28:17]MH_SAM_APDU [01:28:17]CAPDU: 80 13 01 00 [01:28:17]Write to MH i2c: E2 08 00 F5 0D 80 13 01 00 00 00 00 00 7F [01:28:17]Write i2c OK [01:28:17]MH_I2C_Read... [01:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:17]Read from MH i2c: E2 [01:28:17]MH_I2C_Read... [01:28:17]Read from MH i2c: E2 0E 00 [01:28:17]MH_I2C_Read... [01:28:17]Read from MH i2c: E2 0E 00 F5 0D 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 EB [01:28:17]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:28:17]wFMCommunicate OK [01:28:17]SAM_PROTO_GetShiftState done [01:28:17]FM_GetShiftState done [01:28:17]opened in 1739838833 [01:28:17]opened+sec_in_day 1739925233 [01:28:17]quantity*price = 50011 [01:28:17]sum+1 = 50013 [01:28:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 2 18.02.2025 01:28 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186686 ФПД: 182330143516197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T012819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186686&fm=182330143516197&tin=02508201610067®Number=0000000000091857&sum=50000 [01:28:18]StoreToDocumentArchive [01:28:18]shift 645 fd 186686 [01:28:18]save to /storage/0645/doc_00186686 [01:28:18]save last doc name /storage/0645/doc_00186686 to /storage/kkm_last_doc_name [01:28:18]save OK [01:28:18]Clear old archive folders... [01:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:28:18]tlvbuf is 005E1130 [01:28:18]SAM_PROTO_ClearQueue [01:28:18]wFMCommunicate request_size=4 [01:28:18]MH_SAM_APDU [01:28:18]CAPDU: 80 09 00 00 [01:28:18]Write to MH i2c: E2 08 00 02 0E 80 09 00 00 00 00 00 00 82 [01:28:18]Write i2c OK [01:28:18]MH_I2C_Read... [01:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:28:18]Read from MH i2c: E2 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: E2 03 00 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: E2 03 00 02 0E 00 90 00 84 [01:28:18]RAPDU: 90 00 [01:28:18]wFMCommunicate OK [01:28:18]SAM_PROTO_ClearQueue done [01:28:18]KKMCreateOFDPacket [01:28:18]OFDProtocolAddRootSTLVToBuf [01:28:18]FM_MakeSignedData [01:28:18]FM_MakeSignedData [01:28:18]SAM_PROTO_SignData [01:28:18]wFMCommunicate request_size=4 [01:28:18]MH_SAM_APDU [01:28:18]CAPDU: 80 0D 01 02 [01:28:18]Write to MH i2c: E2 08 00 03 0E 80 0D 01 02 00 00 00 00 8A [01:28:18]Write i2c OK [01:28:18]MH_I2C_Read... [01:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:28:18]Read from MH i2c: E2 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: E2 03 00 [01:28:18]MH_I2C_Read... [01:28:18]Read from MH i2c: E2 03 00 03 0E 00 90 00 85 [01:28:18]RAPDU: 90 00 [01:28:18]wFMCommunicate OK [01:28:18]wFMCommunicate request_size=255 [01:28:18]MH_SAM_APDU [01:28:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 33 E2 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D9 02 00 35 04 06 00 A5 [01:28:18]Write to MH i2c: E2 02 01 04 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 33 E2 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D9 02 00 35 04 06 00 A5 00 00 99 [01:28:18]Write i2c OK [01:28:18]MH_I2C_Read... [01:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:19]Read from MH i2c: E2 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 03 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 03 00 04 0E 00 90 00 86 [01:28:19]RAPDU: 90 00 [01:28:19]wFMCommunicate OK [01:28:19]wFMCommunicate request_size=10 [01:28:19]MH_SAM_APDU [01:28:19]CAPDU: 80 0D 02 02 05 D4 0B 6F A6 25 [01:28:19]Write to MH i2c: E2 0D 00 05 0E 80 0D 02 02 05 00 D4 0B 6F A6 25 00 00 B0 [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:19]Read from MH i2c: E2 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 03 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 03 00 05 0E 00 90 00 87 [01:28:19]RAPDU: 90 00 [01:28:19]wFMCommunicate OK [01:28:19]wFMCommunicate request_size=4 [01:28:19]MH_SAM_APDU [01:28:19]CAPDU: 80 0D 03 02 [01:28:19]Write to MH i2c: E2 08 00 06 0E 80 0D 03 02 00 00 00 00 8F [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:28:19]Read from MH i2c: E2 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 0B 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 0B 00 06 0E 00 91 97 46 8E 5B 8B C7 95 90 00 CE [01:28:19]RAPDU: 91 97 46 8E 5B 8B C7 95 90 00 [01:28:19]wFMCommunicate OK [01:28:19]SAM_PROTO_SignData done [01:28:19]FM_MakeSignedData done [01:28:19]CreateOFDProtocolMessage [01:28:19]wFMCommunicate request_size=4 [01:28:19]MH_SAM_APDU [01:28:19]CAPDU: 80 11 00 00 [01:28:19]Write to MH i2c: E2 08 00 07 0E 80 11 00 00 00 00 00 00 8F [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:19]Read from MH i2c: E2 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 17 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: E2 17 00 07 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 E2 [01:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:28:19]wFMCommunicate OK [01:28:19]CreateOFDProtocolMessage done [01:28:19]OFDSenderStorePacket 186686 [01:28:19]StoreOFDPacket docnum=186686 [01:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 64 59 07 01 2A 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 33 E2 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D9 02 00 35 04 06 00 A5 D4 0B 6F A6 25 91 97 46 8E 5B 8B C7 95 [01:28:19]CheckFolder [01:28:19]dirname=/storage/ofd_packets [01:28:19]CheckFolder done [01:28:19]ProducePacketName [01:28:19]name=ofd_packets/00186686 [01:28:19]NVStorageSaveData ofd_packets/00186686 [01:28:19]File name is /storage/ofd_packets/00186686 [01:28:19]Write 301 bytes [01:28:19]NVStorageSaveData done [01:28:19]OFDSenderStorePacket done [01:28:19]KKMCreateOFDPacket done [01:28:19]NVStorageSaveData kkm_last_timestamp [01:28:19]File name is /storage/kkm_last_timestamp [01:28:19]Write 4 bytes [01:28:19]NVStorageSaveData done [01:28:19]ExternCall_PrintAddStr [01:28:19]wPrintStart [01:28:19]Write to MH i2c: 01 00 00 08 0E 16 [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 07 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 07 00 08 0E 00 00 00 00 00 FF 0F 2B [01:28:19]RasterBufferAndPrint [01:28:19]line Счет N : (1)411833 [01:28:19]line ИНН: 02508201610067 [01:28:19]line Контрольно-Кассовый Чек [01:28:19]line ПРОДАЖА [01:28:19]line ТРК (МРК, ГНК) : 42 [01:28:19]line Товар: 2710124130 [01:28:19]line Аи-92-К-2 [01:28:19]line 7.790 * 64.20 [01:28:19]line = 500.12 [01:28:19]line НДС 12% НСП 1% [01:28:19]line > о реализуемом товаре [01:28:19]line ОКРУГЛЕНИЕ: -0.12 [01:28:19]line ИТОГО: 500.00 [01:28:19]line Внесено: 500.00 [01:28:19]line СДАЧА: 0.00 [01:28:19]line НСП 1% : 4.43 [01:28:19]line НДС 12% : 53.11 [01:28:19]line Наличными: 500.00 [01:28:19]line Безнал.: 0.00 [01:28:19]line Место: АЗС № 92 "Партнер Нефть" [01:28:19]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:28:19]line СНО: Общий режим [01:28:19]line Чек 2 18.02.2025 01:28 [01:28:19]line Смена: 645 ФФД: 1.0 [01:28:19]line ЗНМ: 0300000118 [01:28:19]line РНМ: 0000000000091857 [01:28:19]line Версия ККМ: 001 [01:28:19]line ФМ: 0000000000871826 [01:28:19]line ФД: 186686 [01:28:19]line ФПД: 182330143516197 [01:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T012819&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186686&fm=182330143516197&tin=02508201610067®Number=0000000000091857&sum=50000 [01:28:19]written 0, free lines is 4095 [01:28:19]OFD Sender: Processing packet 186686 [packets to send 49, broken 48] [01:28:19]ProducePacketName [01:28:19]name=ofd_packets/00186686 [01:28:19]OFD Sender: To server: pG, [01:28:19]CommunicateWithHost lk.salyk.kg:30040 [01:28:19]ConnectInit lk.salyk.kg [01:28:19]Connected sock=10 [01:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 64 59 07 01 2A 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6E 1E 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 5C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 33 E2 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D9 02 00 35 04 06 00 A5 D4 0B 6F A6 25 91 97 46 8E 5B 8B C7 95 [01:28:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 71 0B 47 00 1F 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3E D9 02 00 F4 03 04 00 8B 88 B3 67 B6 04 01 00 00 B8 E2 8A 57 28 4A C6 1A [01:28:19]CommunicateWithHost err = 0 [01:28:19]CheckOFDResponse [01:28:19]1017 (14) - 77093643461234 [01:28:19]1041 (16) - 0000000000871826 [01:28:19]1040 (4) - 186686 [01:28:19]1012 (4) - 17.02.2025 19:05 [01:28:19]1206 (1) - 0 [01:28:19]OFD Sender: Remove packet 186686 [01:28:19]ProducePacketName [01:28:19]name=ofd_packets/00186686 [01:28:19]NVStorageDeleteData [01:28:19]Write to MH i2c: 01 00 00 33 0E 41 [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 07 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 06 0D 5B [01:28:19]RasterBufferAndPrint [01:28:19]line [01:28:19]line [01:28:19]line [01:28:19]line [01:28:19]line [01:28:19]written 0, free lines is 3341 [01:28:19]MH_Cut [01:28:19]Write to MH i2c: D1 01 00 3A 0E 01 1A [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: D1 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: D1 01 00 [01:28:19]MH_I2C_Read... [01:28:19]Read from MH i2c: D1 01 00 3A 0E 00 19 [01:28:19]Write to MH i2c: 01 00 00 3B 0E 49 [01:28:19]Write i2c OK [01:28:19]MH_I2C_Read... [01:28:20]OFD Sender: No OFD packet to send [01:28:20]*** Cut start [01:28:20]*** Partial cut [01:28:20]*** CUTSNS_PIN = 1 [01:28:20]*** CUTSNS_PIN = 0 [01:28:20]*** Brake cut motor [01:28:21]Read from MH i2c: 01 [01:28:21]MH_I2C_Read... [01:28:21]*** Stop cut motor [01:28:21]*** Cut end [01:28:21]Read from MH i2c: 01 07 00 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: 01 07 00 3B 0E 00 00 00 00 00 FF 0F 5E [01:28:21]process_action close_receipt done [01:28:21]requested_data is exist [01:28:21]produce_requested_data [01:28:21]requested_item fm.sn is exist - process it [01:28:21]wFMCommunicate request_size=4 [01:28:21]MH_SAM_APDU [01:28:21]CAPDU: 80 11 00 00 [01:28:21]Write to MH i2c: E2 08 00 3C 0E 80 11 00 00 00 00 00 00 C4 [01:28:21]Write i2c OK [01:28:21]MH_I2C_Read... [01:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:21]Read from MH i2c: E2 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 17 00 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 17 00 3C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 17 [01:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:28:21]wFMCommunicate OK [01:28:21]requested_item fd.num is exist - process it [01:28:21]SAM_PROTO_GetFieldsCounters [01:28:21]wFMCommunicate request_size=4 [01:28:21]MH_SAM_APDU [01:28:21]CAPDU: 80 13 00 00 [01:28:21]Write to MH i2c: E2 08 00 3D 0E 80 13 00 00 00 00 00 00 C7 [01:28:21]Write i2c OK [01:28:21]MH_I2C_Read... [01:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:21]Read from MH i2c: E2 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 62 00 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 62 00 3D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [01:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3E D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:28:21]wFMCommunicate OK [01:28:21]SAM_PROTO_GetFieldsCounters done [01:28:21]requested_item shift.num is exist - process it [01:28:21]requested_item shift.opened is exist - process it [01:28:21]req_shift_opened [01:28:21]FM_GetShiftState [01:28:21]SAM_PROTO_GetShiftState [01:28:21]wFMCommunicate request_size=4 [01:28:21]MH_SAM_APDU [01:28:21]CAPDU: 80 13 01 00 [01:28:21]Write to MH i2c: E2 08 00 3E 0E 80 13 01 00 00 00 00 00 C9 [01:28:21]Write i2c OK [01:28:21]MH_I2C_Read... [01:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:21]Read from MH i2c: E2 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 0E 00 [01:28:21]MH_I2C_Read... [01:28:21]Read from MH i2c: E2 0E 00 3E 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 35 [01:28:21]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:28:21]wFMCommunicate OK [01:28:21]SAM_PROTO_GetShiftState done [01:28:21]FM_GetShiftState done [01:28:21]req_shift_opened done [01:28:21]requested_item shift.open_date is exist - process it [01:28:21]req_shift_open_date [01:28:21]req_shift_open_date done [01:28:21]produce_requested_data done [01:28:21]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186686,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [01:28:21]process_action_free close_receipt [01:28:21]json_value_free [01:28:21]json_value_free done [01:28:21]process_json_proto returns [01:28:21]Send response to host [01:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186686,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [01:28:21]free response buf [01:28:21]execute_script done [01:28:21]execute_script returns [01:28:21]free content buf [01:28:21]Sock 7.Close socket [01:28:21]Sock 7.Thread stoped [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:37]accept exits with 9 [01:36:37]New connection [01:36:37]New thread 3067194724 created [01:36:37]Thread 3067051364 joined [01:36:37]Waiting for new connection... [01:36:37] Sock 9.Parse request [01:36:37]Sock 9.Check first char [01:36:37]Sock 9.First char is OK [01:36:37]request: POST /json_proto HTTP/1.0 [01:36:37]Method: POST [01:36:37]URL: /json_proto [01:36:37]Method is POST - this is cgi request [01:36:37]url: /json_proto [01:36:37]query_string will be loaded in cgi processing [01:36:37]execute_cgi json_proto POST (null) [01:36:37]execute_cgi path=json_proto method=POST [01:36:37]POST find Content-Length [01:36:37]Host: 172.17.46.131:8080 [01:36:37]Content-Length: 682 [01:36:37]Content-Type: application/json [01:36:37] [01:36:37]POST finish read [01:36:37]Found Content-Length = 682 [01:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:37]execute_script... [01:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411834", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 13.910, "sum" : 1000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:37]POST & json_proto [01:36:37]process_json_proto [01:36:37]json parsed OK: [01:36:37]protocol is kg_v1.0 [01:36:37]action value=close_receipt [01:36:37]process_action close_receipt [01:36:37]cmd_close_receipt [01:36:37]MH_GetDate [01:36:37]Write to MH i2c: F0 00 00 3F 0E 3C [01:36:37]Write i2c OK [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 09 00 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: F0 09 00 3F 0E 00 27 E4 B3 67 7E 41 4F 65 DD [01:36:37]GetLastDocTimeStamp 1739842099 [01:36:37]current date 1739842599 [01:36:37]FM_GetShiftState [01:36:37]SAM_PROTO_GetShiftState [01:36:37]wFMCommunicate request_size=4 [01:36:37]MH_SAM_APDU [01:36:37]CAPDU: 80 13 01 00 [01:36:37]Write to MH i2c: E2 08 00 40 0E 80 13 01 00 00 00 00 00 CB [01:36:37]Write i2c OK [01:36:37]MH_I2C_Read... [01:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:37]Read from MH i2c: E2 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: E2 0E 00 [01:36:37]MH_I2C_Read... [01:36:37]Read from MH i2c: E2 0E 00 40 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 37 [01:36:37]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:36:37]wFMCommunicate OK [01:36:37]SAM_PROTO_GetShiftState done [01:36:37]FM_GetShiftState done [01:36:37]opened in 1739838833 [01:36:37]opened+sec_in_day 1739925233 [01:36:37]quantity*price = 100012 [01:36:37]sum+1 = 100014 [01:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 3 18.02.2025 01:36 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186687 ФПД: 231255968553519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T013639&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186687&fm=231255968553519&tin=02508201610067®Number=0000000000091857&sum=100000 [01:36:38]StoreToDocumentArchive [01:36:38]shift 645 fd 186687 [01:36:38]save to /storage/0645/doc_00186687 [01:36:38]save last doc name /storage/0645/doc_00186687 to /storage/kkm_last_doc_name [01:36:38]save OK [01:36:38]Clear old archive folders... [01:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:36:38]tlvbuf is 005EC1E0 [01:36:38]SAM_PROTO_ClearQueue [01:36:38]wFMCommunicate request_size=4 [01:36:38]MH_SAM_APDU [01:36:38]CAPDU: 80 09 00 00 [01:36:38]Write to MH i2c: E2 08 00 4D 0E 80 09 00 00 00 00 00 00 CD [01:36:38]Write i2c OK [01:36:38]MH_I2C_Read... [01:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:38]Read from MH i2c: E2 [01:36:38]MH_I2C_Read... [01:36:38]Read from MH i2c: E2 03 00 [01:36:38]MH_I2C_Read... [01:36:38]Read from MH i2c: E2 03 00 4D 0E 00 90 00 CF [01:36:38]RAPDU: 90 00 [01:36:38]wFMCommunicate OK [01:36:38]SAM_PROTO_ClearQueue done [01:36:38]KKMCreateOFDPacket [01:36:38]OFDProtocolAddRootSTLVToBuf [01:36:38]FM_MakeSignedData [01:36:38]FM_MakeSignedData [01:36:38]SAM_PROTO_SignData [01:36:38]wFMCommunicate request_size=4 [01:36:38]MH_SAM_APDU [01:36:38]CAPDU: 80 0D 01 02 [01:36:38]Write to MH i2c: E2 08 00 4E 0E 80 0D 01 02 00 00 00 00 D5 [01:36:38]Write i2c OK [01:36:38]MH_I2C_Read... [01:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:38]Read from MH i2c: E2 [01:36:38]MH_I2C_Read... [01:36:38]Read from MH i2c: E2 03 00 [01:36:38]MH_I2C_Read... [01:36:38]Read from MH i2c: E2 03 00 4E 0E 00 90 00 D0 [01:36:38]RAPDU: 90 00 [01:36:38]wFMCommunicate OK [01:36:38]wFMCommunicate request_size=255 [01:36:38]MH_SAM_APDU [01:36: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 27 E4 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D9 02 00 35 04 06 00 D2 [01:36:38]Write to MH i2c: E2 02 01 4F 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 27 E4 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D9 02 00 35 04 06 00 D2 00 00 E1 [01:36:38]Write i2c OK [01:36:38]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 4F 0E 00 90 00 D1 [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]wFMCommunicate request_size=10 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 02 02 05 53 79 DB 9A 2F [01:36:39]Write to MH i2c: E2 0D 00 50 0E 80 0D 02 02 05 00 53 79 DB 9A 2F 00 00 52 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 03 00 50 0E 00 90 00 D2 [01:36:39]RAPDU: 90 00 [01:36:39]wFMCommunicate OK [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 0D 03 02 [01:36:39]Write to MH i2c: E2 08 00 51 0E 80 0D 03 02 00 00 00 00 DA [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 0B 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 0B 00 51 0E 00 63 86 74 4A A0 39 4B B8 90 00 5E [01:36:39]RAPDU: 63 86 74 4A A0 39 4B B8 90 00 [01:36:39]wFMCommunicate OK [01:36:39]SAM_PROTO_SignData done [01:36:39]FM_MakeSignedData done [01:36:39]CreateOFDProtocolMessage [01:36:39]wFMCommunicate request_size=4 [01:36:39]MH_SAM_APDU [01:36:39]CAPDU: 80 11 00 00 [01:36:39]Write to MH i2c: E2 08 00 52 0E 80 11 00 00 00 00 00 00 DA [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:39]Read from MH i2c: E2 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 17 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: E2 17 00 52 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 2D [01:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:36:39]wFMCommunicate OK [01:36:39]CreateOFDProtocolMessage done [01:36:39]OFDSenderStorePacket 186687 [01:36:39]StoreOFDPacket docnum=186687 [01:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 98 BD 07 01 7C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 27 E4 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D9 02 00 35 04 06 00 D2 53 79 DB 9A 2F 63 86 74 4A A0 39 4B B8 [01:36:39]CheckFolder [01:36:39]dirname=/storage/ofd_packets [01:36:39]CheckFolder done [01:36:39]ProducePacketName [01:36:39]name=ofd_packets/00186687 [01:36:39]NVStorageSaveData ofd_packets/00186687 [01:36:39]File name is /storage/ofd_packets/00186687 [01:36:39]Write 301 bytes [01:36:39]NVStorageSaveData done [01:36:39]OFDSenderStorePacket done [01:36:39]KKMCreateOFDPacket done [01:36:39]NVStorageSaveData kkm_last_timestamp [01:36:39]File name is /storage/kkm_last_timestamp [01:36:39]Write 4 bytes [01:36:39]OFD Sender: Processing packet 186687 [packets to send 49, broken 48] [01:36:39]ProducePacketName [01:36:39]name=ofd_packets/00186687 [01:36:39]OFD Sender: To server: pG, [01:36:39]CommunicateWithHost lk.salyk.kg:30040 [01:36:39]ConnectInit lk.salyk.kg [01:36:39]NVStorageSaveData done [01:36:39]ExternCall_PrintAddStr [01:36:39]wPrintStart [01:36:39]Write to MH i2c: 01 00 00 53 0E 61 [01:36:39]Write i2c OK [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 07 00 [01:36:39]MH_I2C_Read... [01:36:39]Read from MH i2c: 01 07 00 53 0E 00 00 00 00 00 FF 0F 76 [01:36:39]RasterBufferAndPrint [01:36:39]line Счет N : (1)411834 [01:36:39]line ИНН: 02508201610067 [01:36:39]line Контрольно-Кассовый Чек [01:36:39]line ПРОДАЖА [01:36:39]line ТРК (МРК, ГНК) : 23 [01:36:39]line Товар: 2710124500 [01:36:39]line Аи-95-К-5 [01:36:39]line 13.910 * 71.90 [01:36:39]line = 1000.13 [01:36:39]line НДС 12% НСП 1% [01:36:39]line > о реализуемом товаре [01:36:39]line ОКРУГЛЕНИЕ: -0.13 [01:36:39]line ИТОГО: 1000.00 [01:36:39]line Внесено: 1000.00 [01:36:39]line СДАЧА: 0.00 [01:36:39]line НСП 1% : 8.85 [01:36:39]line НДС 12% : 106.21 [01:36:39]line Наличными: 1000.00 [01:36:39]line Безнал.: 0.00 [01:36:39]line Место: АЗС № 92 "Партнер Нефть" [01:36:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:36:39]line СНО: Общий режим [01:36:39]line Чек 3 18.02.2025 01:36 [01:36:39]line Смена: 645 ФФД: 1.0 [01:36:39]line ЗНМ: 0300000118 [01:36:39]line РНМ: 0000000000091857 [01:36:39]line Версия ККМ: 001 [01:36:39]line ФМ: 0000000000871826 [01:36:39]line ФД: 186687 [01:36:39]line ФПД: 231255968553519 [01:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T013639&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186687&fm=231255968553519&tin=02508201610067®Number=0000000000091857&sum=100000 [01:36:39]Connected sock=10 [01:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 98 BD 07 01 7C 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 56 36 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 AD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 27 E4 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D9 02 00 35 04 06 00 D2 53 79 DB 9A 2F 63 86 74 4A A0 39 4B B8 [01:36:39]written 0, free lines is 4095 [01:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 A1 5A 47 00 11 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 3F D9 02 00 F4 03 04 00 7F 8A B3 67 B6 04 01 00 00 74 55 89 07 A1 23 6E 6F [01:36:39]CommunicateWithHost err = 0 [01:36:39]CheckOFDResponse [01:36:39]1017 (14) - 77093643461234 [01:36:39]1041 (16) - 0000000000871826 [01:36:39]1040 (4) - 186687 [01:36:39]1012 (4) - 17.02.2025 19:14 [01:36:39]1206 (1) - 0 [01:36:39]OFD Sender: Remove packet 186687 [01:36:39]ProducePacketName [01:36:39]name=ofd_packets/00186687 [01:36:39]NVStorageDeleteData [01:36:40]Write to MH i2c: 01 00 00 7E 0E 8C [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 07 00 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: 01 07 00 7E 0E 00 00 00 00 00 EE 0C 8D [01:36:40]RasterBufferAndPrint [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]line [01:36:40]written 0, free lines is 3316 [01:36:40]MH_Cut [01:36:40]Write to MH i2c: D1 01 00 85 0E 01 65 [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 01 00 [01:36:40]MH_I2C_Read... [01:36:40]Read from MH i2c: D1 01 00 85 0E 00 64 [01:36:40]Write to MH i2c: 01 00 00 86 0E 94 [01:36:40]Write i2c OK [01:36:40]MH_I2C_Read... [01:36:40]OFD Sender: No OFD packet to send [01:36:40]*** Cut start [01:36:40]*** Partial cut [01:36:40]*** CUTSNS_PIN = 1 [01:36:40]*** CUTSNS_PIN = 0 [01:36:41]*** Brake cut motor [01:36:41]Read from MH i2c: 01 [01:36:41]MH_I2C_Read... [01:36:41]*** Stop cut motor [01:36:41]*** Cut end [01:36:41]Read from MH i2c: 01 07 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: 01 07 00 86 0E 00 00 00 00 00 FF 0F A9 [01:36:41]process_action close_receipt done [01:36:41]requested_data is exist [01:36:41]produce_requested_data [01:36:41]requested_item fm.sn is exist - process it [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 11 00 00 [01:36:41]Write to MH i2c: E2 08 00 87 0E 80 11 00 00 00 00 00 00 0F [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 17 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 17 00 87 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 62 [01:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:36:41]wFMCommunicate OK [01:36:41]requested_item fd.num is exist - process it [01:36:41]SAM_PROTO_GetFieldsCounters [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 13 00 00 [01:36:41]Write to MH i2c: E2 08 00 88 0E 80 13 00 00 00 00 00 00 12 [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 62 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 62 00 88 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [01:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 3F D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:41]wFMCommunicate OK [01:36:41]SAM_PROTO_GetFieldsCounters done [01:36:41]requested_item shift.num is exist - process it [01:36:41]requested_item shift.opened is exist - process it [01:36:41]req_shift_opened [01:36:41]FM_GetShiftState [01:36:41]SAM_PROTO_GetShiftState [01:36:41]wFMCommunicate request_size=4 [01:36:41]MH_SAM_APDU [01:36:41]CAPDU: 80 13 01 00 [01:36:41]Write to MH i2c: E2 08 00 89 0E 80 13 01 00 00 00 00 00 14 [01:36:41]Write i2c OK [01:36:41]MH_I2C_Read... [01:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:41]Read from MH i2c: E2 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 0E 00 [01:36:41]MH_I2C_Read... [01:36:41]Read from MH i2c: E2 0E 00 89 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 80 [01:36:41]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:36:41]wFMCommunicate OK [01:36:41]SAM_PROTO_GetShiftState done [01:36:41]FM_GetShiftState done [01:36:41]req_shift_opened done [01:36:41]requested_item shift.open_date is exist - process it [01:36:41]req_shift_open_date [01:36:41]req_shift_open_date done [01:36:41]produce_requested_data done [01:36:41]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186687,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [01:36:41]process_action_free close_receipt [01:36:41]json_value_free [01:36:41]json_value_free done [01:36:41]process_json_proto returns [01:36:41]Send response to host [01:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186687,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [01:36:41]free response buf [01:36:41]execute_script done [01:36:41]execute_script returns [01:36:41]free content buf [01:36:41]Sock 9.Close socket [01:36:41]Sock 9.Thread stoped [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:16]OFD Sender: No OFD packet to send [01:48:21]OFD Sender: No OFD packet to send [01:48:26]OFD Sender: No OFD packet to send [01:48:31]OFD Sender: No OFD packet to send [01:48:36]OFD Sender: No OFD packet to send [01:48:41]OFD Sender: No OFD packet to send [01:48:46]OFD Sender: No OFD packet to send [01:48:51]OFD Sender: No OFD packet to send [01:48:56]OFD Sender: No OFD packet to send [01:49:01]OFD Sender: No OFD packet to send [01:49:06]OFD Sender: No OFD packet to send [01:49:11]OFD Sender: No OFD packet to send [01:49:16]OFD Sender: No OFD packet to send [01:49:21]OFD Sender: No OFD packet to send [01:49:26]OFD Sender: No OFD packet to send [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:01]accept exits with 7 [01:56:01]New connection [01:56:01]New thread 3067051364 created [01:56:01]Thread 3067194724 joined [01:56:01]Waiting for new connection... [01:56:01] Sock 7.Parse request [01:56:01]Sock 7.Check first char [01:56:01]Sock 7.First char is OK [01:56:01]request: POST /json_proto HTTP/1.0 [01:56:01]Method: POST [01:56:01]URL: /json_proto [01:56:01]Method is POST - this is cgi request [01:56:01]url: /json_proto [01:56:01]query_string will be loaded in cgi processing [01:56:01]execute_cgi json_proto POST (null) [01:56:01]execute_cgi path=json_proto method=POST [01:56:01]POST find Content-Length [01:56:01]Host: 172.17.46.131:8080 [01:56:01]Content-Length: 800 [01:56:01]Content-Type: application/json [01:56:01] [01:56:01]POST finish read [01:56:01]Found Content-Length = 800 [01:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.750, "sum" : 413.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 413.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:01]execute_script... [01:56:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411835", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 5.750, "sum" : 413.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 413.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:01]POST & json_proto [01:56:01]process_json_proto [01:56:01]json parsed OK: [01:56:01]protocol is kg_v1.0 [01:56:01]action value=close_receipt [01:56:01]process_action close_receipt [01:56:01]cmd_close_receipt [01:56:01]MH_GetDate [01:56:01]Write to MH i2c: F0 00 00 8A 0E 87 [01:56:01]Write i2c OK [01:56:01]MH_I2C_Read... [01:56:01]Read from MH i2c: F0 [01:56:01]MH_I2C_Read... [01:56:01]Read from MH i2c: F0 09 00 [01:56:01]MH_I2C_Read... [01:56:01]Read from MH i2c: F0 09 00 8A 0E 00 B3 E8 B3 67 7E 41 4F 65 B8 [01:56:01]GetLastDocTimeStamp 1739842599 [01:56:01]current date 1739843763 [01:56:01]FM_GetShiftState [01:56:01]SAM_PROTO_GetShiftState [01:56:01]wFMCommunicate request_size=4 [01:56:01]MH_SAM_APDU [01:56:01]CAPDU: 80 13 01 00 [01:56:01]Write to MH i2c: E2 08 00 8B 0E 80 13 01 00 00 00 00 00 16 [01:56:01]Write i2c OK [01:56:01]MH_I2C_Read... [01:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:01]Read from MH i2c: E2 [01:56:01]MH_I2C_Read... [01:56:01]Read from MH i2c: E2 0E 00 [01:56:01]MH_I2C_Read... [01:56:01]Read from MH i2c: E2 0E 00 8B 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 82 [01:56:01]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:56:01]wFMCommunicate OK [01:56:01]SAM_PROTO_GetShiftState done [01:56:01]FM_GetShiftState done [01:56:01]opened in 1739838833 [01:56:01]opened+sec_in_day 1739925233 [01:56:01]quantity*price = 41342 [01:56:01]sum+1 = 41344 [01:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 413.43 НСП 1% : 3.66 НДС 12% : 43.90 Наличными: 0.00 Безнал.: 413.43 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 4 18.02.2025 01:56 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186688 ФПД: 206425193068576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T015603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186688&fm=206425193068576&tin=02508201610067®Number=0000000000091857&sum=41343 [01:56:02]StoreToDocumentArchive [01:56:02]shift 645 fd 186688 [01:56:02]save to /storage/0645/doc_00186688 [01:56:02]save last doc name /storage/0645/doc_00186688 to /storage/kkm_last_doc_name [01:56:02]save OK [01:56:02]Clear old archive folders... [01:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:56:02]tlvbuf is 005EC190 [01:56:02]SAM_PROTO_ClearQueue [01:56:02]wFMCommunicate request_size=4 [01:56:02]MH_SAM_APDU [01:56:02]CAPDU: 80 09 00 00 [01:56:02]Write to MH i2c: E2 08 00 98 0E 80 09 00 00 00 00 00 00 18 [01:56:02]Write i2c OK [01:56:02]MH_I2C_Read... [01:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:56:02]Read from MH i2c: E2 [01:56:02]MH_I2C_Read... [01:56:02]Read from MH i2c: E2 03 00 [01:56:02]MH_I2C_Read... [01:56:02]Read from MH i2c: E2 03 00 98 0E 00 90 00 1A [01:56:02]RAPDU: 90 00 [01:56:02]wFMCommunicate OK [01:56:02]SAM_PROTO_ClearQueue done [01:56:02]KKMCreateOFDPacket [01:56:02]OFDProtocolAddRootSTLVToBuf [01:56:02]FM_MakeSignedData [01:56:02]FM_MakeSignedData [01:56:02]SAM_PROTO_SignData [01:56:02]wFMCommunicate request_size=4 [01:56:02]MH_SAM_APDU [01:56:02]CAPDU: 80 0D 01 02 [01:56:02]Write to MH i2c: E2 08 00 99 0E 80 0D 01 02 00 00 00 00 20 [01:56:02]Write i2c OK [01:56:02]MH_I2C_Read... [01:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:56:02]Read from MH i2c: E2 [01:56:02]MH_I2C_Read... [01:56:02]Read from MH i2c: E2 03 00 [01:56:02]MH_I2C_Read... [01:56:02]Read from MH i2c: E2 03 00 99 0E 00 90 00 1B [01:56:02]RAPDU: 90 00 [01:56:02]wFMCommunicate OK [01:56:02]wFMCommunicate request_size=255 [01:56:02]MH_SAM_APDU [01:56:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 16 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7F A1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B3 E8 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D9 02 00 35 04 06 00 BB [01:56:02]Write to MH i2c: E2 02 01 9A 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 16 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7F A1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B3 E8 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D9 02 00 35 04 06 00 BB 00 00 0D [01:56:02]Write i2c OK [01:56:02]MH_I2C_Read... [01:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:03]Read from MH i2c: E2 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 03 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 03 00 9A 0E 00 90 00 1C [01:56:03]RAPDU: 90 00 [01:56:03]wFMCommunicate OK [01:56:03]wFMCommunicate request_size=10 [01:56:03]MH_SAM_APDU [01:56:03]CAPDU: 80 0D 02 02 05 BE 1C 4E 38 20 [01:56:03]Write to MH i2c: E2 0D 00 9B 0E 80 0D 02 02 05 00 BE 1C 4E 38 20 00 00 AD [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:03]Read from MH i2c: E2 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 03 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 03 00 9B 0E 00 90 00 1D [01:56:03]RAPDU: 90 00 [01:56:03]wFMCommunicate OK [01:56:03]wFMCommunicate request_size=4 [01:56:03]MH_SAM_APDU [01:56:03]CAPDU: 80 0D 03 02 [01:56:03]Write to MH i2c: E2 08 00 9C 0E 80 0D 03 02 00 00 00 00 25 [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:56:03]Read from MH i2c: E2 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 0B 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 0B 00 9C 0E 00 4D FD A8 8A F7 58 6F E9 90 00 49 [01:56:03]RAPDU: 4D FD A8 8A F7 58 6F E9 90 00 [01:56:03]wFMCommunicate OK [01:56:03]SAM_PROTO_SignData done [01:56:03]FM_MakeSignedData done [01:56:03]CreateOFDProtocolMessage [01:56:03]wFMCommunicate request_size=4 [01:56:03]MH_SAM_APDU [01:56:03]CAPDU: 80 11 00 00 [01:56:03]Write to MH i2c: E2 08 00 9D 0E 80 11 00 00 00 00 00 00 25 [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:03]Read from MH i2c: E2 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 17 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: E2 17 00 9D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 78 [01:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:56:03]wFMCommunicate OK [01:56:03]CreateOFDProtocolMessage done [01:56:03]OFDSenderStorePacket 186688 [01:56:03]StoreOFDPacket docnum=186688 [01:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CC 76 07 01 70 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 16 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7F A1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B3 E8 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D9 02 00 35 04 06 00 BB BE 1C 4E 38 20 4D FD A8 8A F7 58 6F E9 [01:56:03]CheckFolder [01:56:03]dirname=/storage/ofd_packets [01:56:03]CheckFolder done [01:56:03]ProducePacketName [01:56:03]name=ofd_packets/00186688 [01:56:03]NVStorageSaveData ofd_packets/00186688 [01:56:03]File name is /storage/ofd_packets/00186688 [01:56:03]Write 301 bytes [01:56:03]NVStorageSaveData done [01:56:03]OFDSenderStorePacket done [01:56:03]KKMCreateOFDPacket done [01:56:03]NVStorageSaveData kkm_last_timestamp [01:56:03]File name is /storage/kkm_last_timestamp [01:56:03]Write 4 bytes [01:56:03]NVStorageSaveData done [01:56:03]ExternCall_PrintAddStr [01:56:03]wPrintStart [01:56:03]Write to MH i2c: 01 00 00 9E 0E AC [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 07 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 FF 0F C1 [01:56:03]RasterBufferAndPrint [01:56:03]line Счет N : (1)411835 [01:56:03]line ИНН: 02508201610067 [01:56:03]line Контрольно-Кассовый Чек [01:56:03]line ПРОДАЖА [01:56:03]line ТРК (МРК, ГНК) : 13 [01:56:03]line Товар: 2710124500 [01:56:03]line Аи-95-К-5 [01:56:03]line 5.750 * 71.90 [01:56:03]line = 413.43 [01:56:03]line НДС 12% НСП 1% [01:56:03]line > о реализуемом товаре [01:56:03]line ИТОГО: 413.43 [01:56:03]line НСП 1% : 3.66 [01:56:03]line НДС 12% : 43.90 [01:56:03]line Наличными: 0.00 [01:56:03]line Безнал.: 413.43 [01:56:03]line Место: АЗС № 92 "Партнер Нефть" [01:56:03]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [01:56:03]line СНО: Общий режим [01:56:03]line Чек 4 18.02.2025 01:56 [01:56:03]line Смена: 645 ФФД: 1.0 [01:56:03]line ЗНМ: 0300000118 [01:56:03]line РНМ: 0000000000091857 [01:56:03]line Версия ККМ: 001 [01:56:03]line Платежная система: O! деньги [01:56:03]line ФМ: 0000000000871826 [01:56:03]line ФД: 186688 [01:56:03]line ФПД: 206425193068576 [01:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T015603&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186688&fm=206425193068576&tin=02508201610067®Number=0000000000091857&sum=41343 [01:56:03]written 0, free lines is 4095 [01:56:03]OFD Sender: Processing packet 186688 [packets to send 49, broken 48] [01:56:03]ProducePacketName [01:56:03]name=ofd_packets/00186688 [01:56:03]OFD Sender: To server: pG, [01:56:03]CommunicateWithHost lk.salyk.kg:30040 [01:56:03]ConnectInit lk.salyk.kg [01:56:03]Connected sock=11 [01:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 CC 76 07 01 70 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 76 16 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 7F A1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7F A1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7F A1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B3 E8 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D9 02 00 35 04 06 00 BB BE 1C 4E 38 20 4D FD A8 8A F7 58 6F E9 [01:56:03]Write to MH i2c: 01 00 00 C8 0E D6 [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 07 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: 01 07 00 C8 0E 00 00 00 00 00 FB 0C E4 [01:56:03]RasterBufferAndPrint [01:56:03]line [01:56:03]line [01:56:03]line [01:56:03]line [01:56:03]line [01:56:03]written 0, free lines is 3327 [01:56:03]MH_Cut [01:56:03]Write to MH i2c: D1 01 00 CF 0E 01 AF [01:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 CE C0 47 00 0B 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 40 D9 02 00 F4 03 04 00 0B 8F B3 67 B6 04 01 00 00 52 9E D9 BF 81 AC B3 D4 [01:56:03]CommunicateWithHost err = 0 [01:56:03]CheckOFDResponse [01:56:03]1017 (14) - 77093643461234 [01:56:03]1041 (16) - 0000000000871826 [01:56:03]1040 (4) - 186688 [01:56:03]1012 (4) - 17.02.2025 19:33 [01:56:03]1206 (1) - 0 [01:56:03]OFD Sender: Remove packet 186688 [01:56:03]ProducePacketName [01:56:03]name=ofd_packets/00186688 [01:56:03]NVStorageDeleteData [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: D1 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: D1 01 00 [01:56:03]MH_I2C_Read... [01:56:03]Read from MH i2c: D1 01 00 CF 0E 00 AE [01:56:03]Write to MH i2c: 01 00 00 D0 0E DE [01:56:03]Write i2c OK [01:56:03]MH_I2C_Read... [01:56:04]OFD Sender: No OFD packet to send [01:56:04]*** Cut start [01:56:04]*** Partial cut [01:56:04]*** CUTSNS_PIN = 1 [01:56:04]*** CUTSNS_PIN = 0 [01:56:04]*** Brake cut motor [01:56:05]Read from MH i2c: 01 [01:56:05]MH_I2C_Read... [01:56:05]*** Stop cut motor [01:56:05]*** Cut end [01:56:05]Read from MH i2c: 01 07 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: 01 07 00 D0 0E 00 00 00 00 00 FF 0F F3 [01:56:05]process_action close_receipt done [01:56:05]requested_data is exist [01:56:05]produce_requested_data [01:56:05]requested_item fm.sn is exist - process it [01:56:05]wFMCommunicate request_size=4 [01:56:05]MH_SAM_APDU [01:56:05]CAPDU: 80 11 00 00 [01:56:05]Write to MH i2c: E2 08 00 D1 0E 80 11 00 00 00 00 00 00 59 [01:56:05]Write i2c OK [01:56:05]MH_I2C_Read... [01:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:05]Read from MH i2c: E2 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 17 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 17 00 D1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 AC [01:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [01:56:05]wFMCommunicate OK [01:56:05]requested_item fd.num is exist - process it [01:56:05]SAM_PROTO_GetFieldsCounters [01:56:05]wFMCommunicate request_size=4 [01:56:05]MH_SAM_APDU [01:56:05]CAPDU: 80 13 00 00 [01:56:05]Write to MH i2c: E2 08 00 D2 0E 80 13 00 00 00 00 00 00 5C [01:56:05]Write i2c OK [01:56:05]MH_I2C_Read... [01:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:56:05]Read from MH i2c: E2 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 62 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 62 00 D2 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [01:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 40 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:56:05]wFMCommunicate OK [01:56:05]SAM_PROTO_GetFieldsCounters done [01:56:05]requested_item shift.num is exist - process it [01:56:05]requested_item shift.opened is exist - process it [01:56:05]req_shift_opened [01:56:05]FM_GetShiftState [01:56:05]SAM_PROTO_GetShiftState [01:56:05]wFMCommunicate request_size=4 [01:56:05]MH_SAM_APDU [01:56:05]CAPDU: 80 13 01 00 [01:56:05]Write to MH i2c: E2 08 00 D3 0E 80 13 01 00 00 00 00 00 5E [01:56:05]Write i2c OK [01:56:05]MH_I2C_Read... [01:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:05]Read from MH i2c: E2 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 0E 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 0E 00 D3 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CA [01:56:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [01:56:05]wFMCommunicate OK [01:56:05]SAM_PROTO_GetShiftState done [01:56:05]FM_GetShiftState done [01:56:05]req_shift_opened done [01:56:05]requested_item shift.open_date is exist - process it [01:56:05]req_shift_open_date [01:56:05]req_shift_open_date done [01:56:05]produce_requested_data done [01:56:05]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186688,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [01:56:05]process_action_free close_receipt [01:56:05]json_value_free [01:56:05]json_value_free done [01:56:05]process_json_proto returns [01:56:05]Send response to host [01:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186688,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [01:56:05]free response buf [01:56:05]execute_script done [01:56:05]execute_script returns [01:56:05]free content buf [01:56:05]Sock 7.Close socket [01:56:05]Sock 7.Thread stoped [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:38]accept exits with 9 [02:12:38]New connection [02:12:38]New thread 3067194724 created [02:12:38]Thread 3067051364 joined [02:12:38]Waiting for new connection... [02:12:38] Sock 9.Parse request [02:12:38]Sock 9.Check first char [02:12:38]Sock 9.First char is OK [02:12:38]request: POST /json_proto HTTP/1.0 [02:12:38]Method: POST [02:12:38]URL: /json_proto [02:12:38]Method is POST - this is cgi request [02:12:38]url: /json_proto [02:12:38]query_string will be loaded in cgi processing [02:12:38]execute_cgi json_proto POST (null) [02:12:38]execute_cgi path=json_proto method=POST [02:12:38]POST find Content-Length [02:12:38]Host: 172.17.46.131:8080 [02:12:38]Content-Length: 682 [02:12:38]Content-Type: application/json [02:12:38] [02:12:38]POST finish read [02:12:38]Found Content-Length = 682 [02:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:38]execute_script... [02:12: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)411836", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 71.90, "quantity" : 16.690, "sum" : 1200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:12:38]POST & json_proto [02:12:38]process_json_proto [02:12:38]json parsed OK: [02:12:38]protocol is kg_v1.0 [02:12:38]action value=close_receipt [02:12:38]process_action close_receipt [02:12:38]cmd_close_receipt [02:12:38]MH_GetDate [02:12:38]Write to MH i2c: F0 00 00 D4 0E D1 [02:12:38]Write i2c OK [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: F0 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: F0 09 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: F0 09 00 D4 0E 00 98 EC B3 67 7E 41 4F 65 EB [02:12:38]GetLastDocTimeStamp 1739843763 [02:12:38]current date 1739844760 [02:12:38]FM_GetShiftState [02:12:38]SAM_PROTO_GetShiftState [02:12:38]wFMCommunicate request_size=4 [02:12:38]MH_SAM_APDU [02:12:38]CAPDU: 80 13 01 00 [02:12:38]Write to MH i2c: E2 08 00 D5 0E 80 13 01 00 00 00 00 00 60 [02:12:38]Write i2c OK [02:12:38]MH_I2C_Read... [02:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:38]Read from MH i2c: E2 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 0E 00 [02:12:38]MH_I2C_Read... [02:12:38]Read from MH i2c: E2 0E 00 D5 0E 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 CC [02:12:38]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [02:12:38]wFMCommunicate OK [02:12:38]SAM_PROTO_GetShiftState done [02:12:38]FM_GetShiftState done [02:12:38]opened in 1739838833 [02:12:38]opened+sec_in_day 1739925233 [02:12:38]quantity*price = 120001 [02:12:38]sum+1 = 120002 [02:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.43 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 5 18.02.2025 02:12 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 ФМ: 0000000000871826 ФД: 186689 ФПД: 257248769838126 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T021240&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186689&fm=257248769838126&tin=02508201610067®Number=0000000000091857&sum=120000 [02:12:39]StoreToDocumentArchive [02:12:39]shift 645 fd 186689 [02:12:39]save to /storage/0645/doc_00186689 [02:12:39]save last doc name /storage/0645/doc_00186689 to /storage/kkm_last_doc_name [02:12:39]save OK [02:12:39]Clear old archive folders... [02:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:12:39]tlvbuf is 005E4A90 [02:12:39]SAM_PROTO_ClearQueue [02:12:39]wFMCommunicate request_size=4 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 09 00 00 [02:12:39]Write to MH i2c: E2 08 00 E2 0E 80 09 00 00 00 00 00 00 62 [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 E2 0E 00 90 00 64 [02:12:39]RAPDU: 90 00 [02:12:39]wFMCommunicate OK [02:12:39]SAM_PROTO_ClearQueue done [02:12:39]KKMCreateOFDPacket [02:12:39]OFDProtocolAddRootSTLVToBuf [02:12:39]FM_MakeSignedData [02:12:39]FM_MakeSignedData [02:12:39]SAM_PROTO_SignData [02:12:39]wFMCommunicate request_size=4 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 0D 01 02 [02:12:39]Write to MH i2c: E2 08 00 E3 0E 80 0D 01 02 00 00 00 00 6A [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 E3 0E 00 90 00 65 [02:12:39]RAPDU: 90 00 [02:12:39]wFMCommunicate OK [02:12:39]wFMCommunicate request_size=255 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 98 EC B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D9 02 00 35 04 06 00 E9 [02:12:39]Write to MH i2c: E2 02 01 E4 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 98 EC B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D9 02 00 35 04 06 00 E9 00 00 33 [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 E4 0E 00 90 00 66 [02:12:39]RAPDU: 90 00 [02:12:39]wFMCommunicate OK [02:12:39]wFMCommunicate request_size=10 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 0D 02 02 05 F7 65 8B 8C 2E [02:12:39]Write to MH i2c: E2 0D 00 E5 0E 80 0D 02 02 05 00 F7 65 8B 8C 2E 00 00 18 [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 03 00 E5 0E 00 90 00 67 [02:12:39]RAPDU: 90 00 [02:12:39]wFMCommunicate OK [02:12:39]wFMCommunicate request_size=4 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 0D 03 02 [02:12:39]Write to MH i2c: E2 08 00 E6 0E 80 0D 03 02 00 00 00 00 6F [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 0B 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 0B 00 E6 0E 00 81 63 75 DA F3 30 8F 74 90 00 C9 [02:12:39]RAPDU: 81 63 75 DA F3 30 8F 74 90 00 [02:12:39]wFMCommunicate OK [02:12:39]SAM_PROTO_SignData done [02:12:39]FM_MakeSignedData done [02:12:39]CreateOFDProtocolMessage [02:12:39]wFMCommunicate request_size=4 [02:12:39]MH_SAM_APDU [02:12:39]CAPDU: 80 11 00 00 [02:12:39]Write to MH i2c: E2 08 00 E7 0E 80 11 00 00 00 00 00 00 6F [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:39]Read from MH i2c: E2 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 17 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: E2 17 00 E7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 C2 [02:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:12:39]wFMCommunicate OK [02:12:39]CreateOFDProtocolMessage done [02:12:39]OFDSenderStorePacket 186689 [02:12:39]StoreOFDPacket docnum=186689 [02:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 52 07 01 53 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 98 EC B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D9 02 00 35 04 06 00 E9 F7 65 8B 8C 2E 81 63 75 DA F3 30 8F 74 [02:12:39]CheckFolder [02:12:39]dirname=/storage/ofd_packets [02:12:39]CheckFolder done [02:12:39]ProducePacketName [02:12:39]name=ofd_packets/00186689 [02:12:39]NVStorageSaveData ofd_packets/00186689 [02:12:39]File name is /storage/ofd_packets/00186689 [02:12:39]Write 301 bytes [02:12:39]NVStorageSaveData done [02:12:39]OFDSenderStorePacket done [02:12:39]KKMCreateOFDPacket done [02:12:39]NVStorageSaveData kkm_last_timestamp [02:12:39]File name is /storage/kkm_last_timestamp [02:12:39]Write 4 bytes [02:12:39]NVStorageSaveData done [02:12:39]OFD Sender: Processing packet 186689 [packets to send 49, broken 48] [02:12:39]ProducePacketName [02:12:39]name=ofd_packets/00186689 [02:12:39]OFD Sender: To server: pG, [02:12:39]CommunicateWithHost lk.salyk.kg:30040 [02:12:39]ConnectInit lk.salyk.kg [02:12:39]ExternCall_PrintAddStr [02:12:39]wPrintStart [02:12:39]Write to MH i2c: 01 00 00 E8 0E F6 [02:12:39]Write i2c OK [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: 01 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: 01 07 00 [02:12:39]MH_I2C_Read... [02:12:39]Read from MH i2c: 01 07 00 E8 0E 00 00 00 00 00 FF 0F 0B [02:12:39]RasterBufferAndPrint [02:12:39]line Счет N : (1)411836 [02:12:39]line ИНН: 02508201610067 [02:12:39]line Контрольно-Кассовый Чек [02:12:39]line ПРОДАЖА [02:12:39]line ТРК (МРК, ГНК) : 33 [02:12:39]line Товар: 2710124500 [02:12:39]line Аи-95-К-5 [02:12:39]line 16.690 * 71.90 [02:12:39]line = 1200.01 [02:12:39]line НДС 12% НСП 1% [02:12:39]line > о реализуемом товаре [02:12:39]line ОКРУГЛЕНИЕ: -0.01 [02:12:39]line ИТОГО: 1200.00 [02:12:39]line Внесено: 1200.00 [02:12:39]line СДАЧА: 0.00 [02:12:39]line НСП 1% : 10.62 [02:12:39]line НДС 12% : 127.43 [02:12:39]line Наличными: 1200.00 [02:12:39]line Безнал.: 0.00 [02:12:39]line Место: АЗС № 92 "Партнер Нефть" [02:12:39]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:12:39]line СНО: Общий режим [02:12:39]line Чек 5 18.02.2025 02:12 [02:12:39]line Смена: 645 ФФД: 1.0 [02:12:39]line ЗНМ: 0300000118 [02:12:39]line РНМ: 0000000000091857 [02:12:39]line Версия ККМ: 001 [02:12:39]line ФМ: 0000000000871826 [02:12:39]line ФД: 186689 [02:12:39]line ФПД: 257248769838126 [02:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T021240&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186689&fm=257248769838126&tin=02508201610067®Number=0000000000091857&sum=120000 [02:12:40]Connected sock=11 [02:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 A9 52 07 01 53 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 32 41 00 00 00 00 00 37 04 06 00 16 1C 00 00 00 00 13 04 06 00 C1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 98 EC B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D9 02 00 35 04 06 00 E9 F7 65 8B 8C 2E 81 63 75 DA F3 30 8F 74 [02:12:40]written 0, free lines is 4095 [02:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 5F 38 47 00 78 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 41 D9 02 00 F4 03 04 00 F0 92 B3 67 B6 04 01 00 00 A1 77 77 AC 0B C6 38 DC [02:12:40]CommunicateWithHost err = 0 [02:12:40]CheckOFDResponse [02:12:40]1017 (14) - 77093643461234 [02:12:40]1041 (16) - 0000000000871826 [02:12:40]1040 (4) - 186689 [02:12:40]1012 (4) - 17.02.2025 19:50 [02:12:40]1206 (1) - 0 [02:12:40]OFD Sender: Remove packet 186689 [02:12:40]ProducePacketName [02:12:40]name=ofd_packets/00186689 [02:12:40]NVStorageDeleteData [02:12:40]Write to MH i2c: 01 00 00 13 0F 22 [02:12:40]Write i2c OK [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: 01 [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: 01 07 00 [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: 01 07 00 13 0F 00 00 00 00 00 F0 0C 25 [02:12:40]RasterBufferAndPrint [02:12:40]line [02:12:40]line [02:12:40]line [02:12:40]line [02:12:40]line [02:12:40]written 0, free lines is 3318 [02:12:40]MH_Cut [02:12:40]Write to MH i2c: D1 01 00 1A 0F 01 FB [02:12:40]Write i2c OK [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: D1 [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: D1 01 00 [02:12:40]MH_I2C_Read... [02:12:40]Read from MH i2c: D1 01 00 1A 0F 00 FA [02:12:40]Write to MH i2c: 01 00 00 1B 0F 2A [02:12:40]Write i2c OK [02:12:40]MH_I2C_Read... [02:12:41]OFD Sender: No OFD packet to send [02:12:41]*** Cut start [02:12:41]*** Partial cut [02:12:41]*** CUTSNS_PIN = 1 [02:12:41]*** CUTSNS_PIN = 0 [02:12:41]*** Brake cut motor [02:12:42]Read from MH i2c: 01 [02:12:42]MH_I2C_Read... [02:12:42]*** Stop cut motor [02:12:42]*** Cut end [02:12:42]Read from MH i2c: 01 07 00 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: 01 07 00 1B 0F 00 00 00 00 00 FF 0F 3F [02:12:42]process_action close_receipt done [02:12:42]requested_data is exist [02:12:42]produce_requested_data [02:12:42]requested_item fm.sn is exist - process it [02:12:42]wFMCommunicate request_size=4 [02:12:42]MH_SAM_APDU [02:12:42]CAPDU: 80 11 00 00 [02:12:42]Write to MH i2c: E2 08 00 1C 0F 80 11 00 00 00 00 00 00 A5 [02:12:42]Write i2c OK [02:12:42]MH_I2C_Read... [02:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:12:42]Read from MH i2c: E2 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 17 00 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 17 00 1C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 F8 [02:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:12:42]wFMCommunicate OK [02:12:42]requested_item fd.num is exist - process it [02:12:42]SAM_PROTO_GetFieldsCounters [02:12:42]wFMCommunicate request_size=4 [02:12:42]MH_SAM_APDU [02:12:42]CAPDU: 80 13 00 00 [02:12:42]Write to MH i2c: E2 08 00 1D 0F 80 13 00 00 00 00 00 00 A8 [02:12:42]Write i2c OK [02:12:42]MH_I2C_Read... [02:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:12:42]Read from MH i2c: E2 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 62 00 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 62 00 1D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [02:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 41 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:12:42]wFMCommunicate OK [02:12:42]SAM_PROTO_GetFieldsCounters done [02:12:42]requested_item shift.num is exist - process it [02:12:42]requested_item shift.opened is exist - process it [02:12:42]req_shift_opened [02:12:42]FM_GetShiftState [02:12:42]SAM_PROTO_GetShiftState [02:12:42]wFMCommunicate request_size=4 [02:12:42]MH_SAM_APDU [02:12:42]CAPDU: 80 13 01 00 [02:12:42]Write to MH i2c: E2 08 00 1E 0F 80 13 01 00 00 00 00 00 AA [02:12:42]Write i2c OK [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 [02:12:42]MH_I2C_Read... [02:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:12:42]Read from MH i2c: E2 0E 00 [02:12:42]MH_I2C_Read... [02:12:42]Read from MH i2c: E2 0E 00 1E 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 16 [02:12:42]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [02:12:42]wFMCommunicate OK [02:12:42]SAM_PROTO_GetShiftState done [02:12:42]FM_GetShiftState done [02:12:42]req_shift_opened done [02:12:42]requested_item shift.open_date is exist - process it [02:12:42]req_shift_open_date [02:12:42]req_shift_open_date done [02:12:42]produce_requested_data done [02:12:42]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186689,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [02:12:42]process_action_free close_receipt [02:12:42]json_value_free [02:12:42]json_value_free done [02:12:42]process_json_proto returns [02:12:42]Send response to host [02:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186689,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [02:12:42]free response buf [02:12:42]execute_script done [02:12:42]execute_script returns [02:12:42]free content buf [02:12:42]Sock 9.Close socket [02:12:42]Sock 9.Thread stoped [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:07]OFD Sender: No OFD packet to send [02:30:12]OFD Sender: No OFD packet to send [02:30:17]OFD Sender: No OFD packet to send [02:30:22]OFD Sender: No OFD packet to send [02:30:27]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:47]OFD Sender: No OFD packet to send [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:13]OFD Sender: No OFD packet to send [02:48:18]OFD Sender: No OFD packet to send [02:48:23]OFD Sender: No OFD packet to send [02:48:28]OFD Sender: No OFD packet to send [02:48:33]OFD Sender: No OFD packet to send [02:48:38]OFD Sender: No OFD packet to send [02:48:43]OFD Sender: No OFD packet to send [02:48:48]OFD Sender: No OFD packet to send [02:48:53]OFD Sender: No OFD packet to send [02:48:58]OFD Sender: No OFD packet to send [02:49:03]OFD Sender: No OFD packet to send [02:49:08]OFD Sender: No OFD packet to send [02:49:13]OFD Sender: No OFD packet to send [02:49:18]OFD Sender: No OFD packet to send [02:49:23]OFD Sender: No OFD packet to send [02:49:28]OFD Sender: No OFD packet to send [02:49:33]OFD Sender: No OFD packet to send [02:49:38]OFD Sender: No OFD packet to send [02:49:43]OFD Sender: No OFD packet to send [02:49:48]OFD Sender: No OFD packet to send [02:49:53]OFD Sender: No OFD packet to send [02:49:58]OFD Sender: No OFD packet to send [02:50:03]OFD Sender: No OFD packet to send [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:05]accept exits with 7 [02:59:05]New connection [02:59:05]New thread 3067051364 created [02:59:05]Thread 3067194724 joined [02:59:05]Waiting for new connection... [02:59:05] Sock 7.Parse request [02:59:05]Sock 7.Check first char [02:59:05]Sock 7.First char is OK [02:59:05]request: POST /json_proto HTTP/1.0 [02:59:05]Method: POST [02:59:05]URL: /json_proto [02:59:05]Method is POST - this is cgi request [02:59:05]url: /json_proto [02:59:05]query_string will be loaded in cgi processing [02:59:05]execute_cgi json_proto POST (null) [02:59:05]execute_cgi path=json_proto method=POST [02:59:05]POST find Content-Length [02:59:05]Host: 172.17.46.131:8080 [02:59:05]Content-Length: 800 [02:59:05]Content-Type: application/json [02:59:05] [02:59:05]POST finish read [02:59:05]Found Content-Length = 800 [02:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:05]execute_script... [02:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)411837", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 64.20, "quantity" : 6.240, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 400.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:05]POST & json_proto [02:59:05]process_json_proto [02:59:05]json parsed OK: [02:59:05]protocol is kg_v1.0 [02:59:05]action value=close_receipt [02:59:05]process_action close_receipt [02:59:05]cmd_close_receipt [02:59:05]MH_GetDate [02:59:05]Write to MH i2c: F0 00 00 1F 0F 1D [02:59:05]Write i2c OK [02:59:05]MH_I2C_Read... [02:59:05]Read from MH i2c: F0 [02:59:05]MH_I2C_Read... [02:59:05]Read from MH i2c: F0 09 00 [02:59:05]MH_I2C_Read... [02:59:05]Read from MH i2c: F0 09 00 1F 0F 00 7B F7 B3 67 7E 41 4F 65 25 [02:59:05]GetLastDocTimeStamp 1739844760 [02:59:05]current date 1739847547 [02:59:05]FM_GetShiftState [02:59:05]SAM_PROTO_GetShiftState [02:59:05]wFMCommunicate request_size=4 [02:59:05]MH_SAM_APDU [02:59:05]CAPDU: 80 13 01 00 [02:59:05]Write to MH i2c: E2 08 00 20 0F 80 13 01 00 00 00 00 00 AC [02:59:05]Write i2c OK [02:59:05]MH_I2C_Read... [02:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:05]Read from MH i2c: E2 [02:59:05]MH_I2C_Read... [02:59:05]Read from MH i2c: E2 0E 00 [02:59:05]MH_I2C_Read... [02:59:05]Read from MH i2c: E2 0E 00 20 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 18 [02:59:05]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [02:59:05]wFMCommunicate OK [02:59:05]SAM_PROTO_GetShiftState done [02:59:05]FM_GetShiftState done [02:59:05]opened in 1739838833 [02:59:05]opened+sec_in_day 1739925233 [02:59:05]quantity*price = 40060 [02:59:05]sum+1 = 40062 [02:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.61 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.61 Место: АЗС № 92 "Партнер Нефть" Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 СНО: Общий режим Чек 6 18.02.2025 02:59 Смена: 645 ФФД: 1.0 ЗНМ: 0300000118 РНМ: 0000000000091857 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871826 ФД: 186690 ФПД: 268095238701558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T025907&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186690&fm=268095238701558&tin=02508201610067®Number=0000000000091857&sum=40061 [02:59:06]StoreToDocumentArchive [02:59:06]shift 645 fd 186690 [02:59:06]save to /storage/0645/doc_00186690 [02:59:06]save last doc name /storage/0645/doc_00186690 to /storage/kkm_last_doc_name [02:59:06]save OK [02:59:06]Clear old archive folders... [02:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:59:06]tlvbuf is 005B87A0 [02:59:06]SAM_PROTO_ClearQueue [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 09 00 00 [02:59:06]Write to MH i2c: E2 08 00 2D 0F 80 09 00 00 00 00 00 00 AE [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 2D 0F 00 90 00 B0 [02:59:06]RAPDU: 90 00 [02:59:06]wFMCommunicate OK [02:59:06]SAM_PROTO_ClearQueue done [02:59:06]KKMCreateOFDPacket [02:59:06]OFDProtocolAddRootSTLVToBuf [02:59:06]FM_MakeSignedData [02:59:06]FM_MakeSignedData [02:59:06]SAM_PROTO_SignData [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 0D 01 02 [02:59:06]Write to MH i2c: E2 08 00 2E 0F 80 0D 01 02 00 00 00 00 B6 [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 2E 0F 00 90 00 B1 [02:59:06]RAPDU: 90 00 [02:59:06]wFMCommunicate OK [02:59:06]wFMCommunicate request_size=255 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B F7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D9 02 00 35 04 06 00 F3 [02:59:06]Write to MH i2c: E2 02 01 2F 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B F7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D9 02 00 35 04 06 00 F3 00 00 EC [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 2F 0F 00 90 00 B2 [02:59:06]RAPDU: 90 00 [02:59:06]wFMCommunicate OK [02:59:06]wFMCommunicate request_size=10 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 0D 02 02 05 D4 C9 78 01 F6 [02:59:06]Write to MH i2c: E2 0D 00 30 0F 80 0D 02 02 05 00 D4 C9 78 01 F6 00 00 CF [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 03 00 30 0F 00 90 00 B3 [02:59:06]RAPDU: 90 00 [02:59:06]wFMCommunicate OK [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 0D 03 02 [02:59:06]Write to MH i2c: E2 08 00 31 0F 80 0D 03 02 00 00 00 00 BB [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 0B 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 0B 00 31 0F 00 48 5F 96 4F 47 15 CD A5 90 00 16 [02:59:06]RAPDU: 48 5F 96 4F 47 15 CD A5 90 00 [02:59:06]wFMCommunicate OK [02:59:06]SAM_PROTO_SignData done [02:59:06]FM_MakeSignedData done [02:59:06]CreateOFDProtocolMessage [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 11 00 00 [02:59:06]Write to MH i2c: E2 08 00 32 0F 80 11 00 00 00 00 00 00 BB [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 17 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 17 00 32 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 0E [02:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:59:06]wFMCommunicate OK [02:59:06]CreateOFDProtocolMessage done [02:59:06]OFDSenderStorePacket 186690 [02:59:06]StoreOFDPacket docnum=186690 [02:59:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB F7 07 01 78 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B F7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D9 02 00 35 04 06 00 F3 D4 C9 78 01 F6 48 5F 96 4F 47 15 CD A5 [02:59:06]CheckFolder [02:59:06]dirname=/storage/ofd_packets [02:59:06]CheckFolder done [02:59:06]ProducePacketName [02:59:06]name=ofd_packets/00186690 [02:59:06]NVStorageSaveData ofd_packets/00186690 [02:59:06]File name is /storage/ofd_packets/00186690 [02:59:06]Write 301 bytes [02:59:06]NVStorageSaveData done [02:59:06]OFDSenderStorePacket done [02:59:06]KKMCreateOFDPacket done [02:59:06]NVStorageSaveData kkm_last_timestamp [02:59:06]File name is /storage/kkm_last_timestamp [02:59:06]Write 4 bytes [02:59:06]NVStorageSaveData done [02:59:06]ExternCall_PrintAddStr [02:59:06]wPrintStart [02:59:06]Write to MH i2c: 01 00 00 33 0F 42 [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: 01 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: 01 07 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 FF 0F 57 [02:59:06]RasterBufferAndPrint [02:59:06]line Счет N : (1)411837 [02:59:06]line ИНН: 02508201610067 [02:59:06]line Контрольно-Кассовый Чек [02:59:06]line ПРОДАЖА [02:59:06]line ТРК (МРК, ГНК) : 22 [02:59:06]line Товар: 2710124130 [02:59:06]line Аи-92-К-2 [02:59:06]line 6.240 * 64.20 [02:59:06]line = 400.61 [02:59:06]line НДС 12% НСП 1% [02:59:06]line > о реализуемом товаре [02:59:06]line ИТОГО: 400.61 [02:59:06]line НСП 1% : 3.54 [02:59:06]line НДС 12% : 42.54 [02:59:06]line Наличными: 0.00 [02:59:06]line Безнал.: 400.61 [02:59:06]line Место: АЗС № 92 "Партнер Нефть" [02:59:06]line Адрес: 720001,с. Атамерек, Т. Зулпуев а/а, 40.296532, 72.666315 [02:59:06]line СНО: Общий режим [02:59:06]line Чек 6 18.02.2025 02:59 [02:59:06]line Смена: 645 ФФД: 1.0 [02:59:06]line ЗНМ: 0300000118 [02:59:06]line РНМ: 0000000000091857 [02:59:06]line Версия ККМ: 001 [02:59:06]line Платежная система: O! деньги [02:59:06]line ФМ: 0000000000871826 [02:59:06]line ФД: 186690 [02:59:06]line ФПД: 268095238701558 [02:59:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20250218T025907&type=1&operation_type=1&fn_number=0000000000871826&fd_number=186690&fm=268095238701558&tin=02508201610067®Number=0000000000091857&sum=40061 [02:59:06]written 0, free lines is 4095 [02:59:06]OFD Sender: Processing packet 186690 [packets to send 49, broken 48] [02:59:06]ProducePacketName [02:59:06]name=ofd_packets/00186690 [02:59:07]OFD Sender: To server: pG, [02:59:07]CommunicateWithHost lk.salyk.kg:30040 [02:59:07]ConnectInit lk.salyk.kg [02:59:07]Write to MH i2c: 01 00 00 5D 0F 6C [02:59:07]Write i2c OK [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: 01 [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: 01 07 00 [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: 01 07 00 5D 0F 00 00 00 00 00 02 0D 82 [02:59:07]RasterBufferAndPrint [02:59:07]line [02:59:07]line [02:59:07]line [02:59:07]line [02:59:07]line [02:59:07]written 0, free lines is 3336 [02:59:07]MH_Cut [02:59:07]Write to MH i2c: D1 01 00 64 0F 01 45 [02:59:07]Write i2c OK [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: D1 [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: D1 01 00 [02:59:07]MH_I2C_Read... [02:59:07]Read from MH i2c: D1 01 00 64 0F 00 44 [02:59:07]Write to MH i2c: 01 00 00 65 0F 74 [02:59:07]Write i2c OK [02:59:07]MH_I2C_Read... [02:59:07]Connected sock=10 [02:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0F 01 00 00 BB F7 07 01 78 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 60 18 00 00 00 00 00 37 04 06 00 14 19 00 00 00 00 13 04 06 00 7D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7D 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B F7 B3 67 0E 04 04 00 85 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D9 02 00 35 04 06 00 F3 D4 C9 78 01 F6 48 5F 96 4F 47 15 CD A5 [02:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 4F 00 00 00 C2 47 47 00 64 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 10 04 04 00 42 D9 02 00 F4 03 04 00 D3 9D B3 67 B6 04 01 00 00 CF 8A BF 85 60 EE 1D DA [02:59:07]CommunicateWithHost err = 0 [02:59:07]CheckOFDResponse [02:59:07]1017 (14) - 77093643461234 [02:59:07]1041 (16) - 0000000000871826 [02:59:07]1040 (4) - 186690 [02:59:07]1012 (4) - 17.02.2025 20:36 [02:59:07]1206 (1) - 0 [02:59:07]OFD Sender: Remove packet 186690 [02:59:07]ProducePacketName [02:59:07]name=ofd_packets/00186690 [02:59:07]NVStorageDeleteData [02:59:07]*** Cut start [02:59:07]*** Partial cut [02:59:07]*** CUTSNS_PIN = 1 [02:59:08]*** CUTSNS_PIN = 0 [02:59:08]OFD Sender: No OFD packet to send [02:59:08]*** Brake cut motor [02:59:08]Read from MH i2c: 01 [02:59:08]MH_I2C_Read... [02:59:08]*** Stop cut motor [02:59:08]*** Cut end [02:59:08]Read from MH i2c: 01 07 00 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: 01 07 00 65 0F 00 00 00 00 00 FF 0F 89 [02:59:08]process_action close_receipt done [02:59:08]requested_data is exist [02:59:08]produce_requested_data [02:59:08]requested_item fm.sn is exist - process it [02:59:08]wFMCommunicate request_size=4 [02:59:08]MH_SAM_APDU [02:59:08]CAPDU: 80 11 00 00 [02:59:08]Write to MH i2c: E2 08 00 66 0F 80 11 00 00 00 00 00 00 EF [02:59:08]Write i2c OK [02:59:08]MH_I2C_Read... [02:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:08]Read from MH i2c: E2 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 17 00 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 17 00 66 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 42 [02:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 90 00 [02:59:08]wFMCommunicate OK [02:59:08]requested_item fd.num is exist - process it [02:59:08]SAM_PROTO_GetFieldsCounters [02:59:08]wFMCommunicate request_size=4 [02:59:08]MH_SAM_APDU [02:59:08]CAPDU: 80 13 00 00 [02:59:08]Write to MH i2c: E2 08 00 67 0F 80 13 00 00 00 00 00 00 F2 [02:59:08]Write i2c OK [02:59:08]MH_I2C_Read... [02:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:08]Read from MH i2c: E2 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 62 00 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 62 00 67 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [02:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 32 36 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 38 35 37 10 04 04 00 42 D9 02 00 0E 04 04 00 85 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:59:08]wFMCommunicate OK [02:59:08]SAM_PROTO_GetFieldsCounters done [02:59:08]requested_item shift.num is exist - process it [02:59:08]requested_item shift.opened is exist - process it [02:59:08]req_shift_opened [02:59:08]FM_GetShiftState [02:59:08]SAM_PROTO_GetShiftState [02:59:08]wFMCommunicate request_size=4 [02:59:08]MH_SAM_APDU [02:59:08]CAPDU: 80 13 01 00 [02:59:08]Write to MH i2c: E2 08 00 68 0F 80 13 01 00 00 00 00 00 F4 [02:59:08]Write i2c OK [02:59:08]MH_I2C_Read... [02:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:08]Read from MH i2c: E2 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 0E 00 [02:59:08]MH_I2C_Read... [02:59:08]Read from MH i2c: E2 0E 00 68 0F 00 09 00 01 71 D5 B3 67 00 00 00 00 90 00 60 [02:59:08]RAPDU: 09 00 01 71 D5 B3 67 00 00 00 00 90 00 [02:59:08]wFMCommunicate OK [02:59:08]SAM_PROTO_GetShiftState done [02:59:08]FM_GetShiftState done [02:59:08]req_shift_opened done [02:59:08]requested_item shift.open_date is exist - process it [02:59:08]req_shift_open_date [02:59:08]req_shift_open_date done [02:59:08]produce_requested_data done [02:59:08]produce_requested_data return {"fm.sn":"0000000000871826","fd.num":186690,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833} [02:59:08]process_action_free close_receipt [02:59:08]json_value_free [02:59:08]json_value_free done [02:59:08]process_json_proto returns [02:59:08]Send response to host [02:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871826","fd.num":186690,"shift.num":645,"shift.opened":1,"shift.open_date":1739838833}}} [02:59:08]free response buf [02:59:08]execute_script done [02:59:08]execute_script returns [02:59:08]free content buf [02:59:08]Sock 7.Close socket [02:59:08]Sock 7.Thread stoped [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send